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 151769

Summary: Conditioned Exception Breakpoint problem
Product: debugger Reporter: pribyl <pribyl>
Component: JavaAssignee: issues@debugger <issues>
Status: CLOSED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 154482    
Bug Blocks:    
Attachments: Messages log

Description pribyl 2008-10-29 19:00:45 UTC
In some cases, the debugger stops on an Exception Breakpoint, even if it's Condition is set to 'false' statement.
In the debugger output, there is something like:

Exception breakpoint hit in java.lang.ClassLoader at line ? by thread main.
***
null
***

Thread main stopped at ClassLoader.java.findBootstrapClass.

I was able to reproduce this on two different systems:
Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

and

Product Version: NetBeans IDE 6.5 RC2 (Build 200810270001)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Steps to reproduce:
1, open "MemoryView" project - http://qa.netbeans.org/modules/debugger/promo-h/MemoryView.zip
2, with the MemoryView.java open, create new Exception breakpoint, as the Exception Class Name enter:
java.lang.ClassNotFoundException  and for Condition type: false
3, debug the project
-> the situation described above should occur

Another approach (which I was able to reproduce only on the system with Ubuntu)
1, create new simple J2SE project
2, modify Main class, so in the main method looks like:
    public static void main(String[] args) {
        Main m = new Main();
    }
3, create the Exception breakpoint the same way like in previous case and try to debug the project.
Comment 1 pribyl 2008-10-29 19:04:33 UTC
Created attachment 72844 [details]
Messages log
Comment 2 Martin Entlicher 2008-12-03 15:37:27 UTC
Currently not able to reproduce due to issue #154482.
Comment 3 Daniel Prusa 2009-07-13 14:57:17 UTC
No longer reproducible in latest dev builds, perhaps fixed as a consequence of the fix for issue 154482.
Comment 4 Marian Mirilovic 2010-05-19 09:17:12 UTC
works in NB 6.9