9 Replies Latest reply on Jan 21, 2008 11:19 AM by peterj

    Exception creating identity

    tmerrill

      My JBoss AS 4.2.1 GA suddenly will not start. I am using it with Sun Java 1.6. It has been working in the past but I had to reboot my server and now it fails to start with the following error in the stack trace:

      21:31:20,637 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
      


      and further down:
      Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
      


      I did a bit of searching on the forums and found some posts about problems with /etc/hosts but I have not touched mine here it is:

      127.0.0.1 localhost
      127.0.0.1 fattony
      


      I did notice that I can run my config as root:
      ./run.sh -c vencomm -b 127.0.0.1
      

      but not as my "jboss" user that I had setup. I tried deleting and re-adding the user, changing ownership on my $JBOSS_HOME directory. I haven't changed a thing, it just started happening. Any ideas? How is everyone else running JBoss as a non-root user. I had it working and now it is broken.

        • 1. Re: Exception creating identity
          peterj

          First, it would help is you posted the full log message, including stack trace, for the error. The 'caused by' text is usually not sufficient.

          Second, try changing the localhost line in your /etc/hosts file to:

          127.0.0.1 localhost localhost.locadomain


          Also, the entry for fattony should probably have the IP address of the machine.

          Also, try running with JDK 1.5 (instead of 1.6 because 1.6 is not supported on JBossAS 4.2.x).

          Also, try setting the "-Djava.net.preferIPv4Stack=true" JVM option on the command line.

          Finally, which Linux are you running (I'm guessing one of the Ubuntu variations...)

          • 2. Re: Exception creating identity
            tmerrill

            It was working fine when I initially set it up. I am running Ubuntu 7.10. I didn't change anything, I just needed to reboot. I want JBoss to bind to the localhost. I don't even know why it is picking up the my hostname fattony. I really weird part is it works just fine when I run JBoss as root.

            • 3. Re: Exception creating identity
              peterj

              Of the 6 items I mentioned, you replied to 2. What about the other 4?

              The last person who told me 'I didn't change anything, I just needed to reboot' later found that someone else had changed something. Even automatic updates from Ubuntu could change things. That is why I ran through a list of all the things I think could go wrong, and provided a list of things to try. Hence my request that you try (or reply to) the other 4 items.

              • 4. Re: Exception creating identity
                tmerrill

                Full stack trace

                =========================================================================
                
                 JBoss Bootstrap Environment
                
                 JBOSS_HOME: /server/jboss
                
                 JAVA: java
                
                 JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:MaxPermSize=256m -server -Djava.net.preferIPv4Stack=true
                
                 CLASSPATH: /server/jboss/bin/run.jar
                
                =========================================================================
                
                20:58:08,528 INFO [Server] Starting JBoss (MX MicroKernel)...
                20:58:08,529 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
                20:58:08,530 INFO [Server] Home Dir: /server/jboss
                20:58:08,531 INFO [Server] Home URL: file:/server/jboss/
                20:58:08,531 INFO [Server] Patch URL: null
                20:58:08,531 INFO [Server] Server Name: vencomm
                20:58:08,532 INFO [Server] Server Home Dir: /server/jboss/server/vencomm
                20:58:08,532 INFO [Server] Server Home URL: file:/server/jboss/server/vencomm/
                20:58:08,532 INFO [Server] Server Log Dir: /server/jboss/server/vencomm/log
                20:58:08,532 INFO [Server] Server Temp Dir: /server/jboss/server/vencomm/tmp
                20:58:08,532 INFO [Server] Root Deployment Filename: jboss-service.xml
                20:58:08,884 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
                20:58:08,884 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.6.0_03-b05,Sun Microsystems Inc.
                20:58:08,884 INFO [ServerInfo] OS-System: Linux 2.6.22-14-server,amd64
                20:58:09,252 INFO [Server] Core system initialized
                20:58:10,824 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
                20:58:10,842 ERROR [MainDeployer] Could not create deployment: file:/server/jboss/server/vencomm/conf/jboss-service.xml
                org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
                 at org.jboss.system.ServiceController.install(ServiceController.java:226)
                 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:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.install(Unknown Source)
                 at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 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:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:619)
                Caused by: java.lang.reflect.InvocationTargetException
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
                 at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
                 at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
                 at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                 ... 36 more
                Caused by: javax.management.MBeanException
                 at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
                 ... 41 more
                Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
                 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 ... 51 more
                Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
                 at org.jboss.remoting.ident.Identity.get(Identity.java:211)
                 at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
                 at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
                 at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
                 ... 56 more
                Failed to boot JBoss:
                org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
                 at org.jboss.system.ServiceController.install(ServiceController.java:226)
                 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:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.install(Unknown Source)
                 at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 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:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:619)
                Caused by: java.lang.reflect.InvocationTargetException
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
                 at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
                 at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
                 at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                 ... 36 more
                Caused by: javax.management.MBeanException
                 at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
                 ... 41 more
                Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@3749eb9f)]
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
                 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 ... 51 more
                Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
                 at org.jboss.remoting.ident.Identity.get(Identity.java:211)
                 at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
                 at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
                 at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
                 ... 56 more
                20:58:10,848 INFO [Server] Runtime shutdown hook called, forceHalt: true
                20:58:10,849 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
                20:58:10,854 INFO [Server] Shutdown complete
                Shutdown complete
                Halting VM
                


                /etc/hosts/
                127.0.0.1 localhost fattony
                65.74.*.* fattony
                


                stack trace with Java 1.5 enabled
                =========================================================================
                
                 JBoss Bootstrap Environment
                
                 JBOSS_HOME: /server/jboss
                
                 JAVA: java
                
                 JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+UseConcMarkSweepGC -XX:MaxPermSize=256m -server -Djava.net.preferIPv4Stack=true
                
                 CLASSPATH: /server/jboss/bin/run.jar
                
                =========================================================================
                
                21:23:00,626 INFO [Server] Starting JBoss (MX MicroKernel)...
                21:23:00,627 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
                21:23:00,628 INFO [Server] Home Dir: /server/jboss
                21:23:00,628 INFO [Server] Home URL: file:/server/jboss/
                21:23:00,629 INFO [Server] Patch URL: null
                21:23:00,629 INFO [Server] Server Name: vencomm
                21:23:00,629 INFO [Server] Server Home Dir: /server/jboss/server/vencomm
                21:23:00,629 INFO [Server] Server Home URL: file:/server/jboss/server/vencomm/
                21:23:00,629 INFO [Server] Server Log Dir: /server/jboss/server/vencomm/log
                21:23:00,630 INFO [Server] Server Temp Dir: /server/jboss/server/vencomm/tmp
                21:23:00,630 INFO [Server] Root Deployment Filename: jboss-service.xml
                21:23:00,901 INFO [ServerInfo] Java version: 1.5.0_13,Sun Microsystems Inc.
                21:23:00,902 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_13-b05,Sun Microsystems Inc.
                21:23:00,902 INFO [ServerInfo] OS-System: Linux 2.6.22-14-server,amd64
                21:23:01,196 INFO [Server] Core system initialized
                21:23:02,665 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
                21:23:02,685 ERROR [MainDeployer] Could not create deployment: file:/server/jboss/server/vencomm/conf/jboss-service.xml
                org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
                 at org.jboss.system.ServiceController.install(ServiceController.java:226)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.install(Unknown Source)
                 at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.lang.reflect.InvocationTargetException
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
                 at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
                 at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
                 at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                 ... 36 more
                Caused by: javax.management.MBeanException
                 at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
                 ... 41 more
                Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
                 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 ... 51 more
                Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
                 at org.jboss.remoting.ident.Identity.get(Identity.java:211)
                 at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
                 at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
                 at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
                 ... 56 more
                Failed to boot JBoss:
                org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.InvocationTargetException)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
                 at org.jboss.system.ServiceController.install(ServiceController.java:226)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy4.install(Unknown Source)
                 at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                 at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                 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:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                 at $Proxy5.deploy(Unknown Source)
                 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                 at org.jboss.Main.boot(Main.java:200)
                 at org.jboss.Main$1.run(Main.java:508)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: java.lang.reflect.InvocationTargetException
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1451)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350)
                 at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345)
                 at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
                 at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
                 at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                 ... 36 more
                Caused by: javax.management.MBeanException
                 at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
                 ... 41 more
                Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@65efb4be)]
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:713)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
                 at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 ... 51 more
                Caused by: java.lang.RuntimeException: Exception creating identity: fattony: fattony
                 at org.jboss.remoting.ident.Identity.get(Identity.java:211)
                 at org.jboss.remoting.network.NetworkRegistry.preRegister(NetworkRegistry.java:268)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invokePreRegister(AbstractMBeanInvoker.java:966)
                 at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:489)
                 at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:654)
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
                 ... 56 more
                21:23:02,705 INFO [Server] Runtime shutdown hook called, forceHalt: true
                21:23:02,705 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
                21:23:02,710 INFO [Server] Shutdown complete
                Shutdown complete
                Halting VM
                


                I am not familiar with setting command line options for jvm. How do I go about doing that?

                • 5. Re: Exception creating identity
                  peterj

                  Looks like your are already running with preferIPv4Stack set.

                  I tried running with various different setting in /etc/hosts, including yours (letter for letter). I did get the same stack trace, but with a slightly different message:

                  Caused by: java.lang.RuntimeException: Exception creating identity: localhost.localdomain: localhost.localdomain

                  In a way I expected this (hence my earlier recommendation for adding 'localhost.localdomain' to the hosts file). However, I did this on Fedora 8. I have Ubuntu 7.11 at home, I'll have to try there.

                  • 6. Re: Exception creating identity
                    peterj

                    At home running ubuntu 7.11, using your same /etc/hosts file, and not running as root. Works fine for me.

                    Just now noticed that you are running a 64-bit OS and JDK. I'm running 32 bit. I don't have a 64-bit OS available at this time.

                    • 7. Re: Exception creating identity
                      tmerrill

                      Here is my script that I use to start and stop the jboss service

                      #!/bin/sh
                      #
                      # $Id: jboss_init_redhat.sh 60992 2007-02-28 11:33:27Z dimitris@jboss.org $
                      #
                      # JBoss Control Script
                      #
                      # To use this script run it as root - it will switch to the specified user
                      #
                      # Here is a little (and extremely primitive) startup/shutdown script
                      # for RedHat systems. It assumes that JBoss lives in /usr/local/jboss,
                      # it's run by user 'jboss' and JDK binaries are in /usr/local/jdk/bin.
                      # All this can be changed in the script itself.
                      #
                      # Either modify this script for your requirements or just ensure that
                      # the following variables are set correctly before calling the script.
                      
                      #Enter the IP address of your server
                      JBOSS_HOST="127.0.0.1"
                      
                      #define where jboss is - this is the directory containing directories log, bin, conf etc
                      JBOSS_HOME=${JBOSS_HOME:-"/server/jboss"}
                      
                      #define the user under which jboss will run, or use 'RUNASIS' to run as the current user
                      #JBOSS_USER=${JBOSS_USER:-"jboss"}
                      JBOSS_USER=${JBOSS_USER:-"root"}
                      
                      #make sure java is in your path
                      JAVAPTH=${JAVAPTH:-"/usr/lib/jvm/java-6-sun"}
                      
                      #configuration to use, usually one of 'minimal', 'default', 'all'
                      JBOSS_CONF=${JBOSS_CONF:-"vencomm"}
                      
                      #if JBOSS_HOST specified, use -b to bind jboss services to that address
                      JBOSS_BIND_ADDR=${JBOSS_HOST:+"-b $JBOSS_HOST"}
                      
                      #define the classpath for the shutdown class
                      JBOSSSTOP=${JBOSSSTOP:-"$JBOSS_HOME/bin/shutdown.sh -s $JBOSS_HOST:1099 -S"}
                      
                      #define the script to use to start jboss
                      JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c $JBOSS_CONF $JBOSS_BIND_ADDR"}
                      
                      if [ "$JBOSS_USER" = "RUNASIS" ]; then
                       SUBIT=""
                      else
                       SUBIT="su - $JBOSS_USER -c "
                      fi
                      
                      if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then
                       # ensure the file exists
                       touch $JBOSS_CONSOLE
                       if [ ! -z "$SUBIT" ]; then
                       chown $JBOSS_USER $JBOSS_CONSOLE
                       fi
                      fi
                      
                      if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then
                       echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE"
                       echo "WARNING: ignoring it and using /dev/null"
                       JBOSS_CONSOLE="/var/log/jboss/jboss.log"
                      fi
                      
                      #define what will be done with the console log
                      JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/var/log/jboss/jboss.log"}
                      
                      JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"
                      JBOSS_CMD_STOP="cd $JBOSS_HOME/bin; $JBOSSSTOP"
                      
                      if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then
                       export PATH=$PATH:$JAVAPTH
                      fi
                      
                      if [ ! -d "$JBOSS_HOME" ]; then
                       echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME
                       exit 1
                      fi
                      
                      
                      case "$1" in
                      start)
                       echo JBOSS_CMD_START = $JBOSS_CMD_START
                       cd $JBOSS_HOME/bin
                       if [ -z "$SUBIT" ]; then
                       eval $JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &
                       else
                       $SUBIT "$JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &"
                       fi
                       ;;
                      stop)
                       if [ -z "$SUBIT" ]; then
                       $JBOSS_CMD_STOP
                       else
                       $SUBIT "$JBOSS_CMD_STOP"
                       fi
                       ;;
                      restart)
                       $0 stop
                       $0 start
                       ;;
                      *)
                       echo "usage: $0 (start|stop|restart|help)"
                      esac
                      


                      I have also tried running directly from $JBOSS_HOME/bin/run.sh and I get the same error.

                      I have even tried using JBoss AS 4.2.2 with by configuration, I still get the same error. I bet some Ubuntu update did something but I am trying to recall if I ran updates on this server. I am the only sys admin so it had to have been me... if I could recall with some clarity that would be nice.

                      • 8. Re: Exception creating identity
                        tmerrill

                        SOLVED:

                        My permissions on the hosts file were incorrect! D'oh

                        • 9. Re: Exception creating identity
                          peterj

                          Thanks for the info. I'll have to add this to the list of things that can go wrong on Linux.