xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Tarasov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATIK-1226) batik 1.10 breaks dependency on xersers2
Date Tue, 29 May 2018 17:33:00 GMT

    [ https://issues.apache.org/jira/browse/BATIK-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16493909#comment-16493909
] 

Anton Tarasov commented on BATIK-1226:
--------------------------------------

 
{code:java}
import org.apache.xerces.dom.ElementImpl;
public class BATIK1226 {
    public static void main(String[] args) {
        Object obj = new ElementImpl() {};
        System.out.println("obj: " + obj);
    }
 }

{code}
1. Compile the code above with jdk1.8 as follows:

javac -cp "/path/to/batik-all-1.9.1.jar:/path/to/xercesImpl-2.11.0.jar" BATIK1226.java

2. Run it:

java -cp "/path/to/batik-all-1.9.1.jar:/path/to/xercesImpl-2.11.0.jar:." BATIK1226

It will print:

{code:java}
obj: [null: null]
{code}

3. Now run it with batik 1.10

java -cp "/path/to/batik-all-1.10.jar:/path/to/xercesImpl-2.11.0.jar:." BATIK1226

It throws:
{code:java}
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at BATIK1226.main(BATIK1226.java:5)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 25 more{code}

> batik 1.10 breaks dependency on xersers2
> ----------------------------------------
>
>                 Key: BATIK-1226
>                 URL: https://issues.apache.org/jira/browse/BATIK-1226
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG DOM
>    Affects Versions: 1.10
>         Environment: JDK 1.8, Xercers 2.11 
>            Reporter: Anton Tarasov
>            Priority: Major
>
> org.apache.xerces.dom.ElementImpl class implements org.w3c.dom.ElementTraversal which
has been moved in batik 1.10:
>  [https://svn.apache.org/viewvc?view=revision&revision=1830543]
> This results in:
>  java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message