Exception in thread "eXtcos managed thread 1" java.lang.IncompatibleClassChangeError: class net.sf.extcos.internal.JavaResourceAccessor$AnnotatedClassVisitor has interface org.objectweb.asm.ClassVisitor as super class

Help
Anonymous
2014-05-22
2016-07-14
  • Anonymous - 2014-05-22
                            final Class parameterType = parameterTypes[f];
                            final Set<Class<?>> samples = new HashSet<Class<?>>();
                            ComponentScanner scanner = new ComponentScanner();
                            scanner.getClasses(new ComponentQuery() {
                                protected void query() {
                                    select().from("ru.protek.data.standard.implementations").andStore(thoseImplementing(parameterType).into(samples));
                                }
                            });
                            if (samples.size() > 0) {
                                ...
                            }
    

    get an error:

    Exception in thread "eXtcos managed thread 1" java.lang.IncompatibleClassChangeError: class net.sf.extcos.internal.JavaResourceAccessor$AnnotatedClassVisitor has interface org.objectweb.asm.ClassVisitor as super class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at net.sf.extcos.internal.JavaResourceAccessor.readClassData(JavaResourceAccessor.java:363)
    at net.sf.extcos.internal.JavaResourceAccessor.setResourceUrl(JavaResourceAccessor.java:333)
    at net.sf.extcos.internal.URLResource.getResourceAccessor(URLResource.java:93)
    at net.sf.extcos.internal.URLResource.isClass(URLResource.java:126)
    at net.sf.extcos.internal.RootFilter.filter(RootFilter.java:22)
    at net.sf.extcos.internal.AbstractChainedFilter.filter(AbstractChainedFilter.java:89)
    at net.sf.extcos.internal.ThreadingFilterInterceptor$1.run(ThreadingFilterInterceptor.java:48)
    at java.lang.Thread.run(Thread.java:662)

     
  • Matthias Rothe

    Matthias Rothe - 2014-05-27

    Which version of ASM are you using? This problem might be related to a clash on the classpath.

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2015-12-07

      Hi,

      I'm similarly getting an exception from ASM ClassReader during use of extcos.
      However, in my case the cause is my use of Java8. ASM4 supports up to Java7 OpCodes.

      Is there a plan to replace the Maven dependency to an ASM version that is compatible with Java8 - like ASM5+?

      Thanks,
      Tasos

       
  • Matthias Rothe

    Matthias Rothe - 2015-12-07

    Hi,

    yes, I'll schedule an according update and let you know when it's done.

    Kind regards,
    Matthias

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2016-07-14

    Hi Matthias,
    When I am using Java 8 and asm-5.0, I get ASM ClassReader exceptions.
    Can you update the lib so that it can depend on ASM-5.0+? It would be very helpful!
    Thanks!

     
  • Matthias Rothe

    Matthias Rothe - 2016-07-14

    Hi,

    yes, I'm currently working on an according update and let you know when it's available.

    Kind regards,
    Matthias

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks