Details

    • Sub-task
    • Resolution: Done
    • Major
    • JBossAS-4.2.0.CR2
    • JBossAS-4.0.5.GA
    • JMX, Security
    • None
    • Medium

    Description

      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)

      Attachments

        Activity

          People

            anil.saldhana Anil Saldanha (Inactive)
            anil.saldhana Anil Saldanha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: