求此错误解决方法

A1E6CC0 2013-03-22 11:56:37
Error invoking 'com.hr.service.IHrService.syncEmpPromotion(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: null

这个错误好像需要从装Tomcat,只删[/color]除项目部署没有效果。


顺便请教:调试一些接口,调试时的时候是用tomcat在本机调用webservice客户端的,同步远程数据。单个测试没问题,但是通过系统去走这些接口, 提交多了直接等于false,直接告诉我没找到人员,好奇怪的东西。
...全文
171 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
引用 4 楼 dracularking 的回复:
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. 这是反射调用syncEmpPromotion方法时抛出受检异常了,得详细了解一下syncEmpPromotion具体抛了什么异常,IO……
出现这个错误的时候, 数据还是从我本地传到服务器上,但是 一直显示flase
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
引用 5 楼 dracularking 的回复:
引用 3 楼 A1E6CC0 的回复:严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule java.lang.NullPointerException at com.hjsoft.TaskSchedule.contextD……
public class TaskSchedule implements ServletContextListener{ private Timer WeekScheduleTimer; // 一天的毫秒数 public static final long PERIOD_DAY = 1000 * 60 * 60 * 24; public void contextDestroyed(ServletContextEvent arg0) { this. WeekScheduleTimer.cancel(); } 19行:WeekScheduleTimer.cancel(); 判断毫秒用的
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
引用 4 楼 dracularking 的回复:
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. 这是反射调用syncEmpPromotion方法时抛出受检异常了,得详细了解一下syncEmpPromotion具体抛了什么异常,IO……
这个只报出了这个错误,感觉应该不是网络问题吧
dracularking 2013-03-22
  • 打赏
  • 举报
回复
引用 3 楼 A1E6CC0 的回复:
严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule java.lang.NullPointerException at com.hjsoft.TaskSchedule.contextDestroyed(TaskSchedule.java:19) ……
这个的话 严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule java.lang.NullPointerException at com.hjsoft.TaskSchedule.contextDestroyed(TaskSchedule.java:19) 不太好判断,发送context destroyed event给listener时可能是发送对象空指针了
dracularking 2013-03-22
  • 打赏
  • 举报
回复
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor. 这是反射调用syncEmpPromotion方法时抛出受检异常了,得详细了解一下syncEmpPromotion具体抛了什么异常,IO还是网络,具体后才能应对
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule java.lang.NullPointerException at com.hjsoft.TaskSchedule.contextDestroyed(TaskSchedule.java:19) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1046) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:595) 这个错...
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
这个错误是 本地 连接 服务器 出现,本地接本地没有问题
A1E6CC0 2013-03-22
  • 打赏
  • 举报
回复
Error invoking 'com.hr.service.IHrService.syncEmpPromotion(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: null 请教此错误的解决方法..
dracularking 2013-03-22
  • 打赏
  • 举报
回复
引用 7 楼 A1E6CC0 的回复:
引用 5 楼 dracularking 的回复:引用 3 楼 A1E6CC0 的回复:严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule java.lang.NullPointerException at com.hjso……
确认过调用cancel时WeekScheduleTimer不为null?

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧