XNIO000804: Received an invalid message length of xxxxxxxxxx
sergiyague Feb 20, 2017 2:39 PMHi.
First of all mention that I am doing tests with a JBOSS EAP 7.0.0.GA server hosted on a linux server and with a WildFly 10.0.0.0-Final server hosted on my local PC with a Windows 7 operating system.
I'm having problems with remote invocations to EJB. Specifically, I have an application on a .ear deployed on my local PC (Wildfly 10.0.0.0 - Windows 7) work correctly. Even so, when I deploy the same .ear on a linux server with a JBOSS EAP 7, an error occurs during the remote invocation:
- JBoss EJB Client version 2.1.4.Final
- XNIO version 3.3.4.Final
- XNIO NIO Implementation Version 3.3.4.Final
- JBoss Remoting version 4.0.18.Final
- Could not register a EJB receiver for connection to XX.XXX.XXX.XXX:8080
java.io.IOException: XNIO000804: Received an invalid message length of 1213486160
at org.xnio.channels.FramedMessageChannel.receive(FramedMessageChannel.java:108)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:255)
at org.jboss.remoting3.remote.ClientConnectionOpenListener$Capabilities.handleEvent(ClientConnectionOpenListener.java:241)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
at org.xnio.nio.WorkerThread.run(WorkerThread.java:559)
at ...asynchronous invocation...(Unknown Source)
at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:294)
at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:416)
at org.jboss.ejb.client.remoting.EndpointPool$PooledEndpoint.connect(EndpointPool.java:192)
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:78)
at org.jboss.ejb.client.remoting.RemotingConnectionManager.getConnection(RemotingConnectionManager.java:51)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.setupEJBReceivers(ConfigBasedEJBClientContextSelector.java:161)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:118)
at org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector.getCurrent(ConfigBasedEJBClientContextSelector.java:47)
at org.jboss.ejb.client.EJBClientContext.getCurrent(EJBClientContext.java:281)
at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:291)
at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:178)
at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146)
at com.sun.proxy.$Proxy6.selectSubminServeiByPK(Unknown Source)
at es.aserco.actions.ProvaHibernate$1.ejecucion(ProvaHibernate.java:89)
at es.aserco.utils.ThreadNegoci.run(ThreadNegoci.java:47)
On the other hand, I have verified that it is not a communications problem, since I have made a telnet on port 8080 of the linux server and the port is not closed. In addition, I attached the configuration of the EJB client:
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=xx.xxx.xxx.xxx
remote.connection.default.port = 8080
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.username=xxxxx
remote.connection.default.password=xxxxxx
Finally, if anyone could know what this problem might be, I would be grateful if they could help me.
Thanks in advance.