Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-927

NPE SSL Handshake

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Abandoned
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.14
    • Component/s: Filter
    • Labels:
    • Environment:
      * Linux version 3.4.2-linode44 (root@build) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Tue Jun 12 15:04:46 EDT 2012
      * Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
      * Mina 2.0.7

      Description

      This error occurs sometimes.

      java.lang.RuntimeException: Delegated task threw Exception/Error
      at com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1012)
      at com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)
      at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:753)
      at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:721)
      at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
      at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:728)
      at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:666)
      at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:552)
      at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:351)
      at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:468)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:47)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:765)
      at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:417)
      at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:410)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:710)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:664)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:653)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
      at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1124)
      at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.NullPointerException
      at sun.security.internal.spec.TlsKeyMaterialParameterSpec.<init>(TlsKeyMaterialParameterSpec.java:69)
      at com.sun.net.ssl.internal.ssl.Handshaker.calculateConnectionKeys(Handshaker.java:840)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientHello(ServerHandshaker.java:595)
      at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:151)
      at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
      at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:533)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:952)
      at org.apache.mina.filter.ssl.SslHandler.doTasks(SslHandler.java:759)
      at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:544)
      ... 17 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              celin CĂ©lio Vasconcelos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: