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

Summary: javax.swing.text.BadLocationException: Modification not allowed
Product: editor Reporter: Exceptions Reporter <exceptions_reporter>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: aldobrucale, alexandrelima.61, alexvsimon, DaviMoreira, FrantaM, ilia, kirillyalta, manish582, stijnboa
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 212316
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

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