[3735] in java-interest
Unable to close a socket when running in hotjava
daemon@ATHENA.MIT.EDU (Mike Afergan)
Fri Nov 24 13:29:44 1995
Date: Fri, 24 Nov 95 11:31:08 EST
To: hotjava-interest@java.sun.com, java-interest@java.sun.com
From: Mike Afergan <mikea@abba.ai.mit.edu>
I am doing some pretty basic socket communication. sk is defined as a
public NetworkClient in a sub-class that I use in an applet. I am able to
do all my communication, but when I execute "sk.closeServer();" (obviously
no quotes in the code), I get a null pointer exception.
When I made the class a stand-alone program however, I got no such
error and the program continued to run.
I believe that the request is working (the server seems to close the
sockets -- It was not doing that when I commented out the line), but I can't
afford to have my applet crash each time.
Any suggestions, comments would be greatly appreciated.
Thanks,
-- Mike
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com