您好,登录后才能下订单哦!
这篇文章主要为大家展示了“POJO CACHE配置问题的示例分析”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“POJO CACHE配置问题的示例分析”这篇文章吧。
POJO CACHE 配置在jboss-4.0.5-GA上会遇到个bug,这个bug是:Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: addObser
ver
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:312)
at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java
:590)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:578)
at org.jboss.tutorial.entity.bean.LineItem.
... 112 more
Caused by: java.lang.NoSuchMethodException: addObserver
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:323)
at org.jboss.aop.ClassAdvisor.getMethod(ClassAdvisor.java:331)
at org.jboss.aop.ClassAdvisor.populateMixinMethods(ClassAdvisor.java:394
)
at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:290)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
... 115 more
14:37:34,656 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=tutor
ial.jar,name=ShoppingCartBean,service=EJB3 with dependencies:
14:37:34,656 INFO [JmxKernelAbstraction] persistence.units:jar=tutorial.j
ar,unitName=tempdb
郁闷了好久,终于搞定了,答案就在这些英文里面。
If you encounter this issue with 4.0.5.GA, until the update is available, do the following:
1. If you don't use http session clustering, you can remove tc5-cluster.aop from your
deploy directory and use your own jboss-aop.xml. That should work.
2. If you do, you will need to include tc5-cluster.aop in your classpath when
instrumenting the classes. Furthermore, you will need jboss-aop-aspect.jar
(for aop aspects) in your classpath as well during compilation.
以上是“POJO CACHE配置问题的示例分析”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。