Subject: | |
From: | |
Reply To: | |
Date: | Fri, 25 Sep 1998 15:12:00 -0400 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Sent to: hp3000-l, sig-java interex listserv
And now for some non-tape or 700/92 terminal questions (friday hp3000-l
discussions)...
Now I have Java running, I want to use it. I think that sounds
resonable. :)
I have typed in a chat client/server program that I got from the day
long seminar at HPWorld. The presenter was not a 3000 type, but Java
should be Java right?
The program is failing with a SIGBUS error when it tries to open a
listener on a server socket:
-----------------------------------------------
shell/iX> java ChatTest
No Floating-Point coprocessor, disabling JIT
Enter main
SIGBUS 10* bus error
Sig = 10; code = 18.
Full thread dump:
[skip dump since it is rather large]
-----------------------------------------------
I stripped the program down just to get the bare minimum and here it
is...
import java.io.*;
import java.net.*;
import java.util.*;
public class ChatTest {
public static void main( String arg[]) {
try {
System.out.println("Enter main");
ServerSocket s = new ServerSocket (1234);
System.out.println("After get socket: ");
System.out.flush();
}
catch(IOException e) { System.out.println("Exception: "+ e); }
}
}
----------------------
Do I need to set anything up from a networking standpoint? I have used
different port numbers, but if that was the failure, I would expect the
IOException to be thrown.
It isn't security/permissions since I can be an SM and get the same
message.
Any ideas?
/alan
[log in to unmask]
Alan "Can't wait for the weekend to work on Java this week." Ambers
|
|
|