1 Reply Latest reply on Sep 12, 2013 1:18 PM by Matt Rivet

    RHQ(JON 3.1.2) Failure When 'updateBackingContent'

    Matt Rivet Newbie

      My problem is very similar to https://bugzilla.redhat.com/show_bug.cgi?id=736792

       

      But its more related to updateBackContent.

       

      I am using RHQ(JON 3.1.2(fully patched)) to deploy ear and war files using the

      CLI(updateBackingContent) or Web interface (ContentTab -> New)

       

      I see this problem at times deploying:

       

      Error writing new application bits to temporary file - cause:

      javax.ejb.EJBException: [Warning] java.lang.RuntimeException: Resource

      [16998] cannot access package version

      [PackageDetailsKey[Name=archadmin.war,

      Version=[sha256=dfbde207cbfc999e4c6cc1e86595fb6fd41f47578ef75d8484cf49077a33b499]

      Arch=noarch Type=file]] - no content source exists to deliver it.

       

      I can see the war file in JON and see its version number listed.

       

      To resolve this problem I un-inventory the JBoss Server and reinventory it.

      After re inventorying the Server the war and ear files arnt displayed under

      content -> deployed(I dont see the names version date depoyed etc but still

      see them in the Application Tree). At this point I am unable to run

      deployments via the CLI because the the packageName and packageVersion

      dosen't exist. If I delete the ChildResource of the war and ear from JON

      and attempt to redeploy via the CLI here is the error I get from the RHQ

      Agents:

       

      2013-07-29 13:24:05,748 ERROR [ResourceContainer.invoker.nonDaemon-3]

      (rhq.plugins.jbossas5.deploy.ManagedComponentDeployer)- Error deploying

      application for request [CreateResourceReport:

      ResourceType=[{JBossAS5}Enterprise Application (EAR)], ResourceKey=[null]].

      java.lang.reflect.UndeclaredThrowableException

      at com.sun.proxy.$Proxy8.downloadPackageBitsForChildResource(Unknown Source)

      at

      org.rhq.core.pc.content.ContentManager.downloadPackageBitsForChildResource(ContentManager.java:259)

      at

      org.rhq.plugins.jbossas5.deploy.RemoteDownloader.prepareArchive(RemoteDownloader.java:89)

      at

      org.rhq.plugins.jbossas5.deploy.ManagedComponentDeployer.deploy(ManagedComponentDeployer.java:88)

      at

      org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createContentBasedResource(CreateChildResourceFacetDelegate.java:147)

      at

      org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createResource(CreateChildResourceFacetDelegate.java:79)

      at

      org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:307)

      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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:634)

      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      at

      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)

      at

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)

      at java.lang.Thread.run(Thread.java:662)

      Caused by: java.lang.InterruptedException

      at

      java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1024)

      at

      java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)

      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)

      at java.util.concurrent.FutureTask.get(FutureTask.java:91)

      at

      org.rhq.enterprise.communications.command.client.ClientCommandSenderTask.run(ClientCommandSenderTask.java:143)

      at

      org.rhq.enterprise.communications.command.client.ClientCommandSender.sendSynch(ClientCommandSender.java:647)

      at

      org.rhq.enterprise.communications.command.client.ClientRemotePojoFactory$RemotePojoProxyHandler.invoke(ClientRemotePojoFactory.java:407)

      ... 17 more

      2013-07-29 13:24:05,824 WARN [WorkerThread#1[158.60.185.45:50475]]

      (command.impl.stream.server.RemoteOutputStreamCommandService)-

      {RemoteOutputStreamCommandService.invoke-stream-failure}Output stream being

      accessed from a remote client encountered an exception - the method invoked

      was [write]. The command was: [Command: type=[remoteoutstream];

      cmd-in-response=[false]; config=[{}]; params=[{streamId=4,

      invocation=NameBasedInvocation[write]}]]. Cause:

      java.lang.reflect.InvocationTargetException

      2013-07-29 13:24:06,902 INFO [InventoryManager.availability-1]

      (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Starting: Mon Jul 29

      13:24:06 EDT 2013

      2013-07-29 13:24:07,841 INFO [InventoryManager.availability-1]

      (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Ended : Mon Jul 29

      13:24:07 EDT 2013 : Scan [startTime=1375118646902, endTime=1375118647841,

      runtime=939, isFull=false, isForced=false, numResources=535,

      numGetAvailabilityCalls=36, numScheduledRandomly=0, numPushedByInterval=39,

      numAvailabilityChanges=0, numDeferToParent=71]