5 Replies Latest reply on Feb 5, 2011 12:46 PM by thedm

    Nullpointerexception during deployment using admin console

    thedm

      Hello com,

       

      when I deploy a .war with the admin console, the console responses with this error:

       

      Failed to create Resource Todolist.war - cause: java.lang.NullPointerException:null

       

      The weird problem now is, if I wait some time (clicking around), the Web App is deployed and usable.

       

       

      I am quite confused..

       

      I use:

      JBoss AS 6.0 final

      Eclipse 3.6 with JavaEE Tools

       

      Best regards!

       

       

      LOG

       

      18:44:45,538 INFO  [org.jboss.profileservice.management.upload.remoting.DeployHa

      ndler] invoke, payload: {DeploymentTargetID=names=[vfs:///C:/jboss-6.0.0.Final/s

      erver/default/deploy/Todolist.war]}, parameter: start

      18:44:45,602 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] dep

      loy, ctxPath=/Todolist

      18:44:45,619 ERROR [org.rhq.plugins.jbossas5.deploy.LocalDeployer] Error deployi

      ng application for request [CreateResourceReport: ResourceType=[ResourceType[id=

      0, category=Service, name=Web Application (WAR), plugin=JBossAS5]], ResourceKey=

      [null]].: java.lang.NullPointerException

              at org.rhq.plugins.jbossas5.deploy.AbstractDeployer.deploy(AbstractDeplo

      yer.java:131) [jopr-jboss-as-5-plugin-3.0.0.jar:3.0.0]

              at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.crea

      teContentBasedResource(CreateChildResourceFacetDelegate.java:124) [jopr-jboss-as

      -5-plugin-3.0.0.jar:3.0.0]

              at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.crea

      teResource(CreateChildResourceFacetDelegate.java:56) [jopr-jboss-as-5-plugin-3.0

      .0.jar:3.0.0]

              at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(Ap

      plicationServerComponent.java:304) [jopr-jboss-as-5-plugin-3.0.0.jar:3.0.0]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_2

      3]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:39) [:1.6.0_23]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:25) [:1.6.0_23]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_23]

              at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread

      .call(ResourceContainer.java:525) [:3.0.0]

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

      1.6.0_23]

              at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_23]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec

      utor.java:886) [:1.6.0_23]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor

      .java:908) [:1.6.0_23]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]

       

      18:44:45,622 WARN  [org.rhq.core.pc.inventory.CreateResourceRunner] Throwable wa

      s found in creation report for request [1]: java.lang.NullPointerException - Ena

      ble DEBUG logging to see the stack trace.

      18:44:45,622 INFO  [org.rhq.core.pc.inventory.CreateResourceRunner] Sending crea

      te response to server: CreateResourceResponse[RequestId=1, Status=Failure]