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 184302

Summary: [69cat] org.openide.filesystems.FileStateInvalidException: Loaders/content/unknown/Factories
Product: platform Reporter: Michel Graciano <hmichel>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adben, jtulach, marfous
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 163597
Attachments: stacktrace
messages log with the exception from the d&d files

Description Michel Graciano 2010-04-15 18:37:08 UTC
Build: NetBeans IDE Dev (Build 100415-ceab3ad4647a)
VM: Java HotSpot(TM) Client VM, 16.2-b04, Java(TM) SE Runtime Environment, 1.6.0_19-b04
OS: Linux

User Comments:
hmichel: Install/Reload in Development Platform called




Stacktrace: 
org.openide.filesystems.FileStateInvalidException: MultiFileObject@2bbafe[Loaders/content/unknown/Factories] parent: MultiFileObject@12c7887[Loaders/content/unknown] validFlag: false validRoot: MultiFileObject@f1399[root of SystemFileSystem[org.netbeans.core.startup.layers.SystemFileSystem@1b24442]] isValidRoot: true
   at org.openide.loaders.DataObject.find(DataObject.java:496)
   at org.openide.loaders.DataFolder.findFolder(DataFolder.java:550)
   at org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects.delegates(RecognizeInstanceObjects.java:113)
   at org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects.ch(RecognizeInstanceObjects.java:140)
   at org.netbeans.modules.settings.RecognizeInstanceObjects$OverObjects.fileDeleted(RecognizeInstanceObjects.java:130)
   at sun.reflect.GeneratedMethodAccessor78.invoke(GeneratedMethodAccessor78.java:0)
Comment 1 Michel Graciano 2010-04-15 18:37:17 UTC
Created attachment 97474 [details]
stacktrace
Comment 2 Martin Fousek 2010-12-02 08:38:09 UTC
I got perhaps the same exception/issue. What I'm remembering from my steps:
1, I have project under SVN SCM
2, In free-form project:
   - I moved one file WSMTest.java from package B into package A by using d&d and confirmed refractoring
   - Then I worked on the moved class
   - After few minutes I wanted to move from B to A also another file SOATest.java
   - I dragged this file from B and whole IDE crashed by dropping into A (the same package as the WSMTest.java before)

-> Strange on that is that in the messages.log I found out that the exception was caused by WSMTest.java file, but it wasn't the file which I was moving lastly.
Comment 3 Martin Fousek 2010-12-02 08:39:15 UTC
Created attachment 103521 [details]
messages log with the exception from the d&d files
Comment 4 Jaroslav Tulach 2010-12-06 10:38:08 UTC
When a module was being turned on
Comment 5 Jaroslav Tulach 2010-12-06 10:38:42 UTC
... the content of system filesystem seems inconsistent: org.netbeans.core.startup.layers.ModuleLayeredFileSystem.setURLs
Comment 6 Jaroslav Tulach 2011-06-30 07:41:49 UTC
Michel's report is about SystemFileSystem. Martin, is not. They should not be mixed...

As far as I can tell the original problem has the same symptoms like bug 103159. The FS events are delivered from inside of unload and at that moment the system may not be in sync.

*** This bug has been marked as a duplicate of bug 103159 ***