Hi,

I am also getting the same error while reading a URL by using openStream()
method of URL class. Did you found any probable cause for this ?

- Satyajit


Dilip.Patel wrote:
> 
> Hi,
> 
> I am using iText to generate dynamic pdf. I am trying to use method
> Image.getInstace(URL). I am getting error: 
> The url is correct, if I put that url on browser, it opens the image.
> But it is not working in Java Code.
> Please help me as soon as possible. It is very urgent. I will be greatly
> appreciate.
> 
> Caused by: java.net.SocketException: Connection timed out:could be due
> to invalid address
>       at java.net.PlainSocketImpl.socketConnect(Native Method)
>       at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java(Compiled Code))
>       at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java(Compiled
> Code))
>       at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java(Compiled Code))
>       at java.net.Socket.connect(Socket.java(Compiled Code))
>       at java.net.Socket.connect(Socket.java(Compiled Code))
>       at java.net.Socket.<init>(Socket.java(Compiled Code))
>       at java.net.Socket.<init>(Socket.java(Inlined Compiled Code))
>       at com.ibm.jsse.bv.<init>(Unknown Source)
>       at com.ibm.jsse.JSSESocketFactory.createSocket(Unknown Source)
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Dasho
> Pro-V1.2-120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([Da
> shoPro-V1.2-120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-
> 120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoPro-
> V1.2-120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([DashoPro
> -V1.2-120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2
> -120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2
> -120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([
> DashoPro-V1.2-120198])
>       at
> com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputS
> tream([DashoPro-V1.2-120198])
>       at java.net.URL.openStream(URL.java:942)
> 
> Thank you,
> Dilip Patel
> Web Developer
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/URGENT---Image.getInstance-error-tf4671699.html#a13584855
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to