2 Replies Latest reply on Nov 14, 2008 10:55 AM by Caio Cesar

    Problem starting JOPR

    Caio Cesar Newbie

      When I start JOPR, the following ERROR appears:

      [root@moncactipr jopr-server-2.1.0.GA]# ./load_jopr.sh console
      Starting RHQ Server in console...
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /srv/jopr-server-2.1.0.GA/jbossas

      JAVA: /usr/java/jdk1.6.0_02//bin/java

      JAVA_OPTS: -Dprogram.name=run.sh -Dapp.name=rhq-server -Xms256M -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=/srv/jopr-server-2.1.0.GA/logs -Djava.awt.headless=true -Djboss.platform.mbeanserver -Djava.util.logging.config.file=/server/default/conf/logging.properties -Djava.net.preferIPv4Stack=true

      CLASSPATH: /srv/jopr-server-2.1.0.GA/jbossas/bin/run.jar:/usr/java/jdk1.6.0_02//lib/tools.jar

      =========================================================================

      09:56:44,325 INFO [Server] Starting JBoss (MX MicroKernel)...
      09:56:44,330 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
      09:56:44,332 INFO [Server] Home Dir: /srv/jopr-server-2.1.0.GA/jbossas
      09:56:44,332 INFO [Server] Home URL: file:/srv/jopr-server-2.1.0.GA/jbossas/
      09:56:44,333 INFO [Server] Patch URL: null
      09:56:44,334 INFO [Server] Server Name: default
      09:56:44,334 INFO [Server] Server Home Dir: /srv/jopr-server-2.1.0.GA/jbossas/server/default
      09:56:44,335 INFO [Server] Server Home URL: file:/srv/jopr-server-2.1.0.GA/jbossas/server/default/
      09:56:44,335 INFO [Server] Server Log Dir: /srv/jopr-server-2.1.0.GA/logs
      09:56:44,336 INFO [Server] Server Temp Dir: /srv/jopr-server-2.1.0.GA/jbossas/server/default/tmp
      09:56:44,337 INFO [Server] Root Deployment Filename: jboss-service.xml
      09:56:51,939 INFO [ServerInfo] Java version: 1.6.0_02-ea,Sun Microsystems Inc.
      09:56:51,941 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0_02-ea-b02,Sun Microsystems Inc.
      09:56:51,941 INFO [ServerInfo] OS-System: Linux 2.6.9-78.0.1.ELsmp,i386
      09:56:54,810 INFO [Server] Core system initialized
      09:57:39,475 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationException: preRegister() failed: [ObjectName='jboss.remoting:service=NetworkRegistry', Class=org.jboss.remoting.network.NetworkRegistry (org.jboss.remoting.network.NetworkRegistry@7976c1)]
      09:57:39,515 ERROR [MainDeployer] Could not create deployment: file:/srv/jopr-server-2.1.0.GA/jbossas/server/default/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@7976c1)]
      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: moncactipr.hg.com.br: moncactipr.hg.com.br
      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@7976c1)]
      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: moncactipr.hg.com.br: moncactipr.hg.com.br
      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
      09:57:39,644 INFO [Server] Runtime shutdown hook called, forceHalt: true
      09:57:39,645 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      09:57:39,686 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM


      Export:

      declare -x G_BROKEN_FILENAMES="1"
      declare -x HISTSIZE="1000"
      declare -x HOME="/root"
      declare -x HOSTNAME="XXXXXXXXXXXXXXXXXXXXX" :: CHANGED FOR SEC REASONS
      declare -x INPUTRC="/etc/inputrc"
      declare -x JAVA_HOME="/usr/java/jdk1.6.0_02/"
      declare -x LANG="en_US.UTF-8"
      declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
      declare -x LOGNAME="root"
      declare -x LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:"
      declare -x MAIL="/var/spool/mail/root"
      declare -x OLDPWD="/srv/jopr-server-2.1.0.GA"
      declare -x PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin"
      declare -x PWD="/srv/jopr-server-2.1.0.GA/jbossas/server/default/conf"
      declare -x RHQ_SERVER_HOME="/srv/jopr-server-2.1.0.GA/"
      declare -x SHELL="/bin/bash"
      declare -x SHLVL="1"
      declare -x SSH_CLIENT="XXXXXXXXXXXXXXXXXX" :: CHANGED FOR SEC REASONS
      declare -x SSH_CONNECTION="XXXXXXXXXXXXXXXXXXXXXXX" :: CHANGED FOR SEC REASONS
      declare -x SSH_TTY="/dev/pts/0"
      declare -x TERM="xterm"
      declare -x TZ="America/Sao_Paulo"
      declare -x USER="root"

      JAVA VERSION:

      [root@moncactipr conf]# java -version
      java version "1.6.0_02-ea"
      Java(TM) SE Runtime Environment (build 1.6.0_02-ea-b02)
      Java HotSpot(TM) Client VM (build 1.6.0_02-ea-b02, mixed mode, sharing)


      Can someone help me?

      tks,

      Caio Ribeiro César

        • 1. Re: Problem starting JOPR
          mazz Master

           

          Caused by: java.lang.RuntimeException: Exception creating identity: moncactipr.hg.com.br: moncactipr.hg.com.br
           at org.jboss.remoting.ident.Identity.get(Identity.java:211)


          I've seen this before. Its not Jopr specific - its JBoss/Remoting failing.

          See: https://jira.jboss.org/jira/browse/JBREM-769

          The core issue (that is hidden from you, because remoting isn't bubbling up the real error message, as per that JIRA) is typically because your hostname is not resolvable.

          Make sure "moncactipr.hg.com.br" is a valid hostname and is it resolvable by your machine (i.e. is it in /etc/hosts?? can you get an IP for it via nslookup??)

          • 2. Re: Problem starting JOPR
            Caio Cesar Newbie

            Sure!

            I altered the server's hostname and the dns servers (/etc/resolv.conf) . Then I wen't on my DNS server and added this new hostname to FQDN (deleted the old onde) ... Then I cleared the dns cache.

            It's resolving now and the server is working!!!

            13:33:41,344 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-7080
            13:33:41,370 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-7443
            13:33:41,375 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-9009
            13:33:41,380 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 13s:271ms

            Thank you!!!!!!!!!