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 164806 - Exception occurs when uninstall GF V3 Enabler
Summary: Exception occurs when uninstall GF V3 Enabler
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-08 23:26 UTC by davisn
Modified: 2009-05-11 02:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (36.56 KB, text/plain)
2009-05-08 23:26 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2009-05-08 23:26:21 UTC
IllegalStateException occurs when uninstall GlassFish V3 Enabler with having a project depending on it.

Steps To Reproduce:
1. Install NB 6.7 trunk (05/07/2009) build on winXP with jdk1.6.0_13
2. Start IDE -> install GlassFish V3 Enabler
3. Register GlassFish V3 server by downloading it
4. Create a web module project with having GlassFish V3 as runtime server
5. From the Plugins dialog, select to uninstall GlassFish V3 Enabler

BUG (Exception occurs) - Please see the error message below. This problem also happens on Mac OSX
java.lang.IllegalStateException: Common server instance not found for [E:\Documents and
Settings\Administrator\GlassFish_v3\glassfish]deployer:gfv3ee6:localhost:4848
	at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.getServerInstance(Hk2DeploymentManager.java:478)
	at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.getCommonServerSupport(Hk2DeploymentManager.java:491)
	at org.netbeans.modules.glassfish.javaee.AntDeploymentProviderImpl.<init>(AntDeploymentProviderImpl.java:63)
	at org.netbeans.modules.glassfish.javaee.Hk2OptionalFactory.getAntDeploymentProvider(Hk2OptionalFactory.java:168)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getAntDeploymentProvider(ServerInstance.java:612)
	at
org.netbeans.modules.j2ee.deployment.devmodules.api.AntDeploymentHelper.writeDeploymentScript(AntDeploymentHelper.java:111)
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.setNewServerInstanceValue(WebProjectProperties.java:934)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.access$500(WebProjectProperties.java:120)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$5.run(WebProjectProperties.java:825)
	at org.openide.util.Mutex.postRequest(Mutex.java:1251)
	at org.openide.util.Mutex.postWriteRequest(Mutex.java:582)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.setServerInstance(WebProjectProperties.java:819)
	at org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:888)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
	at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:193)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1059)
	at org.netbeans.modules.project.ui.OpenProjectList.access$800(OpenProjectList.java:122)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:401)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:309)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:576)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1013)
Comment 1 davisn 2009-05-08 23:26:45 UTC
Created attachment 81839 [details]
messages.log
Comment 2 Vince Kraemer 2009-05-09 00:27:01 UTC
yup. good catch.
Comment 3 Vince Kraemer 2009-05-09 00:43:54 UTC
fix is in web-main
Comment 4 Quality Engineering 2009-05-09 19:03:55 UTC
Integrated into 'main-golden', will be available in build *200905091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/51a00c8a61fe
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #164806: illegal state... tested the presence of the wrong directory...
Comment 5 Vince Kraemer 2009-05-11 02:26:42 UTC
in web-main