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 17113 - removeFileSystem causes exception in getNodeDelegate
Summary: removeFileSystem causes exception in getNodeDelegate
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-29 23:35 UTC by Walter Loew
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Loew 2001-10-29 23:35:37 UTC
Calling org.openide.filesystems.Repository.removeFileSystem causes an exception 
in getNodeDelegate.

A printStackTrace call placed in getNodeDelegate gave the trace below.

The exception was discovered in FFJ Orion development, calling removeFileSystem 
from a beanshell script.

The exception text was:

//Error:// Uncaught exception: java.lang.IllegalStateException:  The data 
object ejb_1/stub/Session1EJB.java is invalid; you may not call getNodeDelegate 
on it; if this is thrown please create an issue in openide/loaders assigned to 
jglick@netbeans.org.

The trace:

java.lang.Throwable
	at org.openide.loaders.DataObject.getNodeDelegate(DataObject.java:240)
	at org.netbeans.modules.java.codesync.ModelEventAdapter.createSourceNode
(ModelEventAdapter.java:138)
	at org.netbeans.modules.java.codesync.ModelEventAdapter.getSourceNode
(ModelEventAdapter.java:133)
	at org.netbeans.modules.java.codesync.ModelEventAdapter.changesCommited
(ModelEventAdapter.java:285)
	at org.netbeans.modules.java.model.DefaultLangModel.fireCommitEvents
(DefaultLangModel.java:429)
	at org.netbeans.modules.java.model.DefaultLangModel.firePostCommitEvents
(DefaultLangModel.java:398)
	at org.netbeans.modules.java.model.DefaultLangModel.processOutputQueue
(DefaultLangModel.java:384)
	at org.netbeans.modules.java.model.DefaultLangModel.releaseWriteLock
(DefaultLangModel.java:350)
	at org.netbeans.modules.java.model.DefaultLangModel.invalidateModel
(DefaultLangModel.java:707)
	at org.netbeans.modules.java.parser.ParsingSupport.invalidate
(ParsingSupport.java:264)
	at org.netbeans.modules.java.JavaParserGlue.dissolve
(JavaParserGlue.java:437)
	at org.netbeans.modules.java.JavaParserGlue.access$500
(JavaParserGlue.java:65)
	at 
org.netbeans.modules.java.JavaParserGlue$SiblingListener.dataObjectPropertyChang
e(JavaParserGlue.java:534)
	at 
org.netbeans.modules.java.JavaParserGlue$SiblingListener.propertyChange
(JavaParserGlue.java:456)
	at org.openide.loaders.DataObject.firePropertyChange
(DataObject.java:778)
	at org.openide.loaders.DataObject.dispose(DataObject.java:168)
	at org.openide.loaders.DataObject.setValid(DataObject.java:183)
	at org.netbeans.modules.java.JavaDataObject.setValid
(JavaDataObject.java:277)
	at org.openide.loaders.DataObjectPool$Validator.removeInvalidObject
(DataObjectPool.java:867)
	at org.openide.loaders.DataObjectPool.removeInvalidObjects
(DataObjectPool.java:418)
	at org.openide.loaders.DataObjectPool.fileSystemRemoved
(DataObjectPool.java:435)
	at org.openide.filesystems.Repository.fireFileSystem
(Repository.java:469)
	at org.openide.filesystems.Repository.removeFileSystem
(Repository.java:210)
	at java.lang.reflect.Method.invoke(Native Method)
	at bsh.Reflect.invokeMethod(Reflect.java:317)
	at bsh.Reflect.invokeObjectMethod(Reflect.java:146)
	at bsh.BSHPrimarySuffix.doName(BSHPrimarySuffix.java:115)
	at bsh.BSHPrimarySuffix.doSuffix(BSHPrimarySuffix.java:79)
	at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:35)
	at bsh.BSHBlock.eval(BSHBlock.java:29)
	at bsh.BSHTryStatement.eval(BSHTryStatement.java:56)
	at bsh.Interpreter.run(Interpreter.java:370)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.netbeans.commandline.FjscriptMain.runInterpreter
(FjscriptMain.java:585)
	at org.netbeans.commandline.FjscriptMain$1.run(FjscriptMain.java:485)
	at org.netbeans.core.windows.RegistryImpl.attachExplorer
(RegistryImpl.java:150)
	at org.netbeans.core.windows.WindowManagerImpl.attachExplorer
(WindowManagerImpl.java:518)
	at org.netbeans.core.NbTopManager.attachExplorer(NbTopManager.java:359)
	at org.netbeans.commandline.FjscriptMain.main(FjscriptMain.java:478)
	at org.netbeans.commandline.FjscriptWrapper.run(FjscriptWrapper.java:96)
	at tonga.block.HarnessThread.run(tonga/block/HarnessThread.java:231)
Comment 1 Svata Dedic 2001-10-30 07:22:13 UTC
Moving to java module
Comment 2 Svata Dedic 2001-11-07 18:46:07 UTC
Fixed in trunk,
/cvs/java/src/org/netbeans/modules/java/JavaParserGlue.java,v  <-- 
JavaParserGlue.java
new revision: 1.26; previous revision: 1.25
Comment 3 Jan Becicka 2002-01-09 12:34:52 UTC
V
Comment 4 Quality Engineering 2003-07-01 13:15:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.