4 Replies Latest reply on Nov 9, 2004 12:04 PM by Changshin Lee

    Error from EJB 3.0 PR2 and JBOSS 4.0.1RC1

    Changshin Lee Newbie

      Here's the error message:
      16:07:04,978 ERROR [UDP] exception=java.io.StreamCorruptedException: invalid str
      eam header
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753
      )
      at java.io.ObjectInputStream.(ObjectInputStream.java:268)
      at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
      at org.jgroups.protocols.UDP.run(UDP.java:249)
      at java.lang.Thread.run(Thread.java:595)

      My java version is 1.5.0-b64 on Windows XP.
      The server falls into infinite loop with the above message.

      Thanks,

      Ias

        • 1. Re: Error from EJB 3.0 PR2 and JBOSS 4.0.1RC1
          Bill Burke Master

          The all configuration runs with clustering turned on. It looks like you are receiving multicast packets on the multicast address our Clustering layer is listening on.

          Running with the default/ configuration should solve the problems.

          1. Copy from server/all/deploy directory ejb3.deployer and jboss-aop.deployer (or jboss-aop-jdk50.deployer) to server/default/deploy
          2. copy server/all/lib/jboss-remoting server/default/lib


          run with the default configuration which is just run without "-c all"

          Let me know if that works for you.

          Bill

          • 2. Re: Error from EJB 3.0 PR2 and JBOSS 4.0.1RC1
            Changshin Lee Newbie

            I followed your instructions and got a different error:
            16:40:28,197 ERROR [MainDeployer] could not create deployment: file:/D:/dev/java
            /server/jboss-4.0.1RC1/server/default/deploy/ejb3.deployer/
            org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.r
            emoting.transport.Connector; - nested throwable: (java.lang.ClassNotFoundExcepti
            on: No ClassLoaders found for: org.jboss.remoting.transport.Connector)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
            :143)
            at org.jboss.system.ServiceController.install(ServiceController.java:200
            )
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
            at $Proxy4.install(Unknown Source)
            at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
            at org.jboss.deployment.MainDeployer.create(MainDeployer.java:898)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:754)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
            at $Proxy8.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
            tScanner.java:305)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
            canner.java:481)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
            doScan(AbstractDeploymentScanner.java:204)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
            bstractDeploymentScanner.java:277)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
            upport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
            eanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:944)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:702)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
            er.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
            or.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
            BeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
            java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
            at org.jboss.Main.boot(Main.java:151)
            at org.jboss.Main$1.run(Main.java:405)
            at java.lang.Thread.run(Thread.java:595)
            Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jbos
            s.remoting.transport.Connector
            at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
            at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
            assLoader.java:464)
            at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
            oader.java:374)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
            1183)
            at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
            269)
            at org.jboss.system.ServiceCreator.install(ServiceCreator.java:161)
            at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
            tor.java:153)
            at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
            :118)
            ... 81 more

            Thanks for your help,

            Ias

            • 3. Re: Error from EJB 3.0 PR2 and JBOSS 4.0.1RC1
              Bill Burke Master

              Did you forget step 2?

              copy server/all/lib/jboss-remoting.jar to server/default/lib?

              Bill

              • 4. Re: Error from EJB 3.0 PR2 and JBOSS 4.0.1RC1
                Changshin Lee Newbie

                I did step 2 and finally solved the problem!
                (I hadn't seen the step before you pointed out though :-)
                Thanks,

                Ias