欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java.lang.NoSuchMethodError: SpringHibernatewebwork

程序员文章站 2022-07-13 21:29:57
...
2013-05-08 10:44:02 ERROR [StandardWrapperValve.java:250] apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sgsi].[web
work].invoke() - Servlet.service() for servlet webwork threw exception
java.lang.NoSuchMethodError: com.peuo.wl.dao.StatisticsDao.getStatisticsWeekLsPlayerInfoPagination(Ljava/lang/Integer;Ljava/lang
/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/peuo/wl/pagination/Pagination;
        at com.peuo.wl.service.impl.StatisticsServiceImpl.getStatisticsWeekLsPlayerInfoPagination(StatisticsServiceImpl.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
        at $Proxy5.getStatisticsWeekLsPlayerInfoPagination(Unknown Source)
        at com.peuo.wl.admin.action.statistics.StatisticsWeekLsPlayerAction.execute(StatisticsWeekLsPlayerAction.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)
        at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)
        at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
        at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
        at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)
        at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
        at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)
        at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

这上边报的错没有一个是真的,action里边的错就是调用service的方法,serviceImpl中的错就是调用dao层的方法。总得错说是找不到匹配的方法,NoSuchMethodError。可是方法我明明有的啊!!按住ctrl键一个一个都能点进去,我在我的电脑上测试了好多遍,没有问题。但是放到服务器上就会报这个错,以前我添加了四五个这样的方法,都没问题。但是这一个就不行了。我本地测试没问题,但是放到服务器上就不行了。而服务器上我添加的其它方法都没问题,这个方法和其它的一样。不可能出问题啊。。。奇怪了