• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet unable to connect to URL : WAS6.1

 
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am creating a URL =new URL("www.somesite.com/pdf/pdfa.pdf");
When this Servlet is invoked , I am getting this error.


I get error
IOException msg=Operation timed out: connect:could be due to invalid address: null
java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:331)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:196)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.connect(Socket.java:428)
at com.ibm.net.ssl.www2.protocol.http.x.b(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.a(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.p(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.<init>(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.<init>(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.a(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.a(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.y.a(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.bb.c(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.bb.connect(Unknown Source)
at com.ibm.net.ssl.www2.protocol.http.bb.getInputStream(Unknown Source)
at java.net.URL.openStream(URL.java:941)
at edu.servlet.pdf.PdfBase.openDocument(Pdf.java:60)

This URL when hit by a browser can be accessed.
More about the box on which the servlet is .
It is a WebSphere WAS6.1 server which is having two address IP Sec.
It is a DMZ box .
Anyone having any idea why I would not be able to access this URL ?
Any idea how to go about debugging this on a WAS 6.1 environment.


Thanks
Dhiren
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It isn't a valid URL, that's all. Nothing to do with Websphere at all. Try this instead:
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic