Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-74

Remote EJB Call leads to unexpected java.io.IOException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None
    • None

      Calling an SLSB remotely from a client leads to a java.io.IOException, if jboss-ejb-client.properties is present on classpath and the properties remote.connections, remote.connection.default.host, remote.connection.default.port are set.

      If you comment or delete these properties, the remote call succeeds as expected.

      Full log / stacktrace:

      Apr 09, 2013 11:35:52 PM org.xnio.Xnio <clinit>
      INFO: XNIO Version 3.0.3.GA
      Apr 09, 2013 11:35:52 PM org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.0.3.GA
      Apr 09, 2013 11:35:52 PM org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 3.2.7.GA
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.VersionReceiver handleMessage
      INFO: EJBCLIENT000017: Received server version 1 and marshalling strategies [river]
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver associate
      INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext

      {clientContext=org.jboss.ejb.client.EJBClientContext@24f84033, receiver=Remoting connection EJB receiver [connection=Remoting connection <6291bbb9>,channel=jboss.ejb,nodename=julius]}

      on channel Channel ID 871cc257 (outbound) of Remoting connection 1bb2f524 to localhost/127.0.0.1:4447
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleMessage
      WARN: Unsupported message received with header 0xffffffff
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.EJBClient <clinit>
      INFO: JBoss EJB Client version 1.0.10.Final
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.VersionReceiver handleMessage
      INFO: EJBCLIENT000017: Received server version 1 and marshalling strategies [river]
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver associate
      INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext

      {clientContext=org.jboss.ejb.client.EJBClientContext@44eedabc, receiver=Remoting connection EJB receiver [connection=Remoting connection <23160d8e>,channel=jboss.ejb,nodename=julius]}

      on channel Channel ID c3157957 (outbound) of Remoting connection 79e7c7fb to localhost/127.0.0.1:4447
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleMessage
      WARN: Unsupported message received with header 0xffffffff
      Apr 09, 2013 11:35:53 PM org.jboss.naming.remote.protocol.v1.RemoteNamingStoreV1$MessageReceiver handleEnd
      ERROR: Channel end notification received, closing channel Channel ID 9837f652 (outbound) of Remoting connection 79e7c7fb to localhost/127.0.0.1:4447
      Apr 09, 2013 11:35:53 PM org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver handleEnd
      INFO: EJBCLIENT000016: Channel Channel ID c3157957 (outbound) of Remoting connection 79e7c7fb to localhost/127.0.0.1:4447 can no longer process messages
      Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
      at com.sun.proxy.$Proxy0.sayHello(Unknown Source)
      at de.jodes.simple.service.SimpleServiceClient.retrieveHello(SimpleServiceClient.java:25)
      at de.jodes.simple.service.SimpleServiceClient.main(SimpleServiceClient.java:17)
      Caused by: java.io.IOException: Stream is closed
      at org.xnio.streams.BufferPipeOutputStream.closed(BufferPipeOutputStream.java:61)
      at org.xnio.streams.BufferPipeOutputStream.checkClosed(BufferPipeOutputStream.java:67)
      at org.xnio.streams.BufferPipeOutputStream.write(BufferPipeOutputStream.java:85)
      at org.jboss.remoting3.remote.OutboundMessage.write(OutboundMessage.java:175)
      at java.io.DataOutputStream.write(DataOutputStream.java:88)
      at org.jboss.ejb.client.remoting.AbstractMessageWriter$1.write(AbstractMessageWriter.java:79)
      at java.io.OutputStream.write(OutputStream.java:116)
      at org.jboss.marshalling.OutputStreamByteOutput.write(OutputStreamByteOutput.java:56)
      at org.jboss.marshalling.SimpleDataOutput.shallowFlush(SimpleDataOutput.java:328)
      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:274)
      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
      at org.jboss.ejb.client.remoting.MethodInvocationMessageWriter.writeMessage(MethodInvocationMessageWriter.java:97)
      at org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver.processInvocation(RemotingConnectionEJBReceiver.java:200)
      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)
      at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)
      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)
      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)
      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)
      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)
      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
      ... 3 more
      Caused by: an exception which occurred:
      in object java.lang.String@fbe5099a

            Unassigned Unassigned
            jenskreidler Thomas Jodes (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: