您的位置:首页 > 编程语言 > Java开发

返回结果集有默认值但是提示java.lang.nullpointerexception

2015-10-21 09:44 531 查看
Oct 20, 2015 9:56:44 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.Error: Unresolved compilation problems:
Duplicate field ChargeCountReturn.memberTimeFreeTime
Duplicate field ChargeCountReturn.memberTimeFreeValue
Duplicate method getMemberTimeFreeTime() in type ChargeCountReturn
Duplicate method setMemberTimeFreeTime(String) in type ChargeCountReturn
Duplicate method getMemberTimeFreeValue() in type ChargeCountReturn
Duplicate method setMemberTimeFreeValue(String) in type ChargeCountReturn
Duplicate field ChargeCountReturn.memberTimeFreeTime
Duplicate field ChargeCountReturn.memberTimeFreeValue
Duplicate method getMemberTimeFreeTime() in type ChargeCountReturn
Duplicate method setMemberTimeFreeTime(String) in type ChargeCountReturn
Duplicate method getMemberTimeFreeValue() in type ChargeCountReturn
Duplicate method setMemberTimeFreeValue(String) in type ChargeCountReturn
] with root cause
java.lang.Error: Unresolved compilation problems:
Duplicate field ChargeCountReturn.memberTimeFreeTime
Duplicate field ChargeCountReturn.memberTimeFreeValue
Duplicate method getMemberTimeFreeTime() in type ChargeCountReturn
Duplicate method setMemberTimeFreeTime(String) in type ChargeCountReturn
Duplicate method getMemberTimeFreeValue() in type ChargeCountReturn
Duplicate method setMemberTimeFreeValue(String) in type ChargeCountReturn
Duplicate field ChargeCountReturn.memberTimeFreeTime
Duplicate field ChargeCountReturn.memberTimeFreeValue
Duplicate method getMemberTimeFreeTime() in type ChargeCountReturn
Duplicate method setMemberTimeFreeTime(String) in type ChargeCountReturn
Duplicate method getMemberTimeFreeValue() in type ChargeCountReturn
Duplicate method setMemberTimeFreeValue(String) in type ChargeCountReturn

at com.ccc.charge.bean.ChargeCountReturn.<init>(ChargeCountReturn.java:53)
at com.ccc.charge.common.ChargeCommon.setChargeCountReturn(ChargeCommon.java:774)
at com.ccc.charge.common.ChargeCommon.chargeMain(ChargeCommon.java:522)
at com.ccc.api.service.impl.ChargingServiceImpl.WCchargingCount(ChargingServiceImpl.java:478)
at com.ccc.api.web.WCchargeAction.wcChargeCount(WCchargeAction.java:81)
at com.ccc.api.web.WCchargeAction$$FastClassByCGLIB$$bfe736e7.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at com.anjubao.api.aspect.MethodLogInterceptor.doExecutionTimeActionAround(MethodLogInterceptor.java:85)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
at com.anjubao.api.web.WCchargeAction$$EnhancerByCGLIB$$8d36686f.wcChargeCount(<generated>)
at sun.reflect.GeneratedMethodAccessor408.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: