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 207145 - Unable to set breakpoints
Summary: Unable to set breakpoints
Status: RESOLVED INCOMPLETE
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 21:45 UTC by massimo
Modified: 2012-01-11 16:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
7.0.1 showing invalid breakpoints (141.79 KB, image/png)
2012-01-10 22:18 UTC, massimo
Details
6.7.1 showing correct behavior for breakpoints (184.21 KB, image/png)
2012-01-10 22:18 UTC, massimo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description massimo 2012-01-10 21:45:58 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Linux version 2.6.32-35-generic running on amd64
Java; VM; Vendor = 1.6.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.0-b11

Can no longer set breakpoints in sources of a java maven project.
As soon as i have seen this odd behavior in 7.1, i tried opening the same project in NetBeans 6.7.1 and everything works fine: i can click to the left border in the editor and breakpoints appear as usual in pink and when i debug code breaks there, etc.
In the 7.1 Editor, by clicking on the left of the source lines produces nothing: it is no longer possible to set breakpoints anywhere in any Java sources, as far as i have seen trying different projects.
I tried creating a new maven project mavenproject1 and same thing happens. Same with a new Java Application.
Comment 1 massimo 2012-01-10 22:18:01 UTC
Created attachment 114774 [details]
7.0.1 showing invalid breakpoints

Tried also NB 7.0.1. Oddly, the behavior is different from 6.7.1 and from 7.1.
In 7.0.1, it allows you to add the pink breakpoints, but then, when running the debugger, it will say they are invalid.
I am showing two attachments for 6.7.1 and 7.0.1 with the same sources.
Comment 2 massimo 2012-01-10 22:18:49 UTC
Created attachment 114775 [details]
6.7.1 showing correct behavior for breakpoints
Comment 3 massimo 2012-01-10 23:46:33 UTC
Verified that on NB 7.1rc2 all works fine.
Comment 4 massimo 2012-01-11 00:38:38 UTC
Found a workaround: i installed from the Netbeans zip found at:
http://dlc.sun.com.edgesuite.net/netbeans/7.1/final/zip/netbeans-7.1-201112071828-ml-javase.zip
unzipped it, edited /etc/netbeans.conf for correct java and user dir, created the launcher for ubuntu, and all works fine.

I had tried download the installers for javase, javaee and all for 7.1 from the main page of netbeans.org, but i continuously got them corrupted (downloaded with both Chrome and Firefox). In the nbi log, it was showing corruption on the zip headers.

Unsure what the problem is with the installer nor download.

Possible clues: i am behind a proxy, and my home directory is not on my local machine, but over the network.
Comment 5 Martin Entlicher 2012-01-11 16:39:20 UTC
The error message says: "No source root found for URL ..."
Can you please compare the URL with the project's source root?
Do you use some symlinks or are the project's source roots set correctly?

We need to know how the difference arose, to be able to fix it.