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.
NetBeans IDE 7.1 Beta (Build 201109252201) JDK 7 build 147 I am working on a JPanel form, in source view. In the model for one of the JComboBox components of the form, I had a specific string (lets say "Item 1" for the purpose of this discussion). Elsewhere in the code I also had "Item 1", and I wanted to introduce a constant for it. I chose to replace all occurrences in the class, which would then of course include the one in the Guarded block generated by the GUI builder. The following exception occurred: org.netbeans.editor.GuardedException: Attempt to remove from guarded block at position 19,090. at org.netbeans.editor.GuardedDocument.preRemoveCheck(GuardedDocument.java:288) at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:942) at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:406) at org.netbeans.api.java.source.ModificationResult.access$100(ModificationResult.java:95) at org.netbeans.api.java.source.ModificationResult$3.run(ModificationResult.java:371) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:344) at org.openide.text.NbDocument.runAtomicAsUser(NbDocument.java:448) at org.netbeans.api.java.source.ModificationResult.processDocument(ModificationResult.java:385)
Without full stack-trace hard to guess, but very probably this is dup. of issue *** This bug has been marked as a duplicate of bug 205457 ***