Re: Applet Hangs when submitting data to servlet



ILPTAB wrote:
I may have done you a bad turn here. I think your problem is because
you aren't creating an ObjectOutputStream on the socket before you
create your ObjectInputStream. I think they have to be matched (at
least if you are going to do input) on the socket and the
ObjectOutputStream has to be created first. This is a known source of
hangs. I was too hasty reading your post the first time.

--

Knute Johnson
email s/nospam/knute/

Interesting. I will look into it. The only thing is, it dosen't do
it consistanntly. The applet hangs for some people amd not on
others. Never the less, I will make the changes you suggested and see
how that works. Thanks for you imput.

Steve R.

Steve:

Sorry I didn't look at it more closely when you first posted. It sounded just like the problem I'm having. Please post here if you get it to work.

--

Knute Johnson
email s/nospam/knute/
.



Relevant Pages

  • updated object not properly sent over socket
    ... I am encountering a strange problem with a client/server socket ... Datum data = new Datum; ... ObjectOutputStream oos = ...
    (comp.lang.java.programmer)
  • Re: [Sockets] Problem with ObjectInput/OutputStream
    ... I don't see the point of using another socket. ... I've never had that problem with character ... This was my first look at object streams, ...
    (comp.lang.java.programmer)
  • Re: streams & sockets
    ... Rob wrote: ... > hey folks i have a socket question here ... > ObjectOutputStream on the same socket however when i do this it reads ...
    (comp.lang.java.programmer)
  • Re: Sockets and OutputStreams
    ... PrintWriter p = new ... I want to use 'p' to send Strings over the socket, ... the ObjectOutputStream to send objects over the socket. ...
    (comp.lang.java.help)
  • Re: [Sockets] Problem with ObjectInput/OutputStream
    ... it will hang at creating the InputStream if inSocket is not ... valid listener (in my case there is one on ... > ObjectOutputStream. ... > ...everything works and I can write and read through the socket. ...
    (comp.lang.java.programmer)