users@glassfish.java.net

JMS NPE subscribing to topic

From: Shevland, Joe <joe.shevland_at_capgemini.com>
Date: Wed, 16 May 2007 10:47:53 +1000

Hi,

Just wondering if someone could gives me an indication whether the below
error is an internal defect or I might be doing something wrong - as far
as I can tell it's a fairly vanilla post to a JMS topic and a subscriber
checking for messages on the topic using a selector - the subscriber
does receive the message OK and begins to do its work, but the
transaction is aborted fairly shortly after with:

---
[#|2007-05-16T10:43:31.859+1000|WARNING|sun-appserver-pe9.0|javax.enterp
rise.system.stream.err|_ThreadID=17;_ThreadName=Thread-jms[8];_RequestID
=9f62ed90-ab1c-4
6bc-a373-9aea483744a2;|
[16/May/2007:10:43:31 EST] ERROR [B3100]: Unexpected Broker Internal
Error : [Uncaught Exception] :
com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4117]:
Unexpected Broker Exception: [Unexpected Error processing message]
        at
com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRo
uter.java:157)
        at
com.sun.messaging.jmq.jmsserver.service.imq.IMQConnection.readData(IMQCo
nnection.java:1868)
        at
com.sun.messaging.jmq.jmsserver.service.imq.IMQConnection.process(IMQCon
nection.java:822)
        at
com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(Op
erationRunnable.java:143)
        at
com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnabl
e.java:459)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
        at
com.sun.messaging.jmq.jmsserver.core.Topic.forwardMessage(Topic.java:436
)
        at
com.sun.messaging.jmq.jmsserver.core.Topic.forwardOrphanMessage(Topic.ja
va:405)
        at
com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollb
ack(TransactionHandler.java:1213)
        at
com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.handle(
TransactionHandler.java:717)
        at
com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRo
uter.java:146)
        ... 5 more
|#]
[#|2007-05-16T10:43:31.859+1000|WARNING|sun-appserver-pe9.0|javax.enterp
rise.system.stream.err|_ThreadID=15;_ThreadName=httpWorkerThread-8080-0;
_RequestID=36f97
b23-b9f0-42b5-b401-8b0bd9551c6a;|MQRA:XARFMC:rollback:XAException-Except
ion=[C4036]: A server error occurred. user=guest,
broker=localhost:7676(4563)|#]
---
In ./instances/imqbroker/log/log.txt:
[16/May/2007:10:43:31 EST] ERROR [B3100]: Unexpected Broker Internal
Error : [Uncaught Exception] :
com.sun.messaging.jmq.jmsserver.util.BrokerException: [B4117]:
Unexpected Broker Exception: [Unexpected Error processing message]
	at
com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRo
uter.java:157)
	at
com.sun.messaging.jmq.jmsserver.service.imq.IMQConnection.readData(IMQCo
nnection.java:1868)
	at
com.sun.messaging.jmq.jmsserver.service.imq.IMQConnection.process(IMQCon
nection.java:822)
	at
com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(Op
erationRunnable.java:143)
	at
com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnabl
e.java:459)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
	at
com.sun.messaging.jmq.jmsserver.core.Topic.forwardMessage(Topic.java:436
)
	at
com.sun.messaging.jmq.jmsserver.core.Topic.forwardOrphanMessage(Topic.ja
va:405)
	at
com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doRollb
ack(TransactionHandler.java:1213)
	at
com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.handle(
TransactionHandler.java:717)
	at
com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRo
uter.java:146)
	... 5 more
Cheers
Joe
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.