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.
Summary: | Breakpoints inconsistent when debugging using Glassfish V2 with a project | ||
---|---|---|---|
Product: | javaee | Reporter: | _ wadechandler <wadechandler> |
Component: | Code | Assignee: | issues@javaee <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | vkraemer |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Project to use to see the issue |
Description
_ wadechandler
2008-09-25 06:50:40 UTC
Created attachment 70544 [details]
Project to use to see the issue
OK, I tested on Windows XP SP2, Sun JDK 1.6_10, Glassfish V2u2. Same issue. 1) I download the project TestFilter.zip onto the computer 2) I opened it up 3) I debugged it 4) I could set and unset break points fine 5) I stopped the debugger 6) I added the following code to the TestFilter.doFilter method after cp6: String cp7 = req.getAuthType(); 7) I then ran debug. 8) I had two messed up breakpoints 1 was on the line with System.out.println(cp) The other was chain.doFilter(request, response); yet both break points would stop. So, one can't really tell by the breakpoints glyphs whether there is a problem or not. I'm not sure if this may be causing some other type issues or not such as performance issues or anything as I have not looked into the logic used for submitting breakpoints to GF. Notice from the debugger console that it tells me some breakpoints are invalid then tells me that it hit them and stopped the threads: Not able to submit breakpoint LineBreakpoint TestFilter.java : 59, reason: No executable location available at line 59 in class org.netbeans.tests.testfilter.TestFilter. Invalid LineBreakpoint TestFilter.java : 59 User program running Breakpoint hit at line 49 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:49. User program running Breakpoint hit at line 50 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:50. User program running Breakpoint hit at line 51 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:51. User program running Breakpoint hit at line 52 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:52. User program running Breakpoint hit at line 53 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:53. User program running Breakpoint hit at line 56 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:56. User program running Breakpoint hit at line 59 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:59. User program running Breakpoint hit at line 64 in class org.netbeans.tests.testfilter.TestFilter by thread httpSSLWorkerThread-8080-1. Thread httpSSLWorkerThread-8080-1 stopped at TestFilter.java:64. User program running Anyways, this is the same result on two different machines, operating systems, and versions of the JDK though I have not tried with a JDK 1.5uX yet. Maybe there are some variations to try with what versions of the JDK for GF and NB, but I think I can wait on that until someone else tries to reproduce the issue. There is a note in the dup about the GF side of this issue... see http://www.netbeans.org/issues/show_bug.cgi?id=115033#desc39 and http://www.netbeans.org/issues/show_bug.cgi?id=115033#desc41. You may want to download a GF v2.1 build from http://download.java.net/javaee5/v2.1/promoted/ and see it that addresses the problem. Any promoted build that is younger than Nov. 9, 2008 should have the claimed fix. *** This issue has been marked as a duplicate of 115033 *** |