• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

java.net.UnknownHostException

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi - I have a servlet that tries to make a HttpURLConnection to a website outside of my domain. Basically we send some info to another website so that the website can put a Cookie on the user's machine and then redirect back to our website(we use this to brand our site when user's come through a portal). anyway, this works in our QA and stage environment but not in production. Our environment consists of Weblogic 5.1 and Netscape on Unix (Sun Solaris) machines. We added the url to the host file in the production environment, but everytime we try to connect(which we do first to make sure the other website is "up"), our code throws a UnknownHostException - any clues?
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What did you do to get the HttpURLConnection object for the site you want to access ? Using java.net.URL.openConnection() method ? How about trying to use IP address instead of hostnames ?
 
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic