[jboss-jira] [JBoss JIRA] Closed: (JBREM-66) Race condition on startup

David Lloyd (JIRA) jira-events at lists.jboss.org
Wed Sep 26 05:31:03 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBREM-66?page=all ]

David Lloyd closed JBREM-66.
----------------------------


> Race condition on startup
> -------------------------
>
>                 Key: JBREM-66
>                 URL: http://jira.jboss.com/jira/browse/JBREM-66
>             Project: JBoss Remoting
>          Issue Type: Bug
>    Affects Versions: 1.0.1 final
>         Environment: linux, jobss 4.0.1, jdk 1.5_01
>            Reporter: james ahlborn
>         Assigned To: Tom  Elrod
>            Priority: Minor
>             Fix For: 1.0.2 final
>
>   Original Estimate: 1 day
>  Remaining Estimate: 1 day
>
> I occassionally get this exception trace on jboss startup:
> 2005-02-25 13:51:26,981 ERROR [org.jboss.remoting.detection.multicast.MulticastD
> etector] Error during detection of: Detection [identity:JBOSS Identity [address:
> itsy.hmsonline.com/10.67.89.58,instanceid:9d49962ca1854d0cx21bc15d1x1014159608ax
> -7fff718,JMX id:itsy.hmsonline.com_1109263894685,domain:JBOSS],locators:2]
> javax.management.RuntimeOperationsException
>   at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java
> :495)
>   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:636)
>   at org.jboss.remoting.detection.AbstractDetector.detect(AbstractDetector.java:
> 327)
>   at org.jboss.remoting.detection.multicast.MulticastDetector.listen(MulticastDe
> tector.java:212)
>   at org.jboss.remoting.detection.multicast.MulticastDetector.access$100(Multica
> stDetector.java:32)
>   at org.jboss.remoting.detection.multicast.MulticastDetector$Listener.run(Multi
> castDetector.java:240)
> Caused by: java.lang.IllegalArgumentException: null object name
>   ... 6 more
> I traced it through the 4.0.1 source code, and it seems that the "null" pointer is the member variable registryObjectName in AbstractDetector.java.  this variable only is set during the start() method of this class, and if the value is "null", a warning is logged.  i don't see this warning, so i am assuming this variable is set to a non-null value during the start() method.  this implies that this member variable is sometimes being accessed before the start() method completes.  This is probably because the MulticaseDetector$Listener class is running on a separate thread.  it should probably block until the outer class is done starting.

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

        



More information about the jboss-jira mailing list