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 144701

Summary: [65cat]IllegalStateException: [Winsys] TopComponent org.netbeans.core.multiview.MultiViewCloneableTopComponent throws exception/error from its componentOpened() method. Please repair it! Probable cause is at
Product: obsolete Reporter: rajivderas <rajivderas>
Component: visualwebAssignee: Peter Zavadsky <pzavadsky>
Status: NEW ---    
Severity: blocker CC: rajivderas
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=95877
Issue Type: DEFECT Exception Reporter: 95877
Attachments: Issue 144701 messages.log file
Suggested fix for this case (exception from batik), but not of the entire problem

Description rajivderas 2008-08-21 12:41:43 UTC
Build: NetBeans IDE Dev (Build 200808201401)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86
User comments: Opened a jsp web project
STACKTRACE: (first 10 lines)
java.lang.IllegalStateException: [Winsys] TopComponent org.netbeans.core.multiview.MultiViewCloneableTopComponent throws
exception/error from its componentOpened() method.
Please repair it! Probable cause is at org.apache.batik.css.engine.StyleSheet.setupFilters(StyleSheet.java:589)
        at org.openide.windows.WindowManager.logThrowable(WindowManager.java:361)
        at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:300)
        at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:976)
        at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:764)
        at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:311)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1084)
        at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1051)
        at org.openide.windows.TopComponent.open(TopComponent.java:384)
        at org.openide.windows.TopComponent.open(TopComponent.java:375)
        at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:199)
Comment 1 rajivderas 2008-08-21 14:42:50 UTC
Created attachment 68031 [details]
Issue 144701 messages.log file
Comment 2 _ potingwu 2008-08-21 17:03:25 UTC
From org.netbeans.modules.visualweb.designer.jsf.JsfForm.
Comment 3 Peter Zavadsky 2008-08-26 23:46:51 UTC
The facesModel was not loaded, also there is another exception, pointing to invalid FacesModel instance (with no LiveUnit),
Comment 4 Peter Zavadsky 2008-09-25 18:29:41 UTC
The problem is now that insync tries to parse the model in another thread, but the system is not synchronized at all
(original impl is not thread safe and worked exclusively in AWT thread - insync, batik, designer).
That seems to be a reason of the exception from the batik, code, it was called from another thread than AWT (thanks to
the changes in insync), while the access is not thread safe.
I am going to attach one suggested fix, that would help in this case, but it would not fix entire problem described above.
Comment 5 Peter Zavadsky 2008-09-25 18:32:13 UTC
Created attachment 70615 [details]
Suggested fix for this case (exception from batik), but not of the entire problem