dcsimg
UnknownHostException using IBM 1.4 JVM on AIX
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Matthew_Roland
Posted On:   Thursday, March 8, 2007 10:56 PM

I'm running a standalone java client that connects to website over https. Whenever I try to connect to a site say https://www.google.com I get an unknown host exception. Ping resolves to the proper IP and a reverse DNS lookup of the IP also works from the command line. The weird thing is that the old JVM I was using (IBM 1.3) works from this box just fine. It's only the new JVM (IBM 1.4) that fails. Both are installed as root, but every one has execute on all of the files. I'm NOT connecting through a proxy or firewall or anything (not that that should make a difference with this error). Also I can't just use the IP because java complains that the name on the certificate doesn't match the host (ie mail.google.com != 216.239.53.19) I   More>>

I'm running a standalone java client that connects to website over https. Whenever I try to connect to a site say https://www.google.com I get an unknown host exception. Ping resolves to the proper IP and a reverse DNS lookup of the IP also works from the command line.



The weird thing is that the old JVM I was using (IBM 1.3) works from this box just fine. It's only the new JVM (IBM 1.4) that fails.



Both are installed as root, but every one has execute on all of the files. I'm NOT connecting through a proxy or firewall or anything (not that that should make a difference with this error). Also I can't just use the IP because java complains that the name on the certificate doesn't match the host (ie mail.google.com != 216.239.53.19)



I can't figure out what's wrong, please help! The stack trace is shown below if it helps:



			java.net.UnknownHostException: mail.google.com
			
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:482)
at java.net.Socket.connect(Socket.java:432)
at java.net.Socket. (Socket.java:339)
at java.net.Socket. (Socket.java:150)
at com.ibm.jsse.bv. (Unknown Source)
at com.ibm.jsse.JSSESocketFactory.createSocket(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b.b(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.cb.a(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.cb.p(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b. (Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.q.c(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.q.connect(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.cj.getInputStream(Unknown Source)
at com.ibm.net.ssl.www.protocol.http.cj.getHeaderField(Unknown Source)
... 9 more
   <<Less
About | Sitemap | Contact