4 Replies Latest reply on Sep 11, 2002 1:48 PM by Mark Bennett

    Error : java.io.StreamCorruptedException: Type code out of r

    Ben Turner Newbie

      Hi,

      I have a Web / EJB app which deploys fine on our development server, but when I moved it to our UAT server, I have been unable to look up one of the EJBs.

      The probelm comes from the initialContext.lookup("MyBean") command, which throws the following error :

      java.io.StreamCorruptedException: Type code out of range, is 125
      at java.io.ObjectInputStream.peekCode(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at java.io.ObjectInputStream.inputObject(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at java.rmi.MarshalledObject.get(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java, Compiled Code)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:349)
      at com.db.grt.webif.admin.server.LogManager.init(LogManager.java, Compiled Code)
      at com.db.grt.webif.admin.server.MainServlet.init(MainServlet.java:28)
      at javax.servlet.GenericServlet.init(GenericServlet.java:258)
      at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code)
      at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java, Compiled Code)
      at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java, Compiled Code)
      at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java, Compiled Code)
      at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
      at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java, Compiled Code)
      at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
      at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
      at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
      at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java, Compiled Code)
      at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
      at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)


      Not sure what I can offer in the way of information here - the code is quite involved - but essentially this part of the code is doing a simple bean lookup which works on a different deployment instance.

      So I think I am after one of two things here :
      * Firstly has anyone else experienced this problem before, and if so, did you find a way of fixing it ?
      * Secondly, does anyone know what a "Type code out of range, is 125" error might be referring to ?

      Thanks in advance,
      Ben