David,
We got the latest revision(1.8-PRE) from trunk and still have the same problem.
On line 65 of org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.java,
encoder is expected to be an interface by batik but OpenJDK found a class
JPEGImageWriter. See stack trace below.
IncompatibleClassChangeError: Found class
com.sun.image.codec.jpeg.JPEGImageEncoder, but interface was expected
org.apache.batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(JPEGImageWriter.java:65)
org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(JPEGTranscoder.java:96)
org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:130)
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
com.arris.sac.highcharts.export.ExportServlet.doPost(ExportServlet.java:80)
javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Hope this helps to track down the problem.
Best,
Cheng
From: Bates, Chris
Sent: Friday, October 29, 2010 11:55 AM
To: Sun, Cheng
Subject: Fwd: Patch Request for Batik Rasterizer
Sent from my phone
Begin forwarded message:
From: David Wimsey <[email protected]<mailto:[email protected]>>
Date: October 28, 2010 11:57:01 AM EDT
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Cc: "Bates, Chris" <[email protected]<mailto:[email protected]>>,
"Annareddy, Sushma"
<[email protected]<mailto:[email protected]>>
Subject: Re: Patch Request for Batik Rasterizer
https://issues.apache.org/bugzilla/show_bug.cgi?id=46513
On Oct 28, 2010, at 11:37 AM, David Wimsey wrote:
Are you using the latest revision from the subversion repository (1.8-PRE)? I
can't find any com.sun.* references in a quick search. I'm pretty sure those
issues were fixed some time ago, as I seem to recall some other bugs that
popped up after the switch over.
On Oct 28, 2010, at 11:00 AM, Ash, Bryan wrote:
Developers:
I am currently working on an application that is utilizing Batik Rasterizer for
exporting our graphic data. I have noticed that a module used for JPEG
exporting (specifically JPEGImageWriter in package
org.apache.batik.ext.awt.image.codec.jpeg) uses Sun’s proprietary packages
com.sun.*.
In most cases, this seems fine. However, in a recent revision of OpenJDK
shipped on Ubuntu systems, they have updated some interfaces to now be classes.
Since Sun has the disclaimer that they are allowed to change code located in
these packages without warning, we are at the mercy of what they choose to do.
I would like to submit a patch, rewriting the module to use java.* and javax.*
instead of com.sun*, assuming the process hasn’t already been started by
someone else.
Please reply at your earliest convenience and let me know if this is still a
maintained application, and what process you have for patch submissions.
Best Regards
---------------------------
Bryan Ash
Software Developer
Arris Group, Inc.
---------------------------