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 243239

Summary: javax.swing.text.BadLocationException: Modification not allowed
Product: editor Reporter: pinta83
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: abalint21, alexvsimon, armaldio, azzuwan, CityBeekeeper, emiddio, everheul, Gary.A.Peach, hariharan, icaroniz, imamnurul, issues, jcrada, marceloleob, mvasquez, myururdurmaz, nleck, pjiricka, rishabh008, squib, sunflower, tijet, vriha, vv159170
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208663
Attachments: stacktrace
stacktrace
stacktrace
test project
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description pinta83 2014-03-25 08:06:58 UTC
This bug was originally marked as duplicate of bug 240201, 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 (Build 201403101706)
VM: OpenJDK 64-Bit Server VM, 24.45-b08, OpenJDK Runtime Environment, 1.7.0_51-b00
OS: Linux

User Comments:
pinta83: Initialized a new project from existing PHP Application




Stacktrace: 
javax.swing.text.BadLocationException: Modification not allowed
   at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2413)
   at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2407)
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:2363)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:937)
   at org.netbeans.modules.editor.search.EditorFindSupport.replaceAllImpl(EditorFindSupport.java:796)
   at org.netbeans.modules.editor.search.EditorFindSupport.replaceAll(EditorFindSupport.java:716)
Comment 1 pinta83 2014-03-25 08:07:00 UTC
Created attachment 146287 [details]
stacktrace
Comment 2 icaroniz 2014-05-08 07:39:49 UTC
Created attachment 147175 [details]
stacktrace

Couldn't replace a text because the IDE was waiting for background scanning of projects
Comment 3 Vladimir Voskresensky 2014-05-30 10:36:48 UTC
Created attachment 147513 [details]
stacktrace

trying to rename _2 function in file which is symlinked in other files
Comment 4 Exceptions Reporter 2014-05-30 10:36:52 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=208663
Comment 5 Vladimir Voskresensky 2014-05-30 10:46:14 UTC
Created attachment 147514 [details]
test project

try to rename function in file 2.c
Comment 6 Vladimir Riha 2014-09-19 09:09:21 UTC
Created attachment 149359 [details]
stacktrace

test
Comment 7 Alexander Simon 2015-03-31 13:25:09 UTC
Created attachment 152945 [details]
stacktrace

try to revert file on disconected remote FS
Comment 8 Vladimir Riha 2015-10-30 16:06:58 UTC
Created attachment 157067 [details]
stacktrace

adding NPM library via  project properties when package.json was opened in editor
Comment 9 nleck 2016-03-26 00:32:31 UTC
Created attachment 159005 [details]
stacktrace

replace on large json
Comment 10 Alexandr Scherbatiy 2017-03-31 08:58:09 UTC
Created attachment 163986 [details]
stacktrace

revert code changes