java.lang.ClassCastException: sun.security.pkcs11.P11Key$P11PrivateKey

Oracle Community | 666705 | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    2-way ssl with Smart Card with java client ? Pl... | Oracle Community

    oracle.com | 2 years ago
    java.lang.ClassCastException: sun.security.pkcs11.P11Key$P11PrivateKey
  2. 0

    2-way ssl with Smart Card with java client ? Please HELP!!!

    Oracle Community | 9 years ago | 666705
    java.lang.ClassCastException: sun.security.pkcs11.P11Key$P11PrivateKey

    Root Cause Analysis

    1. java.lang.ClassCastException

      sun.security.pkcs11.P11Key$P11PrivateKey

      at com.certicom.tls.record.handshake.MessageCertificateVerify.rsaSignHandshakeMessageHashes()
    2. com.certicom.tls
      WriteHandler.write
      1. com.certicom.tls.record.handshake.MessageCertificateVerify.rsaSignHandshakeMessageHashes(Unknown Source)
      2. com.certicom.tls.record.handshake.MessageCertificateVerify.initMessage(Unknown Source)
      3. com.certicom.tls.record.handshake.HandshakeMessage.toByteArray(Unknown Source)
      4. com.certicom.tls.record.handshake.HandshakeHandler.updateHashes(Unknown Source)
      5. com.certicom.tls.record.handshake.HandshakeHandler.write(Unknown Source)
      6. com.certicom.tls.record.handshake.ClientStateReceivedCertificate.handle(Unknown Source)
      7. com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
      8. com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
      9. com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
      10. com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
      11. com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
      12. com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
      13. com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
      14. com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
      15. com.certicom.tls.record.WriteHandler.write(Unknown Source)
      15 frames
    3. com.certicom.io
      OutputSSLIOStreamWrapper.write
      1. com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
      1 frame
    4. Java RT
      FilterOutputStream.flush
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      3. java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
      3 frames
    5. weblogic.net.http
      HttpURLConnection.getInputStream
      1. weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:142)
      2. weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:344)
      2 frames
    6. weblogic.rjvm.http
      HTTPSClientJVMConnection.createConnection
      1. weblogic.rjvm.http.HTTPClientJVMConnection.connect(HTTPClientJVMConnection.java:198)
      2. weblogic.rjvm.http.HTTPSClientJVMConnection.createConnection(HTTPSClientJVMConnection.java:48)
      2 frames
    7. weblogic.rjvm
      ServerURL.findOrCreateRJVM
      1. weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1713)
      2. weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1369)
      3. weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:445)
      4. weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:323)
      5. weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:259)
      6. weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:202)
      7. weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:226)
      8. weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:189)
      9. weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:154)
      9 frames
    8. weblogic.jndi
      Environment.getInitialContext
      1. weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:349)
      2. weblogic.jndi.Environment.getContext(Environment.java:307)
      3. weblogic.jndi.Environment.getContext(Environment.java:277)
      4. weblogic.jndi.Environment.createInitialContext(Environment.java:200)
      5. weblogic.jndi.Environment.getInitialContext(Environment.java:184)
      6. weblogic.jndi.Environment.getInitialContext(Environment.java:162)
      6 frames
    9. Unknown
      SSLJNDIClient2.main
      1. SSLJNDIClient2.main(SSLJNDIClient2.java:118)
      1 frame