Results 1 to 3 of 3
  1. #1
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.SunJ

    I am getting the above exception in my Weblogic(9.1) console.
    I am using JDk 1.5.0_04 .
    java.lang.ExceptionInInitializerError
    at javax.crypto.Mac.getInstance(DashoA12275)
    at com.certicom.tls.provider.Mac.getInstance(Unknown Source)
    at com.certicom.tls.ciphersuite.CipherSuiteSupport.ch eckCryptography(Unknown Source)
    at com.certicom.tls.ciphersuite.CipherSuiteSupport.re set(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSSystem.<clinit>( Unknown Source)
    at com.certicom.net.ssl.SSLContext.<init>(Unknown Source)
    at com.bea.sslplus.CerticomSSLContext.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at weblogic.security.utils.SSLSetup.getSSLDelegateIns tance(SSLSetup.java:199)
    at weblogic.security.utils.SSLContextWrapper.<init>(S SLContextWrapper.java:27)
    at weblogic.security.utils.SSLContextWrapper.getInsta nce(SSLContextWrapper.java:22)
    at weblogic.security.utils.SSLSetup.getSSLContext(SSL Setup.java:380)
    at weblogic.security.SSL.SSLSocketFactory.setSSLClien tInfo(SSLSocketFactory.java:218)
    at weblogic.security.SSL.SSLSocketFactory.<init>(SSLS ocketFactory.java:36)
    at weblogic.security.SSL.SSLSocketFactory.<init>(SSLS ocketFactory.java:28)
    at weblogic.security.SSL.SSLSocketFactory.getDefault( SSLSocketFactory.java:55)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java :476)
    at weblogic.net.http.HttpsURLConnection.connect(Https URLConnection.java:219)
    at weblogic.net.http.HttpURLConnection.getInputStream (HttpURLConnection.java:334)
    at weblogic.net.http.SOAPHttpsURLConnection.getInputS tream(SOAPHttpsURLConnection.java:32)
    at weblogic.wsee.connection.transport.TransportUtil.g etInputStream(TransportUtil.java:91)
    at weblogic.wsee.connection.transport.http.HTTPClient Transport.receive(HTTPClientTransport.java:176)
    at weblogic.wsee.connection.soap.SoapConnection.recei ve(SoapConnection.java:78)
    at weblogic.wsee.ws.dispatch.client.ConnectionHandler .handleResponse(ConnectionHandler.java:95)
    at weblogic.wsee.handler.HandlerIterator.handleRespon se(HandlerIterator.java:242)
    at weblogic.wsee.handler.HandlerIterator.handleRespon se(HandlerIterator.java:226)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher. handleResponse(ClientDispatcher.java:158)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher. dispatch(ClientDispatcher.java:113)
    at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)
    .
    .
    .
    .
    java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.<clinit>(DashoA12275)
    at javax.crypto.Mac.getInstance(DashoA12275)
    at com.certicom.tls.provider.Mac.getInstance(Unknown Source)
    at com.certicom.tls.ciphersuite.CipherSuiteSupport.ch eckCryptography(Unknown Source)
    at com.certicom.tls.ciphersuite.CipherSuiteSupport.re set(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSSystem.<clinit>( Unknown Source)
    at com.certicom.net.ssl.SSLContext.<init>(Unknown Source)
    at com.bea.sslplus.CerticomSSLContext.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at weblogic.security.utils.SSLSetup.getSSLDelegateIns tance(SSLSetup.java:199)
    at weblogic.security.utils.SSLContextWrapper.<init>(S SLContextWrapper.java:27)
    at weblogic.security.utils.SSLContextWrapper.getInsta nce(SSLContextWrapper.java:22)
    at weblogic.security.utils.SSLSetup.getSSLContext(SSL Setup.java:380)
    at weblogic.security.SSL.SSLSocketFactory.setSSLClien tInfo(SSLSocketFactory.java:218)
    at weblogic.security.SSL.SSLSocketFactory.<init>(SSLS ocketFactory.java:36)
    at weblogic.security.SSL.SSLSocketFactory.<init>(SSLS ocketFactory.java:28)
    at weblogic.security.SSL.SSLSocketFactory.getDefault( SSLSocketFactory.java:55)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java :476)
    at weblogic.net.http.HttpsURLConnection.connect(Https URLConnection.java:219)
    at weblogic.net.http.HttpURLConnection.getInputStream (HttpURLConnection.java:334)
    at weblogic.net.http.SOAPHttpsURLConnection.getInputS tream(SOAPHttpsURLConnection.java:32)
    at weblogic.wsee.connection.transport.TransportUtil.g etInputStream(TransportUtil.java:91)
    at weblogic.wsee.connection.transport.http.HTTPClient Transport.receive(HTTPClientTransport.java:176)
    at weblogic.wsee.connection.soap.SoapConnection.recei ve(SoapConnection.java:78)
    at weblogic.wsee.ws.dispatch.client.ConnectionHandler .handleResponse(ConnectionHandler.java:95)
    at weblogic.wsee.handler.HandlerIterator.handleRespon se(HandlerIterator.java:242)
    at weblogic.wsee.handler.HandlerIterator.handleRespon se(HandlerIterator.java:226)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher. handleResponse(ClientDispatcher.java:158)
    at weblogic.wsee.ws.dispatch.client.ClientDispatcher. dispatch(ClientDispatcher.java:113)
    at weblogic.wsee.ws.WsStub.invoke(WsStub.java:89)

    I am trying to connect to a server via a webservice.I just regenerated java code according to the wsdl file and deployed the code on weblogic and I start geting this exception.
    I am no idea what does it means.
    Please help.

    Thanks,

  2. #2
    pink123 is offline Member
    Join Date
    Feb 2011
    Posts
    84
    Rep Power
    0

    Default Re: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.

    Please can anyone help with this

  3. #3
    christopherx is offline Member
    Join Date
    Oct 2011
    Posts
    92
    Rep Power
    0

    Default Re: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.

    Please post a SSCCE of the code, so we can see what it's meant to be doing. That might shed some light on why you're getting this error :)

Similar Threads

  1. Caused by: java.lang.SecurityException: Access denied
    By Dattatray in forum Advanced Java
    Replies: 0
    Last Post: 12-17-2010, 11:46 AM
  2. Replies: 1
    Last Post: 11-17-2010, 06:48 AM
  3. Replies: 0
    Last Post: 05-15-2010, 10:26 AM
  4. javax.crypto.Cipher
    By Bill86 in forum Advanced Java
    Replies: 1
    Last Post: 12-18-2009, 10:17 PM
  5. Replies: 1
    Last Post: 10-11-2008, 05:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •