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 236209

Summary: javax.swing.text.BadLocationException: Modification not allowed
Product: web Reporter: janario
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: normal CC: jherkel
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204041
Attachments: stacktrace
stacktrace

Description janario 2013-09-21 01:39:26 UTC
This bug was originally marked as duplicate of bug 234904, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20130920-436c1fa3141a)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Linux

User Comments:
janario: Trying to open a file with drag and drop




Stacktrace: 
javax.swing.text.BadLocationException: Modification not allowed
   at org.openide.text.CloneableEditorSupport$DocFilter.modificationNotAllowed(CloneableEditorSupport.java:2376)
   at org.openide.text.CloneableEditorSupport$DocFilter.checkModificationAllowed(CloneableEditorSupport.java:2370)
   at org.openide.text.CloneableEditorSupport$DocFilter.insertString(CloneableEditorSupport.java:2306)
   at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:755)
   at org.netbeans.modules.html.editor.HtmlExternalDropHandler$2.run(HtmlExternalDropHandler.java:287)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:321)
Comment 1 janario 2013-09-21 01:39:28 UTC
Created attachment 140324 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-10-10 13:43:04 UTC
HtmlExternalDropHandler should catch BLE exception - since there is no way to find if document can be modified.
Comment 3 Exceptions Reporter 2014-01-16 15:45:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204041
Comment 4 jherkel 2014-01-28 09:55:10 UTC
Created attachment 144458 [details]
stacktrace

I have had a problem with the bug described here https://netbeans.org/bugzilla/show_bug.cgi?id=239713. So I closed dialog "Lengthy operation in progress". After it I try to switch to another window and try to write some code. Dialog "Lengthy operation in progress" appears and there was information "Locking  (filename)".
Comment 5 Marek Fukala 2014-07-23 10:44:02 UTC
changeset:   276003:ff50c466e84a
summary:     #236209 - javax.swing.text.BadLocationException: Modification not allowed
Comment 6 Quality Engineering 2014-07-25 02:36:30 UTC
Integrated into 'main-silver', will be available in build *201407250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ff50c466e84a
User: Marek Fukala <mfukala@netbeans.org>
Log: #236209 - javax.swing.text.BadLocationException: Modification not allowed