8 Replies Latest reply on Dec 31, 2013 5:49 AM by wdfink

    Remote connection failed: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

    divya_ah

      Hi,

       

      I am currently using the Jboss AS 7.2 Final build for my application. My application is a clustered application deployed in domain mode on different boxes. I am trying to connect to this clustered applciation using a web application which is deplyed on another machine. I have done all the required configuration as mentiond in url EJB invocations from a remote server instance - JBoss AS 7.1 - Project Documentation Editor . When the web application is deplyed , follwoing error is logged on the jboss console which runs the client web application. The client web application is also deployed in domain mode.

       

      ERROR [org.jboss.remoting.remote.connection] (Remoting "master:client1" read-1) JBREM000200: Remote connection failed: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

      INFO  [org.jboss.ejb.client.remoting.RemotingConnectionClusterNodeManager] (ejb-client-cluster-node-connection-creation-4-thread-1) Could not create a connection for cluster node ClusterNode{clusterName='ejb', nodeName='slave1:myapp-server1', clientMappings=[ClientMapping{sourceNetworkAddress=/0:0:0:0:0:0:0:0, sourceNetworkMaskBits=0, destinationAddress='10.1.2.3', destinationPort=4447}], resolvedDestination=[Destination address=10.1.2.3, destination port=4447]} in cluster ejb: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

      at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91)

      at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)

      at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)

      at org.jboss.ejb.client.remoting.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:77)

      at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:406)

      at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:380)

      at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_45]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

      at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:171) [jsse.jar:1.7.0_45]

      at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:845) [jsse.jar:1.7.0_45]

      at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:758) [jsse.jar:1.7.0_45]

      at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) [rt.jar:1.7.0_45]

      at org.xnio.ssl.JsseConnectedSslStreamChannel.unwrap(JsseConnectedSslStreamChannel.java:443) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:484) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:449) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:87) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:151) [jboss-remoting-3.2.16.GA-redhat-1.jar:3.2.16.GA-redhat-1]

      at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:143) [jboss-remoting-3.2.16.GA-redhat-1.jar:3.2.16.GA-redhat-1]

      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.7.GA-redhat-1.jar:3.0.7.GA-redhat-1]

      at org.xnio.nio.NioHandle.run(NioHandle.java:90)

      at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:208)

      at org.xnio.nio.WorkerThread.run(WorkerThread.java:121)

      at ...asynchronous invocation...(Unknown Source)

      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270) [jboss-remoting-3.2.16.GA-redhat-1.jar:3.2.16.GA-redhat-1]

      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:386) [jboss-remoting-3.2.16.GA-redhat-1.jar:3.2.16.GA-redhat-1]

      at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:151)

      at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:132)

      at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:73)

      ... 8 more

       

       

      Also, follwoing error is logged on the jboss console which runs the clustered application:

      Remoting "master:ibpm-server" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of 369295616

       

      Please let me know why this issue occurs and let me know if there are any additional configurations which needs to be done for this.

       

      Regards,

      Divya