Error in interceptor for MSN/Yahoo/OSCAR/XMPP

Description

Imported issue was from webeling:
Several errors regarding the interceptor. The error log entries start with:

Error in interceptor: org.jivesoftware.openfire.gateway.protocols.msn.MSNTransport@a96439 while intercepting:
Error in interceptor: org.jivesoftware.openfire.gateway.protocols.oscar.OSCARTransport@55c577 while intercepting:
Error in interceptor: org.jivesoftware.openfire.gateway.protocols.oscar.OSCARTransport@61e262 while intercepting:
Error in interceptor: org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPTransport@1174245 while intercepting:
Error in interceptor: org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPTransport@18c7159 while intercepting:
Error in interceptor: org.jivesoftware.openfire.gateway.protocols.yahoo.YahooTransport@c7660 while intercepting:

The error log entries after that go one like this:

<iq id="vbJ0r-267" type="set" from="john.doe@jabber.int/spark">
<query xmlns="jabber:iq:roster">
<item jid="minnie.mouse\40hotmail.com@msn.jabber.int" name="minnie.mouse@hotmail.com" subscription="to">
<group>Friends</group>
</item>
</query>
</iq>
java.lang.NullPointerException
at org.jivesoftware.openfire.gateway.protocols.msn.MSNSession.updateContact(MSNSession.java:334)
at org.jivesoftware.openfire.gateway.roster.TransportBuddy.setNicknameAndGroups(TransportBuddy.java:277)
at org.jivesoftware.openfire.gateway.BaseTransport.interceptPacket(BaseTransport.java:2497)
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:228)
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:81)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:319)
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:79)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:284)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176)
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133)
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.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)

The other one I see looks like this:

<iq id="CYE3S-334" type="set" from="jim.smith@jabber.int/spark">
<query xmlns="jabber:iq:roster">
<item jid="susanmiller\40hotmail.com@msn.jabber.int.kn" name="Susan Miller" subscription="to">
<group>Amigos</group>
</item>
</query>
</iq>
java.lang.IllegalStateException: session is not available
at net.sf.cindy.impl.ChannelSession.write(ChannelSession.java:329)
at net.sf.jml.protocol.MsnSession.sendAsynchronousMessage(MsnSession.java:181)
at net.sf.jml.impl.BasicMessenger.send(BasicMessenger.java:119)
at net.sf.jml.impl.AbstractMessenger.send(AbstractMessenger.java:141)
at net.sf.jml.impl.SimpleMessenger.renameFriend(SimpleMessenger.java:220)
at org.jivesoftware.openfire.gateway.protocols.msn.MSNSession.updateContact(MSNSession.java:335)
at org.jivesoftware.openfire.gateway.roster.TransportBuddy.setNicknameAndGroups(TransportBuddy.java:277)
at org.jivesoftware.openfire.gateway.BaseTransport.interceptPacket(BaseTransport.java:2497)
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:228)
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:81)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:319)
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:79)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:284)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176)
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133)
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.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)

Another one:

2009.01.20 13:36:49 [org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:240)] Error in interceptor: org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPTransport@18c7159 while intercepting:
<iq id="TX4bQ-131" type="set" from="john.smith@jabber.int/spark">
<query xmlns="jabber:iq:roster">
<item jid="susanmiller\40gmail.com@gtalk.jabber.int" name="Susan Miller" subscription="to">
<group>Amigas</group>
</item>
</query>
</iq>
java.lang.IllegalArgumentException: Group with name Amigas alread exists.
at org.jivesoftware.smack.Roster.createGroup(Roster.java:212)
at org.jivesoftware.openfire.gateway.protocols.xmpp.XMPPSession.updateContact(XMPPSession.java:412)
at org.jivesoftware.openfire.gateway.roster.TransportBuddy.setNicknameAndGroups(TransportBuddy.java:277)
at org.jivesoftware.openfire.gateway.BaseTransport.interceptPacket(BaseTransport.java:2497)
at org.jivesoftware.openfire.interceptor.InterceptorManager.invokeInterceptors(InterceptorManager.java:228)
at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:110)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:68)
at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:319)
at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:79)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:284)
at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:176)
at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:133)
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:239)
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.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)

Environment

None

Assignee

Daniel Henninger

Reporter

Daniel Henninger