0 Replies Latest reply on Aug 17, 2004 3:08 PM by Lucas Machado

    java stored procedure and JNDI - java.io.StreamCorruptedExce

    Lucas Machado Newbie

      Please, I´m using Java Stored Procedure(Oracle) and Stateless Session Bean(JBoss). The java stored procedure is the client of a session bean.

      Im getting this error:

      javax.naming.CommunicationException. Root exception is java.io.StreamCorruptedException: Type code out of range, is 0
       at java.io.ObjectInputStream.peekCode(ObjectInputStream.java)
       at java.io.ObjectInputStream.skipToEndOfBlockData(ObjectInputStream.java)
       at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at org.jboss.proxy.Interceptor.readExternal(Interceptor.java:66)
       at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.skipToEndOfBlockData(ObjectInputStream.java)
       at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java)
       at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
       at java.rmi.MarshalledObject.get(MarshalledObject.java)
       at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:550)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
       at javax.naming.InitialContext.lookup(InitialContext.java)
       at br.com.clients.StoredProcedure.getHello(StoredProcedure.java:27)
      


      What could be happening?

      tks