10 Replies Latest reply on Jun 24, 2009 7:46 PM by Fredy Sierra

    EJB3 JDNI lookup error 'unexpected block data'

    Marc van Kessel Newbie

      I am new to AS / EJB3 and got totally stuck on JDNI lookups, which should be elementary. I can not find the solution on the internet. Any help is greatly appreciated.

      Software:
      - jboss-4.0.3RC1
      - netbeans 4.1
      - windows XP

      I use the default EJB3 (via graphical installer) JBoss setup and have added jbosssha.jar to the bin directory (did not solve the problem). The Jboss server runs on the same computer as the client.

      I have deployed a stateless session bean AddressDAOBean with interface AddressDAO which I can see in the JMX JNDI list view. The persistent EJBs are also visible via JMX Hypersonic database manager.

      Global JNDI Namespace
      
       +- dao.real.AddressDAO (proxy: $Proxy55 implements interface dao.real.AddressDAO,interface org.jboss.ejb3.JBossProxy)
      


      I have written a test-client to access the EJB. The only included library is jbossall-client.jar and a link to jdni.properties (printed in the output).
       try {
       InitialContext ctx = new InitialContext();
       System.out.println(AddressDAO.class.getName());
       System.out.println(ctx.getEnvironment());
      
       dao = (AddressDAO) ctx.lookup("dao.real.AddressDAO");//AddressDAO.class.getName());
       } catch (Exception e) {
       e.printStackTrace();
       }
      

      Generated error when executing (the jdni.properties are printed first):
      run:
      ngerptest.AddressDAO
      {jnp.parsedName=, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=localhost:1099, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      javax.naming.CommunicationException [Root exception is java.io.StreamCorruptedException: unexpected block data]
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       at javax.naming.InitialContext.lookup(InitialContext.java:351)
       at ngerptest.Main.main(Main.java:38)
      Caused by: java.io.StreamCorruptedException: unexpected block data
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1313)
       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 java.rmi.MarshalledObject.get(MarshalledObject.java:135)
       at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
       ... 3 more
      BUILD SUCCESSFUL (total time: 0 seconds)
      

      What does the error message: "unexpected block data" mean ? And how can it be resolved.

      The deployment log from JBOSS has one Warning:

      2005-07-27 23:25:22,609 DEBUG [org.jboss.system.ServiceController] starting service jboss.cache:service=EJB3SFSBClusteredCache
      
      2005-07-27 23:25:22,609 DEBUG [org.jboss.ejb3.cache.tree.PassivationTreeCache] Starting jboss.cache:service=EJB3SFSBClusteredCache
      
      2005-07-27 23:25:22,609 WARN [org.jboss.ejb3.cache.tree.PassivationTreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      
      2005-07-27 23:25:22,640 INFO [org.jboss.ejb3.cache.tree.PassivationTreeCache] interceptor chain is:
      
      

      The deployment JBoss log for de ear / business.jar.

      2005-07-27 23:25:34,078 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/dev/tools/jboss-4.0.3RC1/server/default/deploy/realerp.ear
      
      2005-07-27 23:25:34,078 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/dev/tools/jboss-4.0.3RC1/server/default/deploy/realerp.ear
      
      2005-07-27 23:25:34,078 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear-contents/business.ejb3
      
      2005-07-27 23:25:34,125 DEBUG [org.jboss.ejb3.EJB3Deployer] Deploying: file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear-contents/business.ejb3
      
      2005-07-27 23:25:34,125 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,module=business.ejb3
      
      2005-07-27 23:25:34,125 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=business.ejb3
      
      2005-07-27 23:25:34,140 INFO [org.jboss.ejb3.security.JaccHelper] Initialising JACC Context for deployment: business.ejb3
      
      2005-07-27 23:25:34,265 INFO [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=dao.real.AddressDAOBean, class=dao.real.AddressDAOBean, type=STATELESS
      
      2005-07-27 23:25:34,265 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:34,265 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
      
      2005-07-27 23:25:34,265 DEBUG [org.jboss.ejb3.stateless.StatelessManager] Creating jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:34,312 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/aopdynclasses/ucl4092/?dynamic=true, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@1ed2bbd{ url=file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear ,addedOrder=32}
      
      2005-07-27 23:25:34,375 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/aopdynclasses/ucl4093/?dynamic=true, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@1bde4{ url=file:/C:/dev/tools/jboss-4.0.3RC1/server/default/deploy/ejb3.deployer/ ,addedOrder=3}
      
      2005-07-27 23:25:34,453 INFO [org.jboss.ejb3.security.JaccHelper] dao.real.AddressDAOBean has no @SecurityDomain - skipping JACC configuration
      
      2005-07-27 23:25:34,453 DEBUG [org.jboss.ejb3.stateless.StatelessManager] Created jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:34,453 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean dependents are: []
      
      2005-07-27 23:25:34,453 DEBUG [org.jboss.ejb3.Ejb3Module] Bound ejb3 container jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:34,453 INFO [org.jboss.ejb3.security.JaccHelper] JACC Policy Configuration for deployment has been put in service
      
      2005-07-27 23:25:34,453 INFO [org.jboss.ejb3.Ejb3Module] EJB3 deployment time took: 328
      

      and...

      2005-07-27 23:25:35,937 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying realerp.ear
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/dev/tools/jboss-4.0.3RC1/server/default/deploy/realerp.ear
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear-contents/business.ejb3
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.ejb3.EJB3Deployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@818824e2 { url=file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear-contents/business.ejb3 }
       deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
       status: Starting
       state: START_DEPLOYER
       watch: file:/C:/dev/tools/jboss-4.0.3RC1/server/default/tmp/deploy/tmp4091realerp.ear-contents/business.ejb3
       altDD: null
       lastDeployed: 1122499534078
       lastModified: 1122499534062
       mbeans:
       jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean state: Created
      , short name: business.ejb3, parent short name: realerp.ear
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,module=business.ejb3
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.ejb3.Ejb3Module] Starting jboss.j2ee:service=EJB3,module=business.ejb3
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:35,937 DEBUG [org.jboss.ejb3.stateless.StatelessManager] Starting jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:35,953 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@b2db5b
      
      2005-07-27 23:25:36,015 INFO [org.jboss.ejb3.ProxyDeployer] no declared remote bindings
      
      2005-07-27 23:25:36,062 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@5c18ff
      
      2005-07-27 23:25:36,062 DEBUG [org.jboss.ejb3.stateless.StatelessManager] Started jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean
      
      2005-07-27 23:25:36,062 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB3,name=dao.real.AddressDAOBean dependent components: []
      
      2005-07-27 23:25:36,062 DEBUG [org.jboss.ejb3.Ejb3Module] startService, starting container: dao.real.AddressDAOBean
      

      Thanks in advance for your time / help.

      Marc


        • 1. Solved
          Marc van Kessel Newbie

          After explicitely coding the Home and Remote interface the problem is gone. I was under the false impression that I only needed a local interface and this would automatically be the interface that the EJB implements.

          I am impressed with JBoss/EJB3, not with the usefulness of the error messages.

          • 2. Re: EJB3 JDNI lookup error 'unexpected block data'
            Sven Linstaedt Newbie

            I have almost the same problem using
            - JBoss 4.0.2
            - EJB 3.0 RC2

            Even a very simple stateless session bean is not working:

            package de.c1wps.osss05.standaloneswing;
            
            import javax.ejb.Stateless;
            import javax.naming.InitialContext;
            import javax.naming.NamingException;
            
            @Stateless
            public class CalculatorBean implements Calculator {
            
             public int addieren(int summand1, int summand2) {
             return summand1 + summand2;
             }
            
             public static void main(String[] args) throws NamingException {
             InitialContext ctx = new InitialContext();
             Calculator bean = (Calculator) ctx.lookup(Calculator.class.getName());
             System.out.println(bean.addieren(2, 5));
             }
            }
            


            package de.c1wps.osss05.standaloneswing;
            
            import javax.ejb.Remote;
            
            @Remote
            public interface Calculator {
            
             public int addieren(int summand1, int summand2);
            }
            


            Running the client will result in the following exception:
            {java.naming.provider.url=localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
            Exception in thread "main" javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
             at javax.naming.InitialContext.lookup(InitialContext.java:351)
             at de.c1wps.osss05.standaloneswing.CalculatorBean.main(CalculatorBean.java:17)
            Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
             at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
             at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
             at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
             at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
             at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
             at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
             at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
             at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
             at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
             at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
             at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
             at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
             ... 3 more
            


            I have also tested the bean with an additional local interface... with the same result. Am i missing something important?

            • 3. Re: EJB3 JDNI lookup error 'unexpected block data'
              zsoltvincze Newbie

              TZ:
              I got the same problem and could get around it by adding server/default/deploy/ejb3-deployer/jboss-ejb3.jar
              and
              jboss-aspect-library-jdk50.jar
              files to the client's classpath.

              After this the clint runs, however it still generates an eror on the server
              SocketException:Connection reset

              All I have is the simplest session bean, one method returning a string.

              I do get the string back to the client but after that the server reports the error.

              Any thougths on this?

              • 4. Re: EJB3 JDNI lookup error 'unexpected block data'
                zsoltvincze Newbie

                Seems like a known bug. the error should be ignored.
                http://jira.jboss.com/jira/browse/JBREM-205

                • 5. Re: EJB3 JDNI lookup error 'unexpected block data'
                  Richard Knechtel Newbie

                  I'm having the same problems using JBoss 4.0.4GA & EJB 3.0 RC8.

                  javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                  at javax.naming.InitialContext.lookup(InitialContext.java:351)
                  at com.footlocker.client.Client.main(Unknown Source)
                  Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
                  at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
                  at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
                  at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
                  at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
                  at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
                  at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                  at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
                  at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)


                  I added the jars suggested but still no go.

                  • 6. Re: EJB3 JDNI lookup error 'unexpected block data'
                    Sumedha Rubasinghe Newbie

                    This class is situated @ ${jboss.dir}/server/all/deploy/ejb3.deployer/jboss-ejb3.jar

                    • 7. Re: EJB3 JDNI lookup error 'unexpected block data'
                      tamri boss Newbie

                       

                      "rknechtel" wrote:
                      I'm having the same problems using JBoss 4.0.4GA & EJB 3.0 RC8.

                      javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
                      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                      at javax.naming.InitialContext.lookup(InitialContext.java:351)
                      at com.footlocker.client.Client.main(Unknown Source)
                      Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
                      at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
                      at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
                      at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
                      at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
                      at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
                      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
                      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
                      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
                      at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
                      at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
                      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)


                      I added the jars suggested but still no go.


                      And how do you resolve this problem?

                      • 8. EJB3 JDNI lookup error 'communicationException'
                        Ravi ch Newbie

                        javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                        at my.com.infopro.icba10.kernel.util.jndi.ServiceLocator.getServiceStub(ServiceLocator.java:163)
                        at my.com.infopro.icba10.kernel.util.jndi.ServiceLocator.locate(ServiceLocator.java:102)
                        at my.com.infopro.icba10.kernel.security.auth.delegate.SecurityDelegate.getSecurityServiceRemote(SecurityDelegate.java:35)
                        at my.com.infopro.icba10.kernel.security.auth.delegate.SecurityDelegate.performLogin(SecurityDelegate.java:49)
                        at my.com.infopro.icba10.kernel.uiframework.login.LoginAction.doLogin(LoginAction.java:178)
                        at my.com.infopro.icba10.kernel.uiframework.login.LoginAction.keyReleased(LoginAction.java:130)
                        at java.awt.Component.processKeyEvent(Component.java:5449)
                        at javax.swing.JComponent.processKeyEvent(JComponent.java:2713)
                        at java.awt.Component.processEvent(Component.java:5265)
                        at java.awt.Container.processEvent(Container.java:1966)
                        at java.awt.Component.dispatchEventImpl(Component.java:3955)
                        at java.awt.Container.dispatchEventImpl(Container.java:2024)
                        at java.awt.Component.dispatchEvent(Component.java:3803)
                        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
                        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
                        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
                        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
                        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
                        at java.awt.Component.dispatchEventImpl(Component.java:3841)
                        at java.awt.Container.dispatchEventImpl(Container.java:2024)
                        at java.awt.Window.dispatchEventImpl(Window.java:1778)
                        at java.awt.Component.dispatchEvent(Component.java:3803)
                        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
                        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
                        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
                        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
                        at java.awt.Dialog$1.run(Dialog.java:517)
                        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
                        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
                        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
                        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
                        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
                        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
                        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
                        Caused by: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
                        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                        at javax.naming.InitialContext.lookup(InitialContext.java:351)
                        at my.com.infopro.icba10.kernel.util.jndi.ServiceLocator.getServiceStub(ServiceLocator.java:158)
                        ... 33 more
                        Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
                        at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
                        at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
                        at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
                        at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
                        at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1500)
                        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1463)
                        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
                        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
                        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
                        at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
                        at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
                        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
                        ... 36 more

                        • 9. Re: EJB3 JDNI lookup error 'unexpected block data'
                          Marcel Renaud Newbie

                          I am also having the same problem.

                          Trying to acess a remote EJB3 deployed on Jboss from another Jboss same version so no jars needed in my case.

                          Anybody has any clues on this ?

                          • 10. Re: EJB3 JDNI lookup error 'unexpected block data'
                            Fredy Sierra Newbie

                            I had the same Error..

                            On my jbossesb-server-4.5.GA, dir /jbossesb-server-4.5.GA/server/default/lib/ I paste these jars:

                            jboss-annotations-ejb3.jar
                            jboss-aop-jdk50.jar
                            jboss-aspect-library-jdk50.jar
                            jboss-ejb3.jar

                            I take these files of my jboss-4.2.2.GA. Now my EJBProcessor works fine.

                            I don't know why it doesn't work just with the jboss-ejb3-client.jar.