Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4866

ASM 5.2 and Java 9 leads to IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.13
    • 2.6
    • Plugin - Convention
    • None
    • Java 9

    Description

      With ASM 5.2 and Java 9 I will get the following Stacktrace:

      java.lang.IllegalArgumentException
      	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      	at org.objectweb.asm.ClassReader.<init>(Unknown Source)
      	at org.apache.struts2.convention.DefaultClassFinder.readClassDef(DefaultClassFinder.java:461)
      	at org.apache.struts2.convention.DefaultClassFinder.access$200(DefaultClassFinder.java:52)
      	at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.extractSuperInterfaces(DefaultClassFinder.java:514)
      	at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.visit(DefaultClassFinder.java:501)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at org.objectweb.asm.ClassReader.accept(Unknown Source)
      	at org.apache.struts2.convention.DefaultClassFinder.readClassDef(DefaultClassFinder.java:462)
      	at org.apache.struts2.convention.DefaultClassFinder.<init>(DefaultClassFinder.java:93)
      	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildClassFinder(PackageBasedActionConfigBuilder.java:395)
      	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:377)
      	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:333)
      	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:52)
      	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:198)
      	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:63)
      	at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:960)
      	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:466)
      	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:499)
      	at org.apache.struts2.util.StrutsTestCaseHelper.initDispatcher(StrutsTestCaseHelper.java:47)
      	at org.apache.struts2.StrutsJUnit4TestCase.initDispatcher(StrutsJUnit4TestCase.java:247)
      	at org.apache.struts2.StrutsJUnit4TestCase.setUp(StrutsJUnit4TestCase.java:236)
      

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              Michael Hintenaus Michael Hintenaus
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: