You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil> on 2006/06/20 15:25:08 UTC

Transcoding to JPG? 1.5.0 vs. 1.4.2?

Hi all, I'm running a build of Batik from March 2006.  If I export to JPG under a 1.4.2 JVM, it seems to work fine.  It breaks under a 1.5.0 JVM:
 
Enclosed Exception:
null
        at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
        at mil.jfcom.cie.whiteboard.util.TranscoderUtil.exportToImage(Transcoder
Util.java:148)
        at mil.jfcom.cie.whiteboard.util.TranscoderUtil.exportJPEG(TranscoderUti
l.java:86)
        at mil.jfcom.cie.whiteboard.listeners.menu.ExportToActionListener.action
Performed(ExportToActionListener.java:61)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
 
Same code works fine under 1.4.2.  Is this a known issue?
 
Michael Bishop

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


RE: Transcoding to JPG? 1.5.0 vs. 1.4.2?

Posted by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil>.
OK, I'm narrowing it down and it may not be JVM specific.  Can anyone
tell me which Batik JARs are required to transcode to JPG?

Michael Bishop

-----Original Message-----
From: Bishop, Michael W. CONTR J9C880
[mailto:Michael.Bishop@je.jfcom.mil] 
Sent: Tuesday, June 20, 2006 9:25 AM
To: batik-users@xmlgraphics.apache.org
Subject: Transcoding to JPG? 1.5.0 vs. 1.4.2?

Hi all, I'm running a build of Batik from March 2006.  If I export to
JPG under a 1.4.2 JVM, it seems to work fine.  It breaks under a 1.5.0
JVM:
 
Enclosed Exception:
null
        at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
        at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
        at
mil.jfcom.cie.whiteboard.util.TranscoderUtil.exportToImage(Transcoder
Util.java:148)
        at
mil.jfcom.cie.whiteboard.util.TranscoderUtil.exportJPEG(TranscoderUti
l.java:86)
        at
mil.jfcom.cie.whiteboard.listeners.menu.ExportToActionListener.action
Performed(ExportToActionListener.java:61)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.AbstractButton.doClick(Unknown Source)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown
Source)
        at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
 
Same code works fine under 1.4.2.  Is this a known issue?
 
Michael Bishop

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org