Re: Probel with running jswat, java.lang.NullPointerException thrown during JVM load.
Tomasz Sztejka <[email protected]> Sat, 15 Mar 2003 14:10:55 +0000 (GMT)
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
--- Nathan Fiedler <[email protected]> wrote: > That is a good question. I do not have any particular solution. (...) Thanks. After adding second line with my host name, like: 192.168.0.2 SztT JSwat works fine. regars, Tomasz Sztejka > However, > a MacOS X user had a problem related to the host name (as it appears > you > have here). His solution was to add the name of his machine to the > netinfo file. In your case, that would be the /etc/hosts file. On my > work system (RedHat Linux 7.3), my /etc/hosts file looks like this: > > 127.0.0.1 localhost.localdomain localhost > > While at home my (nearly identical) system has: > > 127.0.0.1 localhost chip > 192.168.0.2 chip > > Maybe if you modify your /etc/hosts file to be something like mine, > it > will work. > > n > > P.S. Yes, even when launching the debuggee from JSwat, the JPDA still > uses sockets to communicate between the debugger and the debuggee. > That > is why it is looking up the host name (and apparently failing). > > > On Thu, 2003-03-13 at 11:58, Tomasz Sztejka wrote: > > Hi, > > I have downloaded Jswat and trying to get it run under Linux. My > > system is: > > - Linux Debian 3.0; > > - j2sdk 1.4.1 from BlackDown.org > > > > Once I start Jswat, choose to open new session with "tutorial" > class > > file I'm getting on console window following exception report: > > > > java.lang.NullPointerException > > at java.net.InetAddress.cacheAddress(InetAddress.java:648) > > at java.net.InetAddress.cacheAddress(InetAddress.java:633) > > at > > > java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016) > > at java.net.InetAddress.getLocalHost(InetAddress.java:1125) > > at > > > com.sun.tools.jdi.SocketTransport.startListening(SocketTransport.java:91) > > at > > > com.sun.tools.jdi.SocketTransport.startListening(SocketTransport.java:86) > > at > > > com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:105) > > at > > > com.bluemarsh.jswat.VMConnection.launchDebuggee(VMConnection.java:438) > > at > > > com.bluemarsh.jswat.action.VMStartAction.actionPerformed(VMStartAction.java:219) > > at (... part removed for clarity) > > java.awt.EventDispatchThread.run(EventDispatchThread.java:99) > > > > Does anyone knows what should I do to get it run? With windows98 > JSwat > > was running nice, so it is probably something wrong with my system > > config. > > Any advice will be welcommed. > > regards, > > Tomasz Sztejka. > > ===== Tomasz Sztejka POLON ALFA http://www.polon-alfa.com.pl/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com