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 35035 - error in checkStyle
Summary: error in checkStyle
Status: RESOLVED DUPLICATE of bug 33040
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-21 23:34 UTC by Arunax
Modified: 2007-11-05 13:44 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 Arunax 2003-07-21 23:34:18 UTC
I get this error when I selected checkStyle from the menu 
and ran the check for a JSP file

java.lang.IndexOutOfBoundsException: Invalid line index=-1 
< 0
	at org.netbeans.editor.LineRootElement.getElement
(LineRootElement.java:50)
	at org.openide.text.NbDocument.findLineOffset
(NbDocument.java:124)
	at org.openide.text.DocumentLine$Set.getCurrent
(DocumentLine.java:754)
	at 
com.goulbourn.docenforcer.CheckstyleAction.outputLineSelecte
d(Unknown Source)
	at 
com.goulbourn.docenforcer.CheckstyleAction.outputLineAction
(Unknown Source)
	at 
org.netbeans.core.output.OutputTabTerm$OutTermPane.invokeJum
pListener(OutputTabTerm.java:1360)
	at 
org.netbeans.core.output.OutputTabTerm$OutTermPane.activateH
yperlink(OutputTabTerm.java:1232)
	at 
org.netbeans.core.output.OutputTabTerm$OutTermPane.access$70
0(OutputTabTerm.java:751)
	at org.netbeans.core.output.OutputTabTerm$6.action
(OutputTabTerm.java:908)
	at 
org.netbeans.lib.terminalemulator.ActiveTerm$1.mouseClicked
(ActiveTerm.java:63)
	at java.awt.AWTEventMulticaster.mouseClicked
(AWTEventMulticaster.java:206)
	at java.awt.AWTEventMulticaster.mouseClicked
(AWTEventMulticaster.java:205)
	at java.awt.Component.processMouseEvent
(Component.java:3713)
	at java.awt.Component.processEvent
(Component.java:3539)
	at java.awt.Container.processEvent
(Container.java:1159)
	at java.awt.Component.dispatchEventImpl
(Component.java:2588)
	at java.awt.Container.dispatchEventImpl
(Container.java:1208)
	at java.awt.Component.dispatchEvent
(Component.java:2492)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2230)
	at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2125)
	at java.awt.Container.dispatchEventImpl
(Container.java:1195)
	at java.awt.Window.dispatchEventImpl
(Window.java:923)
	at java.awt.Component.dispatchEvent
(Component.java:2492)
[catch] at java.awt.EventQueue.dispatchEvent
(EventQueue.java:334)
	at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:126)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:88)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:80)
Comment 1 jcatchpoole 2003-07-22 10:04:03 UTC
Change component to editor (pls reassign if that's wrong!).
Comment 2 Martin Roskanin 2003-07-22 10:08:56 UTC

*** This issue has been marked as a duplicate of 33040 ***