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 141079 - FileStateInvalidException when creating a new IEP process second time
Summary: FileStateInvalidException when creating a new IEP process second time
Status: STARTED
Alias: None
Product: soa
Classification: Unclassified
Component: IEP editor (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Ritesh Adval
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-21 22:45 UTC by jlautz
Modified: 2008-10-18 00:36 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 jlautz 2008-07-21 22:45:26 UTC
Seen with Java CAPS 6 with NB 6.1 patches applied and IEP nbms for Build080720 (july 20) installed.

1. Create a new IEP Project.
2. Add a new IEP process to the project (rt-click on Process Files, choose Intelligent Event Process).
3. Delete the IEP project, deleting the underlying files (checkbox).
4. Create a new IEP Project in the same location with same name as step 1.
5. Add a new IEP process to the new project, as in step 2.

org.openide.filesystems.FileStateInvalidException: /Users/lautz/IEPRetesting/IepModule1
	at org.openide.loaders.DataObject.find(DataObject.java:478)
Caused: org.openide.loaders.DataObjectNotFoundException: /Users/lautz/IEPRetesting/IepModule1
	at org.openide.loaders.DataObject.find(DataObject.java:498)
	at org.openide.loaders.DataFolder.findFolder(DataFolder.java:515)
Caused: java.lang.IllegalArgumentException
	at org.openide.loaders.DataFolder.findFolder(DataFolder.java:517)
	at org.netbeans.modules.iep.editor.wizard.IEPWizardPanel2EmptyIEPFile.<init>(IEPWizardPanel2EmptyIEPFile.java:90)
	at org.netbeans.modules.iep.editor.wizard.IEPWizardIterator.initialize(IEPWizardIterator.java:170)
	at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
	at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
	at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:200)
	at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:218)
	at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:465)
	at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:381)
	at org.netbeans.modules.project.ui.actions.NewFile.doPerform(NewFile.java:153)
	at org.netbeans.modules.project.ui.actions.NewFile.access$200(NewFile.java:84)
	at org.netbeans.modules.project.ui.actions.NewFile$PopupListener.actionPerformed(NewFile.java:348)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5803)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
	at java.awt.Container.dispatchEventImpl(Container.java:2102)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	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 Ritesh Adval 2008-07-29 22:29:47 UTC
started
Comment 2 Ritesh Adval 2008-07-30 02:25:20 UTC
I am seeing the same begaviour on bpel project. It seems like a problem in netbeans master file system
not getting a new file object for the project directory but still refering to old delete project file object.

Need to debug more to see if it can be fixed in individual project.
Comment 3 Ritesh Adval 2008-09-24 21:12:01 UTC
Again tried this today. Its hard to find out why the project folder object is returning false for isValid()
there by throwing FileStateInvalidException. It is still refering to old deleted file object.
How to refresh it?
Comment 4 Ritesh Adval 2008-10-18 00:36:12 UTC
This is a bug in netbeans. same behaviour with bpel project, not a show stopper. Downgrading as per discussion
with Gabe.