1 Reply Latest reply: May 9, 2012 10:03 PM by jaikiran pai RSS

Latest 7.1.2 build - Remote connection failed: javax.net.ssl.SSLException

Brian Wallis Master

I have just updated to the latest overnight build (May 8 10:55:58pm) and am getting a new error that I haven't seen before. My server configuration is unchanged from what I used with an earlier nightly build (from about a week ago). The domain.xml and host.xml files are pretty close to what you get out of the box.

 

The setup is a pair of servers on two separate OpenSUSE 12.1 hosts running in domain mode. One (hostname master) is running the domain controller and the other (hostname slave) is configured to use the domain controller on the master host.

 

The application I am running has a richfaces frontend, a statefull session bean for a service layer interface and a couple of entity beans for persistence (a very simple app). The deployment is configured for distibution (web.xml has the <distributed/> element in it) and the servers are configured for clustered SSO.

 

The app is working, the clustered SSO seems to work but the session state is not being shared so when one host fails and the other takes over the session I loose the statefull session bean state.

 

I have not configured any SSL or https keys or other encryption related things.

 

On the master server I get the following logging:

 

[Server:server-three] 10:34:56,532 INFO  [org.jboss.as.clustering] (Incoming-1,null) JBAS010225: New cluster view for partition web (id: 1, delta: 1, merge: false) : [master:server-three/web, slave:server-three-slave/web]
[Server:server-three] 10:34:56,535 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-1,null) ISPN000094: Received new cluster view: [master:server-three/web|1] [master:server-three/web, slave:server-three-slave/web]
[Server:server-three] 10:34:59,516 INFO  [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-7 (HornetQ-server-HornetQServerImpl::serverUUID=d5acb6ea-9a2c-11e1-8105-f3aa41d7c548-1379817930)) Bridge ClusterConnectionBridge@1a966bcb [name=sf.my-cluster.3991b916-9a2e-11e1-a236-a540c5c56101, queue=QueueImpl[name=sf.my-cluster.3991b916-9a2e-11e1-a236-a540c5c56101, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d5acb6ea-9a2c-11e1-8105-f3aa41d7c548]]@97eea10 targetConnector=ServerLocatorImpl (identity=(Cluster-connection-bridge::ClusterConnectionBridge@1a966bcb [name=sf.my-cluster.3991b916-9a2e-11e1-a236-a540c5c56101, queue=QueueImpl[name=sf.my-cluster.3991b916-9a2e-11e1-a236-a540c5c56101, postOffice=PostOfficeImpl [server=HornetQServerImpl::serverUUID=d5acb6ea-9a2c-11e1-8105-f3aa41d7c548]]@97eea10 targetConnector=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5695&amp;host=172-16-95-132], discoveryGroupConfiguration=null]]::ClusterConnectionImpl@467012458[nodeUUID=d5acb6ea-9a2c-11e1-8105-f3aa41d7c548, connector=org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5695&amp;host=172-16-95-131, address=jms, server=HornetQServerImpl::serverUUID=d5acb6ea-9a2c-11e1-8105-f3aa41d7c548])) [initialConnectors=[org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5695&amp;host=172-16-95-132], discoveryGroupConfiguration=null]] is connected
[Server:server-three] 10:35:01,617 INFO  [org.jboss.as.clustering] (Incoming-3,null) JBAS010225: New cluster view for partition ejb (id: 1, delta: 1, merge: false) : [master:server-three/ejb, slave:server-three-slave/ejb]
[Server:server-three] 10:35:01,664 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (Incoming-3,null) ISPN000094: Received new cluster view: [master:server-three/ejb|1] [master:server-three/ejb, slave:server-three-slave/ejb]
[Server:server-three] 10:35:02,497 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:server-three" read-1) JBREM000200: Remote connection failed: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three] 10:35:02,501 INFO  [org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager] (ejb-client-cluster-node-connection-creation-3-thread-1) Could not create a connection for cluster node slave:server-three-slave in cluster ejb: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three]   at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three]   at org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:88) [jboss-as-ejb3-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
[Server:server-three]   at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:406) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three]   at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:380) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three]   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.6.0_22]
[Server:server-three]   at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.6.0_22]
[Server:server-three]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_22]
[Server:server-three]   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_22]
[Server:server-three]   at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
[Server:server-three] Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three]   at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:171) [jsse.jar:1.6.0_22]
[Server:server-three]   at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:814) [jsse.jar:1.6.0_22]
[Server:server-three]   at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:727) [jsse.jar:1.6.0_22]
[Server:server-three]   at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) [rt.jar:1.6.0_22]
[Server:server-three]   at org.xnio.ssl.JsseConnectedSslStreamChannel.unwrap(JsseConnectedSslStreamChannel.java:443) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:484) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:449) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:88) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:138) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three]   at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:130) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three]   at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three]   at org.xnio.nio.NioHandle.run(NioHandle.java:90)
[Server:server-three]   at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:205)
[Server:server-three]   at org.xnio.nio.WorkerThread.run(WorkerThread.java:121)
[Server:server-three]   at ...asynchronous invocation...(Unknown Source)
[Server:server-three]   at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three]   at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:386) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three]   at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:151) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three]   at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:132) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three]   at org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:86) [jboss-as-ejb3-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
[Server:server-three]   ... 7 more
[Server:server-three] 
[Server:server-three] 10:35:02,706 ERROR [org.jboss.remoting.remote.connection] (Remoting "master:server-three" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of -2136145661
[Host Controller] 10:37:50,276 INFO  [org.jboss.as.domain] (Remoting "master:MANAGEMENT" task-3) JBAS010925: Unregistered remote slave host "slave"

 

 

and on the slave server:

 

[Server:server-three-slave] 10:35:01,893 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (EmbeddedCacheManagerService lifecycle - 1) ejb cache container started
[Server:server-three-slave] 10:35:01,905 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (MSC service thread 1-4) remote-connector-client-mappings cache configuration started
[Server:server-three-slave] 10:35:01,924 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (MSC service thread 1-2) dist cache configuration started
[Server:server-three-slave] 10:35:01,924 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (MSC service thread 1-1) repl cache configuration started
[Server:server-three-slave] 10:35:01,932 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (CacheService lifecycle - 1) ISPN000078: Starting JGroups Channel
[Server:server-three-slave] 10:35:01,954 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (CacheService lifecycle - 1) ISPN000094: Received new cluster view: [master:server-three/ejb|1] [master:server-three/ejb, slave:server-three-slave/ejb]
[Server:server-three-slave] 10:35:01,955 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (CacheService lifecycle - 1) ISPN000079: Cache local address is slave:server-three-slave/ejb, physical addresses are [172.16.95.132:55450]
[Server:server-three-slave] 10:35:02,028 INFO  [org.infinispan.jmx.CacheJmxRegistration] (CacheService lifecycle - 1) ISPN000031: MBeans were successfully registered to the platform mbean server.
[Server:server-three-slave] 10:35:02,088 INFO  [org.infinispan.jmx.CacheJmxRegistration] (CacheService lifecycle - 1) ISPN000031: MBeans were successfully registered to the platform mbean server.
[Server:server-three-slave] 10:35:02,121 INFO  [org.jboss.as.clustering.infinispan] (CacheService lifecycle - 1) JBAS010281: Started remote-connector-client-mappings cache from ejb container
[Server:server-three-slave] 10:35:02,121 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (CacheService lifecycle - 1) remote-connector-client-mappings cache started
[Server:server-three-slave] 10:35:02,218 INFO  [org.jboss.as.clustering.infinispan] (CacheService lifecycle - 1) JBAS010281: Started repl cache from ejb container
[Server:server-three-slave] 10:35:02,218 DEBUG [org.jboss.as.clustering.infinispan.subsystem] (CacheService lifecycle - 1) repl cache started
[Server:server-three-slave] 10:35:02,219 INFO  [org.jboss.as.clustering] (MSC service thread 1-4) JBAS010238: Number of cluster members: 2
[Server:server-three-slave] 10:35:02,494 ERROR [org.jboss.remoting.remote.connection] (Remoting "slave:server-three-slave" read-1) JBREM000200: Remote connection failed: java.io.IOException: Received an invalid message length of -2136145661
[Server:server-three-slave] 10:35:02,639 INFO  [org.jboss.modcluster.ModClusterService] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Engine [jboss.web] will use jvmRoute: 7dab5c55-a8e9-3e6a-8631-5da69bcbc85e
[Server:server-three-slave] 10:35:02,673 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-3) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
[Server:server-three-slave] 10:35:02,717 ERROR [org.jboss.remoting.remote.connection] (Remoting "slave:server-three-slave" read-1) JBREM000200: Remote connection failed: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three-slave] 10:35:02,756 INFO  [org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager] (ejb-client-cluster-node-connection-creation-3-thread-1) Could not create a connection for cluster node master:server-three in cluster ejb: java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three-slave]     at org.jboss.ejb.client.remoting.IoFutureHelper.get(IoFutureHelper.java:91) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three-slave]     at org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:88) [jboss-as-ejb3-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
[Server:server-three-slave]     at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:406) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three-slave]     at org.jboss.ejb.client.ClusterContext$EJBReceiverAssociationTask.call(ClusterContext.java:380) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three-slave]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.6.0_22]
[Server:server-three-slave]     at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.6.0_22]
[Server:server-three-slave]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_22]
[Server:server-three-slave]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_22]
[Server:server-three-slave]     at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_22]
[Server:server-three-slave] Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
[Server:server-three-slave]     at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:171) [jsse.jar:1.6.0_22]
[Server:server-three-slave]     at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:814) [jsse.jar:1.6.0_22]
[Server:server-three-slave]     at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:727) [jsse.jar:1.6.0_22]
[Server:server-three-slave]     at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) [rt.jar:1.6.0_22]
[Server:server-three-slave]     at org.xnio.ssl.JsseConnectedSslStreamChannel.unwrap(JsseConnectedSslStreamChannel.java:443) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:484) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.ssl.JsseConnectedSslStreamChannel.read(JsseConnectedSslStreamChannel.java:449) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:88) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:138) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three-slave]     at org.jboss.remoting3.remote.ClientConnectionOpenListener$Greeting.handleEvent(ClientConnectionOpenListener.java:130) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three-slave]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72) [xnio-api-3.0.3.GA.jar:3.0.3.GA]
[Server:server-three-slave]     at org.xnio.nio.NioHandle.run(NioHandle.java:90)
[Server:server-three-slave]     at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:205)
[Server:server-three-slave]     at org.xnio.nio.WorkerThread.run(WorkerThread.java:121)
[Server:server-three-slave]     at ...asynchronous invocation...(Unknown Source)
[Server:server-three-slave]     at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:270) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three-slave]     at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:386) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA]
[Server:server-three-slave]     at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:151) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three-slave]     at org.jboss.ejb.client.remoting.NetworkUtil.connect(NetworkUtil.java:132) [jboss-ejb-client-1.0.10.Final.jar:1.0.10.Final]
[Server:server-three-slave]     at org.jboss.as.ejb3.remote.RemotingConnectionClusterNodeManager.getEJBReceiver(RemotingConnectionClusterNodeManager.java:86) [jboss-as-ejb3-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
[Server:server-three-slave]     ... 7 more
[Server:server-three-slave] 
[Server:server-three-slave] 10:35:03,023 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
[Server:server-three-slave] 10:35:03,074 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-1) JBAS010281: Started org.jboss.tools.examples.service.MemberService cache from ejb container