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 210064 - org.netbeans.editor.GuardedException: Modification prohibited
Summary: org.netbeans.editor.GuardedException: Modification prohibited
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 05:17 UTC by sunbiz
Modified: 2012-05-12 09:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 186262


Attachments
stacktrace (4.37 KB, text/plain)
2012-03-26 05:17 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-03-26 05:17:26 UTC
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)
Comment 1 sunbiz 2012-03-26 05:17:28 UTC
Created attachment 117219 [details]
stacktrace
Comment 2 Milutin Kristofic 2012-05-10 14:07:43 UTC
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.
Comment 3 Denis Anisimov 2012-05-11 09:50:32 UTC
web-main#f0e9bf747fe3
Comment 4 Quality Engineering 2012-05-12 09:55:12 UTC
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