[jboss-jira] [JBoss JIRA] Closed: (JBAS-4101) Authorization Interceptor throws ClassCastException

Anil Saldhana (JIRA) jira-events at lists.jboss.org
Fri Mar 16 12:52:32 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4101?page=all ]

Anil Saldhana closed JBAS-4101.
-------------------------------

    Resolution: Done

==========
asaldhana~/jboss-4.2/testsuite>ant -Dtest=org.jboss.test.jmx.test.RMIAdaptorAuthorizationUnitTestCase one-test
Buildfile: build.xml

one-test:
   [delete] Deleting: C:\cygwin\home\asaldhana\jboss-4.2\testsuite\output\log\te
st.log
    [junit] Running org.jboss.test.jmx.test.RMIAdaptorAuthorizationUnitTestCase
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.172 sec

BUILD SUCCESSFUL
Total time: 3 seconds
=====================

> 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: Security, JMX
>    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

        



More information about the jboss-jira mailing list