-
Bug
-
Resolution: Not an Issue
-
P3
-
1.4.2_11
-
x86
-
linux_suse_sles_9
java.net.InetAddress.getByName("0") is throwing UnknownHostException on SLES9 with 142_XX
Test : AddressTypes is failing in SLES9 OS but Passing in all other Linux(RHEL,SuSe9.3pro)
Testcase location:
------------------
/net/urts076.india/export/testSuites/142/Network-tonga/testbase/src/InetAddress/AddressTypes/
OS Details:
-----------
vm150610@urti021:/> cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
---------------------------
vm150610@urti021:/> uname -a
Linux urti021 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004 i686 i686 i386 GNU/Linux
Steps to Reproduce:
--------------------
1.
Install 142_11-b02(or any jdk bundle) to the test machine
2.
Copy the Testcase folder to the testmachine
cp -R /net/urts076.india/export/testSuites/142/Network-tonga/testbase/src/InetAddress/AddressTypes/ <Test-location>
(or)
Take the attached AddressTypes.tar.Z file and untar it into your testmachine
3.
Execute AddressTypes.ksh file
ksh AddressTypes.ksh <workDir> <JAVA-install-location>
( or )
use the below command
<JAVA-install-location>/bin/java $@ AddressTypes -f ./data/AddressTypes.data
expected:
---------
FINALSTATUS:AddressTypes:EXIT_PASS:0:TEST PASSED
actual:
-------
*************************************************************************
vm150610@urti021:/export/updates/Networking/142_Networking/142_11-b02/AddressTypes> ./j2sdk1.4.2_09/bin/java $@ AddressTypes -f ./data/AddressTypes.data
ERROR: AddressTypes.isAnyLocalAddressPositive(): exception occurred:
java.net.UnknownHostException: 0: 0
java.net.UnknownHostException: 0: 0
at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:212)
at AddressTypes.performAddTests(AddressTypes.java:136)
at AddressTypes.main(AddressTypes.java:81)
ERROR: AddressTypes.main(): exception occurred:
java.lang.NullPointerException
java.lang.NullPointerException
at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:220)
at AddressTypes.performAddTests(AddressTypes.java:136)
at AddressTypes.main(AddressTypes.java:81)
FINALSTATUS:AddressTypes:EXIT_ERROR:2:Number of ERRORS:2:TEST INCOMPLETE
*************************************************************************
Test : AddressTypes is failing in SLES9 OS but Passing in all other Linux(RHEL,SuSe9.3pro)
Testcase location:
------------------
/net/urts076.india/export/testSuites/142/Network-tonga/testbase/src/InetAddress/AddressTypes/
OS Details:
-----------
vm150610@urti021:/> cat /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
---------------------------
vm150610@urti021:/> uname -a
Linux urti021 2.6.5-7.97-smp #1 SMP Fri Jul 2 14:21:59 UTC 2004 i686 i686 i386 GNU/Linux
Steps to Reproduce:
--------------------
1.
Install 142_11-b02(or any jdk bundle) to the test machine
2.
Copy the Testcase folder to the testmachine
cp -R /net/urts076.india/export/testSuites/142/Network-tonga/testbase/src/InetAddress/AddressTypes/ <Test-location>
(or)
Take the attached AddressTypes.tar.Z file and untar it into your testmachine
3.
Execute AddressTypes.ksh file
ksh AddressTypes.ksh <workDir> <JAVA-install-location>
( or )
use the below command
<JAVA-install-location>/bin/java $@ AddressTypes -f ./data/AddressTypes.data
expected:
---------
FINALSTATUS:AddressTypes:EXIT_PASS:0:TEST PASSED
actual:
-------
*************************************************************************
vm150610@urti021:/export/updates/Networking/142_Networking/142_11-b02/AddressTypes> ./j2sdk1.4.2_09/bin/java $@ AddressTypes -f ./data/AddressTypes.data
ERROR: AddressTypes.isAnyLocalAddressPositive(): exception occurred:
java.net.UnknownHostException: 0: 0
java.net.UnknownHostException: 0: 0
at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
at java.net.InetAddress.getAllByName0(InetAddress.java:981)
at java.net.InetAddress.getAllByName(InetAddress.java:975)
at java.net.InetAddress.getByName(InetAddress.java:889)
at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:212)
at AddressTypes.performAddTests(AddressTypes.java:136)
at AddressTypes.main(AddressTypes.java:81)
ERROR: AddressTypes.main(): exception occurred:
java.lang.NullPointerException
java.lang.NullPointerException
at AddressTypes.isAnyLocalAddressPositive(AddressTypes.java:220)
at AddressTypes.performAddTests(AddressTypes.java:136)
at AddressTypes.main(AddressTypes.java:81)
FINALSTATUS:AddressTypes:EXIT_ERROR:2:Number of ERRORS:2:TEST INCOMPLETE
*************************************************************************