You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Stephan Kassanke <ka...@gmx.de> on 2001/09/05 15:01:46 UTC

Cocoon error when generating graphics in PDFs

Hi all,

I would like to include graphics in PDF documents rendered by Cocoon. The
problem we have is, that it simply does not work. Cocoon throws an exception
about a method not defined in the AWT. We are running Cocoon 1.8.2 and JVM
1.1.8. The stylesheets are checked and validated by a manual FOP conversion,
we are using full classified URLs, so can't be the reason neither. i read
about X-references recently. is that a clue?

Thanks,
Stephan

The error is
      Cocoon 1.8.2




      Error found handling the request.
java.lang.NoSuchMethodError: java.awt.image.ColorModel: method hasAlpha()Z
not found
	at org.apache.fop.image.GifJpegImage.loadImage(GifJpegImage.java:94)
	at
org.apache.fop.image.AbstractFopImage.getBitmaps(AbstractFopImage.java:233)
	at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:108)
	at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:970)
	at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:183)
	at org.apache.fop.apps.Driver.render(Driver.java:444)
	at
org.apache.cocoon.formatter.FO2PDFFormatter.format(FO2PDFFormatter.java:159)
	at org.apache.cocoon.Engine.handle(Engine.java:401)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java)


      Warning: this page has been dynamically generated.

Copyright (c) 1999-2001 The Apache XML Project.
All rights reserved.



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

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