IS shutdown when using java socket

I have a case that i have to make IS connect to another server using socket.
I’m using java service to connect to the server, but the problem is the IS always restart everytime i run the service. what should i do?
is there any problem with java socket in IS?

I try to connect the IS to my own PC, it’s still happen. So i think the problem may in IS?

what should I do??? :confused:

The problem is likely that your java service is not written correctly. Please post that if you can as well as any error messages written to the logs.


I’m not the one who handle the server, i just wrote the java service. The server administrator saig that’s nothing wrong in the log. It’s just said the IS trying connecting to other server (non IS) then go shutdown.
Here the example of my java service

try {
echoSocket = new Socket(host, Integer.parseInt(port));
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));
} catch (UnknownHostException e) {
System.err.println(“Don’t know about host”);
throw new ServiceException(e);
} catch (IOException e) {
System.err.println(“Couldn’t get I/O for the connection”);
throw new ServiceException(e);

try {
fromServer = in.readLine();
} catch(IOException e) {

try {
} catch (Exception e)

But sometimes it’s work, and then suddenly shutdown the server. This make me confuse…
Is there any IS configuration to allow socket connection work properly??
Thanks for your attention…