forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <dev.jerem...@greenmail.ch>
Subject Follow up: Image sample problem
Date Tue, 14 Jan 2003 15:57:34 GMT
I'd like to follow up on the problem Anders Nilsson reported on Jan 04.

http://marc.theaimsgroup.com/?t=104169387200003&r=1&w=2

I wanted to extend the FOP website a bit adding a few SVG graphics. I'm
experiencing exactly the same problem as Anders. PNGs generated are 0
bytes.

And I can answer Jeff's questions:
- If I run Forrest using "forrest run" the SVGs don't render. I get the
  following error message on the console output from forrest:
  
15:55:40.070 WARN!! Connection problem
java.lang.IllegalStateException: Chunking
        at org.mortbay.http.ChunkableOutputStream.resetStream(ChunkableOutputStream.java:323)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:1035)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
        at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
        at java.lang.Thread.run(Thread.java:536)

In error.log there is:
ERROR   (2003-01-14) 15:55.40:010   [access] (/images/svg/EmbeddingExampleFO2PDF.png) SocketListener-1/CocoonServlet:
Problem with Cocoon servlet
java.io.IOException: closed
	at org.mortbay.http.ChunkableOutputStream.write(ChunkableOutputStream.java:396)
	at org.mortbay.jetty.servlet.ServletOut.write(ServletOut.java:42)
	at org.apache.cocoon.util.BufferedOutputStream.writeBuffer(BufferedOutputStream.java:162)
	at org.apache.cocoon.util.BufferedOutputStream.realFlush(BufferedOutputStream.java:152)
	at org.apache.cocoon.environment.AbstractEnvironment.commitResponse(AbstractEnvironment.java:489)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:607)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:293)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:580)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
	at org.mortbay.http.HttpServer.service(HttpServer.java:875)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
	at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
	at java.lang.Thread.run(Thread.java:536)

In core.log there is:

DEBUG   (2003-01-14) 15:55.18:219   [core] (/images/svg/EmbeddingExampleXML2FO.png) SocketListener-2/Cocoon:
DEBUGGING INFORMATION:
REQUEST: /images/svg/EmbeddingExampleXML2FO.png

<snip/>

DEBUG   (2003-01-14) 15:55.19:420   [core.manager]
(/images/svg/EmbeddingExampleXML2FO.png)
SocketListener-2/SourceResolverImpl: Resolving
'resources/images/EmbeddingExampleXML2FO.svg' with base
'file:/F:/FOP/main/xml-fop/build/webapp/' in context
'file:/F:/FOP/main/xml-fop/build/webapp/'
DEBUG   (2003-01-14) 15:55.19:420   [core.manager] (/images/svg/EmbeddingExampleXML2FO.png)
SocketListener-2/SourceResolverImpl: Resolved to systemID 'file:/F:\FOP\main\xml-fop\build\webapp\resources\images\EmbeddingExampleXML2FO.svg'
DEBUG   (2003-01-14) 15:55.19:420   [core.manager] (/images/svg/EmbeddingExampleXML2FO.png)
SocketListener-2/FileSourceFactory: Creating source object for file:/F:\FOP\main\xml-fop\build\webapp\resources\images\EmbeddingExampleXML2FO.svg
DEBUG   (2003-01-14) 15:55.19:430   [core.manager] (/images/svg/EmbeddingExampleFO2PDF.png)
SocketListener-1/SourceResolverImpl: Resolving 'resources/images/EmbeddingExampleFO2PDF.svg'
with base 'file:/F:/FOP/main/xml-fop/build/webapp/' in context 'file:/F:/FOP/main/xml-fop/build/webapp/'
DEBUG   (2003-01-14) 15:55.19:430   [core.manager] (/images/svg/EmbeddingExampleFO2PDF.png)
SocketListener-1/SourceResolverImpl: Resolved to systemID 'file:/F:\FOP\main\xml-fop\build\webapp\resources\images\EmbeddingExampleFO2PDF.svg'
DEBUG   (2003-01-14) 15:55.19:430   [core.manager] (/images/svg/EmbeddingExampleFO2PDF.png)
SocketListener-1/FileSourceFactory: Creating source object for file:/F:\FOP\main\xml-fop\build\webapp\resources\images\EmbeddingExampleFO2PDF.svg
DEBUG   (2003-01-14) 15:55.19:440   [core.manager] (/images/svg/EmbeddingExampleFO2PDF.png)
SocketListener-1/XMLizerImpl: No mime-type for xmlizing file:/F:/FOP/main/xml-fop/build/webapp/resources/images/EmbeddingExampleFO2PDF.svg,
guessing text/xml
DEBUG   (2003-01-14) 15:55.19:470   [core.manager] (/images/svg/EmbeddingExampleXML2FO.png)
SocketListener-2/XMLizerImpl: No mime-type for xmlizing file:/F:/FOP/main/xml-fop/build/webapp/resources/images/EmbeddingExampleXML2FO.svg,
guessing text/xml

The above looks correct although the last two lines are suspect.

As for Bernhard Huber's idea: My SVGs don't contain a namespace
declaration.

I hope this helps in finding the problem. In the meantime I'll dig
around in the code and ML archives a little more. Thanks in advance for
any ideas and your help.

Sorry for the lengthy post.

Jeremias Maerki
FOP committer


Mime
View raw message