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 115536 - java.lang.IllegalArgumentException: Project StockQuoteClient is not open and cannot be set as main.
Summary: java.lang.IllegalArgumentException: Project StockQuoteClient is not open and ...
Status: VERIFIED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Identity (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@serverplugins
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 11:52 UTC by Petr Chytil
Modified: 2007-10-01 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 3740


Attachments
stacktrace (856 bytes, text/plain)
2007-09-14 11:52 UTC, Petr Chytil
Details
stacktrace (both exceptions) (3.41 KB, text/plain)
2007-09-27 13:11 UTC, Petr Chytil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Chytil 2007-09-14 11:52:31 UTC
Build: NetBeans IDE Dev (Build 200709140000)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-b02
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
I've tried to create first sample project from welcome screen > identity blueprints.
Comment 1 Petr Chytil 2007-09-14 11:52:35 UTC
Created attachment 48827 [details]
stacktrace
Comment 2 Milan Kubec 2007-09-14 12:42:32 UTC
What packs do you have installed (or what version of IDE is it? - Web & Java EE, Mobility, ..., All)?
Do you use multicore machine?
Comment 3 Milan Kubec 2007-09-14 12:50:59 UTC
It's duplicate of issue #103644. Please add comments there. Also if you are able to reproduce the issue turn on logging
as described in the #103644 issue and attach the log there. Thanks.

*** This issue has been marked as a duplicate of 103644 ***
Comment 4 Milos Kleint 2007-09-14 13:29:47 UTC
the actual stacktrace here is this:
java.lang.AssertionError: Missing file null
	at org.netbeans.api.project.ant.AntBuildExtender.readProjectMetadata(AntBuildExtender.java:212)
	at org.netbeans.api.project.ant.AntBuildExtender.getExtensions(AntBuildExtender.java:149)
	at org.netbeans.api.project.ant.AntBuildExtenderAccessorImpl.getExtensions(AntBuildExtenderAccessorImpl.java:50)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.applyBuildExtensions(GeneratedFilesHelper.java:417)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.access$400(GeneratedFilesHelper.java:74)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1$1.run(GeneratedFilesHelper.java:288)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:98)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:477)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1.run(GeneratedFilesHelper.java:257)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$1.run(GeneratedFilesHelper.java:251)
	at org.openide.util.Mutex.writeAccess(Mutex.java:357)
	at
org.netbeans.spi.project.support.ant.GeneratedFilesHelper.generateBuildScriptFromStylesheet(GeneratedFilesHelper.java:250)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$3.run(GeneratedFilesHelper.java:757)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper$3.run(GeneratedFilesHelper.java:754)
	at org.openide.util.Mutex.writeAccess(Mutex.java:357)
	at org.netbeans.spi.project.support.ant.GeneratedFilesHelper.refreshBuildScript(GeneratedFilesHelper.java:753)
	at org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:732)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:59)
	at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:171)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:59)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:650)
	at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:695)
	at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:339)
	at org.netbeans.modules.project.ui.OpenProjectList.access$100(OpenProjectList.java:88)
	at org.netbeans.modules.project.ui.OpenProjectList$3.run(OpenProjectList.java:239)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 5 Petr Chytil 2007-09-14 13:40:11 UTC
Sorry for incomplete stacktrace in first attachment. I trusted the Review and report button too much.
Comment 6 Milan Kubec 2007-09-14 14:16:04 UTC
I'm bit confused now. You filed this issue with one stack trace and then added another one which different. Which one is
actually valid?
Comment 7 Milan Kubec 2007-09-17 12:37:58 UTC
This issue is valid and the original stack trace is result of the exception AssertionError. Setting priority to P2
because it prevents to create a sample project on Welcome screen. And reassigning to Milos for ealuation, although I
think the problem is in WebProject.
Comment 8 Milan Kubec 2007-09-17 12:39:25 UTC
Milosi, please take a look at it, thanks.
Comment 9 Milos Kleint 2007-09-18 08:31:13 UTC
improved assert message.


/cvs/ant/project/src/org/netbeans/api/project/ant/AntBuildExtender.java,v  <--  AntBuildExtender.java
new revision: 1.5; previous revision: 1.4


however I cannot reproduce in the current (custom built) trunk. The possible source of problem was either fixed on the
side of the module that plugs into the ant script or there are some problems with module dependencies of the module that
contains this sample. It might not require installation of the module that provides this ant extension.

closing as fixed, please reopen if you encounter the issue in new builds, attach the new assert message then.
Comment 10 Petr Chytil 2007-09-27 13:10:46 UTC
Still reproducible in (full ide):

Product Version: NetBeans IDE Dev (Build 200709250000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) 
Userdir: /home/petr/.netbeans/dev

I get java.lang.AssertionError followed by java.lang.IllegalArgumentException. 
Comment 11 Petr Chytil 2007-09-27 13:11:29 UTC
Created attachment 49670 [details]
stacktrace (both exceptions)
Comment 12 Milos Kleint 2007-09-27 13:21:43 UTC
jaxws in the assertion -> webservices.
Comment 13 Lukas Jungmann 2007-09-27 13:32:26 UTC
=> identity sample...
Comment 14 Jaroslav Pospisil 2007-09-27 15:21:43 UTC
This issue was already fixed. I'll try latest build,if it's not regression.
Comment 15 Jaroslav Pospisil 2007-09-27 16:23:06 UTC
Pchytil, use please recent build or Beta1, this issue is already fixed.Closing as worksforme.
Comment 16 Petr Chytil 2007-10-01 16:00:47 UTC
Ok, it's fixed, verified in:
Product Version: NetBeans IDE Dev (Build 200710010000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) 
Userdir: /home/petr/.netbeans/dev