File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes HTTP Url Connection Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "HTTP Url Connection Error" Watch "HTTP Url Connection Error" New topic

HTTP Url Connection Error

Pankaj Singh

Joined: May 19, 2003
Posts: 2
I have an application deployed on Websphere which opens up HTTP URL connection to different other app server.
It takes URL list as a parameter , appends some parameter and invokes the connect method.

Something like:
final URL url = new URL(urlStr.toString());
urlConnection = (HttpURLConnection) url.openConnection();
final int returnCode = urlConnection.getResponseCode();

We have two data center on Production and this works on one . i.e the return code comes back as 200 whereas it fails on other data centers (returns error code as 503,404,406 etc) for the same set of URL's.

Also if i were to take those URL and invoke them directly from teh browser it works all the time.

I'm ruling out this to be a code issue otherwise it shodln't be working on one data center.

I'm wondering is there a Websphere App Server conatiner property which will only permit URL's coming from a known source ?

Any other thoughts as to what should be checked as far as configuration goes ?
jQuery in Action, 2nd edition
subject: HTTP Url Connection Error
Similar Threads
problems with getting text from field...
jsse in websphere, ssl to ldap
Sensing Stale connection
How can two servlets deployed in separate web modules share a list of Java beans?
Websphere MQ client not closing MQ connection