I don't see how that is possible unless there is a bug in
ConcurrentReaderHashMap.
The message says you managed to get a null into the
SpyDestinations->JMSDestinations map
But ConcurrentReaderHashMap (which stores the map)
doesn't accept null in either the key or the value.
| public void connectionClosing(ConnectionToken dc) throws JMSException
| {
| if (dc == null)
| return;
|
| // Close it's ClientConsumer
| ClientConsumer cq = (ClientConsumer) clientConsumers.remove(dc);
| if (cq != null)
| cq.close();
|
| //unregister its clientID
| if (dc.getClientID() != null)
| stateManager.removeLoggedOnClientId(dc.getClientID());
|
| //Remove any temporary destinations the consumer may have created.
| Iterator i = destinations.entrySet().iterator();
| while (i.hasNext())
| {
| Map.Entry entry = (Map.Entry) i.next();
| JMSDestination sq = (JMSDestination) entry.getValue();
| ClientConsumer cc = sq.temporaryDestination; // NPE HERE (line
509) - sq comes from value side of ConcurrentReaderHashMap!!!!
| if (cc != null && dc.equals(cc.connectionToken))
| {
| i.remove();
| deleteTemporaryDestination(dc, sq);
| }
| }
| // Close the clientIL
| try
| {
| if (dc.clientIL != null)
| dc.clientIL.close();
| }
| catch (Exception ex)
| {
| // We skipp warning, to often the client will allways
| // have gone when we get here
| //log.warn("Could not close clientIL: " +ex,ex);
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930936#3930936
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930936
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user