Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000054 [Resin] minor always 03-23-05 00:00 05-11-05 00:00
Reporter user82 View Status public  
Assigned To
Priority immediate Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.13 Product Version 3.0.12
  Product Build 3.0.12
Summary 0000054: Problem with JMX newProxyInstance call with jdk1.5.0_02
Description RSN-45
I have been using the following code to get a proxy for a MBean:

MBeanServerInvocationHandler.newProxyInstance(MBeanServer, ObjectName, ClassLoader, false);

It worked fine with jdk1.4.2_06, but when I used jdk1.5.0_02 I see the following stacktrace:

java.lang.IllegalArgumentException: com.caucho.jmx.MBeanServerDelegateImpl is not an interface
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:354)
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:564)
        at javax.management.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:149)
...
Steps To Reproduce
Additional Information jdk1.5.0_02
Attached Files

- Relationships

- Notes
(0000057)
user82
03-23-05 00:00

I have added a full snippet of the code below:

MBeanServer mbs = getMBeanServer();
MBeanInfo info = mbs.getMBeanInfo(name);
String className = info.getClassName();
Class cl = getClassLoader().loadClass(className);

 MBeanServerInvocationHandler.newProxyInstance(mbs, name, cl, false);
 
(0000058)
ferg
03-23-05 00:00

server/2184
 

- Issue History
Date Modified Username Field Change
03-23-05 00:00 user82 New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.13


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
36 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker