java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console

JBoss Issue Tracker | Len DiMaggio | 9 years ago
  1. 0

    Description of problem: jboss_init_redhat.sh - fails to shutdown service - Failed to authenticate principal=null, securityDomain=jmx-console Version-Release number of selected component (IR or RC #, component ver) soa-4.2.0-IR8.0.zip How reproducible: 100% Steps to Reproduce: 1. Copy jboss_init_redhat.sh to /etc/init.d/jboss and run /sbin/service jboss start - or from in jboss-soa-p.4.2.0/jboss-as/bin run sh ./jboss_init_redhat.sh start 2. Try sbin/service jboss stop - or from in jboss-soa-p.4.2.0/jboss-as/bin run sh ./jboss_init_redhat.sh stop Actual results: These errors are written to the server log: 2007-12-11 14:42:33,623 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[admin] 2007-12-11 14:42:33,624 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[admin] 2007-12-11 14:42:33,624 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Bad password for username=null And the server is not stopped. If you run the command from the CLI - this exception is displayed: + su - jboss -c 'java -classpath /opt/IR8/jboss-soa-p.4.2.0/jboss-as/bin/shutdown.jar:/opt/IR8/jboss-soa-p.4.2.0/jboss-as/client/jnet.jar org.jboss.Shutdown --shutdown' Password: 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:97) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 2007-12-11 14:42:33,623 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[admin, root, jboss] 2007-12-11 14:42:33,624 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Loaded properties, users=[admin] 2007-12-11 14:42:33,624 DEBUG [org.jboss.security.auth.spi.UsersRolesLoginModule] Bad password for username=null Expected results: The server should be stopped. Additional info: I tried adding both root and the user used to start the jboss server to jboss-soa-p.4.2.0/jboss-as/server/production/conf/props/soa-users.properties - but this didn't help. What user definition is needed here?

    JBoss Issue Tracker | 9 years ago | Len DiMaggio
    java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
  2. 0

    db:: 3.65::exception on JBoss startup 38

    hivmr.com | 11 months ago
    java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JBoss EAP server couldn't be stopped properly

    Eclipse Bugzilla | 7 years ago | kevin.yuan
    java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
  5. 0

    Thoughts From A Management Platform Developer: Transaction Recovery in JBossAS

    blogspot.com | 2 years ago
    java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.SecurityException

      Failed to authenticate principal=null, securityDomain=jmx-console

      at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke()
    2. JBoss Application Server Server
      AuthenticationInterceptor.invoke
      1. org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
      1 frame
    3. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      3 frames
    4. JBoss Application Server Server
      JRMPProxyFactory.invoke
      1. org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      1 frame
    7. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      4 frames
    8. JBoss Application Server Server
      JRMPInvoker.invoke
      1. org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
      2. org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
      2 frames
    9. Java RT
      UnicastRef.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      5. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      6. sun.rmi.transport.Transport$1.run(Transport.java:153)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      9. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      10. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      11. java.lang.Thread.run(Thread.java:595)
      12. sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      13. sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      14. sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      14 frames
    10. JBoss Application Server Server
      JRMPInvoker_Stub.invoke
      1. org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      1 frame
    11. org.jboss.invocation
      JRMPInvokerProxy.invoke
      1. org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
      1 frame
    12. JBoss Application Server Server
      ClientContainer.invoke
      1. org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      2. org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      3. org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
      4. org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
      5. org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
      6. org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
      6 frames
    13. Unknown
      $Proxy0.invoke
      1. $Proxy0.invoke(Unknown Source)
      1 frame
    14. JBoss Application Server Server
      Shutdown$ServerProxyHandler.invoke
      1. org.jboss.Shutdown$ServerProxyHandler.invoke(Shutdown.java:266)
      1 frame
    15. Unknown
      $Proxy1.shutdown
      1. $Proxy1.shutdown(Unknown Source)
      1 frame
    16. JBoss Application Server Server
      Shutdown.main
      1. org.jboss.Shutdown.main(Shutdown.java:237)
      1 frame