[Bug 1598610] Re: rasterizer class not found, DeviceCMYKColorSpace
MichielBeijen
michiel.beijen at gmail.com
Mon Sep 24 12:38:49 UTC 2018
This bug is fixed in debian: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=824113 in 1.8-4.
** Bug watch added: Debian Bug tracker #824113
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824113
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to batik in Ubuntu.
https://bugs.launchpad.net/bugs/1598610
Title:
rasterizer class not found, DeviceCMYKColorSpace
Status in batik package in Ubuntu:
Confirmed
Bug description:
$ lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04
$ apt-cache policy libbatik-java
libbatik-java:
Installed: 1.8-3ubuntu1
Candidate: 1.8-3ubuntu1
Version table:
*** 1.8-3ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://gb.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
100 /var/lib/dpkg/status
Command:
/usr/bin/rasterizer -m image/png -w 30 -h 40 -d mokvino.png
mokvino.svg
Fails with "java.lang.NoClassDefFoundError:
org/apache/xmlgraphics/java2d/color/DeviceCMYKColorSpace". Full error
message at end. The output file is created, but is empty; obviously,
rasterized version of input SVG was expected. Note that [rasterizer]
with no args does not produce the error.
Problem seems to be in /usr/bin/rasterizer:
# We need FOP for PDF output
if locate_jar fop; then
find_jars fop xmlgraphics-commons
fi
xmlgraphics-commons is the jar with the correct class, but the
[locate_jar fop] condition is false on my system. I've fixed locally
by putting a separate [find_jars xmlgraphics-commons] outside of the
condition.
$ /usr/bin/rasterizer -m image/png -w 30 -h 40 -d mokvino.png mokvino.svg
[warning] /usr/bin/rasterizer: No java runtime was found
[warning] /usr/bin/rasterizer: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
About to transcode 1 SVG file(s)
Converting mokvino.svg to mokvino.png ... Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xmlgraphics/java2d/color/DeviceCMYKColorSpace
at org.apache.batik.bridge.SVGShapeElementBridge.createShapePainter(Unknown Source)
at org.apache.batik.bridge.SVGRectElementBridge.createShapePainter(Unknown Source)
at org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.bridge.SVGUseElementBridge.buildCompositeGraphicsNode(Unknown Source)
at org.apache.batik.bridge.SVGUseElementBridge.createGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(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 org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Source)
at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)
at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlgraphics.java2d.color.DeviceCMYKColorSpace
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 21 more
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libbatik-java 1.8-3ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Jul 3 19:20:17 2016
InstallationDate: Installed on 2016-06-08 (25 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: batik
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/batik/+bug/1598610/+subscriptions
More information about the foundations-bugs
mailing list