3 Replies Latest reply on Dec 4, 2005 10:15 AM by Sven Linstaedt

    unexpected block data - fetching EJB3 Remote Interface in JN

    Joao Montenegro Newbie

      Hi there,

      I'm having a problem with JUnit / JBoss 4.0.3SP1 / EJB 3.

      I'm using JUnit to test an application with EJB2 and EJB3 Sessionbeans. When I'm fetching a Session Bean's Remote Interface in the JUnit test class from JNDI i'm getting the following error:

      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)
      


      I have no problems with EJB2..

      Regards
      Joao