[jboss-jira] [JBoss JIRA] Created: (JBAOP-398) No such field: jboss
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Thu Apr 26 13:10:40 EDT 2007
No such field: jboss
--------------------
Key: JBAOP-398
URL: http://jira.jboss.com/jira/browse/JBAOP-398
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 2.0.0.alpha4, 1.5.5.GA
Reporter: Flavia Rainone
Fix For: 2.1.0.GA, 1.5.6.GA
If a POJO class being instrumented has a field called "org", jboss aop will eventually throw an exception with this error message (it might be after setting a field wrapper body, or after CtCasslass.toByteCode() , for example).
An example is:
javassist.CannotCompileException: [source error] no such field: jboss
at javassist.CtBehavior.setBody(CtBehavior.java:364)
at javassist.CtBehavior.setBody(CtBehavior.java:333)
at org.jboss.aop.instrument.OptimizedFieldAccessTransformer.buildWrappers(OptimizedFieldAccessTransformer.java:278)
at org.jboss.aop.instrument.OptimizedFieldAccessTransformer.doBuildFieldWrappers(OptimizedFieldAccessTransformer.java:100)
at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:102)
at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:724)
at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:107)
at org.jboss.aop.AspectManager.translate(AspectManager.java:910)
at org.jboss.aop.AspectManager.transform(AspectManager.java:853)
at org.jboss.aop.standalone.AOPTransformer.aspectTransform(AOPTransformer.java:88)
at org.jboss.aop.standalone.AOPTransformer.transform(AOPTransformer.java:75)
The moment in which the exception is being thrown seems to have to do with what joinpoint of POJO class are being instrumented. If the "org" field is being intercepted, the moment in which the field wrapper body is being set is the moment in which javassist throws the exception. If the field "org" is not being intercepted, it seems that the moment in which the exception is being thrown is right after jboss aop instrumentation execution, when toByteCode method is invoked.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list