[JBossCache] - NoSuchMethodError: javassist.CtClass.stopPruning(Z)
by JReifsnyder
Hi everybody,
My previous post contained configuration info for a build error I'm getting, but incorrectly pointed to the error that was the problem.
After working another couple hours, I have the following config on JBoss 4.0.5GA,jboss-aop 1.5.2GA, and JBossCache 1.4.1GA.
Pojo class
@org.jboss.cache.aop.annotation.PojoCacheable
public class ChatSubscriber implements java.io.Serializable {
private TopicConnection topicConnection;
private TopicSession topicSession;
private Topic topic;
private TopicSubscriber receiver;
@org.jboss.cache.aop.annotation.Transient String message;
etc.}
jboss-aop.xml
<aop>
| <prepare expr="field(* @org.jboss.cache.aop.AopMarker->*)" />
| <prepare expr="field(* $instanceof{(a)org.jboss.cache.aop.InstanceOfAopMarker}->*)" />
| <prepare expr="field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)" />
| <prepare expr="field(* $instanceof{(a)org.jboss.cache.aop.annotation.InstanceOfPojoCacheable}->*)" />
| </aop>
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 run aopc, I get the following error:
[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@5b799e78[public getTopicConnection ()Ljavax/jms/TopicConnection;] matches no pointcuts
[aopc] [debug] javassist.CtMethod@2be7c174[public setTopicConnection (Ljavax/jms/TopicConnection;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@357fbe9e[public getTopicSession ()Ljavax/jms/TopicSession;] matches no pointcuts
[aopc] [debug] javassist.CtMethod@b078985a[public setTopicSession (Ljavax/jms/TopicSession;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@f9e57e3a[public getTopic ()Ljavax/jms/Topic;] matches no pointcuts
[aopc] [debug] javassist.CtMethod@deff1b74[public setTopic (Ljavax/jms/Topic;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@fc63b182[public getTopicSubscriber ()Ljavax/jms/TopicSubscriber;] matches no pointcuts
[aopc] [debug] javassist.CtMethod@d55e2b34[public setTopicSubscriber (Ljavax/jms/TopicSubscriber;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@ccbfbf43[public createSubscriber (Ljavax/naming/Context;Ljava/lang/String;Ljava/lang/String;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@1ba8c6b5[public announcethyself (Ljava/lang/String;Ljava/lang/String;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@a9989092[public getMessage ()Ljava/lang/String;] matches no pointcuts
[aopc] [debug] javassist.CtMethod@a2d029fc[public setMessage (Ljava/lang/String;)V] matches no pointcuts
[aopc] [debug] javassist.CtMethod@b41642a5[public cleanup ()V] matches no pointcuts
[aopc] [debug] javassist.CtConstructor@15f5897[public ChatSubscriber ()V] matches no pointcuts
[aopc] [debug] javassist.CtConstructor@1cfb549[public ChatItem (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V] matches no pointcuts
[aopc] [debug] javassist.CtConstructor@186d4c1[public ChatPublisher ()V] matches no pointcuts
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.message:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.receiver:Ljavax/jms/TopicSubscriber; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topic:Ljavax/jms/Topic; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicConnection:Ljavax/jms/TopicConnection; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicSession:Ljavax/jms/TopicSession; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.message:Ljava/lang/String; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.receiver:Ljavax/jms/TopicSubscriber; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topic:Ljavax/jms/Topic; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicConnection:Ljavax/jms/TopicConnection; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[aopc] [debug] oracle.otnsamples.oc4jjms.ChatSubscriber.topicSession:Ljavax/jms/TopicSession; matches pointcut: field(* @org.jboss.cache.aop.annotation.PojoCacheable->*)
[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
Where is the NoSuchMethodError coming from??
Thanks,
Jamie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003547#4003547
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003547
19 years, 3 months
[Beginners Corner] - Re: JBoss 4.0.5.GA MySQL integration
by alllle
"MmarcoM" wrote : Hi,
| i see...
| ok if you want just a MYSQL datasource foryour own purposes, it's enough to do step 1/2/3, configure mysql-ds.xml and proper authentication in login-config.
| All jboss MQ that comes with default dist i gues it is using hsql as database, so if you would have gone to do steps 5/6 that mean to me that you want tocompletely replace hsql with mysql, having mysql db handling everything,
| at least, that's what looks to me by checking the link you provide
|
| i have been using mysql with jboss for over 3 years, and all i needed todo was to configure properly a mysql-ds.xml
|
| that's what it seems to me you want to do
|
| hth
| marco
I was having the same issue because I removed the same hsqldb-jdbc-state-service.xml file when I switch to MySQL. Restore that file solved the problem.
I don't agree, though, that you only need step 1/2/3. Step 4 is necessary as it contains SQL statement only meant to be used with HS DB. And I got exceptions if I keep that file there.
Also note that the sample mysql-jdbc2-service.xml depends on "MysqlDS", which should be changed to "DefaultDS" to make it work.
I think in this case the SQL statements in the hsqldb-jdbc-state-service.xml happen to work with MySQL DB as well, that's why we kept that file. Had it contains HS DB specific statements, we won't be able to use it directly then.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003531#4003531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003531
19 years, 3 months
[JBoss Portal] - Role Management and User portlet access other than "admin" a
by dexxa
Using JBOSS 2.6 ALPHA1 (bundled) on Windows server 2003
It seems like access to the role management and user portlets are restricted to only the user account "admin". I have created a new user and added them to the administrator role only. When I log on as the new user and try to access the role management I get the message "Sorry you do not have access to this function". When I try to access the user portlet using this new user I do not get a "create user" link but just the "edit your profile" link.
I noticed that when you try to apply security through the Management Portlet all of the roles are shown except the role Administrators. A role called Admin is displayed. Does Admin = the role Administrators or does Admin = the user account named admin?
What I need is a way to blow away the default accounts (for security purposes) and create a couple of new "admin" accounts without messin' up the access. Any help would be appreciated!
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003529#4003529
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003529
19 years, 3 months