Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-268

RuntimeException: PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID Not Handled by SSIOSession

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.1.3
    • 4.2-alpha1
    • HttpCore
    • None

    Description

      The following exception should be handled by httpcore to keep the i/o reactor going.

      org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:321)
      at org.openrdf.http.object.HTTPObjectServer$5.run(HTTPObjectServer.java:410)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: java.lang.RuntimeException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
      at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1029)
      at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:503)
      at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:751)
      at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:719)
      at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
      at org.apache.http.impl.nio.reactor.SSLIOSession.doHandshake(SSLIOSession.java:163)
      at org.apache.http.impl.nio.reactor.SSLIOSession.isAppInputReady(SSLIOSession.java:265)
      at org.apache.http.impl.nio.SSLServerIOEventDispatch.inputReady(SSLServerIOEventDispatch.java:229)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:158)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:340)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:318)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:542)
      ... 1 more
      Caused by: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
      at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:323)
      at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:673)
      at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:63)
      at sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys(ServerHandshaker.java:991)
      at sun.security.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:872)
      at sun.security.ssl.ServerHandshaker.chooseCipherSuite(ServerHandshaker.java:801)
      at sun.security.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:576)
      at sun.security.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:170)
      at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610)
      at sun.security.ssl.Handshaker$1.run(Handshaker.java:550)
      at sun.security.ssl.Handshaker$1.run(Handshaker.java:548)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:969)
      at org.apache.http.impl.nio.reactor.SSLIOSession.doHandshake(SSLIOSession.java:171)
      ... 9 more
      Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DOMAIN_PARAMS_INVALID
      at sun.security.pkcs11.wrapper.PKCS11.C_GenerateKeyPair(Native Method)
      at sun.security.pkcs11.P11KeyPairGenerator.generateKeyPair(P11KeyPairGenerator.java:314)
      ... 22 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            jamesrdf James Leigh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: