[
http://jira.jboss.com/jira/browse/JBAS-3791?page=all ]
Adrian Brock closed JBAS-3791.
------------------------------
Resolution: Incomplete Description
Assignee: (was: Adrian Brock)
Correct, this is uneducated guessing,
<guess>
As a guess (since it is the usual problem),
you have two JBossMQ instances sharing the same
database.
Other common causes involve replicating databases
that don't replicate synchronously.
</guess>
Genman already gave you link on how to post a bug
report and asked for more logging.
If you don't know how to provide more logging
the information is cunningly hidden at the top of the
forum in a sticky post:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=43573
I am going to raise a seperate bug report to fix
the NPE to give a more meaningful error message
when the message cannot be recovered from storage,
including hints on the problem.
e.g. Cannot recover message xxx from storage. Did somebody/thing else delete it, e.g. a
competing JBossMQ node? Does it exist now, i.e. it was slow in replicating?
NPE in org.jboss.mq.server.BasicQueue.setupMessageAcknowledgement()
-------------------------------------------------------------------
Key: JBAS-3791
URL:
http://jira.jboss.com/jira/browse/JBAS-3791
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: JMS service
Affects Versions: JBossAS-4.0.3 SP1
Environment: OS: Linux 2.6.9-22.0.2.ELsmp (amd64)
JVM Version: 1.5.0_08-b03 (Sun Microsystems Inc.)
JVM Name: Java HotSpot(TM) 64-Bit Server VM
Reporter: J?rg von Frantzius
In a clustered system with 4 server instances, and after having received a couple of
thousand of messages, we got the following exception in our logs. Afterwards, one
subscribing MDB won't be called in onMessage() anymore. The stuff I wrote in the forum
probably really is just unducated guessing.
2006-10-24 18:53:24,187 ERROR [UIL2(SocketManager.MsgPool@a52a72a
client=192.168.100.214:53381)#4 SocketManager] Failed to handle:
org.jboss.mq.il.uil2.msgs.ReceiveMsg2084258688[msgType: m_receive, msgID: -2147361440,
error: null]
java.lang.NullPointerException
at org.jboss.mq.server.BasicQueue.setupMessageAcknowledgement(BasicQueue.java:945)
at org.jboss.mq.server.BasicQueue.receive(BasicQueue.java:516)
at org.jboss.mq.server.JMSTopic.receive(JMSTopic.java:320)
at org.jboss.mq.server.ClientConsumer.receive(ClientConsumer.java:222)
at org.jboss.mq.server.JMSDestinationManager.receive(JMSDestinationManager.java:656)
at org.jboss.mq.server.JMSServerInvoker.receive(JMSServerInvoker.java:226)
at
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:155)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:595)
2006-10-24 18:53:24,251 WARN [Connection Consumer for dest
Subscription[subId=-2147483648connection=ConnectionToken:ID:23/null
destination=TOPIC.sgw/MOCacheInvalidationTopic messageSelector=null Local Create] id=12
SpyConnectionConsumer] Connection consumer closing due to error in listening thread
SpyConnectionConsumer[sub=Subscription[subId=-2147483648connection=ConnectionToken:ID:23/null
destination=TOPIC.sgw/MOCacheInvalidationTopic messageSelector=null Local Create]
messages=0 waitingForMessage=false internalThread=Thread[Connection Consumer for dest
Subscription[subId=-2147483648connection=ConnectionToken:ID:23/null
destination=TOPIC.sgw/MOCacheInvalidationTopic messageSelector=null Local Create]
id=12,5,jboss] sessionPool=org.jboss.jms.asf.StdServerSessionPool@6c6fff7a
connection=Connection@753785396[token=ConnectionToken:ID:23/null rcvstate=STARTED]]
org.jboss.mq.SpyJMSException: Cannot receive ; - nested throwable:
(java.lang.NullPointerException)
at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
at org.jboss.mq.Connection.receive(Connection.java:916)
at org.jboss.mq.SpyConnectionConsumer.run(SpyConnectionConsumer.java:238)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.jboss.mq.server.BasicQueue.setupMessageAcknowledgement(BasicQueue.java:945)
at org.jboss.mq.server.BasicQueue.receive(BasicQueue.java:516)
at org.jboss.mq.server.JMSTopic.receive(JMSTopic.java:320)
at org.jboss.mq.server.ClientConsumer.receive(ClientConsumer.java:222)
at org.jboss.mq.server.JMSDestinationManager.receive(JMSDestinationManager.java:656)
at org.jboss.mq.server.JMSServerInvoker.receive(JMSServerInvoker.java:226)
at
org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:155)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
... 1 more
--
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