Receive erroring when trying to load samples/util.js from JBoss ON CLI
Environment
- Red Hat JBoss Operations Network (ON) 3.1.2, 3.2.0
Issue
- I can't load sample/util.js from rhq-cli commandline:
7443$ exec -f samples/util.js
InterpretedFunction:
debuggableView: sun.org.mozilla.javascript.InterpreterData@58e395e8
configurationk'getMapVWk'valuesVWkiteratorVWQtViteratork'hasNextVWWT'...
functionName: asHash
script: false
Resolution
This has been logged as Red Hat Bug 1069676 . As a Workaround, edit the rhq-cli-env.sh(.bat) file uncomment and set the RHQ_CLI_JAVA_HOME variable to a 1.6 JDK
RHQ_CLI_JAVA_HOME="/home/jdk1.6"
Root Cause
The sample util.js script hasn't been updated to run with a JDK 1.7.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
