java.io.StreamCorruptedException: Type code out of range, is 0.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rohit_Seth
Posted On:   Friday, September 21, 2001 03:26 AM

Hi,

I am able to write a Serializable object to the OutputStream using ObjectOutputStream.writeObject.
But while reading through ObjectInputStream.readObject I am getting java.io.StreamCorruptedException: Type code out of range, is 0.


Why I am getting this error?

Re: java.io.StreamCorruptedException: Type code out of range, is 0.

Posted By:   Rohit_Seth  
Posted On:   Friday, September 21, 2001 07:39 AM

Its the extension of the question above.

Pl find the stack trace for the error:-

It might be of some use.


java.io.StreamCorruptedException: Type code out of range, is 0

at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1079)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:219)

at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:403)

at com.itlinfosys.syslab.mfasys.agent.AgentImpl.readObject(AgentImpl.java:685)

at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:984)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:284)

at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:795)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:280)

at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:403)

at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:985)

*at java.io.ObjectInputStream.readObject(ObjectInputStream.java:284)

at AppConnection.getConnection(AppConnection.java:48)

at AppConnection.init(AppConnection.java:21)

at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(DerivedAppletFrame.java:553)

at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)

at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
About | Sitemap | Contact