Bug 1068630

Summary: [eap6] Creation of DomainDeployment resource fails because of NPE
Product: [Other] RHQ Project Reporter: Filip Brychta <fbrychta>
Component: Content, PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.10, 4.11, 4.12CC: hrupp, lkrejci, lzoubek, tsegismo
Target Milestone: ---Keywords: Reopened
Target Release: RHQ 4.13   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-31 15:14:35 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
test war none

Description Filip Brychta 2014-02-21 14:37:07 UTC
Created attachment 866045 [details]
test war

Description of problem:
This issue was discovered by automation and I'm not able to reproduce it locally, but system stays in broken state when automation finishes. So I can provide machine in this broken state. 

Version-Release number of selected component (if applicable):
Version :	
4.10.0-SNAPSHOT
Build Number :	
bd937f0

How reproducible:
Always by automation

Steps to Reproduce:
1. go to EAP Domain Controller resource->Inventory->Child Resources
2. Create Child->DomainDeployment
3. use attached war
4. go to Child History

Actual results:
Create child failed with "An error occured while the agent was uploading the content for [PackageDetailsKey[Name=hello1.war, Version=0 Arch=noarch Type=file]]"

Agent log contains following exception:
2014-02-21 09:12:03,351 DEBUG [ResourceContainer.invoker.nonDaemon-4] (rhq.modules.plugins.jbossas7.BaseComponent)- Failed to pull package from server
java.lang.NullPointerException
        at org.rhq.modules.plugins.jbossas7.BaseComponent.deployContent(BaseComponent.java:466)
        at org.rhq.modules.plugins.jbossas7.HostControllerComponent.createResource(HostControllerComponent.java:121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:758)
        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:722)


Expected results:
No errors

Comment 1 Lukas Krejci 2014-05-12 12:54:00 UTC

*** This bug has been marked as a duplicate of bug 1096332 ***

Comment 2 Lukas Krejci 2014-05-16 09:18:28 UTC
Reopening, this seems to have a different cause than bug 1096332.

Comment 3 Thomas Segismont 2014-07-31 15:14:35 UTC
It's actually the same problem.

*** This bug has been marked as a duplicate of bug 1096332 ***