Authorization Interceptor throws ClassCastException
---------------------------------------------------
Key: JBAS-4101
URL:
http://jira.jboss.com/jira/browse/JBAS-4101
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: JMX, Security
Affects Versions: JBossAS-4.0.5.GA
Reporter: Anil Saldhana
Assigned To: Anil Saldhana
Fix For: JBossAS-4.2.0.GA
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira