From: hengels <nu...@jb...> - 2005-05-18 08:14:20
|
Hi, I'm seeing another execption during method instrumentation. This time, the = reason is not so obvious to me. Maybe someone could have a look at this: [aopc] [debug] is advisable method: kopiereMitBeziehungen | [aopc] [debug] does kopiereMitBeziehungen match execution(* wilken= .basismodul.*->*(..)): false | [aopc] [debug] does kopiereMitBeziehungen match execution(* wilken= .informationssystem.*->*(..)): true | [aopc] javassist.CannotCompileException: [source error] Method wil= ken$informationssystem$berechtigung$BerichtBearbeitenBerechtigungImpl$getId= $aop not found in wilken.informationssystem.berechtigung.BerichtBearbeitenB= erechtigungImpl | [aopc] at javassist.CtBehavior.setBody(CtBehavior.java:194) | [aopc] at javassist.CtBehavior.setBody(CtBehavior.java:163) | [aopc] at org.jboss.aop.instrument.MethodExecutionTransformer.= optimized(MethodExecutionTransformer.java:365) | [aopc] at org.jboss.aop.instrument.MethodExecutionTransformer.= instrument(MethodExecutionTransformer.java:199) | [aopc] at org.jboss.aop.instrument.Instrumentor.transform(Inst= rumentor.java:573) | [aopc] at org.jboss.aop.AspectManager.translate(AspectManager.= java:572) | [aopc] at org.jboss.aop.AspectManager.transform(AspectManager.= java:490) | [aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compil= er.java:258) | [aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.j= ava:191) | [aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java= :68) | [aopc] java.lang.RuntimeException: failed to transform: wilken.inf= ormationssystem.berechtigung.BerichtBearbeitenBerechtigungImpl | [aopc] at org.jboss.aop.instrument.Instrumentor.transform(Inst= rumentor.java:625) | [aopc] at org.jboss.aop.AspectManager.translate(AspectManager.= java:572) | [aopc] at org.jboss.aop.AspectManager.transform(AspectManager.= java:490) | [aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compil= er.java:258) | [aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.j= ava:191) | [aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java= :68) | [aopc] Caused by: java.lang.RuntimeException: code was: { if (= aop$MethodInfo_getId_N_6040770469254561000.interceptors !=3D (Object[])null= || (_instanceAdvisor !=3D null && _instanceAdvisor.hasInstanceAspects)) = { org.jboss.aop.advice.Interceptor[] interceptors =3D aop$MethodIn= fo_getId_N_6040770469254561000.interceptors; if (_instanceAdvisor != =3D null) { interceptors =3D _instanceAdvisor.getIntercept= ors(interceptors); } wilken.informationssystem.berechtigung.B= erichtBearbeitenBerechtigungImpl_getId_N6040770469254561000_OptimizedMethod= Invocation invocation =3D new wilken.informationssystem.berechtigung.Berich= tBearbeitenBerechtigungImpl_getId_N6040770469254561000_OptimizedMethodInvoc= ation(aop$MethodInfo_getId_N_6040770469254561000, interceptors); inv= ocation.setTargetObject(this); invocation.typedTargetObject =3D this= ; invocation.setAdvisor(aop$classAdvisor$aop); return ($r)inv= ocation.invokeNext(); } else { return wilken$information= ssystem$berechtigung$BerichtBearbeitenBerechtigungImpl$getId$aop($$); }= } for method getId | [aopc] at org.jboss.aop.instrument.MethodExecutionTransformer.= optimized(MethodExecutionTransformer.java:370) | [aopc] at org.jboss.aop.instrument.MethodExecutionTransformer.= instrument(MethodExecutionTransformer.java:199) | [aopc] at org.jboss.aop.instrument.Instrumentor.transform(Inst= rumentor.java:573) | [aopc] ... 5 more |=20 This is the generated (reformatted) code: if (aop$MethodInfo_getId_N_6040770469254561000.interceptors !=3D (Obj= ect[])null | || (_instanceAdvisor !=3D null && _instanceAdvisor.hasInstanc= eAspects)) | { | org.jboss.aop.advice.Interceptor[] interceptors =3D aop$Metho= dInfo_getId_N_6040770469254561000.interceptors; =20 | if (_instanceAdvisor !=3D null) { | interceptors =3D _instanceAdvisor.getInterceptors(interce= ptors); | } =20 | wilken.informationssystem.berechtigung.BerichtBearbeitenBerec= htigungImpl_getId_N6040770469254561000_OptimizedMethodInvocation invocation= =3D new wilken.informationssystem.berechtigung.BerichtBearbeitenBerechtigu= ngImpl_getId_N6040770469254561000_OptimizedMethodInvocation(aop$MethodInfo_= getId_N_6040770469254561000, interceptors); | invocation.setTargetObject(this); | invocation.typedTargetObject =3D this; =20 | invocation.setAdvisor(aop$classAdvisor$aop); =20 | return ($r)invocation.invokeNext(); =20 | } =20 | else { =20 | return wilken$informationssystem$berechtigung$BerichtBearbei= tenBerechtigungImpl$getId$aop($$); =20 | } |=20 <aop> | <prepare expr=3D"execution(* wilken.basismodul.*->*(..))"/> | <prepare expr=3D"execution(* wilken.informationssystem.*->*(..))"/> | </aop> |=20 View the original post : http://www.jboss.org/index.html?module=3Dbb&op=3Dv= iewtopic&p=3D3878149#3878149 Reply to the post : http://www.jboss.org/index.html?module=3Dbb&op=3Dpostin= g&mode=3Dreply&p=3D3878149 |