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.
See issue 80667 for details, I am pasting description for convenience: --- I created a jaxrpc web service inside a web app. When the java source for the service appeared, I deleted the comment block (apparently while the hint processor was running). I received this exception: javax.swing.text.BadLocationException: Invalid offset=290 not within <0, 200> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1268) at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:593) at org.netbeans.modules.j2ee.verification.JEEVerificationHintsProvider.getHints (JEEVerificationHintsProvider.java:73) at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:260) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932) Seems like there is a synchronization problem in that the hints processor is working with the text and data retrieved before I performed my delete operation and attempting to use that data after it has been rendered invalid. ---- JEEVerificationHintsProvider.getHints() basically calls getLineOffset() for the offset and document it receives, so the problems seems to be located in the editor infrastructure
*** Issue 81740 has been marked as a duplicate of this issue. ***
Please consume the BLE as a workaround. We are investigating what would be the most appropriate solution to this (regarding threading etc.) Thanks.
The editor/hints framework has been rewritten, so this problem should not occur anymore.