Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 155659 - InstanceCreationException while opening project
InstanceCreationException while opening project
Status: RESOLVED WORKSFORME
Product: ide
Classification: Unclassified
Component: Features On Demand
6.x
All All
: P2 (vote)
: 6.x
Assigned To: Jaroslav Tulach
issues@performance
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-17 14:21 UTC by Rashid Urusov
Modified: 2009-06-21 13:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rashid Urusov 2008-12-17 14:21:30 UTC
Product Version: NetBeans IDE Dev (Build 200812150750)
Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)
Userdir: C:\Documents and Settings\user\.netbeans\dev

Steps to reproduce:
- Create AnagramGame project
- Open project using Glassfish V2 for running (I used OrderSystem from profiler test specification)

I've got following exception and empty servers node in services tab:

org.netbeans.modules.j2ee.deployment.plugins.api.InstanceCreationException: Failed to create instance GlassFish V3.  See
the server log file for details.
	at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:367)
	at
org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.createInstancePropertiesWithoutUI(InstanceProperties.java:260)
	at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:107)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:155)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.<init>(GlassfishInstance.java:123)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.create(GlassfishInstance.java:187)
	at
org.netbeans.modules.glassfish.common.GlassfishInstanceProvider.registerDefaultInstance(GlassfishInstanceProvider.java:422)
	at org.netbeans.modules.glassfish.common.GlassfishInstanceProvider.<init>(GlassfishInstanceProvider.java:86)
	at org.netbeans.modules.glassfish.common.GlassfishInstanceProvider.getDefault(GlassfishInstanceProvider.java:99)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:558)
	at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:490)
	at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:375)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:829)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:789)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:825)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:789)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:722)
	at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1256)
	at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:749)
	at org.openide.loaders.FolderLookup$ICItem.getInstance(FolderLookup.java:584)
	at org.openide.util.lookup.AbstractLookup$R.allInstances(AbstractLookup.java:974)
	at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:548)
	at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:489)
	at org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:618)
	at org.openide.util.lookup.ProxyLookup$WeakResult.collectFires(ProxyLookup.java:728)
	at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:541)
	at org.openide.util.lookup.AbstractLookup$R.collectFires(AbstractLookup.java:955)
	at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:509)
	at org.openide.util.lookup.AbstractLookup$1Notify.run(AbstractLookup.java:308)
	at org.openide.loaders.FolderLookup$Dispatch.run(FolderLookup.java:304)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Comment 1 Jaroslav Tulach 2008-12-17 14:41:26 UTC
Can I ask for exact steps how to reproduce your problem? As far as I know the AnagramGame is JavaSE project with no 
connection to Glassfish. I am not sure where to get the OrderSystem, or where to find the profiler test spec.

Anyway this issue seems to have similar cause as issue 154713. If you give me exact steps, I'll try to reproduce or 
let's wait for a build from http://deadlock.netbeans.org/hudson/job/ergonomics/ that will contain revision 
54449729a0aa and verify yourself.
Comment 2 Rashid Urusov 2008-12-17 15:00:46 UTC
This is location for OrderSystem:
http://wiki.netbeans.org/attach/ProfilerTestSpecification/order_system.zip

Some notes:
If I open OrderSystem with no previously opened project - no problems.
And when I open OrderSystem after creation or profiling AnagramGame I got exception.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo