Hi Stefano,
On Nov 14, 2006, at 4:08 AM, Stefano Bagnara wrote:
Hi Michael,
you may want to submit a bugreport here:
http://sourceforge.net/tracker/?atid=118000&group_id=18000&func=browse
including some more information about the failing test.
I see that the test has 3 asserts: can you tell what assert is
failing and what is the bad result causing the fail.
The first assert passes. Then it never gets to the second one,
because an IOException is thrown from the second call to getByName().
I found a post on dnsjava forums at sourceforge that indicates that
this is a known problem with the JVM on OS X 10.3:
http://sourceforge.net/forum/forum.php?thread_id=1473832&forum_id=57044
A suggested workaround is given to add code to catch and ignore the
exception. I may spend some time looking into this possibility.
----
public void test_getByName() throws UnknownHostException {
InetAddress out = Address.getByName("128.145.198.231");
assertEquals("128.145.198.231", out.getHostAddress());
out = Address.getByName("serl.cs.colorado. assertEquals
("serl.cs.colorado.edu", out.getCanonicalHostName());
assertEquals("128.138.207.163", out.getHostAddress());
}
----
What does it happen in every machine when you type the following
command:
"host -t a serl.cs.colorado.edu"
"serl.cs.colorado.edu has address 128.138.207.163"
(Please run it multiple times to be sure you always get the same
result)
Believe me Stefano! I have been! :-)
And thanks again for your help. Much appreciated.
-Mike.
Stefano
Michael Bryant wrote:
On Nov 10, 2006, at 4:18 PM, Noel J. Bergman wrote:
What host name? I can try it from my end.
--- Noel
I have spent time today runnning the unit tests on dnsjava version
2.0.2.
On two machines that run OS X version 10.3.9 with Java 1.4.2, the
test case "test_getByName" fails.
On my notebook that runs OS X version 10.4.8 with either Java
1.4.2 or Java 1.5, all test cases run successfully on both JVMs.
It appears that there is an issue with the 1.4.2 JVM on OS X 10.3,
and I think that this is probably the root cause of this problem.
At this point, Noel, I see no reason for you to spend any more
time on this. Thanks for your help.
-Mike Bryant.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]