`
仁生之狼
  • 浏览: 45041 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

error at ::0 can't find referenced pointcut..问题

阅读更多
配置文件中有allAllMethod1,但是抛出如下错误:
Caused by: java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut allAllMethod1
	at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:172)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:162)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:103)
	at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:171)
	at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:231)
	at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:256)
	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:68)
	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:54)
	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:247)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:311)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1038)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:68)
	at com.spring.aop.Client.main(Client.java:8)

出现error at ::0 can't find referenced pointcut...这样的错误原因是:
如果你用的JDK版本是1.6的话,而引用的aspectjrt.jar是spring-2.0中包含的jar包的情况下就会报这样的错误。
解决的办法就是下载最新的aspectjrt的jar包即可aspectj-1.6.6.jar
下载地址http://www.eclipse.org/aspectj/downloads.php
分享到:
评论
1 楼 learningBird 2012-09-12  
终于可以了。。谢谢。太感谢了。

相关推荐

    can't find referenced pointcut

    spring-framework-3.1.1.RELEASE jdk1.7 环境下 can't find referenced pointcut 问题解决 换了对应的jar文件即可 aspectjrt.jar aspectj-1.6.6.jar aspectjweaver.jar

    java中的0 can‘t find referenced pointcut runTim

    后来经过排查,发现是自己的写法有问题,在@Around的参数中我们使用的是runtime(),这里是有问题的! @Around: 环绕增强,相当于MethodInterceptor. 这里Around的value参数应该写的是上面的签名,而不是runTime,...

    aspectjweaver-1.8.9&aspectjrt1;.8.9&aopalliance;-1.0的jar包

    SpringAOP 报错error at ::0 can't find referenced pointcut deleteCell,或类似这样的错误,可能是因为springAOP相关依赖包版本低的缘故,本下载包,可以解决这个问题。

    sunjce_provider.jar

    Could not find class 'com.sun.crypto.provider.SunJCE', referenced from method ...不能加载到类的情况

    AndroidSupportAnnotaitons

    android.support.annotation.* 找不到的问题,

    aspectj-1.6.6,aspectjrt,aspectjweaver

    spring-framework-3.1.1.RELEASE jdk1.7 环境下can't find referenced pointcut 问题的解决,程序程序无问题的情况下,更换jar文件即可。亲测可用!

    python UnboundLocalError: local variable ‘x’ referenced before assignment

    一、疑难杂症 def test_scopt(): ...上面这两种情况都会报错:UnboundLocalError: local variable ‘x’ referenced before assignment 二、探究原因 1、python变量作用域   一般在使用函数def、类cla

    org.eclipse.paho.mqttv5.client-1.2.5.jar解决SSL认证连接SNIHostName类不存在的问题

    MQTTv5版的客户端库,原地址:... 本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的问题。

    Windows.PowerShell.Pocket.ReferenceD.Lee.Holmes.文字版

    《Windows PowerShell 口袋参考书》第二版是学习PowerShell不可或缺的参考资料之一,它不仅涵盖了PowerShell的基本语法和核心概念,还深入介绍了如何利用这些工具和技术解决实际问题。无论是初学者还是经验丰富的...

    提示出现unresolved external symbol _main的解决方法

    libcmtd.lib(crt0.obj) : error LNK2001: unresolved external symbol _main LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 msvcrtd.lib(crt

    [Linker Error] Unresolved external 问题的解决方法

    ### [Linker Error] Unresolved External 问题的解决方法 在软件开发过程中,尤其是在使用编译器进行项目构建时,可能会遇到“未解析外部符号”(Unresolved External)的链接错误。这类错误通常出现在编译完成后,...

    ICSharpCode.SharpZipLib Version=0.86.0.518

    这个库在版本0.86.0.518中被验证为功能正常,用户可以放心将其集成到自己的项目中,以实现对压缩文件的支持。 一、SharpZipLib简介 SharpZipLib,又被称为“SharpZlib”或“#ziplib”,是由ICSharpCode开发的,它...

    android导入第三方jar包报错 如何正确导入jar包

    Could not find class ‘com.google.zxing.MultiFormatWriter’, referenced from method com.changyang.app.util.Encode2dUtil.creat2DCode 后来找到了解决方法: 在adt17 的版本之前,导入第三方jar包时要建立一个...

    [Linker Error] Unresolved external 'viOpen' referenced from

    具体到本案例中的 “Unresolved external ‘viOpen’ referenced from” 错误,表示编译器在链接时未能找到 `viOpen` 函数的定义。 #### 三、分析错误来源 根据提供的错误日志,可以看出错误发生在以下几个方面: ...

    ILSpy_binaries_ILSpy 6.1.zip

    New Language Features C# 9.0: Native ints C# 9.0: Attributes on local functions ...Fix #2068: ILSpy can't find referenced library even though it's open And many other fixes, for a full list click here.

    stm32f4标准库C++与C混合开发工程

    用C++对stm32的标准库进行开发,包括完整的重定向printf,解决.axf: Error: L6915E: Library reports error: __use_no_semihosting was requested, but _sys_open was referenced以及Error: L6200E:symbol__stdout ...

    plat-sw-3.0.0.1.zip

    bazel_root/540135163923dd7d5820f3ee4b306b32/external/adv_plat/plat-sw-3.0.0.1.zip: Connection reset and referenced by '//modules/drivers/camera:camera'. ERROR: (12-26 08:52:07.359) Analysis of target ...

    IAR编译错误总结[整理].pdf

    Error[Li005]: no definition for "__program_start" [referenced from F:\sd\WORM_SD_MMC1\WORM_SD_MMC\Debug\Obj\stm32f10x_vector.o] ``` **解决方法**: - **检查符号定义**:确保符号“__program_start”已被...

    SymbolTypeViewer_1_0_0_6

    easily find the unused areas in the structures (padding). These areas are theoretically usable to put personal data there translate the structures for the C Language (.h) and for IDA script (.idc) of ...

    comsupp.lib源码

    _com_issue_error@@YAXJ@Z) referenced in function "public: __thiscall _variant_t::_variant_t(unsigned short const *)" (??0_variant_t@@QAE@PBG@Z) 的提示,此时需要在project-setting-link中加入comsupp,lib...

Global site tag (gtag.js) - Google Analytics