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 - javax.swing.text.BadLocationException: Modification not allowed
Summary: javax.swing.text.BadLocationException: Modification not allowed
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-25 08:06 UTC by pinta83
Modified: 2017-10-21 07:05 UTC (History)
24 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208663


Attachments
stacktrace (3.74 KB, text/plain)
2014-03-25 08:07 UTC, pinta83
Details
stacktrace (3.73 KB, text/plain)
2014-05-08 07:39 UTC, icaroniz
Details
stacktrace (1.94 KB, text/plain)
2014-05-30 10:36 UTC, Vladimir Voskresensky
Details
test project (120.00 KB, application/x-tar)
2014-05-30 10:46 UTC, Vladimir Voskresensky
Details
stacktrace (2.24 KB, text/plain)
2014-09-19 09:09 UTC, Vladimir Riha
Details
stacktrace (3.34 KB, text/plain)
2015-03-31 13:25 UTC, Alexander Simon
Details
stacktrace (1.66 KB, text/plain)
2015-10-30 16:06 UTC, Vladimir Riha
Details
stacktrace (3.80 KB, text/plain)
2016-03-26 00:32 UTC, nleck
Details
stacktrace (3.41 KB, text/plain)
2017-03-31 08:58 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
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