powered by Jive Software

S2s not working " Error authenticating domain with remote server"

Hello, my problem is simple, my jabber server is unable to communicate with outside world. Connectivity and setting is OK. Openfire is 3.7.0.

Error is thrown each time server has incoming/outgoing connection on 5269 port:

2011.06.07 22:48:39 Error authenticating domain with remote server: jabbim.cz

java.lang.NumberFormatException: For input string: “:1”

  •    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)*
    
  •    at java.lang.Integer.parseInt(Integer.java:447)*
    
  •    at java.lang.Integer.parseInt(Integer.java:497)*
    
  •    at com.sun.jndi.dns.DnsClient.<init>(DnsClient.java:105)*
    
  •    at com.sun.jndi.dns.Resolver.<init>(Resolver.java:44)*
    
  •    at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:553)*
    
  •    at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:413)*
    
  •    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContex t.java:213)*
    
  •    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompos iteDirContext.java:121)*
    
  •    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompos iteDirContext.java:109)*
    
  •    at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:1 23)*
    
  •    at org.jivesoftware.openfire.net.DNSUtil.srvLookup(DNSUtil.java:199)*
    
  •    at org.jivesoftware.openfire.net.DNSUtil.resolveXMPPDomain(DNSUtil.java:131)*
    
  •    at org.jivesoftware.openfire.session.LocalOutgoingServerSession.createOutgoingSess ion(LocalOutgoingServerSession.java:269)*
    
  •    at org.jivesoftware.openfire.session.LocalOutgoingServerSession.authenticateDomain (LocalOutgoingServerSession.java:167)*
    
  •    at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.sendPa cket(OutgoingSessionPromise.java:261)*
    
  •    at org.jivesoftware.openfire.server.OutgoingSessionPromise$PacketsProcessor.run(Ou tgoingSessionPromise.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)*
    

Thanks for reading.

nx

This bug is still not fixed. But there is a workaround.

Your system name-server is “::1” (the IPv6 loopback address) and this confuses Openfire Server. Set your system name-server to “127.0.0.1” to get it working until they fix this.