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 150431 - New WSDL throws IllegalArgumentException
Summary: New WSDL throws IllegalArgumentException
Status: VERIFIED DUPLICATE of bug 148288
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 19:31 UTC by ggenipudi
Modified: 2008-11-12 00:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (10.20 KB, application/octet-stream)
2008-10-24 18:40 UTC, ggenipudi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ggenipudi 2008-10-16 19:31:12 UTC
steps to reproduce

1.  Create new project, prjABC.
2.  Create new wsdl document, wsdlABC, in prjABC.
3.  Open wsdlABC.  In the wsdl editor, right-click on the root node of wsdlABC, and choose the "Add -> Import WSDL" menu
item.
4.  The "Add Import" dialog should come up successfully.  So everything is working accordingly.  Hit cancel to exit the
dialog.

Here comes the buggy part:

5.  Delete prjABC.
6.  Create a new project with the same name, prjABC.
7.  Repeat steps 2-4 above.  The "Add Import" dialog will not come up this time. 

org.openide.filesystems.FileStateInvalidException: C:\Users\ggenipudi\Documents\NetBeansProjects\abc
    at org.openide.loaders.DataObject.find(DataObject.java:478)
Caused: org.openide.loaders.DataObjectNotFoundException: C:\Users\ggenipudi\Documents\NetBeansProjects\abc
    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.xml.wsdl.ui.wizard.WSDLWizardIterator.createPanels(WSDLWizardIterator.java:227)
    at org.netbeans.modules.xml.wsdl.ui.wizard.WSDLWizardIterator.initialize(WSDLWizardIterator.java:195)
    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 Shivanand Kini 2008-10-17 23:20:59 UTC
I was not able to reproduce this with the given steps.
Both time the add import dialog came up.
Comment 2 ggenipudi 2008-10-17 23:25:18 UTC
Tested again using NetBeans IDE 6.1 (Build 200810170103) and was able to reproduce the problem.
Comment 3 Shivanand Kini 2008-10-17 23:39:23 UTC
can you attach the new stacktrace?
Comment 4 Shivanand Kini 2008-10-21 22:25:30 UTC
Fixed:
soarelease
Changeset:http://hg.netbeans.org/soarelease/rev/3b7df0c5cc73

soa-dev:
Changeset: http://hg.netbeans.org/soa-dev/rev/2f95e2179219
Comment 5 ggenipudi 2008-10-24 01:17:46 UTC
Tested using 10/22 gfesb and still getting the same error.

org.openide.filesystems.FileStateInvalidException: C:\Users\ggenipudi\Documents\NetBeansProjects\prjABC
	at org.openide.loaders.DataObject.find(DataObject.java:478)
Caused: org.openide.loaders.DataObjectNotFoundException: C:\Users\ggenipudi\Documents\NetBeansProjects\prjABC
	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.xml.wsdl.ui.wizard.WSDLWizardIterator.createPanels(WSDLWizardIterator.java:227)
	at org.netbeans.modules.xml.wsdl.ui.wizard.WSDLWizardIterator.initialize(WSDLWizardIterator.java:195)
	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 6 ggenipudi 2008-10-24 18:39:57 UTC
Tested and verifed using NetBeans IDE 6.1 (Build 200810140114) + gfesb 10/24  and was able to do until step 6 and then
was able to create wsdlABC (I was not able to do this earlier builds) but when I do step 4 again after opening the WSDL
I see same error.

java.lang.IllegalStateException: Current thread has already started a transaction
	at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:346)
	at org.netbeans.modules.xml.xam.AbstractModel.startTransaction(AbstractModel.java:341)
	at org.netbeans.modules.xml.wsdl.ui.view.treeeditor.newtype.ImportWSDLNewType.create(ImportWSDLNewType.java:92)
	at org.openide.actions.NewAction.performAction(NewAction.java:100)
	at org.openide.actions.NewAction.access$100(NewAction.java:64)
	at org.openide.actions.NewAction$ActSubMenuModel.performActionAt(NewAction.java:245)
	at org.openide.actions.NewAction$DelegateAction.actionPerformed(NewAction.java:287)
	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:1220)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
	at java.awt.Component.processMouseEvent(Component.java:6041)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
	at java.awt.Component.processEvent(Component.java:5806)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	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:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
[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 7 ggenipudi 2008-10-24 18:40:49 UTC
Created attachment 72624 [details]
log file
Comment 8 Shivanand Kini 2008-10-28 23:53:09 UTC
I see a FileStateInvalidException again in add import case, and after that I see the transaction already started.

This seems to be a bug with bpel project delete. I tried the same with java project, and everything seems to work fine.
I can see it with xslt project also.

Also, its not limited to new wsdl wizard, it can also be reproduced with new bpel, new schema wizards too.

Reassigning to bpel project, please evaluate whether the fix needs to go into bpel.project. I tried to debug the bpel
project, but was lost.
I am thinking its something to do with the file cache has state data, even though files are deleted. And the
FileObject.isValid return false, even though the project is newly created again.

Comment 9 Shivanand Kini 2008-10-29 00:00:04 UTC
ccing Radek to see if there are any comments on this problem.

1. New Project, SOA > New Bpel project.
2. Delete a bpel project
3. Create a bpel or schema file

See exception as in first comment.

It happens when DataFolder.findFolder(project.getProjectDirectory()) is called. The
project.getProjectDirectory().isValid returns false, which ideally should not happen (and return true).
Comment 10 Vitaly Bychkov 2008-10-29 04:50:54 UTC
The source of problem could be the same as for 148288
Comment 11 Sergey Lunegov 2008-10-29 14:59:00 UTC

*** This issue has been marked as a duplicate of 148288 ***
Comment 12 ggenipudi 2008-11-12 00:29:38 UTC
this issue is tracked through 148288