[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-4029) NPE in JBossClusterMonitor.locateJBoss when other non-JBoss JMX servers are present

Samuel Mendenhall (JIRA) jira-events at lists.jboss.org
Tue Aug 18 12:29:26 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samuel Mendenhall updated JBSEAM-4029:
--------------------------------------



> NPE in JBossClusterMonitor.locateJBoss when other non-JBoss JMX servers are present
> -----------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4029
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4029
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.1.GA
>         Environment: Seam 2.1.1.GA, JBoss AS 4.2.2.GA, JDK 1.5.0_12, Linux
>            Reporter: Joshua Davis
>            Assignee: Norman Richards
>             Fix For: 2.2.1.CR1
>
>         Attachments: JBSEAM-4029_fix_for_NPE_in_JBossClusterMonitor.patch
>
>
> 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)
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list