Details

    • Estimated Difficulty:
      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anil.saldhana Anil Saldanha
                Reporter:
                anil.saldhana Anil Saldanha
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: