Path

ez projects / paradoxpdf / forum / general / "io problem" for images and...


"IO problem" for images and CSS

You need to be logged in to post messages in the forums. New users may register here.

Marco Zinn

Member since:
09 January 2008

Posts: 26

Friday 16 April 2010 9:53:59 pm

Hi Karnichi,

first of all, thanks for your continuous development on ParadoxPDF.
It's very nice :)

I tried the current (2.1.5) version on a new ezflow site running ez 4.3.

PDF creating works fine, but the PDF is missing the images. Also, it does not seem to be able the CSS file of the extension and current and total page numbers are not printed.

From the log:




org.xhtmlrenderer.load INFO:: Loaded document in ~148ms


org.xhtmlrenderer.load INFO:: TIME: parse stylesheets 64ms


org.xhtmlrenderer.match INFO:: media = print


org.xhtmlrenderer.load INFO:: Requesting stylesheet: http://HOSTNAME/extension/paradox.../standard/stylesheets/print-core.css


org.xhtmlrenderer.exception WARNING:: IO problem for http://HOSTNAME/extension/paradox.../standard/stylesheets/print-core.css


org.xhtmlrenderer.css-parse WARNING:: Couldn't parse stylesheet at URI http://HOSTNAME/extension/paradox.../standard/stylesheets/print-core.css: Stream closed


java.io.IOException: Stream closed


       at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)


       at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)


       at java.io.BufferedInputStream.read(BufferedInputStream.java:317)


       at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)


       at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)


       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)


       at java.io.InputStreamReader.read(InputStreamReader.java:167)


       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:1798)


       at org.xhtmlrenderer.css.parser.CSSParser.la(CSSParser.java:1810)


       at org.xhtmlrenderer.css.parser.CSSParser.stylesheet(CSSParser.java:159)


       at org.xhtmlrenderer.css.parser.CSSParser.parseStylesheet(CSSParser.java:89)


       at org.xhtmlrenderer.context.StylesheetFactoryImpl.parse(StylesheetFactoryImpl.java:78)


       at org.xhtmlrenderer.context.StylesheetFactoryImpl.parse(StylesheetFactoryImpl.java:95)


       at org.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)


       at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:138)


       at com.tricinty.ParadoxPDF.export(ParadoxPDF.java:121)


       at com.tricinty.ParadoxPDF.main(ParadoxPDF.java:59)


org.xhtmlrenderer.match INFO:: Matcher created with 118 selectors


org.xhtmlrenderer.exception WARNING:: IO problem for http://HOSTNAME/var/ezflow_site/s...onference-and-Awards-2009_medium.jpg




The CSS and JPG files do exist. I get open them from the URLs with a webbrowser and also can wget them from a local shell.

Any idea?

JRE:
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)

eZ 4.3
Apache/2.2.9 (Debian) PHP/5.2.6
Up

Abdelkader RHOUATI

Member since:
09 January 2008

Posts: 6

Thursday 16 September 2010 11:34:48 am

Hi Marco,

I have a same problem, have you fixed it ?

Let me know.

Tks

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

Up

Sridhar Teegala

Member since:
04 October 2010

Posts: 1

Monday 04 October 2010 7:40:55 am

Hi Marco,

I am getting the same problem. How did you fix the problem?

Thanks
Sridhar
Up

Eason Huang

Member since:
26 February 2009

Posts: 2

Monday 18 October 2010 4:41:44 am

Have you fixed this problem?

Thanks.

Eason

skype:hyslx27

hyslx27@gmail.com

Up

Eason Huang

Member since:
26 February 2009

Posts: 2

Monday 18 October 2010 10:27:06 am

I think I have found the solution.

please check if your .htaccess has some authentication like this :

AuthName "Acces interdit"
AuthType Basic
AuthUserFile /...
require valid-user


When I remove it , it work fine.

skype:hyslx27

hyslx27@gmail.com

Up

Brendan Pike

Member since:
09 January 2008

Posts: 66

Monday 11 July 2011 8:08:20 am

I'm experiencing this same problem, I use apache virtuals and not .htaccess files. I found a dirty workaround, if I put <img src="http://different-server.com/myimage.gif" /> then it works but if I try and load it from its own domain I get the IO error.

So I'd still be grateful if someone can share a suitable solutuion?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Up

You need to be logged in to post messages in the forums. New users may register here.