Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AspectJ: Error can't determine superclass of missing type

Tags:

aspectj

I get the error using an aspect in our application.

What do I need to fix this error or what does this say to me?

[AppClassLoader@13b8f62] error can't determine superclass of missing type xxx.yyy.zzz.execution.SystemVersion
when weaving type xxx.yyy.zzz.execution.DefaultDServerConfigurator
when weaving classes 
when weaving 
 [Xlint:cantFindType]
like image 399
Tima Avatar asked May 14 '12 11:05

Tima


3 Answers

Changing the option cantFindType to

{cantFindType = warning}

in the ajc.properties file solved the problem to me.

You can specify the property file with -Xlintfile d:\temp\ajc.properties

like image 190
user2424279 Avatar answered Nov 16 '22 16:11

user2424279


Had the same issue with oracle and kamon-jdbc, adding the following resources/META-INF/aop.xml file helped:

 <!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">

 <aspectj>
     <weaver options="-Xlint:ignore">
         <include within="oracle.jdbc..*"/>
     </weaver>
 </aspectj>
like image 38
ptrlaszlo Avatar answered Nov 16 '22 15:11

ptrlaszlo


This means that when weaving type xxx.yyy.zzz.execution.DefaultDServerConfigurator, the type xxx.yyy.zzz.execution.SystemVersion is required, but either SystemVersion or its superclass cannot be loaded because dependencies are missing.

Essentially, the aspects require extra class files/jars that are not on your classpath at runtime.

like image 5
Andrew Eisenberg Avatar answered Nov 16 '22 16:11

Andrew Eisenberg