powered by Jive Software

NullPointerException in MessageRouter

We occasionally receive the following error messages in our logs:

2008.02.27 10:21:18 [org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHand ler.java:134)

]

Closing connection due to error while processing message: <message

id=“6iAvM-740” to="" type=“chat”><body>Project - Post-commit build 177 was SUCCESSFUL (with 336 tests).

Change made by Kevin Conaway

           https://server/bamboo/browse/PROJ-DEF-177</body></message>

java.lang.NullPointerExceptionat org.jivesoftware.openfire.MessageRouter.routingFailed(MessageRouter.java:183)at org.jivesoftware.openfire.MessageRouter.route(MessageRouter.java:99)at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:71)< span class=“hilite”>at org.jivesoftware.openfire.net.StanzaHandler.processMessage(StanzaHandler.java:3 39)at org.jivesoftware.openfire.net.ClientStanzaHandler.processMessage(ClientStanzaHa ndler.java:90)at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:200)at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:167)at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:132)

at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58)

at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:173)

at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299)

at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53)

at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648)

at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239)

at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)

at java.lang.Thread.run(Unknown Source)

This seems to happen when Atlassian Bamboo relays a message through Openfire. I’m not certain if Openfire or Bamboo is causing this error but I think that Openfire should handle it better.