Well I turned off all of my outgoing connections and enabled SSL
debugging, so now all that is really happening is that my client is
connecting via ssl and getting a null response back. After doing this 10
times it fails on the 11th. After that the ssl debugging tells me that:

http-8443-Processor25, handling exception:
java.security.ProviderException: Could not obtain session

every time I try to connect, but this time it happens before the Axis
servlet gets called, so the SSL initialization seems to be calling
sun.security.pkcs11.SessionManager.getOpSession() as well as Axis, and
that function seems like it is failing after some number of tries? 

Ok, just going to https://myTomcatHost:port/ 8 times with my Axis app
undeployed causes the error, so I'll take this over to Tomcat now and
see what's what.


-Bill Kuker


> -----Original Message-----
> From: Bill Kuker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 08, 2005 8:45 AM
> To: [email protected]
> Subject: Problem with Axis, Tomcat & Solaris 10?
> 
> 
> Has anyone had this problem with Solaris 10, Tomcat and Axis?
> 
> For a little background, my web service service runs on tomcat turns
> around and calls a number of other web services (simultaniously) on
> behalf of the client. All of these connections are SSL (including the
> connection from the client).
> 
> After a few runs through, connecting out to 2 other services on
average
> 7 times I get the exception below. It /seems/ to only happen when I am
> connecting to more than one, and once it takes place NO ssl works any
> more - the servlet can't connect to the remote services, and the
client
> cant connect to tomcat via SSL any more (but can via http). I have to
> restart tomcat.
> 
> The problem emerged moving from a 4cpu solaris 9 machine to a 32 cpu
> solaris 10 machine, so my hunch is a race condition, or a
non-threadsafe
> bit of the Solaris Cryptographic Framework. I'll be sure to reply to
> this with any solution I find.
> 
> -Bill Kuker
> 
> Exception Below:
> 
> 
> - Servlet.service() for servlet AxisServlet threw exception
> java.security.ProviderException: Could not obtain session
>         at
>
sun.security.pkcs11.SessionManager.getOpSession(SessionManager.java:122)
>         at sun.security.pkcs11.Token.getOpSession(Token.java:241)
>         at
>
sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java
> :92)
>         at java.security.SecureRandom.nextBytes(Unknown Source)
>         at
>
org.apache.axis.utils.SessionUtils.generateSessionId(SessionUtils.java:6
> 2)
>         at org.apache.axis.SOAPPart.<init>(SOAPPart.java:164)
>         at org.apache.axis.Message.setup(Message.java:377)
>         at org.apache.axis.Message.<init>(Message.java:235)
>         at
>
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:628)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at
>
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j
> ava:327)

Reply via email to