Bug 577486 - broken batik-rasterizer jar files
Summary: broken batik-rasterizer jar files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: batik
Version: 17
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-27 12:36 UTC by Muayyad Alsadi
Modified: 2012-12-12 08:44 UTC (History)
8 users (show)

Fixed In Version: 1.8-0.5.svn1230816
Clone Of:
Environment:
Last Closed: 2012-12-12 08:44:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Muayyad Alsadi 2010-03-27 12:36:49 UTC
Description of problem:
the following trace when trying to raster init.svg
while it worked with the same upstream version

Version-Release number of selected component (if applicable):
batik-rasterizer-1.7-4.fc11.noarch

How reproducible:
always

  
Actual results:
[alsadi@pc1 Pictures]$ rasterizer -m image/jpeg -d ./ init.svg 
About to transcode 1 SVG file(s)

Converting init.svg to ./init.jpg ... Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImplementation.java:149)
	at org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFactory.java:615)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:767)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:431)
	at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:349)
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:200)
	at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:281)
	at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:129)
	at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
	at org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
	at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
	at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
	at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.svg.SVGDocument
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	... 38 more

Expected results:
png image

Comment 1 Bug Zapper 2010-04-28 11:59:48 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Bug Zapper 2010-06-28 15:43:00 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 Kevin Constantine 2011-01-13 23:15:44 UTC
This is still broken in Fedora 14.

The following patch fixes the issue.

--- /usr/bin/rasterizer.orig	2011-01-13 15:14:58.877743919 -0800
+++ /usr/bin/rasterizer	2011-01-13 15:12:43.539805437 -0800
@@ -23,7 +23,7 @@
 
 # Configuration
 MAIN_CLASS=org.apache.batik.apps.rasterizer.Main
-BASE_JARS="batik-rasterizer.jar batik-all.jar"
+BASE_JARS="batik-rasterizer.jar batik-all.jar xml-commons-apis-ext.jar"
 
 # Set parameters
 set_jvm

Comment 5 Alex Tucker 2011-06-09 17:00:35 UTC
Appears to be still broken in Fedora 15, as I just tried to use the rasterizer, got the same error, and the patch in comment 4 fixed it.

Comment 6 James Findley 2012-07-24 13:17:42 UTC
CLOSED WONTFIX is not an acceptable resolution without some justification - the patch is trivial, and without it the package will not function.

If you are not prepared to properly maintain your packages, please orphan them so that someone more capable/less lazy can take over.

Thanks.

Comment 7 Emmanuel Pacaud 2012-09-05 11:43:06 UTC
Still broken in fedora 17.

Comment 8 Kevin Fenzi 2012-10-04 17:26:24 UTC
reopening and moving to f17 since it seems to still be an issue.

Comment 9 Mikolaj Izdebski 2012-10-04 21:54:30 UTC
Reproduced in rawhide.

Comment 10 Fedora Update System 2012-10-05 01:37:25 UTC
batik-1.8-0.5.svn1230816.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/batik-1.8-0.5.svn1230816.fc18

Comment 11 Fedora Update System 2012-10-05 02:12:44 UTC
batik-1.8-0.5.svn1230816.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/batik-1.8-0.5.svn1230816.fc17

Comment 12 Fedora Update System 2012-10-05 05:37:54 UTC
Package batik-1.8-0.5.svn1230816.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing batik-1.8-0.5.svn1230816.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-15441/batik-1.8-0.5.svn1230816.fc18
then log in and leave karma (feedback).


Note You need to log in before you can comment on or make changes to this bug.