You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amol Ghotankar <gh...@gmail.com> on 2015/01/24 07:17:58 UTC
ASM library issue when upgrading struts2.3.20 from struts2.3.16.3
Hi,
I am using spring aop along with struts2
When using older version i.e struts2.3.16.3 my aop and project works
properly
Here is snapshot of my dependecy tree
[INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.16.3:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] | \- org.apache.struts:struts2-core:jar:2.3.16.3:compile
[INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.16.3:compile
[INFO] | | +- asm:asm:jar:3.3:compile
[INFO] | | \- asm:asm-commons:jar:3.3:compile
[INFO] | | \- asm:asm-tree:jar:3.3:compile
[INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
[INFO] | +- ognl:ognl:jar:3.0.6:compile
[INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
[INFO] | \- commons-io:commons-io:jar:2.2:compile
[INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.16.3:compile
[INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] | | \-
org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
But same does not work when I update the struts2 to 2.3.20
[INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.20:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.2:compile
[INFO] | \- org.apache.struts:struts2-core:jar:2.3.20:compile
[INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.20:compile
[INFO] | | +- org.ow2.asm:asm:jar:5.0.2:compile
[INFO] | | \- org.ow2.asm:asm-commons:jar:5.0.2:compile
[INFO] | | \- org.ow2.asm:asm-tree:jar:5.0.2:compile
[INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
[INFO] | +- ognl:ognl:jar:3.0.6:compile
[INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
[INFO] | \- commons-io:commons-io:jar:2.2:compile
[INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.20:compile
[INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
[INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
[INFO] | | \-
org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
[INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
As the asm library looks to be have updated to 5.0.2
*Error that I get is class net.sf.cglib.core.DebuggingClassWriter overrides
final method visit*
This only happens when I using aop feature of spring and error comes during
runtime and not compile time.
I know this should be simple library dependecy issue, but not able to solve
it as cglib & asm are almost used everywhere else too.
Any suggestions of how to fix this?
--
*With Best Regards,*
Amol Ghotankar
Technical Lead
M: +91 9960 980 419 <http://www.cursivetech.com>
RE: ASM library issue when upgrading struts2.3.20 from
struts2.3.16.3
Posted by Martin Gainty <mg...@hotmail.com>.
this is a asm 3.3 to asm 5.0.2 library upgrade issue.....redirecting
> Date: Sat, 24 Jan 2015 11:47:58 +0530
> Subject: ASM library issue when upgrading struts2.3.20 from struts2.3.16.3
> From: ghotankarua50@gmail.com
> To: user@struts.apache.org
>
> Hi,
>
> I am using spring aop along with struts2
>
> When using older version i.e struts2.3.16.3 my aop and project works
> properly
>
> Here is snapshot of my dependecy tree
>
> [INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.16.3:compile
> [INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile
> [INFO] | \- org.apache.struts:struts2-core:jar:2.3.16.3:compile
> [INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.16.3:compile
> [INFO] | | +- asm:asm:jar:3.3:compile
> [INFO] | | \- asm:asm-commons:jar:3.3:compile
> [INFO] | | \- asm:asm-tree:jar:3.3:compile
> [INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
> [INFO] | +- ognl:ognl:jar:3.0.6:compile
> [INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
> [INFO] | \- commons-io:commons-io:jar:2.2:compile
> [INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.16.3:compile
> [INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
> [INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
> [INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
> [INFO] | | \-
> org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
> [INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
> [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
>
> But same does not work when I update the struts2 to 2.3.20
>
> [INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.20:compile
> [INFO] | +- org.apache.commons:commons-lang3:jar:3.2:compile
> [INFO] | \- org.apache.struts:struts2-core:jar:2.3.20:compile
> [INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.20:compile
> [INFO] | | +- org.ow2.asm:asm:jar:5.0.2:compile
> [INFO] | | \- org.ow2.asm:asm-commons:jar:5.0.2:compile
> [INFO] | | \- org.ow2.asm:asm-tree:jar:5.0.2:compile
> [INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
> [INFO] | +- ognl:ognl:jar:3.0.6:compile
> [INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
> [INFO] | \- commons-io:commons-io:jar:2.2:compile
> [INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.20:compile
> [INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
> [INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
> [INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
> [INFO] | | \-
> org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
> [INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
> [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
>
> As the asm library looks to be have updated to 5.0.2
>
>
> *Error that I get is class net.sf.cglib.core.DebuggingClassWriter overrides
> final method visit*
>
> This only happens when I using aop feature of spring and error comes during
> runtime and not compile time.
>
> I know this should be simple library dependecy issue, but not able to solve
> it as cglib & asm are almost used everywhere else too.
>
> Any suggestions of how to fix this?
>
> --
>
>
>
> *With Best Regards,*
>
> Amol Ghotankar
> Technical Lead
> M: +91 9960 980 419 <http://www.cursivetech.com>
Re: ASM library issue when upgrading struts2.3.20 from struts2.3.16.3
Posted by Lukasz Lenart <lu...@apache.org>.
2015-01-24 7:17 GMT+01:00 Amol Ghotankar <gh...@gmail.com>:
> Hi,
>
> I am using spring aop along with struts2
>
> When using older version i.e struts2.3.16.3 my aop and project works
> properly
>
> Here is snapshot of my dependecy tree
>
> [INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.16.3:compile
> [INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile
> [INFO] | \- org.apache.struts:struts2-core:jar:2.3.16.3:compile
> [INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.16.3:compile
> [INFO] | | +- asm:asm:jar:3.3:compile
> [INFO] | | \- asm:asm-commons:jar:3.3:compile
> [INFO] | | \- asm:asm-tree:jar:3.3:compile
> [INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
> [INFO] | +- ognl:ognl:jar:3.0.6:compile
> [INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
> [INFO] | \- commons-io:commons-io:jar:2.2:compile
> [INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.16.3:compile
> [INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
> [INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
> [INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
> [INFO] | | \-
> org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
> [INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
> [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
>
> But same does not work when I update the struts2 to 2.3.20
>
> [INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.3.20:compile
> [INFO] | +- org.apache.commons:commons-lang3:jar:3.2:compile
> [INFO] | \- org.apache.struts:struts2-core:jar:2.3.20:compile
> [INFO] | +- org.apache.struts.xwork:xwork-core:jar:2.3.20:compile
> [INFO] | | +- org.ow2.asm:asm:jar:5.0.2:compile
> [INFO] | | \- org.ow2.asm:asm-commons:jar:5.0.2:compile
> [INFO] | | \- org.ow2.asm:asm-tree:jar:5.0.2:compile
> [INFO] | +- org.freemarker:freemarker:jar:2.3.19:compile
> [INFO] | +- ognl:ognl:jar:3.0.6:compile
> [INFO] | | \- javassist:javassist:jar:3.11.0.GA:compile
> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.3.1:compile
> [INFO] | \- commons-io:commons-io:jar:2.2:compile
> [INFO] +- org.apache.struts:struts2-spring-plugin:jar:2.3.20:compile
> [INFO] | +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
> [INFO] | | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
> [INFO] | +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
> [INFO] | | +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
> [INFO] | | \-
> org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
> [INFO] | \- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
> [INFO] | \- aopalliance:aopalliance:jar:1.0:compile
>
> As the asm library looks to be have updated to 5.0.2
>
>
> *Error that I get is class net.sf.cglib.core.DebuggingClassWriter overrides
> final method visit*
>
> This only happens when I using aop feature of spring and error comes during
> runtime and not compile time.
>
> I know this should be simple library dependecy issue, but not able to solve
> it as cglib & asm are almost used everywhere else too.
>
> Any suggestions of how to fix this?
This issue was fixed here [1], so you can use 2.3.21 which wasn't
officially released or wait for 2.3.22
[1] https://issues.apache.org/jira/browse/WW-4347
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org