1 Reply Latest reply on Dec 20, 2007 6:43 PM by Ron Sigal

    SSL Handshake Exception

    Anupam Kakade Newbie


      My rmi SSL server which is deployed in .sar file now runs fine in JBOSS 4.0.5

      I can connect to server by command line client using SSL.

      But now my client runs inside MDB . i.e. client is deployed .
      Now when i am trying to connect to server (rmis) which is deployed in same server i am getting the exception as follows,

      Please note that there is no SSLSocket in RMIS Server and RMIS client.


      Please help me . I am new to JBOSS.
      Thanks a lot in advance .



      14:41:18,221 INFO [STDOUT] javax.naming.CommunicationException [Root exception is java.rmi.Conn
      ectIOException: error during JRMP connection establishment; nested exception is:
      javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
      14:41:18,221 ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.rmi.Conn
      ectIOException: error during JRMP connection establishment; nested exception is:
      javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
      14:41:18,236 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:72
      2)
      14:41:18,236 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:58
      7)
      14:41:18,236 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
      14:41:18,236 ERROR [STDERR] at com.atom.mdb.MessageReceiver.onMessage(MessageReceiver.java:6
      1)
      14:41:18,236 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      14:41:18,236 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      14:41:18,252 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      14:41:18,252 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      14:41:18,268 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:3
      59)
      14:41:18,268 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.inv
      oke(MessageDrivenContainer.java:495)
      14:41:18,268 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
      tor.invoke(CachedConnectionInterceptor.java:158)
      14:41:18,268 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke
      (MessageDrivenInstanceInterceptor.java:116)
      14:41:18,283 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallVa
      lidationInterceptor.java:63)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstra
      ctTxInterceptor.java:121)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
      InterceptorCMT.java:350)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
      T.java:181)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSe
      curityInterceptor.java:109)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja
      va:205)
      14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pr
      oxyFactoryFinderInterceptor.java:136)
      14:41:18,315 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDr
      ivenContainer.java:402)
      14:41:18,315 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
      14:41:18,315 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSConta
      inerInvoker.java:987)
      14:41:18,315 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListener
      Impl.onMessage(JMSContainerInvoker.java:1287)
      14:41:18,315 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession
      .java:266)
      14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage
      (SpyMessageConsumer.java:905)
      14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer
      .java:170)
      14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:323)
      14:41:18,330 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:
      194)
      14:41:18,330 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Po
      oledExecutor.java:743)
      14:41:18,346 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
      14:41:18,346 ERROR [STDERR] Caused by: java.rmi.ConnectIOException: error during JRMP connection
      establishment; nested exception is:
      javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
      14:41:18,346 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.
      java:286)
      14:41:18,346 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.jav
      a:184)
      14:41:18,377 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
      14:41:18,377 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      14:41:18,377 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
      5)
      14:41:18,377 ERROR [STDERR] ... 29 more
      14:41:18,377 ERROR [STDERR] Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed c
      onnection during handshake
      14:41:18,377 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSock
      etImpl.java:741)
      14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHand
      shake(SSLSocketImpl.java:1029)
      14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSoc
      ketImpl.java:621)
      14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputS
      tream.java:59)
      14:41:18,393 ERROR [STDERR] at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream
      .java:65)
      14:41:18,393 ERROR [STDERR] at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
      123)
      14:41:18,393 ERROR [STDERR] at java.io.DataOutputStream.flush(DataOutputStream.java:106)
      14:41:18,393 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.
      java:211)
      14:41:18,408 ERROR [STDERR] ... 33 more
      14:41:18,408 ERROR [STDERR] Caused by: java.io.EOFException: SSL peer shut down incorrectly
      14:41:18,408 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.jav
      a:333)
      14:41:18,408 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSock
      etImpl.java:722)