问题描述
我们已经在Android和iOS应用程序上使用过Openfire聊天,并且所有功能以前都运行良好,但是现在在聊天中我们遇到了一些意外行为,例如消息花费了更多的时间发送和接收.我们的应用程序已上线.
We have used Openfire chatting with Android and iOS applications and all things are working perfectly before, but we are facing some unexpected behavior in chatting right now, like messages are taking more time to send and receive. Our app is live.
我正在共享Openfire服务器调试和错误日志以及一些屏幕截图.我如何找出服务器上到底发生了什么问题,以及解决该问题的解决方案是什么?
I am sharing Openfire server debug and error logs and some screenshots. How can I find out what exactly issue happening with server and what could be the solution to resolve this issue?
还从服务器获取一些错误日志.
Also getting some error log from server.
org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to error while processing message: <<iqpresence idid='PZzuN-791=''PZzuN-792 '>type<='cget xmlns='http://jabber.org/protocol/caps'' >hash<query xmlns='jabber:iq:roster'>='</query></iq>sha-1' node='<iqhttp://www.igniterealtime.org/projects/smack 'to ='verlivechat.mingletainment.com' id='56-228034331'=' zUcpnM4/q+DDwIoGAIS6ZXa38LA=type'='/>result</'></iq>presence><iq id='PZzuN-832' type='get'><query xmlns='jabber:iq:roster'></query></iq><r xmlns='urn:xmpp:sm:3'/>
以下是Android应用程序错误日志:
Here are the Android application error logs:
D/XMPP-MYXMPP: connected
2018-10-26 15:09:05.962 11103-11291/ W/Roster: Roster not loaded while processing Presence Stanza [to=livechat.xxx.com/5m7mtgx4ap,id=rRwJ2-3,type=error,status=online,prio=24,]
2018-10-26 15:09:05.981 11103-11238/ D/XMPP-MYXMPP: login: 1540546745981
2018-10-26 15:09:05.999 11103-11275/ W/AbstractXMPPConnection: Connection XMPPTCPConnection[not-authenticated] (0) closed with error
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.hashCode()' on a null object reference
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1032)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:993)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1009)
at java.lang.Thread.run(Thread.java:764)
以下是来自openfire服务器的日志
Below are logs from openfire server
推荐答案
我通过增加Roaster和元数据的缓存解决了这个问题,并且现在可以正常使用了.
I solved this issue with increasing caches of Roaster and metadata and it working fine now.
这篇关于Openfire聊天意外行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!