[jboss-user] [JBossCache] - Getting

JReifsnyder do-not-reply at jboss.com
Thu Jan 18 14:30:03 EST 2007


Hi there,
I have been working on this for hours and searching the JBoss doc for help with this to no avail. What am I doing wrong???? Why is it not choosing the fields for pointcuts?
Help!
Jamie

I have a single class (ChatSubscriber) that I'm trying to make pojocacheable. (in the hopes that keeping it simple would get it working faster - doh!)

jboss-aop.xml-
<aop>
  |     <prepare expr="field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)" />
  | </aop>


ChatSubscriber.java -
@org.jboss.cache.aop.annotation.PojoCacheable
public class ChatSubscriber {
 etc.

build.xml -
    <aopc compilerclasspathref="classpath" verbose="true">
  |       <classpath path="${cache.classes.dir}"/>
  |       <src path="${cache.classes.dir}"/>
  |       <include name="**/ChatSubscriber.class"/>
  |       <aoppath path="META-INF/jboss-aop.xml"/>
  |       <aopclasspath path="${cache.classes.dir}"/>
  |     </aopc>

And when I compile, I get the following error msg.

        [aopc] [debug] Passed in instrumentor: null
        [aopc] [debug] Defaulting instrumentor to: org.jboss.aop.instrument.ClassicInstrumentor
        [aopc] [debug] jboss.aop.class.path: C:\Zen_chat\ChatSample\server\Chat\lib\WEB-INF\classes
        [aopc] [debug] Looking for aspects in: oracle.otnsamples.oc4jjms.ChatItem
        [aopc] [debug] Looking for aspects in: oracle.otnsamples.oc4jjms.ChatPublisher
        [aopc] [debug] Looking for aspects in: oracle.otnsamples.oc4jjms.ChatSubscriber
        [aopc] [debug] Looking for aspects in: oracle.otnsamples.oc4jjms.GetMessage
        [aopc] [debug] Looking for aspects in: oracle.otnsamples.oc4jjms.SendMessage
        [aopc] [debug] jboss.aop.search.classpath: 'null' true
        [aopc] [debug] jboss.aop.path: C:\Zen_chat\ChatSample\server\Chat\META-INF\jboss-aop.xml
        [aopc] jboss.aop.path[0]: C:\Zen_chat\ChatSample\server\Chat\META-INF\jboss-aop.xml
        [aopc] [deploying] file:/C:/Zen_chat/ChatSample/server/Chat/META-INF/jboss-aop.xml
        [aopc] [trying to transform] oracle.otnsamples.oc4jjms.ChatSubscriber
        [aopc] [debug] There are no caller pointcuts!
        [aopc] [debug] javassist.CtMethod at 5b799e78[public getTopicConnection ()Ljavax/jms/TopicConnection;] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at 2be7c174[public setTopicConnection (Ljavax/jms/TopicConnection;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at 357fbe9e[public getTopicSession ()Ljavax/jms/TopicSession;] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at b078985a[public setTopicSession (Ljavax/jms/TopicSession;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at f9e57e3a[public getTopic ()Ljavax/jms/Topic;] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at deff1b74[public setTopic (Ljavax/jms/Topic;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at fc63b182[public getTopicSubscriber ()Ljavax/jms/TopicSubscriber;] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at d55e2b34[public setTopicSubscriber (Ljavax/jms/TopicSubscriber;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at ccbfbf43[public createSubscriber (Ljavax/naming/Context;Ljava/lang/String;Ljava/lang/String;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at 1ba8c6b5[public announcethyself (Ljava/lang/String;Ljava/lang/String;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at a9989092[public getMessage ()Ljava/lang/String;] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at a2d029fc[public setMessage (Ljava/lang/String;)V] matches no pointcuts
        [aopc] [debug] javassist.CtMethod at b41642a5[public cleanup ()V] matches no pointcuts
        [aopc] [debug] javassist.CtConstructor at a0dcd9[public ChatSubscriber ()V] matches no pointcuts
        [aopc] [warn] Could not find class oracle.otnsamples.oc4jjms.impl.ChatItem that oracle.otnsamples.oc4jjms.ChatSubscriber references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.
        [aopc] javassist.NotFoundException: oracle.otnsamples.oc4jjms.impl.ChatItem
        [aopc] 	at javassist.ClassPool.get(ClassPool.java:416)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.convertReferences(Instrumentor.java:542)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:646)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
        [aopc] [debug] javassist.CtConstructor at 15f5897[public ChatPublisher ()V] matches no pointcuts
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.message:Ljava/lang/String; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.receiver:Ljavax/jms/TopicSubscriber; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topic:Ljavax/jms/Topic; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicConnection:Ljavax/jms/TopicConnection; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicSession:Ljavax/jms/TopicSession; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.message:Ljava/lang/String; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.receiver:Ljavax/jms/TopicSubscriber; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topic:Ljavax/jms/Topic; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicConnection:Ljavax/jms/TopicConnection; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicSession:Ljavax/jms/TopicSession; matches pointcut: field(* oracle.otnsamples.oc4jjms.ChatSubscriber->*)
        [aopc] java.lang.NoSuchMethodError: javassist.CtClass.stopPruning(Z)V
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.createOptimizedInvocationClass(FieldAccessTransformer.java:857)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildFieldWrappers(FieldAccessTransformer.java:533)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:73)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
        [aopc] java.lang.RuntimeException: failed to transform: oracle.otnsamples.oc4jjms.ChatSubscriber
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:704)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
        [aopc] Caused by: java.lang.NoSuchMethodError: javassist.CtClass.stopPruning(Z)V
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.createOptimizedInvocationClass(FieldAccessTransformer.java:857)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildFieldWrappers(FieldAccessTransformer.java:533)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:73)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
        [aopc] 	... 5 more
        [aopc] Exception in thread "main" java.lang.RuntimeException: failed to transform: oracle.otnsamples.oc4jjms.ChatSubscriber
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:704)
        [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:792)
        [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:704)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:329)
        [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:218)
        [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:74)
        [aopc] Caused by: java.lang.NoSuchMethodError: javassist.CtClass.stopPruning(Z)V
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.createOptimizedInvocationClass(FieldAccessTransformer.java:857)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildFieldWrappers(FieldAccessTransformer.java:533)
        [aopc] 	at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:73)
        [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:657)
        [aopc] 	... 5 more



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

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



More information about the jboss-user mailing list