ClassFormatError when using TomcatInstrumentableClassLoader: invalid modifiers: 0x18

I am using TomcatInstrumentableClassLoader to implement AspectJ Load Time Weaving.

During the initial setup of my application, I use ClassUtils.getClass () to load all classes.

At this point, I get

java.lang.ClassFormatError: method test_aroundBody0 in class com / abc / Foo has illegal modifiers: 0x18

Foo.java is the interface and test () is the default method in the interface.

I am not getting this error when using the default ClassLoader.

I am using,
spring-instrument-cat-4.1.6
JDK 1.8.0_20-
cat-7.0.47
aspectjweaver-1.8.5.jar

Any suggestions or answers would be appreciated.

+3
spring tomcat classloader aspectj load-time-weaving


source to share


No one has answered this question yet

Check out similar questions:

8
bootstrap executable jar on classpath when server starts
7
AspectJ LTW fault configuration with Tomcat and Spring
3
How do I handle classes loaded by a custom class loader?
2
Spring Cache with Couchbase using LoadTimeWeaving - strangely not working
1
How to run Spring LoadTimeWeaving for JPA repository
1
NoClassDefFoundError in Tomcat but not in standalone application for dynamically generated Java class
0
Using aspects written with AspectJ in projects using Spring AOP
0
AspectJ - Compile time with xml function
0
java.lang.VerifyError while initializing aspects
0
EnableLoadTimeWeaving Spring Boot Embedded Tomcat



All Articles
Loading...
X
Show
Funny
Dev
Pics