Re: Debugging

From: David Rabinowitz (dar_at_cs.huji.ac.il)
Date: 02/19/04

  • Next message: Gil Blais: "Re: Eclipse Install Error"
    Date: Thu, 19 Feb 2004 11:10:41 +0200
    
    

    Another idea - is your Path contains your %JAVA_HOME%\bin folder? (do
    you have JAVA_HOME?) perhaps he does not where to find the correct DLL.

    David

    Robert Klemme wrote:
    > You didn't install a firewall in the meantime or had a virus, did you?
    > Otherwise I don't have an idea currently. Sorry.
    >
    > robert
    >
    > "Peter Bradley" <apvx95@dsl.pipex.com> schrieb im Newsbeitrag
    > news:4033d80c$0$21301$cc9e4d1f@news.dial.pipex.com...
    >
    >>Hi All,
    >>
    >>I apologise for following up my own message, but I've a little more
    >>information.
    >>
    >>I've now succeeded in altering the command used to start the debugger in
    >
    > the
    >
    >>IDE. Following the instructions in the help files, I've changed it to:
    >>
    >>
    >
    > C:\j2sdk_nb\j2sdk1.4.2\bin\java.exe -Xdebug -Xnoagent -Xrunjdwp:transport=
    > dt
    >
    > _shmem,server=y,address=jdbconn,suspend=n -Djava.compiler=NONE -classpath
    >
    >>"<the_classpath>" <the_package>.<the_class>
    >>
    >>I now get no error when I select to run in the debugger, but the debug
    >>process shows as having a status of "starting" in the debug window. It
    >>never moves on from there. The program starts, but not under the
    >
    > control of
    >
    >>the debugger. When I finish the program an error message appears:
    >>
    >>Exception while starting debugger
    >>Cannot start process: C:\j2sdk_nb\j2sdk1.4.2\bin\java.exe.
    >>java.io.IOException: VM initialization failed
    >>
    >>The frustrating thing is that it did actually work for me once, but I
    >
    > can't
    >
    >>reproduce it!
    >>
    >>Cheers
    >>
    >>Peter
    >>
    >>
    >>"Peter Bradley" <apvx95@dsl.pipex.com> wrote in message
    >>news:4033befd$0$21297$cc9e4d1f@news.dial.pipex.com...
    >>
    >>>Hi everyone,
    >>>
    >>>I've posted about this before, and had some help, but have
    >
    > unfortunately
    >
    >>not
    >>
    >>>been able to solve the problem. I have a little more info now, so
    >
    > perhaps
    >
    >>>we might have more luck this time.
    >>>
    >>>On my WinXP Professional box at home, I can't get the debugger to
    >
    > start
    >
    >>from
    >>
    >>>within any of my IDEs. The reason for this is that the IDE tries to
    >
    > use a
    >
    >>>socket transport. Now there is no reason for it to do this, and I
    >
    > can't
    >
    >>see
    >>
    >>>where I can change it. I get the same error using NetBeans 3.5.1,
    >>
    >>NetBeans
    >>
    >>>3.6 Beta, Borland JBuilder, and Eclipse. I do not get the error if I
    >
    > boot
    >
    >>>into my Linux partition on the same box, nor do I get the error on my
    >
    > W2K
    >
    >>>Server box at work.
    >>>
    >>>On my last attempt, I did look in the knowledge base which talked
    >
    > about
    >
    >>>using a J2sdk path with no spaces in it. As you can see below, the
    >
    > path
    >
    >>has
    >>
    >>>no spaces. Also NetBeans 3.5.1 is installed at:
    >>>
    >>>C:\j2sdk_nb\netbeans3.5.1\bin\runidew.exe
    >>>
    >>>Also with no spaces.
    >>>
    >>>I'll concentrate on the info I can glean from NetBeans 3.5.1, but you
    >
    > can
    >
    >>>rest assured that it is the same for all the others as well.
    >>>
    >>>When I try to run in the debugger, I get (after a long pause) the
    >>
    >>following
    >>
    >>>error message:
    >>>
    >>>Exception while starting debugger:
    >>>Cannot start process C:\j2sdk_nb\j2sdk1.4.2\bin\java.
    >>>java.io.IOException: VM initialization failed
    >>>
    >>>The command the IDE is trying to execute - shown in the output
    >
    > window -
    >
    >>is
    >>
    >>>(with the bulk of the classpath cut out to save space):
    >>>
    >>>
    >>
    > C:\j2sdk_nb\j2sdk1.4.2\bin\java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_s
    > oc
    >
    > ket,address=cymro-ffenestri:1114,suspend=y -Djava.compiler=NONE -classpath
    >
    >>>"--- classpath goes in here ---" <package_name>.<class_name>
    >>>
    >>>The error message returned in the output window is:
    >>>
    >>>err:: No such file or directory
    >>>Error [2] in connect() call!
    >>>Socket transport failed to init.
    >>>Transport dt_socket failed to initialize, rc = -1.
    >>>
    >>>Now, if I open a command window and do:
    >>>
    >>>
    >>
    > C:\j2sdk_nb\j2sdk1.4.2\bin\java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_s
    > hm
    >
    >>>em,address=jdbconn,server=y,suspend=y -Djava.compiler=NONE -classpath
    >
    > "---
    >
    >>>same classpath as above ---" <package_name>.<class_name>
    >>>
    >>>the command executes fine and I am able to attach to this VM in my IDE
    >
    > and
    >
    >>>use the debugger. Which is a workaround of sorts, but less than
    >>>satisfactory (in my opinion).
    >>>
    >>>Having tried to run the command and failed, NetBeans sends me to the
    >>>configuration dialog for the debugger, where it tells me that the
    >
    > command
    >
    >>it
    >>
    >>>is trying to execute is:
    >>>
    >>>{jdk.home}{/}bin{/}java
    >>>
    >>>The arguments being passed are:
    >>>
    >>>
    >
    > {classic}{assertEnabled}{debuggerOptions} -Djava.compiler=NONE -classpath
    >
    >>>{q}{filesystems}{q} {main}
    >>>
    >>>Both {classic} and {assertEnabled} are false. I can't find any way to
    >>>configure the other options. So the next thing I tried was to
    >
    > replace, in
    >
    >>>the configuration dialog, the {debuggerOptions} placeholder (or
    >
    > whatever
    >
    >>it
    >>
    >>>is) with the actual values I know work from the command line, i.e.:
    >>>
    >>
    >>-Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,
    >
    > su
    >
    >>sp
    >>
    >>>end=y
    >>>
    >>>This causes the IDE to hang. It won't even refresh the screen. Dead.
    >>>
    >>>So, that's the history.
    >>>
    >>>If anyone can throw any light on this, or help in any way I'd be most
    >>>grateful.
    >>>
    >>>Thanks in advance
    >>>
    >>>Peter
    >>>
    >>>
    >>>
    >>
    >>
    >


  • Next message: Gil Blais: "Re: Eclipse Install Error"

    Relevant Pages

    • Re: Debugging
      ... I checked my installation at work, and according to that, the ... debugger there -runs the command: ... > Robert Klemme wrote: ...
      (comp.lang.java.softwaretools)
    • gnome-settings-daemon crashed twice
      ... To debug your program, run it with the --sync command line ... backtrace from your debugger if you break on the gdk_x_errorfunction.) ...
      (GNOME)
    • Debugging
      ... On my WinXP Professional box at home, I can't get the debugger to start from ... I get the same error using NetBeans 3.5.1, ... The command the IDE is trying to execute - shown in the output window - is ...
      (comp.lang.java.softwaretools)
    • IRQL not less or equal (bugcheck 0x0A)
      ... If a kernel debugger is available get the stack backtrace. ... *** In order for this command to work properly, ... *** must point to .pdb files that have full type information. ...
      (microsoft.public.development.device.drivers)
    • Ntfs crash
      ... Debugger entered on first try; ... Use!analyze -v to get detailed debugging information. ... *** In order for this command to work properly, ... *** must point to .pdb files that have full type information. ...
      (microsoft.public.development.device.drivers)