当前位置: 代码迷 >> Java Web开发 >> 求此异常解决办法
  详细解决方案

求此异常解决办法

热度:87   发布时间:2016-04-12 23:21:21.0
求此错误解决方法
Error invoking 'com.hr.service.IHrService.syncEmpPromotion(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: null

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


顺便请教:调试一些接口,调试时的时候是用tomcat在本机调用webservice客户端的,同步远程数据。单个测试没问题,但是通过系统去走这些接口, 提交多了直接等于false,直接告诉我没找到人员,好奇怪的东西。
webservice tomcat null exception nested

------解决方案--------------------
InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.

这是反射调用syncEmpPromotion方法时抛出受检异常了,得详细了解一下syncEmpPromotion具体抛了什么异常,IO还是网络,具体后才能应对
------解决方案--------------------
引用:
严重: 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时可能是发送对象空指针
------解决方案--------------------
引用:
引用:引用:严重: Exception sending context destroyed event to listener instance of class com.hjsoft.TaskSchedule
java.lang.NullPointerException
at com.hjso……

确认过调用cancel时WeekScheduleTimer不为null?
  相关解决方案