[jboss-user] [JBossCache] - Re: PojoCache: java.lang.NoSuchMethodException: addObserver

JReifsnyder do-not-reply at jboss.com
Fri Jan 19 14:38:36 EST 2007


anonymous wrote : Yeah, I have just found it out from my own test here. What happens is that tc5-cluster.aop contains a jboss-aop.xml as well. So either you use it all the way, or you remove it from AS deployment. 

Could you elaborate on this? Do the PojoCacheable classes always need to be built with this in the classpath? Or is the runtime error I'm getting caused by having it included in the deployment?

I am also getting this addObserver error, and when I include the tc5-cluster.aop file in the classpath for building, I get a different error.

       [aopc] javassist.NotFoundException: org.jboss.aspects.patterns.observable.SubjectImpl
        [aopc] 	at javassist.ClassPool.get(ClassPool.java:416)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.addMixin(Instrumentor.java:250)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.instrumentIntroductions(Instrumentor.java:336)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:672)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:908)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:820)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:345)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:234)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:90)
        [aopc] java.lang.RuntimeException: failed to transform: oracle.otnsamples.oc4jjms.ChatSubscriberValue
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:732)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:908)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:820)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:345)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:234)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:90)
        [aopc] Caused by: javassist.NotFoundException: org.jboss.aspects.patterns.observable.SubjectImpl
        [aopc] 	at javassist.ClassPool.get(ClassPool.java:416)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.addMixin(Instrumentor.java:250)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.instrumentIntroductions(Instrumentor.java:336)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:672)
        [aopc] 	... 5 more
        [aopc] Exception in thread "main" java.lang.RuntimeException: failed to transform: oracle.otnsamples.oc4jjms.ChatSubscriberValue
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:732)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:908)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:820)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:345)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:234)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:90)
        [aopc] Caused by: javassist.NotFoundException: org.jboss.aspects.patterns.observable.SubjectImpl
        [aopc] 	at javassist.ClassPool.get(ClassPool.java:416)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.addMixin(Instrumentor.java:250)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.instrumentIntroductions(Instrumentor.java:336)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:672)
        [aopc] 	... 5 more

Thanks,
Jamie



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004001#4004001

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004001



More information about the jboss-user mailing list