Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IBM Websphere: Getting error for Spring AOP

I am getting following error while booting up the server. Application has Spring as well as AspectJ classes in it.

Caused by: java.lang.VerifyError: JVMVRFY013 class loading constraint violated; class=org/springframework/aop/aspectj/MethodInvocationProceedingJoinPoint, method=getSourceLocation()Lorg/aspectj/lang/reflect/SourceLocation;, pc=0
                at java.lang.J9VMInternals.verifyImpl(Native Method)
                at java.lang.J9VMInternals.verify(J9VMInternals.java:93)
                at java.lang.J9VMInternals.initialize(J9VMInternals.java:170)
                at org.springframework.aop.aspectj.AbstractAspectJAdvice.currentJoinPoint(AbstractAspectJAdvice.java:83)

As a first pass I gave PARENT_FIRST option for Enterprise Application

enter image description here

like image 637
Himanshu Yadav Avatar asked Jul 11 '13 16:07

Himanshu Yadav


People also ask

Can spring boot run on WebSphere?

Once our Spring Boot Application is working in IBM Liberty Profile, we will then deploy the application in IBM WebSphere Application Server 8.5. P.S – The Java code would stay same across each deployment process, however the configuration and pom file would be different.

Is AOP still used in spring?

AOP is used in the Spring Framework to... ... provide declarative enterprise services, especially as a replacement for EJB declarative services. The most important such service is declarative transaction management.

Does Spring AOP use AspectJ?

In Spring AOP, aspects are implemented using regular classes (the schema-based approach) or regular classes annotated with the @Aspect annotation (the @AspectJ style). Join point: a point during the execution of a program, such as the execution of a method or the handling of an exception.


1 Answers

Well, I'll write it here again as my first reply was deleted without any explanation though it was the correct one.

Given the exception you encounter you're likely at WAS 8.5.5.0. There's a known issue documented under APAR PM90932 about this. An ifix has been publisehd for this issue and you can read about it and download it from here. Once the ifix is installed, the issue won't appear again.

like image 181
Petr H Avatar answered Oct 02 '22 08:10

Petr H