Bug 1011224
Summary: | ProxyFactory.getResource does not always return a valid resource proxy object | |||
---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> | |
Component: | CLI | Assignee: | Lukas Krejci <lkrejci> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | JON 3.1.2 | CC: | fbrychta, lkrejci | |
Target Milestone: | ER01 | |||
Target Release: | JON 3.2.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1012156 (view as bug list) | Environment: | ||
Last Closed: | Type: | Bug | ||
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 829944 | |||
Bug Blocks: | 1012156 |
Description
Larry O'Leary
2013-09-23 20:19:04 UTC
I've been trying in vain to reproduce this the whole day today. I tried EAP 6.0 and 6.1, Oracle Java 6 and 7 and OpenJDK 7 but I still didn't see a single instance of this error. Could you point me to some environment you have set up that exhibits this? Environment I used is: java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.10) (fedora-55.1.9.10.fc14-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) On Fedora 14 running kernel: 2.6.35.14-106.fc14.x86_64 I finally managed to reproduce this. I could either reproduce it in environments where all CLI, server and agent are co-located on a single box and are running on Java6 (1.6.0_24) (and at the same time that box is NOT my own work machine ;) ) or when CLI is remote and runs on OpenJDK 1.7.0_25 but the server and agent are still on 1.6.0_24. Not sure why it seems to happen more on Java6 or over remotes. Additionally, this error message is generated in the rhq-client.log at the time of the failure. This is a strong indication that the failure happens solely on the client-side. I cannot make sense of it yet though: 2013-09-25 18:29:40,428 ERROR [main] (org.rhq.bindings.client.ResourceClientFactory)- Could not create custom interface for resource with id 10105 java.lang.RuntimeException: org.rhq.bindings.client.dynamic.ResourceClientProxyc453513b888ed929a98a263964ebcade00c58f523e2ea5a8e2c65d4f9f58a385: frozen class (cannot edit) at javassist.ClassPool.checkNotFrozen(ClassPool.java:568) at javassist.ClassPool.makeInterface(ClassPool.java:790) at javassist.ClassPool.makeInterface(ClassPool.java:775) at org.rhq.bindings.client.ResourceClientFactory.defineCustomInterface(ResourceClientFactory.java:149) at org.rhq.bindings.client.ResourceClientFactory.getResource(ResourceClientFactory.java:79) at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:167) at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:245) at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1706) at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849) at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162) at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:433) at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116) at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109) at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3161) at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173) at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1159) at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249) at org.rhq.enterprise.client.commands.ScriptCommand.executeScriptFile(ScriptCommand.java:287) at org.rhq.enterprise.client.commands.ScriptCommand.execute(ScriptCommand.java:108) at org.rhq.enterprise.client.ClientMain$StartupConfiguration.process(ClientMain.java:141) at org.rhq.enterprise.client.ClientMain.main(ClientMain.java:161) This is a duplicate of BZ 829944, which was fixed in RHQ 4.5.0 by commit a48f5cda6610222c37b42fb80d29fa589a864ab5. Moving to ON_QA as JON 3.2.0 builds already have the fix. Verified on Version : 3.2.0.ER5 Build Number : 2cb2bc9:225c796 Unable to reproduce on java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.6) (fedora-71.1.11.6.fc16-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) for both remote CLI and local CLI. |