java.lang.IncompatibleClassChangeError: Found interface com.sun.image.codec.jpeg.JPEGImageEncoder, but class was expected at org .apache .batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at experimentalcode.simon.gui.PatternPlot.saveAsJPEG(PatternPlot.java: 564) at experimentalcode.simon.gui.PatternControlPanel $ImageSaveDialog.actionPerformed(PatternControlPanel.java:494) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2028) at javax.swing.AbstractButton $Handler.actionPerformed(AbstractButton.java:2351) at javax .swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: 387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 242) at javax .swing .plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java: 236)

xmlgraphics-batik-users | Simon Mittermüller | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re: Document saved as JPEG - getting IncompatibleClassChangeError

    xmlgraphics-batik-users | 8 years ago | Simon Mittermüller
    java.lang.IncompatibleClassChangeError: Found interface com.sun.image.codec.jpeg.JPEGImageEncoder, but class was expected at org .apache .batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at experimentalcode.simon.gui.PatternPlot.saveAsJPEG(PatternPlot.java: 564) at experimentalcode.simon.gui.PatternControlPanel $ImageSaveDialog.actionPerformed(PatternControlPanel.java:494) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2028) at javax.swing.AbstractButton $Handler.actionPerformed(AbstractButton.java:2351) at javax .swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: 387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 242) at javax .swing .plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java: 236)

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      Found interface com.sun.image.codec.jpeg.JPEGImageEncoder, but class was expected at org .apache .batik.ext.awt.image.codec.jpeg.JPEGImageWriter.writeImage(Unknown Source) at org.apache.batik.transcoder.image.JPEGTranscoder.writeImage(Unknown Source) at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) at experimentalcode.simon.gui.PatternPlot.saveAsJPEG(PatternPlot.java: 564) at experimentalcode.simon.gui.PatternControlPanel $ImageSaveDialog.actionPerformed(PatternControlPanel.java:494) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java: 2028) at javax.swing.AbstractButton $Handler.actionPerformed(AbstractButton.java:2351) at javax .swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java: 387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 242) at javax .swing .plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java: 236)

      at java.awt.Component.processMouseEvent()
    2. Java RT
      Component.dispatchEvent
      1. java.awt.Component.processMouseEvent(Component.java:6126)
      2. javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
      3. java.awt.Component.processEvent(Component.java:5891)
      4. java.awt.Container.processEvent(Container.java:2102)
      5. java.awt.Component.dispatchEventImpl(Component.java:4497)
      6. java.awt.Container.dispatchEventImpl(Container.java:2160)
      7. java.awt.Component.dispatchEvent(Component.java:4327)
      7 frames