powered by Jive Software

IllegalStateException in RecursiveDNSClient.queryRecursive

Hello!

Sometimes I got IllegalStateException in RecursiveDNSClient using Smack 4.2.0-beta3-SNAPSHOT

I think I was not detectead earlier.

Fatal Exception: java.lang.IllegalStateException

at java.util.ArrayList$Itr.remove(ArrayList.java:844)

at de.measite.minidns.recursive.RecursiveDNSClient.queryRecursive(RecursiveDNSClie nt.java:185)

at de.measite.minidns.recursive.RecursiveDNSClient.queryRecursive(RecursiveDNSClie nt.java:180)

at de.measite.minidns.recursive.RecursiveDNSClient.queryRecursive(RecursiveDNSClie nt.java:138)

at de.measite.minidns.recursive.RecursiveDNSClient.query(RecursiveDNSClient.java:1 04)

at de.measite.minidns.recursive.ReliableDNSClient.query(ReliableDNSClient.java:102 )

at de.measite.minidns.AbstractDNSClient.query(AbstractDNSClient.java:121)

at de.measite.minidns.hla.ResolverApi.resolve(ResolverApi.java:63)

at de.measite.minidns.hla.ResolverApi.resolve(ResolverApi.java:52)

at de.measite.minidns.hla.ResolverApi.resolve(ResolverApi.java:46)

at org.jivesoftware.smack.util.dns.minidns.MiniDnsResolver.lookupSRVRecords0(MiniD nsResolver.java:75)

at org.jivesoftware.smack.util.dns.DNSResolver.lookupSRVRecords(DNSResolver.java:4 5)

at org.jivesoftware.smack.util.DNSUtil.resolveDomain(DNSUtil.java:187)

at org.jivesoftware.smack.util.DNSUtil.resolveXMPPServiceDomain(DNSUtil.java:136)

at org.jivesoftware.smack.AbstractXMPPConnection.populateHostAddresses(AbstractXMP PConnection.java:609)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPC onnection.java:552)

at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:882)

at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.ja va:372)

Since this happening in MiniDNS, I’ve created MiniDNS issue #43: IllegalStateException in RecursiveDNSClient.queryRecursive · Issue #43 · rtreffer/minidns · GitHub

Thanks for reporting.

After update to Smack 4.2.0-beta3 error still happens. Need to downgrade to 4.2.0-beta2 again.

Note that the issue will only be fixed in Smack after a new version of MiniDNS got released and Smack is using this version. I hope to have that by the end of the month.