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.
Build: NetBeans IDE Dev (Build 201203250401) VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05 OS: Windows 7 User Comments: sunbiz: Insert Code ->Generate REST Client->IDE Registered inside Generated source file for javax.ejb.Stateless.java Stacktrace: org.netbeans.editor.GuardedException: Modification prohibited at org.netbeans.editor.BaseDocument.checkModifiable(BaseDocument.java:1003) at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:753) at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:400) 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:347)
Created attachment 117219 [details] stacktrace
It was probably called inside of guarded code or in readonly file GuardedExceptions should be properly handled in JavaModificationResult. They just pack guardedexception into ioexception. http://netbeans.org/bugzilla/show_bug.cgi?id=210517#c2 Webservices can look into ioexception and do nothing if there is guardedexception.
web-main#f0e9bf747fe3
Integrated into 'main-golden', will be available in build *201205120400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f0e9bf747fe3 User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#210064 - org.netbeans.editor.GuardedException: Modification prohibited