This is regarding my SVG issue when run in UNIX, but it works perfectly
well in Windows. I tried two options that was suggested, to correct this
("The current node (type: 2, name:
contentStyleType) is read-only") exception, which is given below. Note
that I am using JRE version "1.3.0_04" (Java HotSpot(TM) Client VM
(build 1.3.0_04, mixed mode). Due to project constraints I am unable to
change/upgrade this JVM. Is this version a problem?
a) I tried to execute the Batik in a stand alone mode in Windows 2000,
it was working fine.
Using the command "java -jar batik-rasterizer.jar -m image/jpg test.svg"
I copied the all batik jar files (batik-1.5beta4, this is the version
FOP 0.20.5 uses) on to my SunOS m/c from windows m/c, then tried it
SunOS. I got the following new exception...
Exception in thread "main" java.lang.UnsatisfiedLinkError: exception
occurred in
JNI_OnLoad
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1037)
at java.awt.Toolkit.<clinit>(Toolkit.java:1058)
at java.awt.Color.<clinit>(Color.java:188)
at
org.apache.batik.transcoder.image.JPEGTranscoder.<init>(Unknown Sourc
e)
at
org.apache.batik.apps.rasterizer.DestinationType.getTranscoder(Unknow
n 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)
b) I checked the classpath for any other XML parsers, I don't have any
other parker in my classpath, but still I get this error.
Now, does this mean that I don't have the Xserver running? If that is
the case, why I am getting a DOMException (as given below, "The current
node (type: 2, name:contentStyleType) is read-only") when trying to
convert the same svg file embedded in FOP? It will be great if you can
clarify.
> org.w3c.dom.DOMException: The current node (type: 2, name:
> contentStyleType) is read-only.
-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Subject: Re: Issue with SVG in Batik with FOP in SunOS (UNIX)
Ganesh wrote:
> I am facing a problem when I am trying to use Batik in Unix
> Environment,
...
> org.w3c.dom.DOMException: The current node (type: 2, name:
> contentStyleType) is read-only.
> at
> org.apache.batik.dom.AbstractNode.createDOMException(AbstractNode.jav
> at
org.apache.batik.dom.AbstractAttr.setNodeValue(AbstractAttr.java:113)
This kind of problem is often caused by incompatible XML libraries in
the classpath. If you have JDK 1.4 installed, try to get a more recent
version. However, it would be interesting to see whether the SVG code
can be rendered by one of the Batik apps (squiggle or the CLI
rasterizer).
> <svg:svg xmlns:svg=" <http://www.w3.org/2000/svg>
> http://www.w3.org/2000/svg"
Uh, this is a c&p error or what?
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]