Error invoking 'com.hr.service.IHrService.syncEmpPromotion(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: null这个错误好像需要从装Tomcat,只删[/color]除项目部署没有效果。
顺便请教:调试一些接口,调试时的时候是用tomcat在本机调用webservice客户端的,同步远程数据。单个测试没问题,但是通过系统去走这些接口, 提交多了直接等于false,直接告诉我没找到人员,好奇怪的东西。webservicetomcatnullexceptionnested

解决方案 »

  1.   

    Error invoking 'com.hr.service.IHrService.syncEmpPromotion(java.lang.String)'. Nested exception is java.lang.reflect.InvocationTargetException: null请教此错误的解决方法..
      

  2.   


    严重: 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)
    这个错...
      

  3.   

    InvocationTargetException is a checked exception that wraps an exception thrown by an invoked method or constructor.这是反射调用syncEmpPromotion方法时抛出受检异常了,得详细了解一下syncEmpPromotion具体抛了什么异常,IO还是网络,具体后才能应对
      

  4.   

    这个的话
    严重: 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时可能是发送对象空指针了
      

  5.   

    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(); 
    判断毫秒用的
      

  6.   

    出现这个错误的时候, 数据还是从我本地传到服务器上,但是 一直显示flase
      

  7.   

    确认过调用cancel时WeekScheduleTimer不为null?