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 226219 - Debugger stops on Line without showing Breakpoint
Summary: Debugger stops on Line without showing Breakpoint
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Webserver (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P2 normal with 3 votes (vote)
Assignee: issues@serverplugins
URL:
Keywords:
: 227646 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-17 09:46 UTC by bht
Modified: 2013-04-30 02:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen print (93.06 KB, image/gif)
2013-02-17 09:46 UTC, bht
Details
breakpoints properties file (122.23 KB, application/octet-stream)
2013-02-23 01:46 UTC, bht
Details
logs in zip file (135.34 KB, application/octet-stream)
2013-02-25 18:02 UTC, bht
Details
log file after new instance of the issue (83.35 KB, text/plain)
2013-03-12 04:24 UTC, bht
Details
log file from another instance (247.63 KB, text/plain)
2013-04-24 01:02 UTC, bht
Details
Screen print without errors in log (152.53 KB, image/gif)
2013-04-30 02:48 UTC, bht
Details
log file without errors (122.93 KB, text/plain)
2013-04-30 02:54 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2013-02-17 09:46:00 UTC
Created attachment 131480 [details]
Screen print

Build 201301300001
The debugger breaks on lines that have breakpoints but the breakpoint marker is not shown in the source file.

The breakpoints have shown before, and they belong to files that weren't changed.

The breakpoints window shows them.

This is very confusing, especially in combination with bug 225301.
Comment 1 Jiri Kovalsky 2013-02-18 10:59:37 UTC
Product Version: NetBeans IDE 7.3 (Build 201302062200)
Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Linux version 3.0.0-12-generic running on i386; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.3
Cache directory: /home/cesilko/.cache/netbeans/7.3

For the record I cannot reproduce it even with not shown line numbers.
Comment 2 bht 2013-02-23 01:44:59 UTC
I see this in
- library jar files
- first rate project files

This time, I could definitely eliminate as possible cause multiple versions of the same file - project file.

The java file was not opened before the debugger stopped on a breakpoint.

The java file has 7 breakpoints in the breakpoints window but none is shown in the editor.

The file org-netbeans-modules-debugger-Settings.properties has 2 duplicate identical entries for the breakpoint that was hit.

If I toggle the breakpoint in the editor then first nothing happens whcih is consistent. Only when clicking the seond time, a breakpoint is shown in the editor. But the other breakpoints are still not shown.

So quite clearly, the debugger fails to display the breakpoints where it should according to conditions.
Comment 3 bht 2013-02-23 01:46:09 UTC
Created attachment 131765 [details]
breakpoints properties file
Comment 4 bht 2013-02-23 01:57:42 UTC
The duplicate entries are .25 and .27
Comment 5 Martin Entlicher 2013-02-25 16:24:01 UTC
Unfortunately, it's hard to find out, why something does not happen.
Can you also attach messages.log file so that we can see if there are some exception, which could break something?
Comment 6 bht 2013-02-25 18:02:02 UTC
Created attachment 131855 [details]
logs in zip file
Comment 7 Martin Entlicher 2013-02-27 13:55:07 UTC
Thanks for the log fies.
This is likely the reason, why you do not see breakpoints in editor:
java.lang.NullPointerException: null AnnotationType for:org-netbeans-modules-j2ee-sunserver
Comment 8 bht 2013-03-12 04:24:24 UTC
Created attachment 132487 [details]
log file after new instance of the issue

I have an instance of the issue now where the suspect log entry is different:

INFO [org.glassfish.tools.ide]: Caught InterruptedIOException: null

Please ignore the exception at the top, org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

That was due to a missing domain.xml after a power loss which I fixed.
Comment 9 bht 2013-04-24 01:02:31 UTC
Created attachment 133731 [details]
log file from another instance
Comment 10 bht 2013-04-26 09:45:09 UTC
*** Bug 227646 has been marked as a duplicate of this bug. ***
Comment 11 bht 2013-04-30 02:48:49 UTC
Created attachment 133953 [details]
Screen print without errors in log
Comment 12 bht 2013-04-30 02:54:10 UTC
Created attachment 133954 [details]
log file without errors

I have a case where the log does not contain any exceptions. That means we can assume that any exceptions in the log cannot be blamed. What else can be done to identify the root cause of this?