Bug 759159 - retrieveBackingContent method on a resource proxy fails immediately
Summary: retrieveBackingContent method on a resource proxy fails immediately
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.3
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-01 14:50 UTC by Lukas Krejci
Modified: 2022-03-31 04:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Lukas Krejci 2011-12-01 14:50:19 UTC
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):
4.3.0-SNAPSHOT

How reproducible:
always

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. 
r.retrieveBackingContent("jmx-console.war") 
^


Expected results:
no exception

Additional info:

Comment 1 Charles Crouch 2011-12-02 13:50:21 UTC
This seems at odds with the fix and testing that went into 
https://bugzilla.redhat.com/show_bug.cgi?id=736792


Note You need to log in before you can comment on or make changes to this bug.