Error in Tomcat

javax.net.ssl.SSLHandshakeException: NotAfter: Sun Dec 29 13:46:02 PST 2002

>  -----Original Message-----
> From:         Tuan H. Le  
> Sent: Wednesday, March 26, 2003 5:52 PM
> To:   Tuan H. Le; '[EMAIL PROTECTED]'
> Subject:      RE: Error generating/opening PDF file on HTTPS
> 
> After adding these lines, it works!
> 
>     response.setHeader("Expires", "0");
>     response.setHeader("Cache-Control", "must-revalidate, post-check=0, 
> pre-check=0");
>     response.setHeader("Pragma", "public");
> 
> I also encounter a new issue with image
> 
>     // create and add the letter logo for testing
>     String newUrlStr = "https://www.xyz.com/common/images/phsLogo.jpg";;
>     URL imageUrl = new URL( newUrlStr );
>     Image letterLogo = Image.getInstance(imageUrl);
>     document.add(letterLogo);
> 
> With the above code for adding an image into a document, now I see a blank PDF page. 
> Remove that those image lines, then it works fine. Though, I can view that image by 
> pointing that URL on my browser. Do you know what I'm missing?
> 
> Thanks,
> Tuan
> 
>        -----Original Message-----
>       From:   Tuan H. Le  
>       Sent:   Wednesday, March 26, 2003 5:03 PM
>       To:     Tuan H. Le; '[EMAIL PROTECTED]'
>       Subject:        RE: Error generating/opening PDF file on HTTPS
> 
>       Here's a partial of my code. Again, this code works fine on HTTP protocol, but 
> not HTTPS.
> 
>          // create a set of fonts for using within this document
>           Font fontNormal = new Font(Font.TIMES_ROMAN, 12, Font.NORMAL, Color.BLACK);
>           Font fontBoldUnderline = new Font(Font.TIMES_ROMAN, 12,
>                                             Font.BOLD | Font.UNDERLINE, Color.BLACK);
>           Font fontUnderline = new Font(Font.TIMES_ROMAN, 12, Font.UNDERLINE,
>                                         Color.BLACK);
> 
>           // creation of the document with a certain size (LETTER) and certain 
> margins
>           // page size, margin left, margin right, margin top, margin bottom
>           Document document = new Document(PageSize.A4, 50, 50, 50, 20);
>           document.compress = false;
>           document.addSubject("Employee Pay Letter");
> 
>           ByteArrayOutputStream baos = new ByteArrayOutputStream();
>           // creation of the writer
>           PdfWriter.getInstance(document, baos);
> 
>           // create paragraphs
>           Paragraph coreSectionPara = new Paragraph(leading,
>                                                     "This is a test",
>                                                     fontNormal);
>            // we add a Footer that will show up on the first page
>           HeaderFooter footer = new HeaderFooter(new Phrase("v.2"), false);
>           footer.setBorder(Rectangle.NO_BORDER);
>           document.setFooter(footer);
> 
>           document.open();
> 
>           document.add(coreSectionPara); // add the core section paragraph
>           document.close();
> 
>           response.setContentType("application/pdf");
>           response.setContentLength(baos.size());
>           ServletOutputStream out = response.getOutputStream();
>           baos.writeTo(out);
>           baos.close();
>           out.flush();
> 
>                -----Original Message-----
>               From:   Tuan H. Le  
>               Sent:   Wednesday, March 26, 2003 4:57 PM
>               To:     '[EMAIL PROTECTED]'
>               Subject:        Error generating/opening PDF file on HTTPS
> 
>               Hi,
> 
>               Our application runs fine on both non-secure (HTTP) and secure (HTTPS) 
> sites for all features but it has an error on the secure site (HTTPS) when it 
> generates a PDF file. For this same feature on a non-secure (HTTP), it works fine.
> 
>               The error is:
> 
>               Internet Explorer cannot download .... from ....
>               Internet Explorer was not able to open this Internet site. The 
> requested site is either unavailable or cannot be found. Please try again later.
> 
>               We are using iText-097 with Struts 1.1.
> 
>               Please advise on how to fix this issue.
> 
>               Thanks,
>               Tuan


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to