[jboss-remoting-issues] [JBoss JIRA] Updated: (JBREM-974) CLONE [JBREM-944] - Fix race in ConnectionNotifier

Ron Sigal (JIRA) jira-events at lists.jboss.org
Tue May 27 14:59:52 EDT 2008


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

Ron Sigal updated JBREM-974:
----------------------------

    Fix Version/s:     (was: 2.4.0.GA)

Removed fix version.

> CLONE [JBREM-944] - Fix race in ConnectionNotifier
> --------------------------------------------------
>
>                 Key: JBREM-974
>                 URL: http://jira.jboss.com/jira/browse/JBREM-974
>             Project: JBoss Remoting
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.4.0.CR2
>            Reporter: Ron Sigal
>         Assigned To: Ron Sigal
>            Priority: Minor
>
> org.jboss.remoting.ConnectionNotifier.connectionTerminated() throws NullPointerExceptions from the following code:
>          ConnectionListener[] list = (ConnectionListener[])listeners.toArray(new ConnectionListener[listeners.size()]);
>          for(int x = 0; x < list.length; x++)
>          {
>             list[x].handleConnectionException(ex, client);  // <<== NPE's thrown here
>          }
> It seems that listeners got smaller between the call to listeners.size() and the call to listeners.toArray(), which could result in list having one or more null elements.

-- 
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-remoting-issues mailing list