cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kyle Koss <kk...@xperient.net>
Subject Frustration with SVGSerializer
Date Thu, 07 Nov 2002 15:44:38 GMT
Could somebody help me with this. The svg2png serializer was giving me
errors like: cannot write to closed output stream. I found this patch
for it: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13247, which
helped that problem, but it is giving me another error.

Here is the error:

ERROR   (2002-11-07) 09:31.47:893   [sitemap]
(/cocoon/buisCard_copy.htm) service-j2ee/SVGSerializer: SVGSerializer:
Exception writing image
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at
org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.j
ava:136)
	at
org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.
java:105)
	at
java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
	at
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:
275)
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)
ERROR   (2002-11-07) 09:31.47:903   [sitemap]
(/cocoon/buisCard_copy.htm) service-j2ee/SVGBuilder: SVGBuilder:
endDocument
java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:
279)
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)
FATAL_E (2002-11-07) 09:31.47:953   [core.xslt-processor]
(/cocoon/buisCard_copy.htm) service-j2ee/TraxErrorHandler: Error in
TraxTransformer: javax.xml.transform.TransformerException:
java.lang.ArrayIndexOutOfBoundsException
javax.xml.transform.TransformerException:
java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1226)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:137)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	... 2 more
---------
java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:137)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)
---------
java.lang.ArrayIndexOutOfBoundsException
	at
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:
279)
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)
---------
java.lang.ArrayIndexOutOfBoundsException
	at java.lang.System.arraycopy(Native Method)
	at
org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.j
ava:136)
	at
org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.
java:105)
	at
java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112)
	at
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:
275)
	at
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:133)
	at
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHan
dler.java:190)
	at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1182)
	at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
	at java.lang.Thread.run(Thread.java:536)

It only happens when creating large png's, and it seems to be related to
the patch I applied, maybe this patch is no good. Does anybody have a
better solution. 

My environment: Cocoon-CVS from Nov 4, jdk1.4, SunOne app server 7 on
WinXP.

Thanx in advance,
Kyle Koss



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message