I am seeing the following stack trace randomly while using NetBeans...
Since the root cause appears to be a bug in GF code, I figure someone
may want to look at it...
INFORMATIONAL *********** Exception occurred ************ at 3:20 PM on
Aug 23,
2006
java.lang.IllegalArgumentException
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTM
IDsMap(TargetServer.java:306)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTar
getModules(TargetServer.java:334)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetSer
ver.java:108)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetS
erver.java:445)
[catch] at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy
(Deployment.java:106)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.jav
a:240)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.jav
a:293)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:13
1)
==>
javax.enterprise.deploy.spi.exceptions.TargetException: Error getting
required m
odules
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModules(SunDeplo
ymentManager.java:380)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getAvailableModules
(SunDeploymentManager.java:315)
at
org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentManager.getAvailabl
eModules(SunDeploymentManager.java:466)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTM
IDsMap(TargetServer.java:298)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTar
getModules(TargetServer.java:334)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetSer
ver.java:108)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetS
erver.java:445)
[catch] at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy
(Deployment.java:106)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.jav
a:240)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.jav
a:293)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:13
1)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy25.queryPropsSet(Unknown Source)
at
com.sun.appserv.management.helper.Helper.propsQuery(Helper.java:62)
at
com.sun.appserv.management.helper.Helper.propsQuery(Helper.java:73)
at
com.sun.appserv.management.helper.DeployedItemHelper.queryStandaloneS
erverDeployedItemObjectNames(DeployedItemHelper.java:72)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModulesOnATarget
(SunDeploymentManager.java:399)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModules(SunDeplo
ymentManager.java:366)
... 19 more
Caused by: java.io.IOException: Server returned HTTP response code: 500
for URL:
http://localhost:4848/web1/remotejmx
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1149)
at
com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.receive(Se
rvletConnection.java:106)
at
com.sun.enterprise.admin.jmx.remote.comm.MBeanServerMessageConductor.
invoke(MBeanServerMessageConductor.java:62)
at
com.sun.enterprise.admin.jmx.remote.internal.RemoteMBeanServerConnect
ion.invoke(RemoteMBeanServerConnection.java:408)
at
com.sun.appserv.management.client.handler.AMXProxyHandler.invokeTarge
t(AMXProxyHandler.java:442)
at
com.sun.appserv.management.client.handler.AMXProxyHandler.invokeProxy
SetGetter(AMXProxyHandler.java:725)
at
com.sun.appserv.management.client.handler.AMXProxyHandler._invoke(AMX
ProxyHandler.java:1075)
at
com.sun.appserv.management.client.handler.AMXProxyHandler.invoke(AMXP
roxyHandler.java:1002)
... 25 more