cancel
Showing results for 
Search instead for 
Did you mean: 

Calling /api WS via tomcat's SSL port

chapeaurouge
Champ in-the-making
Champ in-the-making
Hello all,

I am having an issue to call the webservices via tomcat's SSL port. It works OK via the http port.
Basically, the socket closes on me.

I haven't changed any config settings related to Axis or anything. Should I?
I enabled ssl debug, everything is fine. Enabled axis debug, and aside the following which apparently is useless from what I could read on the web (and it goes on ok afterwards it seems):

15:13:49,303  DEBUG [encoding.ser.BaseDeserializerFactory] Exception:
java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.ArrayDeserializerFactory.<init>(java.lang.Class, javax.
xml.namespace.QName)
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        […]

repository.location=https://dmsprod1:8443/alfresco/api

Keystore is set on client side (I had a previous error related to that and it's OK now).

The error I am encountering is the following, and happens after authenticating OK. I can see the auth go through in the log.

Using endpoint https://dmsprod1:8443/alfresco/api
Error writing content to repository server
java.lang.RuntimeException: Error writing content to repository server
   at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:276)
   at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:148)
   at com.demo.print2file.Uploader.create(Uploader.java:124)
   at com.demo..print2file.ArcParser.main(ArcParser.java:59)
Caused by: java.net.SocketException: Connection reset
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.DataOutputStream.write(DataOutputStream.java:90)
   at org.alfresco.webservice.util.ContentUtils.putContent(ContentUtils.java:221)
   … 3 more

Any idea? I thought that tomcat would talk to axis in the backend would not change, independant from the fact that I call it on the http or https port, but I guess I am wrong.

Thanks for any input.
fred
3 REPLIES 3

chapeaurouge
Champ in-the-making
Champ in-the-making
Forgot to mention, this is on Alfresco community 3.2, centos 5.3, java 1.6.0_14, tomcat 6.0.18.

chapeaurouge
Champ in-the-making
Champ in-the-making

yahiko
Champ in-the-making
Champ in-the-making
Only to keep track… issue has been actualized at Sep 30