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 63825 - BadLocationException thrown when trying to autogen all implemented methods
Summary: BadLocationException thrown when trying to autogen all implemented methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 18:44 UTC by kilibob
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HERE's the messages.log file I couldn't attach from the earlier screen! (223.57 KB, text/plain)
2005-09-07 18:45 UTC, kilibob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kilibob 2005-09-07 18:44:46 UTC
I would follow the IDE's instructions and attach my messages.log file, but 
there's no way to attach anything to an issue.  So I'm providing the "details", 
which at least has the stacktrace for the particular exception.

Please forgive me if I have initially directed this to the wrong team or 
subcomponent; I'm still feeling my way around your particular delineations.

Using qbuild 200508231315.

java.lang.RuntimeException: javax.swing.text.BadLocationException: Invalid 
offset=19490, docLength=18869
	at org.netbeans.modules.java.hints.GeneratorUtils.
getPositionForMethods(GeneratorUtils.java:364)
	at org.netbeans.modules.java.hints.ImplementMethodJavaHint.
implement(ImplementMethodJavaHint.java:55)
	at org.netbeans.modules.editor.hints.HintsUI.invokeHint(HintsUI.java:328)
	at org.netbeans.modules.editor.hints.HintsUI.mouseClicked(HintsUI.java:
244)
	at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
	at java.awt.Component.processMouseEvent(Component.java:5491)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.
pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.
pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.swing.text.BadLocationException: Invalid offset=19490, 
docLength=18869
	at org.netbeans.editor.DocumentContent.checkOffset(DocumentContent.java:
275)
	at org.netbeans.editor.DocumentContent.createMark(DocumentContent.java:
103)
	at org.netbeans.editor.DocumentContent.createPosition(DocumentContent.
java:89)
	at javax.swing.text.AbstractDocument.createPosition(AbstractDocument.java:
836)
	at org.netbeans.modules.java.hints.GeneratorUtils.
getPositionForMethods(GeneratorUtils.java:359)
	... 22 more
Comment 1 kilibob 2005-09-07 18:45:56 UTC
Created attachment 24587 [details]
HERE's the messages.log file I couldn't attach from the earlier screen!
Comment 2 Pavel Flaska 2005-09-21 10:27:14 UTC
This was fixed in GeneratorUtils, revision 1.6. This revision is in q-build. It
seems to me that you have hints installed from update center in userdir, so this
old hints are used in your q-build.

See line with old timestamp in your log:
org.netbeans.modules.java.hints/1 [1.8.0.1 1 *200508011800*]

We do not increase specification version, so there is still 1.8.0.1 version on
update center. Because the hints are part of build now, it is IMO enough to
remove hints jars from your userdir:

{userdir}/modules/org-netbeans-modules-java-hints.jar
{userdir}/modules/org-netbeans-modules-editor-hints.jar

(Bear in mind your IDE shouldn't be running when you removing the jars.)

Comment 3 Quality Engineering 2007-09-20 09:46:15 UTC
Reorganization of java component