Spring 代理 DispatchAction 启动时报 AopConfigException。程序能够正常运行,但是在DispatchAction 加入@Transactional不起作用!!!

blsfish2 2008-12-17 10:21:41

DEBUG - Unable to apply any optimisations to advised method public java.lang.String java.lang.Object.toString() - using AOP_PROXY
DEBUG - Method public abstract int org.springframework.aop.framework.Advised.indexOf(org.springframework.aop.Advisor) is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.isFrozen() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract org.springframework.aop.TargetSource org.springframework.aop.framework.Advised.getTargetSource() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.isProxyTargetClass() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.addAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.addAdvisor(int,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.setTargetSource(org.springframework.aop.TargetSource) is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.setExposeProxy(boolean) is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.isExposeProxy() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract java.lang.Class[] org.springframework.aop.framework.Advised.getProxiedInterfaces() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.addAdvice(int,org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.addAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.isInterfaceProxied(java.lang.Class) is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.removeAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract void org.springframework.aop.framework.Advised.removeAdvisor(int) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.removeAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract org.springframework.aop.Advisor[] org.springframework.aop.framework.Advised.getAdvisors() is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract boolean org.springframework.aop.framework.Advised.replaceAdvisor(org.springframework.aop.Advisor,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException is declared on Advised - using DISPATCH_ADVISED
DEBUG - Method public abstract java.lang.String org.springframework.aop.framework.Advised.toProxyConfigString() is declared on Advised - using DISPATCH_ADVISED
...全文
459 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
西瓜 2008-12-21
  • 打赏
  • 举报
回复
看不出有错
howsun_zh 2008-12-19
  • 打赏
  • 举报
回复
DispatchAction最终执行的是execute方法,该方法中用是反射技术调用根据参数名指定的方法,进行了一次反射Spring当然代理不了。推荐你看一篇文章就知道了:

http://howsun.blog.sohu.com/106725713.html
酒剑仙 2008-12-19
  • 打赏
  • 举报
回复
关注下 最好把配置文件和部分代码贴出来。
貌似是事物机制的冲突。。。反正我没有遇到过
tzb08 2008-12-19
  • 打赏
  • 举报
回复
关注起,正在学习AOP
ty_fzpb 2008-12-17
  • 打赏
  • 举报
回复
关注一下! 这个问题没有注意过,一般情况我设置的INFO级别的日志信息才会打印……

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧