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.
Summary: | [java-mdr] Unmounting a filesystem is not safe | ||
---|---|---|---|
Product: | java | Reporter: | Martin Matula <mmatula> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 35769 | ||
Attachments: | NPE stacktrace |
Description
Martin Matula
2003-05-15 18:39:35 UTC
Created attachment 10320 [details]
NPE stacktrace
I get a different stacktrace when unmounting a filesystem. I see five apparently identical copies. java.lang.NullPointerException at org.netbeans.mdr.handlers.InstanceHandler._handleGetR(InstanceHandler.java:103) at org.netbeans.jmi.java.source.JavaSource$Impl.getJavaPackage(Unknown Source) at org.netbeans.modules.java.bridge.SourceElementImpl.getPackage(SourceElementImpl.java:79) at org.netbeans.modules.java.bridge.SrcElementImpl.getPackage(SrcElementImpl.java:162) at org.openide.src.SourceElement.getPackage(SourceElement.java:100) at org.netbeans.modules.java.JavaNode.resolveIcons(JavaNode.java:552) at org.netbeans.modules.java.JavaNode$StateUpdater.actionPerformed(JavaNode.java:888) at javax.swing.Timer.fireActionPerformed(Timer.java:271) [catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) IMO it is caused by the asynchronous updating JavaNode. JavaNode starts updating its state asnynchronously. Unfortunately when bridge delegates the work to the MDR, the storage is already umounted and the proper MOFIDs (or anything else) could not be found. seems that with the new insfrastructure this is no longer a problem |