java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThr
来源:互联网 发布:成都适合拍淘宝的地方 编辑:程序博客网 时间:2024/04/28 21:50
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThrowAdvice]
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.<init>(ThrowsAdviceInterceptor.java:94)
at org.springframework.aop.framework.adapter.ThrowsAdviceAdapter.getInterceptor(ThrowsAdviceAdapter.java:38)
at org.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry.getInterceptors(DefaultAdvisorAdapterRegistry.java:84)
at org.springframework.aop.framework.DefaultAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(DefaultAdvisorChainFactory.java:62)
at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:453)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:190)
at com.sun.proxy.$Proxy0.sayHello(Unknown Source)
log4j:WARN Please initialize the log4j system properly.
java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThrowAdvice]
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.<init>(ThrowsAdviceInterceptor.java:94)
at org.springframework.aop.framework.adapter.ThrowsAdviceAdapter.getInterceptor(ThrowsAdviceAdapter.java:38)
at org.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry.getInterceptors(DefaultAdvisorAdapterRegistry.java:84)
at org.springframework.aop.framework.DefaultAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(DefaultAdvisorChainFactory.java:62)
at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:453)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:190)
at com.sun.proxy.$Proxy0.sayHello(Unknown Source)
at Test.main(Test.java:15)
仔细检查,原来是
public class SayThrowAdvice implements ThrowsAdvice {
public void AfterThrowing(Method method,Object[] objs,Object target,Throwable ta){
System.out.println("Exception happened"+ta+"and was thrown in "+method);
}
}
内的A大写了,改为小写即可。
上海名汇软件信息科技有限公司,有意者请加QQ457475013!
0 0
- java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThr
- Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
- java.lang.IllegalArgumentException: At least one base package must be specified
- Caused by: java.lang.IllegalArgumentException: At least one JPA metamodel must be present!
- java.lang.IllegalArgumentException: System memory ... must be at least ... Please use a larger heap
- java.lang.IllegalArgumentException: System memory 468189184 must be at least 4.718592E8
- java.lang.IllegalArgumentException: System memory 468189184 must be at least 4.718592E8
- java.lang.IllegalArgumentException:System memory 259522560 must be at least 4.718592E8
- java.lang.IllegalArgumentException : System memory 259522560 must be at least 471859200.
- java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must b
- java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must b
- java.lang.IllegalArgumentException: The class class ** is not found in EntityFactory.
- java.lang.IllegalArgumentException: Invalid character found in method name
- PHP error:ERROR: No pool defined. at least one pool section must be specified in config file
- tomcat服务器报 java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method n
- java.lang.IllegalArgumentException: not found @HttpResponse from class java.lang.Object解决方法
- java.lang.IllegalArgumentException: Wrong state class
- java.lang.IllegalArgumentException: No converter found for return value of type: class java.util.Has
- TM_利用CSS实现居中对齐
- 启动停止tengine
- Eclipse安装python插件
- Linux编程命名规则
- TM_常用的CSS属性
- java.lang.IllegalArgumentException: At least one handler method must be found in class [class SayThr
- 构建qt项目时出现的qmake错误
- wordpress 必备插件
- 时间同步(linux)
- js实现web套打功能,支持拖动布局,支持按键移动支持打印预览,结果可保存至数据库中
- 关于C++中的静态成员
- 继承中参数传递及调用顺序
- hash取模一致性哈希
- HDU-4432-Sum of divisors ( 2012 Asia Tianjin Regional Contest )