使用飞碟将 xhtml 转换为 PDF 时,出现以下异常:
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getInIfOpen(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at org.xhtmlrenderer.css.parser.Lexer.zzRefill(Lexer.java:1634)
at org.xhtmlrenderer.css.parser.Lexer.yylex(Lexer.java:1865)
at org.xhtmlrenderer.css.parser.CSSParser.next(CSSParser.java:1778)
at org.xhtmlrenderer.css.parser.CSSParser.la(CSSParser.java:1790)
at org.xhtmlrenderer.css.parser.CSSParser.stylesheet(CSSParser.java:157)
at org.xhtmlrenderer.css.parser.CSSParser.parseStylesheet(CSSParser.java:87)
at org.xhtmlrenderer.context.StylesheetFactoryImpl.parse(StylesheetFactoryImpl.java:78)
at org.xhtmlrenderer.context.StylesheetFactoryImpl.parse(StylesheetFactoryImpl.java:95)
atorg.xhtmlrenderer.context.StylesheetFactoryImpl.getStylesheet(StylesheetFactoryImpl.java:174)
at org.xhtmlrenderer.context.StyleReference.readAndParseAll(StyleReference.java:123)
at org.xhtmlrenderer.context.StyleReference.setDocumentContext(StyleReference.java:107)
at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:175)
at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:142)
我可以通过以下链接查看 css 文件的内容:https://.../file.css 我已经在 JBOSS 服务器中创建了一个密钥库和证书,并确保 ssl.conf 指向它们(redhat) . 似乎https可能存在问题,但不知道如何解决这个问题。有没有人遇到过这个问题?
谢谢,--阿卜杜勒