I am using GF V1 U1 Build 11.
I have got an intermittent problem when I use JSR-88 APIs to do
deployment on multi-processor boxes.
Here is one of the stack traces that I have seen...
javax.enterprise.deploy.spi.exceptions.TargetException: Error getting
required modules
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModules(SunDeploymentManager.java:380)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getAvailableModules(SunDeploymentManager.java:315)
at
org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentManager.getAvailableModules(SunDeploymentManager.java:506)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.getAvailableTMIDsMap(TargetServer.java:298)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.processLastTargetModules(TargetServer.java:334)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.init(TargetServer.java:108)
at
org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.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(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy14.waitAMXReady(Unknown Source)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getRootProxy(SunDeploymentManager.java:1627)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModulesOnATarget(SunDeploymentManager.java:397)
at
com.sun.enterprise.deployapi.SunDeploymentManager.getModules(SunDeploymentManager.java:366)
... 19 more
Caused by: java.io.IOException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2232)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2698)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:750)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
at
com.sun.enterprise.admin.jmx.remote.comm.ServletConnection.receive(ServletConnection.java:107)
at
com.sun.enterprise.admin.jmx.remote.comm.MBeanServerMessageConductor.invoke(MBeanServerMessageConductor.java:62)
at
com.sun.enterprise.admin.jmx.remote.internal.RemoteMBeanServerConnection.invoke(RemoteMBeanServerConnection.java:408)
at
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
at
com.sun.appserv.management.util.jmx.MBeanProxyHandler.invoke(MBeanProxyHandler.java:647)
at
com.sun.appserv.management.client.handler.AMXProxyHandler._invoke(AMXProxyHandler.java:1091)
at
com.sun.appserv.management.client.handler.AMXProxyHandler.invoke(AMXProxyHandler.java:1002)
... 23 more
Are the JSR-88 apis supposed to be safe for use in real multithreaded
conditions?
Thanks,
vbk