3 Replies Latest reply on Feb 17, 2014 4:15 AM by k koushik

    Broken Pipe Exception and stackoverflow error while making remote ejb invocation

    k koushik Newbie

      Hi,

      I am using the Jboss AS 7.2.0 Final version and I am facing an issue while making a remote ejb invocation.My ejb returns a Java.util.List Object intermittently the ejb invocation fails with brokoen pipe exception.

      Can some one please let me know what is causing the issue here

      Here is the stacktrace

       

      org.xnio.BrokenPipeException: Remote side closed the message stream

        at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:112) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

        at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:126) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:114) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.streams.BufferPipeOutputStream.getBuffer(BufferPipeOutputStream.java:78) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.xnio.streams.BufferPipeOutputStream.write(BufferPipeOutputStream.java:96) [xnio-api-3.0.7.GA.jar:3.0.7.GA]

        at org.jboss.remoting3.remote.OutboundMessage.write(OutboundMessage.java:233) [jboss-remoting-3.2.14.GA.jar:3.2.14.GA]

        at java.io.DataOutputStream.write(Unknown Source) [rt.jar:1.7.0_45]

        at org.jboss.as.ejb3.remote.protocol.versionone.AbstractMessageHandler$1.write(AbstractMessageHandler.java:216)

        at org.jboss.marshalling.OutputStreamByteOutput.write(OutputStreamByteOutput.java:56) [jboss-marshalling-1.3.16.GA.jar:1.3.16.GA]

        at org.jboss.marshalling.UTFUtils.writeUTFBytes(UTFUtils.java:135) [jboss-marshalling-1.3.16.GA.jar:1.3.16.GA]

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:275)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)

        at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:585)

        at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [jboss-marshalling-1.3.16.GA.jar:1.3.16.GA]

        at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119) [jboss-marshalling-1.3.16.GA.jar:1.3.16.GA]

        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.writeMethodInvocationResponse(MethodInvocationMessageHandler.java:364)

        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$400(MethodInvocationMessageHandler.java:69)

        at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:238)

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [rt.jar:1.7.0_45]

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

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

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

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

        at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]

      Caused by: an exception which occurred:

        in field instanceName

        in field fabricExtenderRef

        in field owner

        in field neighborEndPointsCol

       

      Also in some cases i am getting stackoverflow error while un marshalling.