[jboss-user] [JBossCache] - Re: Fails to run on Jboss4.2.2
bstansberry@jboss.com
do-not-reply at jboss.com
Wed Feb 6 22:54:33 EST 2008
I think it's this bit from jboss-web-cluster.sar/jboss-web-cluster.aop/META-INF/jboss-aop.xml that is causing you trouble:
| <!-- Make any POJO with a JDK5 PojoCacheable annotation as a Subject/Observerable -->
| <bind pointcut="set(* @org.jboss.cache.aop.annotation.PojoCacheable->*)">
| <interceptor class="org.jboss.aspects.patterns.observable.SubjectInterceptor"/>
| </bind>
|
| <introduction class="@org.jboss.cache.aop.annotation.PojoCacheable">
| <mixin>
| <interfaces>org.jboss.aspects.patterns.observable.Subject</interfaces>
| <class>org.jboss.aspects.patterns.observable.SubjectImpl</class>
| <construction>new org.jboss.aspects.patterns.observable.SubjectImpl(this)</construction>
| </mixin>
| </introduction>
|
The latter causes the AspectManager to insert a SubjectInterceptor when you deploy your class. But when you did your aopc, your jboss-aop.xml didn't include the "introduction" element. So your class doesn't implement the Subject interface and you get a CCE when the SubjectInterceptor gets invoked.
Two possible solutions:
1) Add the "introduction" element above to your jboss-aop.xml and run aopc again.
2) If you don't use FIELD granularity web session replication, remove the jboss-web-cluster.sar/jboss-web-cluster.aop file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127242#4127242
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127242
More information about the jboss-user
mailing list