Operating System - HP-UX
1836596 Members
1988 Online
110102 Solutions
New Discussion

hp_ux11.0 socket error of java1.4

 
peter_wu
New Member

hp_ux11.0 socket error of java1.4

I have installed a hp_ux11.0 system with java1.4 package and the recommended patches for it (but not very sure all pathches). but I met a error when use socket of java1.4. the error i got when ran is: "java.net.SocketException: Socket closed "
I wonder if there are other any critial patches need to be installed?

here is the simple test of socket:

1.
import java.net.*;

class TestSocket{
public static void main(String[] args){
try{
System.out.println("Listen the port 10240 ...");
ServerSocket ss = new ServerSocket(10240);
Socket s = ss.accept();
System.out.println("Receive the request from " + s);
}catch(Exception ex){
System.out.println(ex);
}
}
}


2.
import java.net.*;

class Request{
public static void main(String[] a){
try{
Socket s = new Socket("localhost",10240);
}catch(Exception ex){
System.out.println(ex);
}
}
}

your help is highly appreicated


2 REPLIES 2
T G Manikandan
Honored Contributor

Re: hp_ux11.0 socket error of java1.4

peter_wu
New Member

Re: hp_ux11.0 socket error of java1.4

tks a lot