Bug 759159

Summary: retrieveBackingContent method on a resource proxy fails immediately
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.3CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Lukas Krejci 2011-12-01 09:50:19 EST
Description of problem:

Pick a resource that is backed by content, e.g. a WAR in JBoss AS. Go to its content tab in the GUI and pick one of the content names listed.

var r = ProxyFactory.getResource(resourceId);
var content = r.retrieveBackingContent(contentName);

Similar approach is suggested in our docs (http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/100/html/Running_JON_Command-Line_Scripts/Scripted_Group_Deployments_using_the_CLI_API.html)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run the script from the description with some meaningful data.
Actual results:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped javax.ejb.EJBException: [Warning] java.lang.RuntimeException: Unable to retrieve package bits for resource: 12746 and package: 10455 before timeout. 

Expected results:
no exception

Additional info:
Comment 1 Charles Crouch 2011-12-02 08:50:21 EST
This seems at odds with the fix and testing that went into