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.
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.
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.
Created attachment 114775 [details] 6.7.1 showing correct behavior for breakpoints
Verified that on NB 7.1rc2 all works fine.
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.
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.