8 Replies Latest reply on Dec 10, 2014 4:54 AM by Adriaan Wisse

    Wildfly: Remote EJB call complains about 'Unrecognized SSL message, plaintext connection?'

    Adriaan Wisse Newbie

      We are using Wildfly 8.2.0.Final in domain mode with 2 running instances on separate machines. To be able to communicate between both instances we've setup the remote ejb connection using the documentation as can be found here 'EJB invocations from a remote server instance - WildFly 8 - Project Documentation Editor'. We've configured it with SSL_ENABLED = false. Despite that we're getting erromessages like the following:

       

      What are we doing wrong?

       

      0m [0m11:37:32,728 INFO [org.jboss.ejb.client.remoting] (MSC service thread 1-6) EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@49e2e782, receiver=Remoting connection EJB receiver [connection=Remoting connection <437784cf>,channel=jboss.ejb,nodename=dmpMO:server-dmp-mo]} on channel Channel ID e173b356 (outbound) of Remoting connection 23b50b52 to /161.89.116.53:8080
      [0m [0m11:37:32,904 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='dmpMO:server-dmp-mo', clientMappings=[ClientMapping{sourceNetworkAddress=/0:0:0:0:0:0:0:0, sourceNetworkMaskBits=0, destinationAddress='161.89.116.53', destinationPort=8080}], resolvedDestination=[Destination address=161.89.116.53, destination port=8080]} 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:92)
      at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:77)
      at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
      at org.jboss.ejb.client.remoting.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:79)
      at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:405)
      at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:379)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_25]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]
      Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:156) [jsse.jar:1.8.0_25]
      at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:862) [jsse.jar:1.8.0_25]
      at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:775) [jsse.jar:1.8.0_25]
      at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) [rt.jar:1.8.0_25]
      at org.xnio.ssl.JsseSslConduitEngine.engineUnwrap(JsseSslConduitEngine.java:688) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ssl.JsseSslConduitEngine.handleHandshake(JsseSslConduitEngine.java:513) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ssl.JsseSslConduitEngine.wrap(JsseSslConduitEngine.java:314) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ssl.JsseSslConduitEngine.wrap(JsseSslConduitEngine.java:204) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ssl.JsseSslStreamSinkConduit.write(JsseSslStreamSinkConduit.java:98) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ssl.JsseSslStreamSinkConduit.write(JsseSslStreamSinkConduit.java:72) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.http.HttpUpgrade$HttpUpgradeState$StringWriteListener.handleEvent(HttpUpgrade.java:385) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.http.HttpUpgrade$HttpUpgradeState$StringWriteListener.handleEvent(HttpUpgrade.java:372) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65) [xnio-api-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:93) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
      at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.3.0.Final.jar:3.3.0.Final]
      at ...asynchronous invocation...(Unknown Source)
      at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
      at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:388)
      at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:153)
      at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:133)
      at org.jboss.ejb.client.remoting.ConnectionPool.getConnection(ConnectionPool.java:75)
      ... 8 more
      
      
      
      

       

      Somehow the server side expects the connection to be encrypted?

      I've already searched this forum and the Wildfly issuetracker, but the only questions about this errormessage were in relation to setting up a remote EJB connection with SSL enabled. We do not need/want that.