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 238699 - Netbeans is unable to debug any project
Summary: Netbeans is unable to debug any project
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-22 12:57 UTC by pgarciarogu
Modified: 2013-11-22 13:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pgarciarogu 2013-11-22 12:57:46 UTC
I've updated Netbeans 7.3.1 to 7.4 and now I'm unable to debug any kind of project.

The simplest example is a new java application with only one line of code: "system.out.println("end")

If I try to debug it, the file doesn't run and I get this messages in IDE:

debug:
BUILD SUCCESSFUL (total time: 1 second)

and in Debuger Console I get:

Listening on 46269
Invalid line index=1230 >= lineCount=1103


Changing listening line in each execution, but maintaining second line in all executions.

If I debug in a J2ee project with Tomcat, I can start Tomcat in debug mode, but when I debug the application I get next message:

ant -f /home/paco/NetBeansProjects/trunk/OrdersForecast -Dbrowser.context=/home/paco/NetBeansProjects/trunk/OrdersForecast -DforceRedeploy=false -Ddirectory.deployment.supported=true -Dnb.wait.for.caches=true -Dnb.internal.action.name=debug debug
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
debug:
connect-debugger:
/home/paco/NetBeansProjects/trunk/OrdersForecast/nbproject/build-impl.xml:1168: The following error occurred while executing this line:
/home/paco/NetBeansProjects/trunk/OrdersForecast/nbproject/build-impl.xml:1178: 
org.netbeans.api.debugger.jpda.DebuggerStartException: Invalid line index=1230 >= lineCount=1103
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.waitRunning(JPDADebuggerImpl.java:391)
	at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.waitRunning(JPDADebuggerImpl.java:373)
	at org.netbeans.api.debugger.jpda.JPDADebugger.attach(JPDADebugger.java:323)
	at org.netbeans.modules.debugger.jpda.ant.JPDAConnect$1.run(JPDAConnect.java:235)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Caused by: java.lang.IndexOutOfBoundsException: Invalid line index=1230 >= lineCount=1103
	at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84)
	at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:923)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
	at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:898)
	at org.openide.text.NbDocument.findLineOffset(NbDocument.java:201)
	at org.openide.text.PositionRef$Manager$DocumentRenderer.run(PositionRef.java:1033)
	at org.openide.text.PositionRef$Manager$DocumentRenderer.render(PositionRef.java:905)
	at org.openide.text.PositionRef$Manager$DocumentRenderer.renderToInt(PositionRef.java:939)
	at org.openide.text.PositionRef$Manager$LineKind.getOffset(PositionRef.java:765)
	at org.openide.text.PositionRef.getOffset(PositionRef.java:173)
	at org.openide.text.DocumentLine.refreshState(DocumentLine.java:236)
	at org.openide.text.DocumentLine.documentOpenedClosed(DocumentLine.java:870)
	at org.openide.text.DocumentOpenClose.updateLines(DocumentOpenClose.java:515)
	at org.openide.text.DocumentOpenClose$DocumentLoad.run(DocumentOpenClose.java:687)
	... 2 more
BUILD FAILED (total time: 3 seconds)