问题描述
使用sparkweb在登录的时候,登录不成功一闪而过而在创建用户的时候,提示NoresponsefromserverPlearetryagain后台报错:17:27:21,747ERRORConnectionHandler:183-Closingconnectionduetoerrorwhileprocessingmessage:<iqto="127.0.0.1"id="iq_1"type="set"><queryxmlns="jabber:iq:register"><username>test2</username><password>test2</password></query></iq>java.lang.NullPointerExceptionatorg.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler.java:91)atorg.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:295)atorg.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:187)atorg.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandler.java:181)atorg.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)atorg.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)atorg.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)atorg.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)atorg.apache.mina.common.IoFilterAdapter.messageReceived(IoFilterAdapter.java:80)atorg.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)atorg.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)atorg.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)atorg.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)atorg.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:185)atorg.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)atorg.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)atorg.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)atorg.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:239)atorg.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:283)atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)atorg.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)atjava.lang.Thread.run(Thread.java:619)分不多,求大神解答
解决方案
解决方案二:
得进去调,看ClientStanzaHandler.java:91行为什么抛NullPointerException异常
解决方案三:
spark客户端也一样的错误么?
解决方案四:
引用1楼woeser的回复:
得进去调,看ClientStanzaHandler.java:91行为什么抛NullPointerException异常
packet.setFrom(session.getAddress());session.getAddress()获取的值是空的。。
解决方案五:
引用2楼woeser的回复:
spark客户端也一样的错误么?
没有spark客户端一切正常而且如果我直接不用源码启动openfire而是直接用官网上下的zip包直接解压后启动服务的的话sparkweb也是正常的