Artur Hefczyc opened 1 decade ago
|
|
I tried to recreate issue but I was unable to do so. I checked code of DNSResovler and each code related to parsing number is properly inside following clause try { x = Integer.parseInt(z); } catch(Exception ex) {}so it is impossible to receive NumberFormatException from there as it would be caught already. I checked DNSResovler against xmpp.org, gmail.com (both have IPv6 addresses) and it worked well. I also checked domain passed for adhoc command to add and it also worked fine (domain resolved only to IPv4 address!) . I suppose that error might be related to DNS server which is used, which could return SRV record in improper format. I would also suggest to check if DNS SRV records are ok. |
|
Maybe the bug (and exception) is in the Groovy script validating vhost which is being added, not in the DNSResolver as it was suggested before? |
|
I also checked script and VHostItem implementation to find any possible source of this exception but I was unable to identify it. I suppose that in Tigase XMPP Server logs might be more information about this exception including possible source of origin. |
|
User's comments form the forums: bq. as the server was executing a groovy admin script, there is no other server log but the stanza itself with the stacktrace being passed around the processoers. If it helps, the /etc/resolv.conf had the nameservers I've mentioned previously. |
|
Andrzej, Is there anything the user could provide that would help you track it down? Maybe some details that would help to replicate the problem locally? |
|
two things that might help:
|
|
I looked once again into this issue and I think I might have found a cause. I tried to replicate this issue and I was able to replicate it only by setting following property for @InitialDirContext@, example:
which is not valid DNS url, it should be I suppose that having this set as system Java property might also cause this issue. I also tried to check if setting IPv6 address of DNS server in To investigate it more I would need to see |
|
/etc/resolv.conf
Tigase version
Java version
System Properties
|
|
After looking at provided content of |
|
Have you tried a different version of JDK? Can you recommend a version of JDK that works as a solution to the problem? |
|
Unfortunately in my own environment which had IPv6 configured and working lost IPv6 support when I changed hosting provider and current one cannot fix this issue for 3 months now so I could not check support in other JDK versions. I do not know if our servers have IPv6 configured and if we have any DNS server configured to serve DNS records on IPv6 to verify other JDK versions for this issue. Right now as a solution I would recommend to remove IPv6 addresses of DNS servers from |
|
Abmar, please let us know if this helped you solving the problem. |
|
For completeness and the record. You tripped over a 4 year old Java bug: https://bugs.openjdk.java.net/browse/JDK-6991580 |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
2165
|
Here is the original report from a user on the forums: message#2833