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 74118 - Serializing MultiView causes error for null panes
Summary: Serializing MultiView causes error for null panes
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 23:25 UTC by kitfox
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (160.37 KB, text/plain)
2006-03-28 23:50 UTC, kitfox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2006-03-28 23:25:14 UTC
I've created a MultiView with two MultiViewDescriptions.  One wraps a component
that extends JavaEditor.JavaEditorComponent, while the other wraps a simple
TopComponent of my own design.  My MultiView presents a DataObject to the user,
and will appear in the Editor mode when a user execuates an Open action on my
DataObject's node.

When my MultiView first opens, it presents the view based on the
JavaEditor.JavaEditorComponent.  While buttons are present in the tool bar exist
which will let me navigate to my other TopComponent, I choose not to change the
view.  Thus the createElement() of my other Description is not called.

I then close my NetBeans session, and my MultiView serializes to storage. 
Unfortunately, this causes the below error to occur.  This error does not occur
if at some time the application was active I had switched to my second view and
createElement() had been called.  I presume there is some sort of error
serializing a MultiView if one of it's components has not been created during
it's lifetime.



[org.netbeans.javacore] Rebooting storage for
file:/C:/Documents%20and%20Settings/kitfox/JavaApplication1/src/ because of a
fatal error during storage mount.
[org.netbeans.javacore] INFORMATIONAL *********** Exception occurred
************ at 6:01 PM on Mar 28, 2006
java.lang.IllegalStateException
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaPackageImpl.addRealPackage(JavaPackageImpl.java:124)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaPackageClassImpl.addRealPackage(JavaPackageClassImpl.java:161)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaPackageClassImpl.addRealPackage(JavaPackageClassImpl.java:156)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaPackageClassImpl.addAllRealPackages(JavaPackageClassImpl.java:166)
[catch] at org.netbeans.modules.javacore.JMManager.resolveCPRoot(JMManager.java:962)
        at
org.netbeans.modules.javacore.JMManager.resolveJavaExtent(JMManager.java:477)
        at org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:574)
        at org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:530)
        at org.netbeans.modules.javacore.JMManager.getResource(JMManager.java:505)
        at
org.netbeans.modules.profiler.utils.MDRUtils.hasMainMethod(MDRUtils.java:433)
        at
org.netbeans.modules.profiler.j2se.J2SEProjectTypeProfiler.isFileObjectSupported(J2SEProjectTypeProfiler.java:92)
        at
org.netbeans.modules.profiler.actions.AntActions$1.enable(AntActions.java:91)
        at
org.netbeans.modules.profiler.actions.FileSensitiveAction.refresh(FileSensitiveAction.java:40)
        at
org.netbeans.modules.profiler.actions.ProjectSensitiveAction.<init>(ProjectSensitiveAction.java:62)
        at
org.netbeans.modules.profiler.actions.FileSensitiveAction.<init>(FileSensitiveAction.java:28)
        at
org.netbeans.modules.profiler.actions.FileSensitiveAction.fileSensitiveAction(FileSensitiveAction.java:57)
        at
org.netbeans.modules.profiler.actions.AntActions.profileSingle(AntActions.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:589)
        at
org.netbeans.core.startup.layers.BinaryFS$AttrImpl.methodValue(BinaryFS.java:502)
        at
org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:414)
        at
org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:318)
        at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:759)
        at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:719)
        at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:755)
        at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:719)
        at
org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:644)
        at
org.openide.loaders.InstanceDataObject$Ser.getClassName(InstanceDataObject.java:1136)
        at
org.openide.loaders.InstanceDataObject$Ser.instanceName(InstanceDataObject.java:1122)
        at
org.openide.loaders.InstanceSupport.instanceClass(InstanceSupport.java:125)
        at
org.openide.loaders.InstanceDataObject$Ser.instanceClass(InstanceDataObject.java:1170)
        at
org.openide.loaders.InstanceDataObject.instanceClass(InstanceDataObject.java:711)
        at
org.openide.awt.MenuBar$LazyMenu$MenuFolder.acceptCookie(MenuBar.java:584)
        at
org.openide.loaders.FolderInstance.acceptDataObject(FolderInstance.java:363)
        at
org.openide.awt.MenuBar$LazyMenu$MenuFolder.acceptDataObject(MenuBar.java:565)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:650)
        at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:622)
        at org.openide.util.Task.run(Task.java:216)
        at org.openide.awt.AWTTask.run(AWTTask.java:29)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
        at java.awt.Dialog$1.run(Dialog.java:1032)
        at java.awt.Dialog$2.run(Dialog.java:1078)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1076)
        at java.awt.Component.show(Component.java:1406)
        at java.awt.Component.setVisible(Component.java:1359)
        at java.awt.Window.setVisible(Window.java:695)
        at java.awt.Dialog.setVisible(Dialog.java:972)
        at
org.netbeans.modules.javacore.ShutDownProgressListener.init(ShutDownProgressListener.java:36)
        at
org.netbeans.modules.mdr.MDRManagerImpl.fireProgressListenerInitialize(MDRManagerImpl.java:147)
        at
org.netbeans.modules.mdr.MDRManagerImpl.preShutdownAll(MDRManagerImpl.java:239)
        at org.netbeans.modules.mdr.MdrModule.close(MdrModule.java:44)
        at org.netbeans.core.startup.NbInstaller.close(NbInstaller.java:628)
        at org.netbeans.ModuleManager.shutDown(ModuleManager.java:1564)
        at org.netbeans.core.startup.ModuleSystem.shutDown(ModuleSystem.java:257)
        at org.netbeans.core.NbTopManager.doExit(NbTopManager.java:369)
        at org.netbeans.core.NbTopManager.exit(NbTopManager.java:325)
        at
org.netbeans.core.NbTopManager$NbLifecycleManager.exit(NbTopManager.java:424)
        at
org.netbeans.core.windows.view.ui.MainWindow$4.windowClosing(MainWindow.java:290)
        at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:291)
        at java.awt.Window.processWindowEvent(Window.java:1688)
        at javax.swing.JFrame.processWindowEvent(JFrame.java:274)
        at java.awt.Window.processEvent(Window.java:1646)
        at java.awt.Component.dispatchEventImpl(Component.java:4365)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Window.dispatchEventImpl(Window.java:2300)
        at java.awt.Component.dispatchEvent(Component.java:4195)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 kitfox 2006-03-28 23:49:08 UTC
Just to add to the last report - first, I delete /var/cache and /build to make
sure I'm starting clean.  I then run NetBeans, open a window  with my MultiView,
and then close NetBeans.  NetBeans hangs during shutdown, so I have to manually
kill the process.  I then run it again and get the attached error log.  However,
if I ever switch the view and so create an instance of my other view component,
shutdown is error free.  This is even true in subsequent sessions where I do not
explicity switch to my view, but have created an instance of it in a previous
session.
Comment 2 kitfox 2006-03-28 23:50:12 UTC
Created attachment 29460 [details]
log file
Comment 3 Jan Becicka 2006-10-26 16:28:03 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 4 Quality Engineering 2007-09-20 10:52:13 UTC
Reorganization of java component