Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When a client sends a message to a room in MUC, an exception is thrown in org.apache.vysper.xmpp.delivery.inbound.DeliveringInboundStanzaRelay$Relay.deliverToBareJID(). The following is the log file (with some extras from such a run):
stanza.client INFO message.body.Fooo
stanza.client DEBUG Received stanza: <message id="ml1g6-10" to="room@chat.vysper.org" type="groupchat"><body>Fooo</body></message>
org.apache.vysper.xmpp.modules.extension.xep0045_muc.handler.MUCMessageHandler DEBUG Received message for MUC
org.apache.vysper.xmpp.modules.extension.xep0045_muc.handler.MUCMessageHandler DEBUG Received groupchat message to room@chat.vysper.org
org.apache.vysper.xmpp.modules.extension.xep0045_muc.handler.MUCMessageHandler DEBUG Relaying message to all room occupants
org.apache.vysper.xmpp.modules.extension.xep0045_muc.handler.MUCMessageHandler DEBUG Relaying message to test2@vysper.org/334074766a8d457a8254cb06d04a3dc5
org.apache.vysper.xmpp.modules.extension.xep0045_muc.handler.MUCMessageHandler DEBUG Relaying message to test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2
Relay.deliver() to test2@vysper.org/334074766a8d457a8254cb06d04a3dc5
Relay.deliver() to room@chat.vysper.org
Relay.deliver() to test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2
Relay.deliverToBareJID <message id="ml1g6-10" to="room@chat.vysper.org" type="groupchat" from="test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2"><body>Fooo</body></message>
stanza.server INFO message.body.Fooo
stanza.server INFO Sent stanza: <message id="ml1g6-10" to="test2@vysper.org/334074766a8d457a8254cb06d04a3dc5" type="groupchat" from="room@chat.vysper.org/Nick"><body>Fooo</body></message>
org.apache.vysper.xmpp.delivery.failure.ServiceNotAvailableException
at org.apache.vysper.xmpp.delivery.inbound.DeliveringInboundStanzaRelay$Relay.deliverToBareJID(DeliveringInboundStanzaRelay.java:207)
at org.apache.vysper.xmpp.delivery.inbound.DeliveringInboundStanzaRelay$Relay.deliver(DeliveringInboundStanzaRelay.java:178)
at org.apache.vysper.xmpp.delivery.inbound.DeliveringInboundStanzaRelay$Relay.call(DeliveringInboundStanzaRelay.java:133)
at org.apache.vysper.xmpp.delivery.inbound.DeliveringInboundStanzaRelay$Relay.call(DeliveringInboundStanzaRelay.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
at java.lang.Thread.run(Thread.java:613)
Relay.deliver() to test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2
stanza.server INFO message.body.Fooo
stanza.server INFO Sent stanza: <message id="ml1g6-10" to="test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2" type="groupchat" from="room@chat.vysper.org/Nick"><body>Fooo</body></message>
stanza.server INFO message.body.Fooo
stanza.server INFO Sent stanza: <message to="test1@vysper.org/50932ac5d36e42e2b8759fbbf7e424a2" from="chat.vysper.org" type="error" id="ml1g6-10"><body>Fooo</body><error type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></service-unavailable><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">stanza could not be delivered</text></error></message>
As seen above, the message is successfully processed by the MUC module before the exception is thrown. Even though not seen in the log above, the exception happens on relaying a message to room@chat.vysper.org.