-
Sub-task
-
Resolution: Done
-
Major
-
JBossAS-4.0.5.GA
-
None
-
Medium
env.put(Context.SECURITY_CREDENTIALS, pass);
env.put(Context.SECURITY_PRINCIPAL, user);
...
MBeanServerConnection mbsc = (MBeanServerConnection) context.lookup("jmx/invoker/RMIAdaptor");
ObjectName dynMBeanName = new ObjectName("com.jboss.jmx.xmbeans:service=XFormatDateActually");
mbsc.setAttribute(dynMBeanName, new Attribute("Format", "DD/MM/YY"));
...
and the error is:
java.lang.ClassCastException: javax.management.Attribute
at org.jboss.jmx.connector.invoker.AuthorizationInterceptor.invoke(AuthorizationInterceptor.java:110)
at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:108)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)