9

アプリケーションのアスペクトを使用するとエラーが発生します。

このエラーを修正するには何が必要ですか、またはこれは私に何を言いますか?

[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]
4

3 に答える 3

9

オプションcantFindTypeをに変更する

{cantFindType = warning}

ajc.propertiesファイルで私に問題を解決しました。

プロパティファイルは次のように指定できます-Xlintfile d:\temp\ajc.properties

于 2013-05-27T08:40:32.740 に答える
5

つまり、typeをウィービングする場合xxx.yyy.zzz.execution.DefaultDServerConfigurator、typexxx.yyy.zzz.execution.SystemVersionは必須ですが、依存関係がないため、SystemVersionまたはそのスーパークラスをロードできません。

基本的に、アスペクトには、実行時にクラスパスにない追加のクラスファイル/jarが必要です。

于 2012-05-14T19:26:08.137 に答える
5

oracleとkamon-jdbcで同じ問題が発生し、次のresources/META-INF/aop.xmlファイルを追加すると役立ちました。

 <!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>
于 2019-02-22T08:48:00.447 に答える