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 248630 - javax.swing.text.BadLocationException: Wrong insert position 11842
Summary: javax.swing.text.BadLocationException: Wrong insert position 11842
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 20:22 UTC by Exceptions Reporter
Modified: 2015-09-24 09:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213414


Attachments
stacktrace (5.75 KB, text/plain)
2014-11-13 20:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-11-13 20:22:09 UTC
This bug was originally marked as duplicate of bug 213179, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 8

User Comments:
GUEST: .




Stacktrace: 
javax.swing.text.BadLocationException: Wrong insert position 11842
   at org.netbeans.editor.BaseDocument.handleInsertString(BaseDocument.java:771)
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.insertString(BaseDocument.java:2497)
   at javax.swing.text.DocumentFilter.insertString(DocumentFilter.java:100)
   at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2366)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:755)
   at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:430)
Comment 1 Exceptions Reporter 2014-11-13 20:22:11 UTC
Created attachment 150473 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-01-09 17:57:05 UTC
The error came from form (guibuilder).
Comment 3 Tomas Pavek 2015-09-18 09:12:49 UTC
Form uses java source for renaming a field, it does not access the document directly. The exception is from writing the result by ModificationResult, seems like a java source problem. Might also be caused by o.n.m.java.source.queriesimpl.JavaOperationsImpl.renameField() if it produces something strange. See also the message log http://statistics.netbeans.org/exceptions/messageslog?id=779696 which shows other error and prints the document the user was editing.

But I guess this is hardly possible to diagnose without being able to reproduce...