This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 109134 - [DEBUGGER] NPE during debugger start with JRuby
Summary: [DEBUGGER] NPE during debugger start with JRuby
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 14:51 UTC by Tomas Danek
Modified: 2007-07-10 13:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2007-07-09 14:51:42 UTC
Product Version: NetBeans IDE Dev (Build 200707081200) Java: 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104 System:
Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Tomas\.netbeans\dev
----------------------------

- started with fresh userdir
- created ruby project , chose jruby as interpreter
- put breakpoint, invoke CTRL-F5, got NPE


FINE [org.rubyforge.debugcommons.Util]: Running [basedir: C:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication9\lib]: "E:\tmp\netbeans\ruby1\jruby-1.0\bin\jruby.bat -IC:\Documents and
Settings\Tomas\My Documents\NetBeansProjects\RubyApplication9\lib -IC:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication9\test -I E:\tmp\netbeans\ruby1\ruby\debug-commons-0.9.4 -r C:\Documents and
Settings\Tomas\Local Settings\Temp\classic-debug40586.rb -r C:\Documents and Settings\Tomas\Local
Settings\Temp\io-synchronizer40587.rb -r classic-debug.rb C:\Documents and Settings\Tomas\My
Documents\NetBeansProjects\RubyApplication9\lib\main.rb"
SEVERE [global]
java.lang.NullPointerException
        at java.lang.ProcessEnvironment.validateValue(ProcessEnvironment.java:62)
        at java.lang.ProcessEnvironment.put(ProcessEnvironment.java:75)
        at java.lang.ProcessEnvironment.put(ProcessEnvironment.java:50)
        at java.util.HashMap.putAll(HashMap.java:524)
        at org.rubyforge.debugcommons.RubyDebuggerFactory.startDebugger(RubyDebuggerFactory.java:122)
        at org.rubyforge.debugcommons.RubyDebuggerFactory.startClassicDebugger(RubyDebuggerFactory.java:67)
        at org.netbeans.modules.ruby.debugger.RubyDebugger.startDebugging(RubyDebugger.java:130)
        at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:67)
        at org.netbeans.modules.ruby.rubyproject.execution.ExecutionService$2.run(ExecutionService.java:287)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:129)
FINEST [org.netbeans.modules.ruby.rubyproject.RubyConfigurationProvider]: Calculated configurations: {}
FINEST [org.netbeans.modules.ruby.rubyproject.RubyConfigurationProvider]: Calculated configurations: {}
Comment 1 Tomas Danek 2007-07-09 15:02:55 UTC
100% reproducible using those simple steps, can be workarounded by adding some ar on project's classpath -> P2
Comment 2 Tomas Danek 2007-07-09 15:13:32 UTC
..and just reproduced also on linux:) -> P1
Comment 3 Martin Krauskopf 2007-07-09 15:40:22 UTC
Ouch. Thanks for the catch.

debugger/src/org/netbeans/modules/ruby/debugger/RubyDebugger.java;
new revision: 1.2; previous revision: 1.1
Comment 4 Tomas Danek 2007-07-10 13:32:00 UTC
thanks, verified in 20070710