[2619] in java-interest
Re: Still having problems
daemon@ATHENA.MIT.EDU (Steve V. Yalovitser)
Fri Oct 6 13:43:45 1995
From: "Steve V. Yalovitser" <root@cyberpunk.com>
In-Reply-To: <199510060904.KAA02718@csres.cs.reading.ac.uk>
To: D.C.Baldaro@reading.ac.uk (D. C. Baldaro)
Cc: java-interest@java.sun.com
Date: Fri, 6 Oct 1995 11:22:29 +0900 (EDT)
Hiya,
If you are running with NIS+ the JDK falls over in numerous places.
BasicallyNIS+ uses some system calls like getmsg/putmsg to get information. These
callsare overloaded in the VM with java specific implementations which check for
certain semaphores. The workaround currently is to do the following.
1) If you are just using code that requires hostname lookup (ie setting the display or using InetAddress classes) then reset your /etc/nsswitch.conf to
have hosts look in files before nis+. Then insert all of the hosts you care
aboutwhen running java into your local hosts table. This will fix the problem for
hosts.
2) If you are doing other lookups from nis+ you have to do the same for all
the other tables in /etc/nsswitch.conf
You can figure out exactly which nis+ tables the code chokes on by running
dbxon java_g and running your code. It will give you a stack backtrace and you
just have to id system calls like gethostname getusername ..etc..
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com