  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Subject: Re: URGENT - Image.getInstance error | Subject: Re: URGENT - Image.getInstance error 2007-11-05 - By Siva Gorantla
Back I guess you need to put escape character in your path. Try putting "\\" instead of "\" in your path URL. Just give a try.
Siva Gorantla
Satyajit Thadeshwar wrote:
>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@(protected) >>https://lists.sourceforge.net/lists/listinfo/itext-questions >>Buy the iText book: http://itext.ugent.be/itext-in-action/ >> >> >> >> > > >
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> I guess you need to put escape character in your path. Try putting "\\" instead of "\" in your path URL.<br> Just give a try.<br> <br> Siva Gorantla<br> <br> Satyajit Thadeshwar wrote: <blockquote cite="mid13584855.post@(protected)" type="cite"> <pre wrap="">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: </pre> <blockquote type="cite"> <pre wrap="">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 >> <a class="moz-txt-link-freetext" href="http://get.splunk.com/">http://get.splunk.com/</a> __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list <a class="moz-txt-link-abbreviated" href="mailto:iText-questions@(protected) .sourceforge.net">iText-questions@(protected)</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists /listinfo/itext-questions">https://lists.sourceforge.net/lists/listinfo/itext -questions</a> Buy the iText book: <a class="moz-txt-link-freetext" href="http://itext.ugent .be/itext-in-action/">http://itext.ugent.be/itext-in-action/</a>
</pre> </blockquote> <pre wrap=""><!----> </pre> </blockquote> </body> </html>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |