返回结果集有默认值但是提示java.lang.nullpointerexception
java是一种可以撰写跨平台应用软件的面向对象的程序设计语言,是由Sun Microsystems公司于1995年5月推出的Java程序设计语言和Java平台(即JavaEE, JavaME, JavaSE)的总称。本站提供基于Java框架struts,spring,hibernate等的桌面应用、web交互及移动终端的开发技巧与资料
保持永久学习的心态,将成就一个优秀的你,来 继续搞起java知识。
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 <a href="http://www.cfei.net/archives/tag/failed" title="浏览关于“failed”的文章" target="_blank" class="tag_link">failed</a>; <a href="http://www.cfei.net/archives/tag/nested" title="浏览关于“nested”的文章" target="_blank" class="tag_link">nested</a> exception is java.lang.Error: Unresolved compilation <a href="http://www.cfei.net/archives/tag/problems" title="浏览关于“problems”的文章" target="_blank" class="tag_link">problems</a>:
Duplicate <a href="http://www.cfei.net/archives/tag/field" title="浏览关于“field”的文章" target="_blank" class="tag_link">field</a> 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)
problemsfailedmethodnestedfield
因为水平有限,难免有疏忽或者不准确的地方,希望大家能够直接指出来,我会及时改正。一切为了知识的分享。
后续会有更多的精彩的内容分享给大家。
支付宝扫一扫
微信扫一扫
