Article View: borland.public.jbuilder.java.language
Article #17637Urgent sockets Informations needed!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
From: Guy Bordeleau
Date: Mon, 12 Oct 1998 00:00
Date: Mon, 12 Oct 1998 00:00
45 lines
2432 bytes
2432 bytes
Hi,
I'm a junior java programmer and I have a big socket problem. I try your
newsgroup to obtain help but no one answer to my request. so I decide to
write out this mail for you, and I expect you can help me...
I use socket to establish a communication between a servlet and an applet.
My applet ask for an object an the servlet return the object correctly only
on the first time. When my applet ask for an other Object, an error occur
and I don't understand what is the error : Look the error below:
1 - java.io.StreamCorruptedException: Type code out of range, is -84
at java.io.ObjectInputStream.peekCode(Compiled Code)
at java.io.ObjectInputStream.refill(ObjectInputStream.java:1389)
at java.io.ObjectInputStream.available(ObjectInputStream.java:1477)
at Connexion.run(Compiled Code)
at java.lang.Thread.run(Thread.java:475)
What is type code out of range, is -84???
2- java.net.SocketException: Connection reset by peer: JVM_recv in socket
input stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:88)
at sun.servlet.http.HttpInputStream.fill(HttpInputStream.java:346)
at sun.servlet.http.HttpInputStream.readLine(Compiled Code)
at sun.servlet.http.HttpRequestLine.readLine(Compiled Code)
at sun.servlet.http.HttpRequestLine.parse(HttpRequestLine.java:148)
at sun.servlet.http.HttpRequest.next(Compiled Code)
at sun.servlet.http.HttpRequest.next(Compiled Code)
at sun.servlet.http.HttpServerHandler.handleConnection(Compiled Code)
at sun.servlet.http.HttpServerHandler.run(Compiled Code)
at java.lang.Thread.run(Thread.java:475)
What is an JVM_recv?? How can I intercept this kind of error?
I expect that someone in there can help me.
Thanks a lot!
Guy Bordeleau
Webmaster, Junior Java Programmer
gbordeleau@isotechnologie.com
Technical Details
Message-ID:
<702lvd$kso4@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,332d3f96c9e11197,start X-Google-Attributes: gidf74b3,public From: "Guy Bordeleau" <gbordeleau@isotechnologie.com> Subject: Urgent sockets Informations needed!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Date: 1998/10/12 Message-ID: <702lvd$kso4@forums.borland.com> X-Deja-AN: 401045303 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.language