java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class

struts-issues | Erik Berg (JIRA) | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Struts stumbles when encountering lambda expressions in JDK 8. Looks like org.objwectweb.asm dependency needs to be updated... {code} 2014-05-18 10:21:41,111 ERROR (com.opensymphony.xwork2.util.finder.ClassFinder:38) - Unable to read class [jdk8test.actions.Lambda] java.lang.ArrayIndexOutOfBoundsException: 52264 at org.objectweb.asm.ClassReader.readClass(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:717) at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:112) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:390) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:347) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:268) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:744) {code} Simple test case attached. tar xvf jdk8test.tar cd jdk8test mvn tomcat7:run http://localhost:8080/jdk8test

    Apache's JIRA Issue Tracker | 3 years ago | Erik Berg
    java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class
  2. 0

    [jira] [Commented] (WW-4347) Support for JDK 8 Lambdas

    struts-issues | 2 years ago | Erik Berg (JIRA)
    java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class
  3. 0

    [jira] [Commented] (WW-4347) Support for JDK 8 Lambdas

    struts-issues | 2 years ago | Erik Berg (JIRA)
    java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [jira] [Commented] (WW-4347) Support for JDK 8 Lambdas

    gmane.org | 2 years ago
    java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class
  6. 0

    [WW-4347] Support for JDK 8 Lambdas - ASF JIRA

    apache.org | 1 year ago
    java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class at java.lang. ClassLoader .defineClass1(Native Method) at java.lang. ClassLoader .defineClass( ClassLoader .java:760)

  1. Handemelindo 1 times, last 4 weeks ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IncompatibleClassChangeError

    class org.apache.struts2.convention.Java8ClassFinder$InfoBuildingClassVisitor has interface org.objectweb.asm.ClassVisitor as super class

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    URLClassLoader.findClass
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    4. java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    5. java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    6. java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    7. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    8. java.security.AccessController.doPrivileged(Native Method)
    9. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    9 frames
  3. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1191)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1669)
    3. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
    3 frames
  4. Struts 2 Convention Plugin
    ClasspathPackageProvider.loadPackages
    1. org.apache.struts2.convention.Java8ClassFinder.readClassDef(Java8ClassFinder.java:454)
    2. org.apache.struts2.convention.Java8ClassFinder.<init>(Java8ClassFinder.java:104)
    3. org.apache.struts2.convention.Java8ClassFinderFactory.buildClassFinder(Java8ClassFinderFactory.java:45)
    4. org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildClassFinder(PackageBasedActionConfigBuilder.java:413)
    5. org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:397)
    6. org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:354)
    7. org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
    7 frames
  5. XWork
    ConfigurationManager.getConfiguration
    1. com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:274)
    2. com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
    2 frames
  6. Struts2
    StrutsPrepareAndExecuteFilter.init
    1. org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)
    2. org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)
    3. org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)
    4. org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
    5. org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
    5 frames
  7. Glassfish Core
    ContainerBase$StartChild.call
    1. org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    2. org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    3. org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
    4. org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
    5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
    6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    7. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    8. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    8 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames