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 247566 - javax.swing.text.BadLocationException: Modification not allowed
Summary: javax.swing.text.BadLocationException: Modification not allowed
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 15:17 UTC by Exceptions Reporter
Modified: 2017-06-27 15:40 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212316


Attachments
stacktrace (3.62 KB, text/plain)
2014-09-29 15:17 UTC, Exceptions Reporter
Details
stacktrace (3.80 KB, text/plain)
2014-12-30 05:33 UTC, manish582
Details
stacktrace (3.62 KB, text/plain)
2015-04-28 14:59 UTC, aldobrucale
Details
stacktrace (3.97 KB, text/plain)
2015-07-15 21:29 UTC, DaviMoreira
Details
stacktrace (969 bytes, text/plain)
2015-08-25 11:35 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-09-29 15:17:26 UTC
This bug was originally marked as duplicate of bug 236209, 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) Client VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows XP

User Comments:
GUEST: work with swt




Stacktrace: 
javax.swing.text.BadLocationException: Modification not allowed
   at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2411)
   at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2405)
   at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2341)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:755)
   at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.run(CodeTemplateInsertHandler.java:328)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:356)
Comment 1 Exceptions Reporter 2014-09-29 15:17:28 UTC
Created attachment 149599 [details]
stacktrace
Comment 2 Milutin Kristofic 2014-10-01 10:20:40 UTC
To CodeTemplate or JavaCompletion, since they are writing to bad location.
Comment 3 Exceptions Reporter 2014-11-03 12:27:32 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=212316
Comment 4 manish582 2014-12-30 05:33:04 UTC
Created attachment 151315 [details]
stacktrace

running slow and not respounding some time.
Comment 5 aldobrucale 2015-04-28 14:59:38 UTC
Created attachment 153437 [details]
stacktrace

editing
Comment 6 DaviMoreira 2015-07-15 21:29:35 UTC
Created attachment 154660 [details]
stacktrace

Found while using the NetBeans IDE - for PHP development.
Comment 7 Alexander Simon 2015-08-25 11:35:38 UTC
Created attachment 155614 [details]
stacktrace

fix hixnt on readonly file