Bug 547425 - CLI should error out gracefully with an error message rather than blowing up if the required scripting libraries are not available
Summary: CLI should error out gracefully with an error message rather than blowing up ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: John Sanda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: rhq_triage
TreeView+ depends on / blocked
 
Reported: 2009-12-14 16:38 UTC by Preethi Thomas
Modified: 2014-05-16 20:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-16 20:13:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2009-12-14 16:38:13 UTC
Description of problem:
CLI should error out gracefully with an error message rather than blowing up  if the required scripting libraries are not available

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


How reproducible:


Steps to Reproduce:
1. on an rhq-server machine which doesn't have the java script library
2.go to the cli/target/rhq-remoting-cli-1.4.0-SNAPSHOT/bin directory
3. run ./rhq-cli.sh
  
Actual results:
[root@10-16-120-159 bin]# ./rhq-cli.sh 
Exception in thread "main" java.lang.NullPointerException
	at org.rhq.enterprise.client.commands.ScriptCommand.<init>(ScriptCommand.java:83)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
	at java.lang.Class.newInstance0(Class.java:372)
	at java.lang.Class.newInstance(Class.java:325)
	at org.rhq.enterprise.client.ClientMain.initCommands(ClientMain.java:118)
	at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:103)


Expected results:
error message

Additional info:

Comment 1 wes hayutin 2010-02-16 16:51:20 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 2 wes hayutin 2010-02-16 16:57:44 UTC
making sure we're not missing any bugs in rhq_triage

Comment 3 Corey Welton 2010-10-05 13:16:17 UTC
 jsanda - is this even an issue anymore (since we don't support jdk5)


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