AnsweredAssumed Answered

Calling /api WS via tomcat's SSL port

Question asked by chapeaurouge on Sep 14, 2009
Latest reply on Sep 30, 2009 by yahiko
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

Outcomes