1 Reply Latest reply on Jun 24, 2005 4:24 PM by cruiz13

    Error: Exception thrown by the agent : java.rmi.server.Expor

    gshekar

      Hi,

      We are running JBoss on Jdk1.5. We have also enabled and started jmx agent for JBoss, by appending the following system properties to JAVA_OPTS in run.conf.
      JAVA_OPTS="-server -Xms128m -Xmx128m \
      -Dcom.sun.management.jmxremote.port=8000 \
      -Dcom.sun.management.jmxremote.authenticate=true \
      -Dcom.sun.management.jmxremote.ssl=false"

      This is used to monitor and mange JBoss using JConsole.
      After this I am getting the following error while stopping JBoss. Please suggest.
      ./shutdown.sh -S
      Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8000; nested exception is:
      java.net.BindException: Address already in use

      Thanks & Regards,
      -GnanaShekar-

        • 1. Re: Error: Exception thrown by the agent : java.rmi.server.E
          cruiz13

          remove the run.conf
          -Dcom.sun.management.jmxremote.port=8000
          and in run.sh in
          # Setup JBoss sepecific properties
          JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" by
          # Setup JBoss sepecific properties
          JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME -Dcom.sun.management.jmxremote.port=8000"

          The error is by in the script shutdown.sh use the run.conf.