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.
Hi NB Developers, I've been noticing just in last download I got of v4.2dev (20050811), immediately after I close a *.java file window from the Editor, I get the following Exception: javax.swing.text.BadLocationException: Invalid offset=1465 not within <0, 1> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1227) at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:552) at org.netbeans.modules.java.hints.JavaHintsProvider.getHints(JavaHintsProvider.java:74) at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:221) at org.openide.util.Task.run(Task.java:207) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:469) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:870) The error appears to be caused by code trying to track an offset position within the editor window but has missed the fact that window is now null - maybe? I'm running on the following operating platform: uname -a Darwin BB-PBook.local 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh powerpc java -version java version "1.4.2_08" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-219) Java HotSpot(TM) Client VM (build 1.4.2-53, mixed mode) Like I mentioned, I'm running NB v4.2 - daily bld 20050811. I have a lot of modules installed. I'll attach my message.log so you can see what's loading at launch time. Cheers, Bill Bug
Created attachment 23774 [details] my NB messages.log at time of exception
Reassigning to java module. Please, check BadLocationException in JavaHintsProvider.getHints... similar issue: issue #56315
happend to me on XP too. It's annoying I'd mark it as P2 - it's really really visible, I just closed documents.
Fixed in trunk. Checking in src/org/netbeans/modules/java/hints/JavaHintsProvider.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/JavaHintsProvider.java,v <-- JavaHintsProvider.java new revision: 1.47; previous revision: 1.46 done Similar patch should be applied to org.netbeans.modules.j2ee.ejbcore.hints.EjbHintsProvider.getHints() Reassigning to j2ee.
Fixed already.
*** Issue 66120 has been marked as a duplicate of this issue. ***
*** Issue 66318 has been marked as a duplicate of this issue. ***
*** Issue 66428 has been marked as a duplicate of this issue. ***
v