Error using SSL mode: java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)
I was trying to connect to RTC client with an java application, and seeing this error:
Jun 28, 2013 5:00:31 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Exception in thread "main" java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:168)
at javax.crypto.KeyGenerator.a(Unknown Source)
at javax.crypto.KeyGenerator.<init>(Unknown Source)
at javax.crypto.KeyGenerator.getInstance(Unknown Source)
at com.ibm.jsse2.vb.d(vb.java:79)
at com.ibm.jsse2.jb.<init>(jb.java:25)
at com.ibm.jsse2.lb.a(lb.java:386)
at com.ibm.jsse2.lb.a(lb.java:243)
at com.ibm.jsse2.kb.s(kb.java:327)
at com.ibm.jsse2.kb.a(kb.java:529)
at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:300)
at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:403)
at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:774)
at com.ibm.jsse2.k.write(k.java:7)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.adt.oslc.rtc.TeamConcertRepository.getClient(TeamConcertRepository.java:58)
...
What seems to the problem, any thing I missed?
Jun 28, 2013 5:00:31 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Exception in thread "main" java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:168)
at javax.crypto.KeyGenerator.a(Unknown Source)
at javax.crypto.KeyGenerator.<init>(Unknown Source)
at javax.crypto.KeyGenerator.getInstance(Unknown Source)
at com.ibm.jsse2.vb.d(vb.java:79)
at com.ibm.jsse2.jb.<init>(jb.java:25)
at com.ibm.jsse2.lb.a(lb.java:386)
at com.ibm.jsse2.lb.a(lb.java:243)
at com.ibm.jsse2.kb.s(kb.java:327)
at com.ibm.jsse2.kb.a(kb.java:529)
at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:300)
at com.ibm.jsse2.SSLSocketImpl.h(SSLSocketImpl.java:403)
at com.ibm.jsse2.SSLSocketImpl.a(SSLSocketImpl.java:774)
at com.ibm.jsse2.k.write(k.java:7)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:76)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:134)
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.ibm.adt.oslc.rtc.TeamConcertRepository.getClient(TeamConcertRepository.java:58)
...
What seems to the problem, any thing I missed?