8 Replies Latest reply on Nov 4, 2005 3:00 PM by reverbel

    StreamCorruptedException in DTM testcase

    reverbel

      I am getting weird a java.io.StreamCorruptedException in a DTM testcase. This is a recent thing, it started to happen after a CVS update. A stack trace is included below.

      To reproduce the problem in a JBoss QA lab box, check out jboss-head, uncomment the definitions for node0 and node1 in testsuite/local.properties, and run './build.sh dtm-tests' in the testsuite dir. More detailed instructions are available in http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossJTSRegressionTests .

      The exception is thrown in the third testcase in a dtm-tests run (T03MixedDTMOTSUnitTestCase). However, it does not appear when you run just that testcase. For some reason it only shows up when testcase T03 runs after testcases T01 and T02. For a shorter run, you might want to edit testsuite/build.xml and remove the testcases that follow T03.

      Thanks and cheers,

      Francisco

      PS: Here is the stack trace. It also shows a NPE in AbstractDetector. This NPE does not cause any test to fail, but I am getting it many times.

      2005-10-27 14:15:29,395 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling excep\
      tion, exiting
      java.io.StreamCorruptedException
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializatio\
      nManager.java:91)
       at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.jav\
      a:46)
       at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:33)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:246)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:112)
       at org.jboss.remoting.Client.invoke(Client.java:226)
       at org.jboss.remoting.Client.invoke(Client.java:189)
       at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:146)
       at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
       at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:87)
       at $Proxy54.create(Unknown Source)
       at org.jboss.test.dtm.ejb.FrontEndBean.initAccounts(FrontEndBean.java:150)
       at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:45)
       at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:34)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
       at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.ja\
      va:527)
       at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterc\
      eptor.java:180)
       at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterce\
      ptor.java:128)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
       at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:\
      93)
       at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:611)
       at org.jboss.ejb.Container.invoke(Container.java:895)
       at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:211)
       at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
       at $Proxy12.invoke(Unknown Source)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:270)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:308)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:188)
      2005-10-27 14:15:29,404 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract \
      org.jboss.test.dtm.interfaces.FrontEnd org.jboss.test.dtm.interfaces.FrontEndHome.create(java.lang.String) th\
      rows java.rmi.RemoteException,javax.ejb.CreateException, causedBy:
      java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception\
       is:
       java.io.StreamCorruptedException
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:273)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:112)
       at org.jboss.remoting.Client.invoke(Client.java:226)
       at org.jboss.remoting.Client.invoke(Client.java:189)
       at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:146)
       at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
       at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
       at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
       at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
       at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:87)
       at $Proxy54.create(Unknown Source)
       at org.jboss.test.dtm.ejb.FrontEndBean.initAccounts(FrontEndBean.java:150)
       at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:45)
       at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:34)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:256)
       at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:315)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
       at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.ja\
      va:527)
       at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
       at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterc\
      eptor.java:180)
       at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterce\
      ptor.java:128)
       at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
       at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
       at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
       at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
       at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
       at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:\
      93)
       at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:611)
       at org.jboss.ejb.Container.invoke(Container.java:895)
       at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:211)
       at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
       at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
       at $Proxy12.invoke(Unknown Source)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:270)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:308)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:188)
      Caused by: java.io.StreamCorruptedException
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
       at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializatio\
      nManager.java:91)
       at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.jav\
      a:46)
       at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:33)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:246)
       ... 61 more
      2005-10-27 14:15:29,502 DEBUG [org.jboss.ejb.StatefulSessionContainer] Created new session ID: efbcyl7i-37
      2005-10-27 14:15:29,502 DEBUG [org.jboss.ejb.StatefulSessionContainer] Using create method for session: publi\
      c void org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(java.lang.String)
      2005-10-27 14:15:29,502 DEBUG [org.jboss.test.dtm.ejb.FrontEndBean#testRolledbackTx] ejbCreate(testRolledback\
      Tx), ctx=org.jboss.ejb.StatefulSessionEnterpriseContext$StatefulSessionContextImpl@8a6351
      2005-10-27 14:15:29,517 ERROR [jacorb.orb] no adapter activator exists for EJBHome&%dtmiioptest&%AccountEJB
      2005-10-27 14:15:29,587 ERROR [jacorb.orb] no adapter activator exists for EJBHome&%dtmiioptest&%AccountEJB
      2005-10-27 14:15:29,597 DEBUG [org.jboss.proxy.ejb.ProxyFactory] seting invoker proxy binding for stateful se\
      ssion: stateless-unified-invoker
      2005-10-27 14:15:29,702 DEBUG [org.jboss.remoting.detection.multicast.MulticastDetector] Error receiving dete\
      ction
      java.lang.NullPointerException
       at org.jboss.remoting.detection.AbstractDetector.isRemoteDetection(AbstractDetector.java:450)
       at org.jboss.remoting.detection.AbstractDetector.detect(AbstractDetector.java:383)
       at org.jboss.remoting.detection.multicast.MulticastDetector.listen(MulticastDetector.java:219)
       at org.jboss.remoting.detection.multicast.MulticastDetector.access$100(MulticastDetector.java:30)
       at org.jboss.remoting.detection.multicast.MulticastDetector$Listener.run(MulticastDetector.java:247)
      2005-10-27 14:15:29,851 DEBUG [jacorb.org.giop] ServerRequest: reply to register_resource
      2005-10-27 14:15:29,874 DEBUG [jacorb.org.giop] ServerRequest: reply to register_resource
      


        • 1. Re: StreamCorruptedException in DTM testcase
          clebert.suconic

          http://jira.jboss.org/jira/browse/JBREM-223


          Ovidu was having something similar. He stopped having these errors after he increase the client timeouts, the errors went away.

          so, if you could increase the socketTimeout (or set it to 0) in your socketTransport for Unifiedinvoker, I think that will solve your problem

          • 2. Re: StreamCorruptedException in DTM testcase
            reverbel

            The exception still happens with 0 in the timeout attribute of the socket invoker element in the connector MBean.

            This problem also looks different from the one in http://jira.jboss.org/jira/browse/JBREM-223, which is a java.net.SocketException due to a broken pipe on a socket write. I am getting a java.io.StreamCorruptedException when reading from an object input stream.

            Thanks and cheers,

            Francisco

            • 3. Re: StreamCorruptedException in DTM testcase
              clebert.suconic

              Can you please try 3600000 instead of 0?

              Just to see what would be the result and post results here?


              Thanks


              • 4. Re: StreamCorruptedException in DTM testcase
                reverbel

                Sure. I still get the same exception with 3600000 in socketTimeout:

                2005-10-27 23:54:05,531 ERROR [org.jboss.remoting.transport.socket.SocketClientInvoker] Got marshalling exception, exiting
                java.io.StreamCorruptedException
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
                 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
                 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
                 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
                 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
                 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
                 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                 at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:91)
                 at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:46)
                 at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:33)
                 at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:246)
                 at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:112)
                 at org.jboss.remoting.Client.invoke(Client.java:226)
                 at org.jboss.remoting.Client.invoke(Client.java:189)
                 at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:146)
                 at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
                 at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
                 at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
                 at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
                 at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
                 at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:87)
                 at $Proxy54.create(Unknown Source)
                 at org.jboss.test.dtm.ejb.FrontEndBean.initAccounts(FrontEndBean.java:150)
                 at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:45)
                 at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:34)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:256)
                 at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:315)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
                 at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:527)
                 at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
                 at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:180)
                 at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)
                 at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
                 at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
                 at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
                 at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
                 at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
                 at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                 at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:611)
                 at org.jboss.ejb.Container.invoke(Container.java:895)
                 at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
                 at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:211)
                 at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
                 at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
                 at $Proxy12.invoke(Unknown Source)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
                 at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:270)
                 at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:308)
                 at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:188)
                2005-10-27 23:54:05,534 TRACE [org.jboss.resource.connectionmanager.CachedConnectionManager] popped object: org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation@17a9f24
                2005-10-27 23:54:05,534 TRACE [org.jboss.tm.TransactionImpl] setRollbackOnly(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=172.16.129.49:1099/65, BranchQual=172.16.129.49:1099, localId=0:65], status=STATUS_ACTIVE
                2005-10-27 23:54:05,534 TRACE [org.jboss.tm.TransactionImpl] rollback(): Entered, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=172.16.129.49:1099/65, BranchQual=172.16.129.49:1099, localId=0:65], status=STATUS_MARKED_ROLLBACK
                2005-10-27 23:54:05,534 TRACE [org.jboss.tm.TxManager] suspended tx: TransactionImpl:XidImpl[FormatId=257, GlobalId=172.16.129.49:1099/65, BranchQual=172.16.129.49:1099, localId=0:65]
                2005-10-27 23:54:05,534 TRACE [org.jboss.tm.TxManager] tx timeout is now: 300s
                2005-10-27 23:54:05,535 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException in method: public abstract org.jboss.test.dtm.interfaces.FrontEnd org.jboss.test.dtm.interfaces.FrontEndHome.create(java.lang.String) throws java.rmi.RemoteException,javax.ejb.CreateException, causedBy:
                java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
                 java.io.StreamCorruptedException
                 at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:273)
                 at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:112)
                 at org.jboss.remoting.Client.invoke(Client.java:226)
                 at org.jboss.remoting.Client.invoke(Client.java:189)
                 at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:146)
                 at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
                 at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
                 at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
                 at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
                 at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
                 at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:87)
                 at $Proxy54.create(Unknown Source)
                 at org.jboss.test.dtm.ejb.FrontEndBean.initAccounts(FrontEndBean.java:150)
                 at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:45)
                 at org.jboss.test.dtm.ejb.FrontEndBean.ejbCreate(FrontEndBean.java:34)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.ejb.StatefulSessionContainer.createSession(StatefulSessionContainer.java:256)
                 at org.jboss.ejb.StatefulSessionContainer.createHome(StatefulSessionContainer.java:315)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
                 at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:527)
                 at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:130)
                 at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:180)
                 at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:128)
                 at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
                 at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:110)
                 at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
                 at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
                 at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
                 at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
                 at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:611)
                 at org.jboss.ejb.Container.invoke(Container.java:895)
                 at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
                 at org.jboss.invocation.unified.server.UnifiedInvoker.invoke(UnifiedInvoker.java:211)
                 at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:143)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:82)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:247)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)
                 at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
                 at $Proxy12.invoke(Unknown Source)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
                 at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
                 at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:270)
                 at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:308)
                 at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:188)
                Caused by: java.io.StreamCorruptedException
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1326)
                 at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1603)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
                 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
                 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
                 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
                 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
                 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
                 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                 at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:91)
                 at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:46)
                 at org.jboss.invocation.unified.marshall.InvocationUnMarshaller.read(InvocationUnMarshaller.java:33)
                 at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:246)
                 ... 61 more
                


                • 5. Re: StreamCorruptedException in DTM testcase

                  Hi Francisco. Could you re-run this again with trace logging turned on and send me the log (or even better open a new jira issue and attach it)? Others are having problems as well, but due to the nature of when it happens (after running other tests) is difficult for me to reproduce (and has not shown up in my testsuite).

                  • 6. Re: StreamCorruptedException in DTM testcase
                    reverbel

                    Hi Tom,

                    Done: http://jira.jboss.com/jira/browse/JBREM-234

                    Thanks and cheers,

                    Francisco

                    • 7. Re: StreamCorruptedException in DTM testcase

                      Is fixed and marked issue as resolved. Your testsuite is now passing (as per dirrections in jira case). More details in jira issue comments.

                      • 8. Re: StreamCorruptedException in DTM testcase
                        reverbel

                        Thanks Tom. Everything works flawlessly now.

                        Cheers,

                        Francisco