Deployment of application via JON reports failure due to timeout condition
Issue
- Partially deployed application (EAR/WAR) not removed on a failed deployment
- Applications sized 50MB or so report failure due to time out exception
- Application deployment succeeds but an error is reported stating that it failed due to a timeout.
- Deployment of EAR or WAR returns a status of FAILED: Timeout occurred waiting for the operations to complete
-
Deployment status shows failed with the following exception:
org.rhq.core.pc.inventory.TimeoutException: Call to [org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource()] with args [[CreateResourceReport: ResourceType=[ResourceType[id=0, name=Web Application (WAR), plugin=JBossAS5, category=Service]], ResourceKey=[null]]] timed out. Invocation thread will be interrupted at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:492) at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:461) at $Proxy84.createResource(Unknown Source) at org.rhq.core.pc.inventory.CreateResourceRunner.call(CreateResourceRunner.java:114) at org.rhq.core.pc.inventory.CreateResourceRunner.run(CreateResourceRunner.java:95) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) -
Deployment successful but agent log contains the following error:
ERROR [ResourceContainer.invoker.nonDaemon-2] (rhq.plugins.jbossas5.deploy.ManagedComponentDeployer)- Error deploying application for request [CreateResourceReport: ResourceType=[ResourceType[id=0, name=Web Application (WAR), plugin=JBossAS5, category=Service]], ResourceKey=[null]]. java.lang.reflect.UndeclaredThrowableException at $Proxy61.getDeployment(Unknown Source) at org.rhq.plugins.jbossas5.deploy.ManagedComponentDeployer.deploy(ManagedComponentDeployer.java:183) at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createContentBasedResource(CreateChildResourceFacetDelegate.java:129) at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createResource(CreateChildResourceFacetDelegate.java:61) at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:306) ... Caused by: java.lang.RuntimeException: java.lang.InterruptedException at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:823) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:169) at org.jboss.remoting.Client.invoke(Client.java:2070) ... Caused by: java.lang.InterruptedException at EDU.oswego.cs.dl.util.concurrent.Semaphore.attempt(Semaphore.java:120) at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1124) ... -
Is there a configuration that can be changed in JON which changes the time before JON declares a failure?
- JON is displaying a failure before the application is finished deploying
Environment
- Red Hat JBoss Operations Network (ON) 2.3, 2.3.1, 2.4, 2.4.1, 2.4.2, 3.0
- One or more:
- JBoss Application Server (AS) server resource in JON Inventory
- Tomcat Server server resource in JON Inventory
- Deployment of application service resource (WAR, EAR, EJB, etc)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.