Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4029

NPE in JBossClusterMonitor.locateJBoss when other non-JBoss JMX servers are present

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.1.GA
    • Fix Version/s: 2.2.1.CR1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Seam 2.1.1.GA, JBoss AS 4.2.2.GA, JDK 1.5.0_12, Linux

    • Workaround Description:
      Hide

      Workaround:

      • Don't start the JMX remote monitoring service.
        or
      • Override JBossCluaterMonitor with a sub-class and provide a more robust locateJBoss() method.
      Show
      Workaround: Don't start the JMX remote monitoring service. or Override JBossCluaterMonitor with a sub-class and provide a more robust locateJBoss() method.

      Description

      Seam 2.1.1.GA doesn't start up when there is another JMX server.

      Repro:
      1. Specify system properties so that the sun JMX server is also started: -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl
      2. Start JBoss with any Seam 2.1.1.GA application.
      3. Observe the following error on startup:

      2009-03-21 17:38:51,065 [main ] INFO javax.servlet.ServletContextListener - Welcome to Seam 2.1.1.GA
      2009-03-21 17:38:55,248 [main ] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/] - Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.jmx.jbossClusterMonitor
      at org.jboss.seam.Component.newInstance(Component.java:2106)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
      at org.jboss.seam.init.Initialization.init(Initialization.java:735)
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:35)
      ...
      Caused by: java.lang.NullPointerException
      at org.jboss.seam.jmx.JBossClusterMonitor.locateJBoss(JBossClusterMonitor.java:145)
      at org.jboss.seam.jmx.JBossClusterMonitor.create(JBossClusterMonitor.java:54)
      ...

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  norman.richards Norman Richards
                  Reporter:
                  pgmjsd Joshua Davis
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: