java.lang.reflect.InvocationTargetException解决方法!_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > java.lang.reflect.InvocationTargetException解决方法!

java.lang.reflect.InvocationTargetException解决方法!

 2011/12/13 9:16:36  wangjunping1988  http://wangjunping1988.iteye.com  我要评论(0)
  • 摘要:点击右边红色标题查看本文完整版:java.lang.reflect.InvocationTargetException解决方法!java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
  • 标签:方法 解决方法 解决 Java
点击右边红色标题查看本文完整版:java.lang.reflect.InvocationTargetException解决方法!

java.lang.reflect.InvocationTargetException
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.kingstargroup.control_logic.RequestProcessor.process(RequestProcessor.java:383)
at com.kingstargroup.control_logic.ControlServlet.process(ControlServlet.java:44)
at com.kingstargroup.control_logic.ControlServlet.doPost(ControlServlet.java:19)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at com.kingstargroup.bean.brokerwork.ServiceLogBean.deleteServiceLog(ServiceLogBean.java:1421)
... 33 more
----------------
1421行是:
CustConsultBean cc = CustConsultBean.getCustConsultBeanById(detailId);

设置断点,按F5也是直接报错,不能进入到方法里面

------解决方法--------------------------------------------------------
问题关键应该在这里吧at com.kingstargroup.control_logic.RequestProcessor.process(RequestProcessor.java:383)
可能是反射的方法调用有问题!method.invoke()出错
------解决方法--------------------------------------------------------
如果使用了hibernate,试试升级Hibernate

    
发表评论
用户名: 匿名