[jboss-user] [JBoss AOP] - AOP Instrumentor failed to transform class
fabiocsilva
do-not-reply at jboss.com
Wed Sep 20 23:02:19 EDT 2006
I don't running the AOP application because error writed more below. This problem occurs in moment of interception.
I want execute this example in JBoss Application Server:
http://www.informit.com/articles/article.asp?p=174533&seqNum=2&rl=1
resources:
- JBoss AS 4.04
- JBossAOP 1.5.1
- Ubuntu linux Operating System(kernel 2.6.15)
Excuse me the bad english.
3:43:04,374 ERROR [STDERR] javassist.CannotCompileException: [source error] Method getInterceptors not found in org.jboss.aop.MethodInfo
23:43:04,387 ERROR [STDERR] at javassist.CtBehavior.setBody(CtBehavior.java:288)
23:43:04,387 ERROR [STDERR] at javassist.CtBehavior.setBody(CtBehavior.java:257)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.instrument.MethodExecutionTransformer$MethodTransformation.setWMethodBody(MethodExecutionTransformer.java:330)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.setWrapperBody(OptimizedMethodExecutionTransformer.java:136)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.transformMethod(OptimizedMethodExecutionTransformer.java:72)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:145)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.AspectManager.translate(AspectManager.java:970)
23:43:04,388 ERROR [STDERR] at org.jboss.aop.AspectManager.transform(AspectManager.java:882)
23:43:04,389 ERROR [STDERR] at org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:88)
23:43:04,389 ERROR [STDERR] at org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:75)
23:43:04,389 ERROR [STDERR] at sun.instrument.TransformerManager.transform(TransformerManager.java:122)
23:43:04,389 ERROR [STDERR] at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
23:43:04,390 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
23:43:04,390 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
23:43:04,390 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
23:43:04,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
23:43:04,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
23:43:04,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
23:43:04,390 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
23:43:04,390 ERROR [STDERR] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
23:43:04,391 ERROR [STDERR] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
23:43:04,391 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
23:43:04,391 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
23:43:04,391 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
23:43:04,391 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,391 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
23:43:04,391 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
23:43:04,391 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
23:43:04,392 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
23:43:04,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,392 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
23:43:04,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
23:43:04,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,392 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
23:43:04,393 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
23:43:04,393 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
23:43:04,393 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
23:43:04,393 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
23:43:04,393 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
23:43:04,393 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
23:43:04,393 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
23:43:04,393 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
23:43:04,394 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
23:43:04,394 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
23:43:04,394 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
23:43:04,394 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
23:43:04,395 ERROR [STDERR] Caused by: compile error: Method getInterceptors not found in org.jboss.aop.MethodInfo
23:43:04,395 ERROR [STDERR] at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:665)
23:43:04,395 ERROR [STDERR] at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:631)
23:43:04,395 ERROR [STDERR] at javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156)
23:43:04,395 ERROR [STDERR] at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
23:43:04,395 ERROR [STDERR] at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235)
23:43:04,395 ERROR [STDERR] at javassist.compiler.CodeGen.atDeclarator(CodeGen.java:712)
23:43:04,396 ERROR [STDERR] at javassist.compiler.ast.Declarator.accept(Declarator.java:99)
23:43:04,396 ERROR [STDERR] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
23:43:04,396 ERROR [STDERR] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
23:43:04,396 ERROR [STDERR] at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
23:43:04,396 ERROR [STDERR] at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
23:43:04,396 ERROR [STDERR] at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285)
23:43:04,403 ERROR [STDERR] at javassist.compiler.Javac.compileBody(Javac.java:212)
23:43:04,404 ERROR [STDERR] at javassist.CtBehavior.setBody(CtBehavior.java:282)
23:43:04,404 ERROR [STDERR] ... 47 more
23:43:04,404 ERROR [STDERR] [warn] AOP Instrumentor failed to transform br.ComplexFormulae
23:43:04,404 ERROR [STDERR] java.lang.RuntimeException: code was: { org.jboss.aop.MethodInfo info = (org.jboss.aop.MethodInfo)aop$MethodInfo_isPrimeOne5690611746659619595.get(); org.jboss.aop.ClassInstanceAdvisor instAdv = (org.jboss.aop.ClassInstanceAdvisor)_getInstanceAdvisor(); org.jboss.aop.advice.Interceptor[] interceptors = info.getInterceptors(); if (interceptors != (Object[])null || (instAdv != null && instAdv.hasInstanceAspects)) { if (instAdv != null) { interceptors = instAdv.getInterceptors(interceptors); } br.ComplexFormulae$isPrimeOne_5690611746659619595 invocation = new br.ComplexFormulae$isPrimeOne_5690611746659619595(info, interceptors); invocation.arg0 = $1; invocation.setTargetObject(this); invocation.typedTargetObject = this; invocation.setAdvisor(aop$classAdvisor$aop); return ($r)invocation.invokeNext(); } else { return br$ComplexFormulae$isPrimeOne$aop($$); }} for method isPrimeOne
23:43:04,405 ERROR [STDERR] at org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.setWrapperBody(OptimizedMethodExecutionTransformer.java:141)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.instrument.OptimizedMethodExecutionTransformer.transformMethod(OptimizedMethodExecutionTransformer.java:72)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.instrument.MethodExecutionTransformer.instrument(MethodExecutionTransformer.java:145)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.AspectManager.translate(AspectManager.java:970)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.AspectManager.transform(AspectManager.java:882)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:88)
23:43:04,405 ERROR [STDERR] at org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:75)
23:43:04,406 ERROR [STDERR] at sun.instrument.TransformerManager.transform(TransformerManager.java:122)
23:43:04,406 ERROR [STDERR] at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:155)
23:43:04,406 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
23:43:04,406 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
23:43:04,406 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
23:43:04,406 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
23:43:04,406 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
23:43:04,406 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
23:43:04,407 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
23:43:04,407 ERROR [STDERR] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
23:43:04,407 ERROR [STDERR] at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
23:43:04,407 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
23:43:04,407 ERROR [STDERR] at org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
23:43:04,407 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
23:43:04,407 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,407 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
23:43:04,408 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
23:43:04,408 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
23:43:04,408 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
23:43:04,408 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
23:43:04,408 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,408 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
23:43:04,408 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
23:43:04,409 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
23:43:04,409 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
23:43:04,409 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
23:43:04,410 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
23:43:04,410 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
23:43:04,410 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
23:43:04,410 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
23:43:04,411 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
23:43:04,411 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
23:43:04,413 INFO [STDOUT] 23:43:04,413 INFO [ComplexFormulae] return true (ComplexFormulae) !!!
23:43:04,417 INFO [STDOUT] 23:43:04,417 INFO [ComplexFormulae] return true (ComplexFormulae) !!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973131#3973131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973131
More information about the jboss-user
mailing list