struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: struts 2 with OpenJDK 11
Date Tue, 16 Oct 2018 08:36:57 GMT
Switching to ASM 6 should resolve the issue but this isn't a drop-in
upgrade, we will have to change some code on Struts side.

https://issues.apache.org/jira/browse/WW-4866


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

wt., 16 paź 2018 o 09:49 Britta Katzenbach <katzenbach@liwa.de> napisał(a):
>
> Hi!
>
> We are currently trying to run our Struts2 application with OpenJDK 11. Its working in
general, but the DefaultClassFinder of the Struts2 convention plugin throws an IllegalArgumentException:
null when initializing the classes in the package specified in „struts.convention.action.packages“
in the struts.xml. Since these are abstract classes or other classes that does not need to
be mapped, it seems to be no problem - the application is running as expected. These errors
do not occur when running with oracle java SE 8. We tried to use ASM (org.ow2) 6.0, 6.2.1
and 7.0-beta instead of 5.2, but that did not help.
>
> ERROR org.apache.struts2.convention.DefaultClassFinder - Unable to read class [xx.xx.xx.web.action.AbstractAction]
> java.lang.IllegalArgumentException: null
> at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.objectweb.asm.ClassReader.<init>(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.apache.struts2.convention.DefaultClassFinder.readClassDef(DefaultClassFinder.java:461)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder.access$200(DefaultClassFinder.java:52)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.extractSuperInterfaces(DefaultClassFinder.java:514)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.visit(DefaultClassFinder.java:501)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.apache.struts2.convention.DefaultClassFinder.readClassDef(DefaultClassFinder.java:462)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder.access$200(DefaultClassFinder.java:52)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.extractSuperInterfaces(DefaultClassFinder.java:514)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor.visit(DefaultClassFinder.java:501)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.objectweb.asm.ClassReader.accept(Unknown Source) ~[asm-5.2.jar:5.2]
> at org.apache.struts2.convention.DefaultClassFinder.readClassDef(DefaultClassFinder.java:462)
~[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.DefaultClassFinder.<init>(DefaultClassFinder.java:93)
[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildClassFinder(PackageBasedActionConfigBuilder.java:395)
[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:377)
[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:333)
[struts2-convention-plugin-2.5.18.jar:2.5.18]
> at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:52)
[struts2-convention-plugin-2.5.18.jar:2.5.18]
>
>
> Thanks for your input!
>
> Best regards,
>
> Britta Katzenbach
>
> _____________________________________________________
> e-Mail: katzenbach@liwa.de
> Tel. +49 30 27019889
>
> Dr. Lippke & Dr. Wagner GmbH
> Nassauische Str. 25
> 10717 Berlin
> Tel./Fax: +49 30 2147309-0 / 2
>
> Geschäftsführer: Dr. Andreas Lippke und Florian Schlittgen
> Registergericht: Amtsgericht Berlin HRB 25607
>
>
>
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message