I run a third-party application that does not work with the following stacktrace when trying to create an SSL connection to the server:
The root exception is as follows:
Caused by: java.lang.SecurityException: Toolkit not encapsulated by a jar. at com.rsa.jcm.f.hq.a(Unknown Source) at com.rsa.jcm.f.jg.b(Unknown Source) at com.rsa.crypto.jcm.ModuleLoader.a(Unknown Source) at com.rsa.crypto.jcm.ModuleLoader.load(Unknown Source) ... 43 more
Has anyone seen this when connecting over SSL that uses RSA? I worked with Google, and there is nothing obvious about why this will happen.
This particular error occurs on a Mac, and I have a Windows version of the same application that works correctly. The main difference is that they bind the JRE in the Windows version, so I checked various security policies, etc., but there are no big differences in the JRE for Windows and the JRE on my mac.
The full stack is as follows:
Caused by: java.lang.Error: Problem loading module. at com.rsa.cryptoj.o.ju.g(Unknown Source) at com.rsa.cryptoj.o.ju.c(Unknown Source) at com.rsa.cryptoj.o.gd.a(Unknown Source) at com.rsa.cryptoj.o.dm.b(Unknown Source) at com.rsa.cryptoj.o.dm.<clinit>(Unknown Source) at com.rsa.cryptoj.o.me.newInstance(Unknown Source) at javax.crypto.Cipher.chooseProvider(Cipher.java:845) at javax.crypto.Cipher.init(Cipher.java:1348) at sun.security.ssl.CipherBox.<init>(CipherBox.java:175) at sun.security.ssl.CipherBox.newCipherBox(CipherBox.java:208) at sun.security.ssl.CipherSuite$BulkCipher.newCipher(CipherSuite.java:467) at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:507) at sun.security.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:485) at sun.security.ssl.CipherSuite.isAvailable(CipherSuite.java:190) at sun.security.ssl.SSLContextImpl.getApplicableCipherSuiteList(SSLContextImpl.java:342) at sun.security.ssl.SSLContextImpl.getDefaultCipherSuiteList(SSLContextImpl.java:300) at sun.security.ssl.SSLSocketImpl.init(SSLSocketImpl.java:576) at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:512) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:73) at com.somevendor.client.common.spring.remoting.http.e.createSocket(Unknown Source) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at com.somevendor.client.common.spring.remoting.http.SecureHttpInvokerRequestExecutor.executePostMethod(Unknown Source) at org.springframework.remoting.httpinvoker.CommonsHttpInvokerRequestExecutor.doExecuteRequest(CommonsHttpInvokerRequestExecutor.java:140) at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:136) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:192) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:174) at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:142) ... 7 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ... 39 more Caused by: java.lang.SecurityException: Toolkit not encapsulated by a jar. at com.rsa.jcm.f.hq.a(Unknown Source) at com.rsa.jcm.f.jg.b(Unknown Source) at com.rsa.crypto.jcm.ModuleLoader.a(Unknown Source) at com.rsa.crypto.jcm.ModuleLoader.load(Unknown Source) ... 43 more
source share