Bug 682200

Summary: Failed to load manager SubjectManager and SystemManager messages when using CLI 2.4.1
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: CLIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-22 11:51:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bkramer 2011-03-04 12:37:54 UTC
Description of problem:

The following messages are output when trying to login using CLI 2.4.1:

[bkramer@bkramer bin]$ ./rhq-cli.sh -u rhqadmin -p rhqadmin
RHQ - RHQ Enterprise Remote CLI 3.0.1.GA
Remote server version is: 3.0.1.GA(81e26be20d)
Failed to load manager SubjectManager due to missing class: java.lang.reflect.InvocationTargetException
Failed to load manager SystemManager due to missing class: java.lang.reflect.InvocationTargetException
Login successful


At the same time the following exceptions are logged in the rhq-client.log file:

...
2011-03-04 11:26:58,944 ERROR [main] (org.rhq.enterprise.client.RemoteClientProxy)- Failed to simplify interface org.rhq.enterprise.server.measurement.MeasurementBaselineManagerRemote.
javassist.CannotCompileException: by java.lang.SecurityException: class "org.rhq.enterprise.server.measurement.MeasurementBaselineManagerRemoteSimple"'s signer information does not match signer information of other classes in the same package
	at javassist.ClassPool.toClass(ClassPool.java:953)
	at javassist.ClassPool.toClass(ClassPool.java:896)
	at javassist.ClassPool.toClass(ClassPool.java:854)
	at javassist.CtClass.toClass(CtClass.java:1053)
	at org.rhq.enterprise.client.RemoteClientProxy.simplifyInterface(RemoteClientProxy.java:146)
	at org.rhq.enterprise.client.RemoteClientProxy.getProcessor(RemoteClientProxy.java:67)
	at org.rhq.enterprise.client.RemoteClient.getMeasurementBaselineManagerRemote(RemoteClient.java:352)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.rhq.enterprise.client.RemoteClient.getManagers(RemoteClient.java:429)
	at org.rhq.enterprise.client.ClientMain.setRemoteClient(ClientMain.java:520)
	at org.rhq.enterprise.client.commands.LoginCommand.execute(LoginCommand.java:107)
	at org.rhq.enterprise.client.commands.LoginCommand.execute(LoginCommand.java:72)
	at org.rhq.enterprise.client.ClientMain.processArguments(ClientMain.java:497)
	at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:106)
Caused by: java.lang.SecurityException: class "org.rhq.enterprise.server.measurement.MeasurementBaselineManagerRemoteSimple"'s signer information does not match signer information of other classes in the same package
	at java.lang.ClassLoader.checkCerts(ClassLoader.java:807)
	at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at javassist.ClassPool.toClass2(ClassPool.java:965)
	at javassist.ClassPool.toClass(ClassPool.java:947)
	... 16 more


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


How reproducible:
-every time -


Steps to Reproduce:
1.Install rhq cli 2.4.1
2. Try to login;
  

Actual results:
Failed to load manager... messages (as above) will be logged and when executing (for instance) findResourcesByCriteria(criteria) it will fail  as there is no subject defined.


Expected results:
This should work without any "Failed to ..." messages.

Additional info:

Comment 1 bkramer 2011-03-22 11:51:22 UTC

*** This bug has been marked as a duplicate of bug 685003 ***