Bug 547425

Summary: CLI should error out gracefully with an error message rather than blowing up if the required scripting libraries are not available
Product: [Other] RHQ Project Reporter: Preethi Thomas <pthomas>
Component: CLIAssignee: John Sanda <jsanda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cwelton, jshaughn
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-16 16:13:18 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On:    
Bug Blocks: 565628    

Description Preethi Thomas 2009-12-14 11:38:13 EST
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 11:51:20 EST
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 11:57:44 EST
making sure we're not missing any bugs in rhq_triage
Comment 3 Corey Welton 2010-10-05 09:16:17 EDT
 jsanda - is this even an issue anymore (since we don't support jdk5)