Description of problem: This bug seems to be similar to Bug 849779. Version-Release number of selected component (if applicable): JON 3.1.1.ER3 How reproducible: always Steps to Reproduce: 1. create a EAp6 WAR deployment resource (using CLI) 2. wait till resource is discovered and goes UP 3. run following JS in CLI ProxyFactory.getResource(id).updateBackingContent('/some/file'); Actual results: Caused by: java.lang.NullPointerException at org.rhq.bindings.client.ResourceClientProxy$ClientProxyMethodHandler.updateBackingContent(ResourceClientProxy.java:545) Expected results: no NPE, content for particular resource gets updated Additional info: There is only very little amount of time between steps 2 and 3 . approx 6s since resource becomes UP and updateBackingContent is called.
Targeting for triage in JON312
This issue does not appear to deal with timing at all. The updateBackingContent method is broken when invoked on an EAP6 server group deployments.
This appears to be a direct result of Bug 856819 - [as7, CLI] NullPointerException when trying to deploy war on EAP 6 in domain mode using CLI and createPackageBackedResource method
Scratch what I said in comment 3. This is similar but the fix for Bug 856819 does not fix this one.
The errant codepath has already been removed previously. Setting to ON_QA as Bug 856819 is already fixed as well, clearing the way for deployment tests.
Moving back to ON_DEV. This is basically the same as bug 830841 but just for updateBackingContent. NPE is still there in Version: 4.7.0-SNAPSHOT Build Number: 2174d4c. Problem: 1- resource was created but the content is still not there: ResourceClientProxy_$$_javassist_0: availability: ? backingContent: children: contentTypes: {file=EAR File} createdDate: Mon Mar 11 14:39:44 CET 2013 description: JEE enterprise application (EAR) exploded: no handler: org.rhq.bindings.client.ResourceClientProxy$ClientProxyMethodHandler@7593c366 id: 10095 measurements: [Exploded?, Path, Availability] modifiedDate: Mon Mar 11 14:39:44 CET 2013 name: MiscBeans-3.2.2.ear operations: [stop, restart, start] path: /home/hudson/jboss-eap5-standalone/jboss-as/server/default/deploy/MiscBeans-3.2.2.ear pluginConfiguration: pluginConfigurationDefinition: ConfigurationDefinition[id=10195, name=Enterprise Application (EAR)] resourceType: Enterprise Application (EAR) version: 2- updateBackingContent fails with NPE: rhqadmin.23.190:7080$ ear.updateBackingContent("MiscBeans-3.2.5.ear","3.2.5"); java.lang.NullPointerException ear.updateBackingContent("MiscBeans-3.2.5.ear","3.2.5"); 3- retrieveBackingContent is already fixed: rhqadmin.23.190:7080$ ear.retrieveBackingContent("/tmp") java.lang.RuntimeException: Content not available in the content repository. If you recently deployed content to this resource, then the content repository has not yet received the content or content information. The content for a resource is available only after the deployment and discovery process completes. Please try again in a few minutes. ear.retrieveBackingContent("/tmp")
This issue can no longer be reproduced, see Bug 862011.