Bug 1133985

Summary: Deploying an application on EAP5 results to NPE
Product: [JBoss] JBoss Operations Network Reporter: Jakub Cechacek <jcechace>
Component: Plugin -- JBoss EAP 5Assignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Kondkar <skondkar>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: jkudrnac, jstefl, rhatlapa, skondkar, tsegismo
Target Milestone: ER02   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:02:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
example war deployment none

Description Jakub Cechacek 2014-08-26 15:13:45 UTC
Attempt to deploy application of any type (ejb2/ejb3/war) on EAP5 results in NPE exception [1] in agent's log. The application is not deployed only uploaded into $server-dir/tmp directory.

[1]
ERROR [ResourceContainer.invoker.nonDaemon-11] (rhq.plugins.jbossas5.deploy.ManagedComponentDeployer)- Error deploying application for request [CreateResourceReport: ResourceType=[Reso    urceType[id=0, name=Web Application (WAR), plugin=JBossAS5, category=Service]], ResourceKey=[null]].
832 java.lang.NullPointerException
833         at org.rhq.plugins.jbossas5.deploy.RemoteDownloader.prepareArchive(RemoteDownloader.java:89)
834         at org.rhq.plugins.jbossas5.deploy.ManagedComponentDeployer.deploy(ManagedComponentDeployer.java:88)
835         at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createContentBasedResource(CreateChildResourceFacetDelegate.java:147)
836         at org.rhq.plugins.jbossas5.helper.CreateChildResourceFacetDelegate.createResource(CreateChildResourceFacetDelegate.java:79)
837         at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:281)
838         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
839         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
840         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
841         at java.lang.reflect.Method.invoke(Method.java:606)
842         at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:759)
843         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
844         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
845         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
846         at java.lang.Thread.run(Thread.java:744)

Comment 1 Jakub Cechacek 2014-08-26 15:14:49 UTC
Created attachment 931028 [details]
example war deployment

Comment 2 Thomas Segismont 2014-08-29 12:43:53 UTC
It looks like a possible consequence of Bug 1125343 - All content-related workflows broken on Agent

Setting to MODIFIED as it should be fixed in ER02

Comment 3 Simeon Pinder 2014-09-03 20:31:24 UTC
Moving to ON_QA as available for test with the following brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=381194

Comment 4 Sunil Kondkar 2014-09-10 10:42:41 UTC
Verified on version : 3.3.0.ER02 Build Number :4fbb183:7da54e2

Verified that the war file is deployed to EAP5 successfully without NPE.