Hello, I've run across another NullPointerException in xmlBlaster. This time, it happens when we unsubscribe. The NPE is preceeded by a couple of other exceptions as well. The first is this: [Oct 29, 2002 10:13:26 AM TRACE XmlKey] Creating new XmlKey for isPublish=true java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at org.xmlBlaster.engine.ClientSubscriptions.removeFromClientSubscriptionMap(ClientSubscriptions.java:441) at org.xmlBlaster.engine.ClientSubscriptions.subscriptionRemove(ClientSubscriptions.java:374) at org.xmlBlaster.engine.ClientSubscriptions.messageErase(ClientSubscriptions.java:294) at org.xmlBlaster.engine.RequestBroker.fireMessageEraseEvent(RequestBroker.java:1670) at org.xmlBlaster.engine.RequestBroker.eraseVolatile(RequestBroker.java:1319) at org.xmlBlaster.engine.queue.MsgQueue.checkForVolatileErase(MsgQueue.java:224) at org.xmlBlaster.engine.callback.CbWorker.run(CbWorker.java:65) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:728) The next is this [Oct 29, 2002 10:13:26 AM ERROR SubscriptionInfo] Failed to remove XPATH children subscription __subId:XPATH88 java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at org.xmlBlaster.engine.SubscriptionInfo.removeChildSubscription(SubscriptionInfo.java:174) at org.xmlBlaster.engine.SubscriptionInfo.shutdown(SubscriptionInfo.java:403) at org.xmlBlaster.engine.ClientSubscriptions.subscriptionRemove(ClientSubscriptions.java:385) at org.xmlBlaster.engine.ClientSubscriptions.messageErase(ClientSubscriptions.java:294) at org.xmlBlaster.engine.RequestBroker.fireMessageEraseEvent(RequestBroker.java:1670) at org.xmlBlaster.engine.RequestBroker.eraseVolatile(RequestBroker.java:1319) at org.xmlBlaster.engine.queue.MsgQueue.checkForVolatileErase(MsgQueue.java:224) at org.xmlBlaster.engine.callback.CbWorker.run(CbWorker.java:65) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:728) at java.lang.Thread.run(Unknown Source) And our friend, at the usual spot: [Oct 29, 2002 10:13:26 AM TRACE SubscriptionInfo] Removed XPATH __subId:XPATH90 children subscription [Oct 29, 2002 10:13:26 AM TRACE RequestBroker-/node/http:10.0.1.190:3412] Erase event occured for oid=template.response.581, removing message from my map ... [Oct 29, 2002 10:13:26 AM TRACE MessageUnitHandler-/node/http:10.0.1.190:3412/msg/template.response.581] Entering erase() [Oct 29, 2002 10:13:26 AM TRACE RequestBroker-/node/http:10.0.1.190:3412] Published message is marked as volatile, erasing it [Oct 29, 2002 10:13:26 AM TRACE BigXmlKeyDOM] Erase event occured ... [Oct 29, 2002 10:13:26 AM ERROR CbWorker-/node/http:10.0.1.190:3412/client/EDserver/2] Unexpected exception: java.lang.NullPointerException java.lang.NullPointerException at org.xmlBlaster.engine.ClientSubscriptions.getSubscriptionByOid(ClientSubscriptions.java:210) at org.xmlBlaster.engine.ClientSubscriptions.messageErase(ClientSubscriptions.java:285) at org.xmlBlaster.engine.RequestBroker.fireMessageEraseEvent(RequestBroker.java:1670) at org.xmlBlaster.engine.RequestBroker.eraseVolatile(RequestBroker.java:1319) at org.xmlBlaster.engine.queue.MsgQueue.checkForVolatileErase(MsgQueue.java:224) at org.xmlBlaster.engine.callback.CbWorker.run(CbWorker.java:65) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:728) at java.lang.Thread.run(Unknown Source) I've attached a full log of the sequence of events for reference as well (gzipped). Sorry, I have no simple testcase to reproduce this one... -- David Kerry
Attachment:
xmllog.txt.gz
Description: Binary data