3 Replies Latest reply on Apr 6, 2006 1:31 PM by Scott Stark

    Secure JMX Invoker getting principle=null (can not shutdown

    Laura Ramirez Newbie

      I am trying to Secure the JMX Invoker. I have followed the
      instructions in the JBoss Developers Guide perfectly but can't
      figure out what is wrong. When I now try to shutdown JBoss with
      shutdown.sh -S -u admin -p admin the code returns
      principal=null. JBoss will not shut down. It acts as if it can not find
      the jmx-console Security Domain's user and role properties.
      What could I be missing? I am running JBoss 4.0.1 sp1.
      USER AND ROLE are stored in: deploy/jmx-console.war/WEB-
      INF/classes/jmx-console-users.properties and jmx-console-
      roles.properties
      HERE IS WHAT I UNCOMMENTED under: deploy/jmx-invoker-
      service.xml





        • 1. Re: Secure JMX Invoker getting principle=null (can not shutd
          Laura Ramirez Newbie

          Exception in thread "main" java.lang.SecurityException: Failed to
          authenticate principal=null, securityDomain=jmx-console
          at
          org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke
          (AuthenticationInterceptor.java:76)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke
          (AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke
          (MBeanServerImpl.java:642)
          at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke
          (JRMPProxyFactory.java:164)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
          Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke
          (NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke
          (DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
          (ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch
          (Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke
          (AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke
          (MBeanServerImpl.java:642)
          at
          org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerActio
          n.invoke(JRMPInvoker.java:805)
          at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
          (JRMPInvoker.java:406)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
          Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke
          (NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke
          (DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at sun.rmi.server.UnicastServerRef.dispatch
          (UnicastServerRef.java:261)
          at sun.rmi.transport.Transport$1.run(Transport.java:148)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.rmi.transport.Transport.serviceCall
          (Transport.java:144)
          at sun.rmi.transport.tcp.TCPTransport.handleMessages
          (TCPTransport.java:460)
          at
          sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
          (TCPTransport.java:701)
          at java.lang.Thread.run(Thread.java:534)
          at
          sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServ
          er(StreamRemoteCall.java:247)
          at sun.rmi.transport.StreamRemoteCall.executeCall
          (StreamRemoteCall.java:223)
          at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
          at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke
          (Unknown Source)
          at
          org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke
          (JRMPInvokerProxy.java:118)
          at org.jboss.invocation.InvokerInterceptor.invokeInvoker
          (InvokerInterceptor.java:163)
          at org.jboss.invocation.InvokerInterceptor.invoke
          (InvokerInterceptor.java:103)
          at
          org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterce
          ptor.invoke(InvokerAdaptorClientInterceptor.java:51)
          at org.jboss.proxy.SecurityInterceptor.invoke
          (SecurityInterceptor.java:55)
          at org.jboss.proxy.ClientMethodInterceptor.invoke
          (ClientMethodInterceptor.java:59)
          at org.jboss.proxy.ClientContainer.invoke
          (ClientContainer.java:91)
          at $Proxy0.invoke(Unknown Source)
          at org.jboss.Shutdown$ServerProxyHandler.invoke
          (Shutdown.java:234)
          at $Proxy1.shutdown(Unknown Source)
          at org.jboss.Shutdown.main(Shutdown.java:205)

          • 3. Re: Secure JMX Invoker getting principle=null (can not shutd
            Scott Stark Master

            Specifying a username/password to the shutdown command was not supported until 4.0.2.