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 135907

Summary: IllegalStateException: Illegal source modification with dirty model /root/NetBeansProjects/WebApplication1/web/Page1.jsp
Product: obsolete Reporter: Petr Dvorak <joshis>
Component: visualwebAssignee: _ sandipchitale <sandipchitale>
Status: VERIFIED FIXED    
Severity: blocker CC: aperezymadrid, joshis, mcahornsirup, rajeshbhatiya, zkirill
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=58915
Issue Type: DEFECT Exception Reporter: 58915
Bug Depends on: 136016    
Bug Blocks:    

Description Petr Dvorak 2008-05-27 16:20:04 UTC
Build: NetBeans IDE Dev (Build 200805221203)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Linux, 2.6.22-14-generic, i386

User comments: I created a new Web Application with Visual Web JavaServer Faces. An error "Missing Body Element" showed
up in the editor immediately. I switched between Design/JSP/Java several times without changing anything, then I invoked
build (and then Clean & Build) on the project. Then I pressed the "Refresh" button in the editor toolbar. I tried to
close the file tab -> ISE was thrown

STACKTRACE: (first 10 lines)
java.lang.IllegalStateException: Illegal source modification with dirty model
/root/NetBeansProjects/WebApplication1/web/Page1.jsp
        at org.netbeans.modules.visualweb.insync.SourceUnit.setSourceDirty(SourceUnit.java:304)
        at org.netbeans.modules.visualweb.insync.SourceUnit.propertyChange(SourceUnit.java:227)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
        at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
        at org.openide.text.CloneableEditorSupport.firePropertyChange(CloneableEditorSupport.java:484)
        at org.openide.text.CloneableEditorSupport.fireDocumentChange(CloneableEditorSupport.java:2062)
        at org.openide.text.CloneableEditorSupport.doCloseDocument(CloneableEditorSupport.java:1975)
        at org.openide.text.CloneableEditorSupport.closeDocument(CloneableEditorSupport.java:1949)
        at org.openide.text.CloneableEditorSupport.notifyClosed(CloneableEditorSupport.java:1824)
        at org.openide.text.DataEditorSupport.notifyClosed(DataEditorSupport.java:295)
Comment 1 Dan Kolar 2008-05-28 10:25:32 UTC
*** Issue 135929 has been marked as a duplicate of this issue. ***
Comment 2 _ sandipchitale 2008-05-28 15:48:59 UTC
*** Issue 135326 has been marked as a duplicate of this issue. ***
Comment 3 _ sandipchitale 2008-05-28 18:33:50 UTC
This is caused by regression mentioned in 136016.
Comment 4 Petr Cyhelsky 2008-05-29 11:17:01 UTC
On:
Product Version: NetBeans IDE Dev (Build 080529)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)

I got the same exception simply by trying to edit the page in JSP view - 
Steps to reproduce: Create new Web Application with Visual Web JavaServer Faces -> switch to JSP view -> insert new line
before the <webuijsf:body id="body1" style="-rave-layout: grid"> tag.
Comment 5 _ deva 2008-05-29 21:16:17 UTC
*** Issue 135929 has been marked as a duplicate of this issue. ***
Comment 6 _ sandipchitale 2008-05-30 18:09:22 UTC
Fixed due to 136016.
Comment 7 Roman Mostyka 2008-05-30 18:26:27 UTC
Verified with build 080530.