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.
IDE thrown NPE while I was trying to expand "self" node inside "Watches" view. Debugger was terminated after this action. NBPython generates invalid XML content: ... name="<module>" ... ... <JPY> <CALL cmd="4" fn="c:\documents ... onproject4.py" name="<module>" args="None" /></JPY> ... [Fatal Error] :1:137: The value of attribute "name" associated with an element type "CALL" must not contain the '<' character. SEVERE [org.openide.util.RequestProcessor] java.lang.NullPointerException at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.applyChildren(TreeModelNode.java:826) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:784) at org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:1184) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) org.netbeans.modules.python.debugger.backend.PythonDebugException: NBPython backend Parser parse SAX PARSING ERROR : The value of attribute "name" associated with an element type "CALL" must not contain the '<' character. ****************** XML-SOURCE ********************** <JPY> <CALL cmd="4" fn="c:\documents and settings\jirka\my documents\netbeansprojects\newpythonproject4\src\newpythonproject4.py" name="<module>" args="None" /></JPY> ****************** END OF XML-SOURCE ********************** at org.netbeans.modules.python.debugger.backend.JPyDebugXmlParser.parse(JPyDebugXmlParser.java:470) at org.netbeans.modules.python.debugger.backend.PythonDebugEvent.parse(PythonDebugEvent.java:111) ..... Steps to reproduce: - debug attached sample file, set breakpoint on line 6 - start debugging session - use "Continue" to skip default hidden breakpoint on first line ( I really dont like this hidden breakpoint ;) ) - wait for breakpoint hit and go to Watches view - expand "self" node > booom, debugger is down (check the IDE log file) Product Version: NetBeans IDE Dev (Build 20081015003247) Python: boundled Jython Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Created attachment 71980 [details] NewPythonProject4.py
Created attachment 71982 [details] messages.log
Oups ... errRor ... ide throwN npe ... great english! ;)
> use "Continue" to skip default hidden breakpoint on first line ( I really dont like this hidden breakpoint ;) ) You can disable it : Menu -> tools -> options -> Python -> debugger and uncheck the 'Stop at First Line' checkbox option Jean-Yves
Fixed Jython specific unhandled exceptions not correctly handled in jpydebug.py XML parsing exception has been previously fixed
Created attachment 72014 [details] run fix in linux