Wednesday, February 08, 2006

RMI on UNIX problems

so now that i have my server running on Freebsd, there is a slew of related problems:

i got this on the client:

RMI connection refused problem solved.
java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect

when i was connecting to the bsd server which isnt localhost by the way, the error seems to stem from the way i have my hosts file setup on bsd, and a quick solution is to include the following code when launching the server:

-Djava.rmi.server.hostname=YOUR_SERVERS_IP

that fixes everything.

another problem im getting now has to do with BufferedImage. apperantly BufferedImage requires a screen to draw its image on. and i dont have one, when i shell into the system. i get this error:

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

Solution will be presented when i find it.

No comments:

Post a Comment