struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Peters (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4866) ASM 5.2 and Java 9 leads to IllegalArgumentException
Date Sun, 28 Oct 2018 19:38:00 GMT

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

Sebastian Peters commented on WW-4866:
--------------------------------------

Maybe we can even use asm 7 to support Java 11. It was released on 2018-10-27.

https://asm.ow2.io/versions.html

> ASM 5.2 and Java 9 leads to IllegalArgumentException
> ----------------------------------------------------
>
>                 Key: WW-4866
>                 URL: https://issues.apache.org/jira/browse/WW-4866
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Convention
>    Affects Versions: 2.5.13
>         Environment: Java 9
>            Reporter: Michael Hintenaus
>            Priority: Critical
>             Fix For: 2.6
>
>
> With ASM 5.2 and Java 9 I will get the following Stacktrace:
> {noformat}
> 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)
> {noformat}



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

Mime
View raw message