在测试建立两台服务器间的通信时报错,建立服务期间session出错,debug信息如下:
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Trying to connect to **:5269(DNS lookup: **:5269)
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Plain connection to **:5269 successful
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Indicating we want TLS to **
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Negotiating TLS with **
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - TLS negotiation with ** was successful
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Error, EXTERNAL SASL and SERVER DIALBACK were not offered by **
[DEBUG,LocalOutgoingServerSession,pool-12-thread-5] LocalOutgoingServerSession: OS - Going to try connecting using server dialback with: **
[DEBUG,DNSUtil,pool-12-thread-5] No SRV record found for: _xmpp-server._tcp.**
javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '_xmpp-server._tcp.**'
at com.sun.jndi.dns.DnsClient.checkResponseCode(DnsClient.java:596)
at com.sun.jndi.dns.DnsClient.isMatchResponse(DnsClient.java:553)
at com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:399)
at com.sun.jndi.dns.DnsClient.query(DnsClient.java:186)
at com.sun.jndi.dns.Resolver.query(Resolver.java:64)
at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:413)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109)
at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:123)
at org.jivesoftware.openfire.net.DNSUtil.srvLookup(DNSUtil.java:200)
at org.jivesoftware.openfire.net.DNSUtil.resolveXMPPDomain(DNSUtil.java:131)
at org.jivesoftware.openfire.server.ServerDialback.createOutgoingSession(ServerDialback.java:209)
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSession(LocalOutgoingServerSession.java:400)
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain(LocalOutgoingServerSession.java:167)
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPacket(OutgoingSessionPromise.java:262)
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(OutgoingSessionPromise.java:238)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[DEBUG,DNSUtil,pool-12-thread-5] No SRV record found for: _jabber._tcp.**
javax.naming.NameNotFoundException: DNS name not found [response code 3]; remaining name '_jabber._tcp.**'
at com.sun.jndi.dns.DnsClient.checkResponseCode(DnsClient.java:596)
at com.sun.jndi.dns.DnsClient.isMatchResponse(DnsClient.java:553)
at com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:399)
at com.sun.jndi.dns.DnsClient.query(DnsClient.java:186)
at com.sun.jndi.dns.Resolver.query(Resolver.java:64)
at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:413)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:109)
at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:123)
at org.jivesoftware.openfire.net.DNSUtil.srvLookup(DNSUtil.java:200)
at org.jivesoftware.openfire.net.DNSUtil.resolveXMPPDomain(DNSUtil.java:133)
at org.jivesoftware.openfire.server.ServerDialback.createOutgoingSession(ServerDialback.java:209)
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSession(LocalOutgoingServerSession.java:400)
at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain(LocalOutgoingServerSession.java:167)
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPacket(OutgoingSessionPromise.java:262)
at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(OutgoingSessionPromise.java:238)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[DEBUG,ServerDialback,pool-12-thread-5] ServerDialback: OS - Trying to connect to **:5269(DNS lookup: **:5269)
[DEBUG,ServerDialback,pool-12-thread-5] ServerDialback: OS - Connection to **:5269 successful
[DEBUG,ServerDialback,pool-12-thread-5] ServerDialback: OS - Sent dialback key to host: ** id: 6b46155b from domain: 192.168.6.237
[DEBUG,ServerDialback,pool-12-thread-5] ServerDialback: OS - Unexpected answer in validation from: ** id: 6b46155b for domain: 192.168.6.237 answer:<stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><dialback xmlns="urn:xmpp:features:dialback"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/></stream:features>
[DEBUG,OutgoingServerSocketReader,Outgoing Server Reader] OutgoingServerSocketReader: Finishing Outgoing Server Reader. No session to close.
java.net.SocketException: socket closed
设置xmpp.server.tls.enabled 为 false, 建立非tls服务器间会话,
之后debug信息:
LocalOutgoingServerSession: OS - About to try connecting using server dialback XMPP 1.0 with:**
...
之后通信一切正常。
原因下篇文章继续说明。
分享到:
相关推荐
共三个:coherence coherence-work tangosol
openfire为服务器的XMPP的即时通信样例
agsxmpp与openfire服务器登录,agsxmpp.dll修复登录和发消息的问题
基于openfire为服务器的xmpp即时通信 Android客户端
Openfire二次开发问题分析及解决资料,列举了二次开发过程中可能会遇到的问题及解决的把办法。
跨平台的即时通讯服务器,在网上不容易找到的,安装即可,大家喜欢的可以下载后,安装搭建
这是一篇openfire服务器部署的文档,里面描述如何安装配置Openfire3.8.2服务器,并集成现有系统的用户管理。
Win7+Openfire3.7.0代码部署 Openfire网站提供SVN获取代码
安装Openfire服务器
是开源的、基于可拓展通讯和表示协议(XMPP)、采用Java编程语言开发的实时协作服务器。 Openfire安装和使用都非常简单,并利用Web进行管理。单台服务器可支持上万并发用户。
openfire服务器、openfire,聊天服务器
基于Openfire服务器的用户行为审计插件设计与实现.pdf
详细的介绍了mac 下搭建openfire服务器。简单明了,一看就懂!欢迎下载。
Dockerized Openfire XMPP服务器 基于Ubuntu GNU / Linux官方映像。 准备 拉图像 docker pull unixs/openfire 创建本地数据持久性目录 mkdir ~ /openfire 准备本地数据 只运行一次。 注意: ~/openfire本地数据...
Openfire服务器安装包,本地配置直接解压安装即可。
openfire服务器插件,用于扩展服务器的管理
基于openfire服务器的的IM系统源程序,用基于QT的QXMPP协议库封装的
android 基于openfire服务器搭建的xmpp即时聊天客户端 android+asmack+openfire+xmpp
基于XMPP协议的Samck库提供一套PubSub的功能,这是基于openfire服务器的消息订阅-发布系统核心代码。代码需要修改一部分才可心使用,本人修改后的代码请参照另一篇文章:...
这是为openfire服务器开发插件的简单demo,参照博客:http://blog.csdn.net/ibm_hoojo/