zoukankan      html  css  js  c++  java
  • Caused by: java.lang.NoClassDefFoundError at com.jc.zm.ZmAlarmAction.analyDo(ZmAlarmAction.java:198)

       ZmPlanDayAction objPlanDay = new ZmPlanDayAction();
       objPlanDay.setDao(dao);
       objPlanDay.setServletRequest(req);
       objPlanDay.analy(prcsDate, itemId, "01", id, custId, "01", condId, condName,
        mayQues, contentId, contentName, measure, content, analy);

    运行时,执行到第一行时出现了下面的错误:

    Caused by: java.lang.NoClassDefFoundError at com.jc.zm.ZmAlarmAction.analyDo(ZmAlarmAction.java:198)

    检查发现,ZmPlanDayAction.class 文件存在,后仔细检查发现,原来这些文件在开始的时候就已经出错了,导致了class文件不能执行下去的情况。

    ZmPlanDayAction.java在开头时候的语句错误了。代码如下:

     private static Integer dayPlanFlowId = Integer.parseInt(BaseConfig.getValue("dayPlanFlowId"));
     private static Integer weekPlanFlowId = Integer.parseInt(BaseConfig.getValue("weekPlanFlowId"));
     private static Integer monthPlanFlowId = Integer.parseInt(BaseConfig.getValue("monthPlanFlowId"));
     private static Integer planSumFlowId = Integer.parseInt(BaseConfig.getValue("planSumFlowId"));

    最后一句代码中的 planSumFlowId 这个在配置文件(baseconfig.properties)中的名称为“sumPlanFlowId”,因为找不到该配置项,导致了class文件一开始就错误了。

  • 相关阅读:
    Geometry
    后缀数组dc3算法模版(待补)
    CodeForces 467D(267Div2-D)Fedor and Essay (排序+dfs)
    HDU 3572 Task Schedule (最大流)
    Acdream手速赛7
    hdu2732 Leapin' Lizards (网络流dinic)
    HDU 3549 Flow Problem (最大流ISAP)
    HDU 1532 Drainage Ditches (网络流)
    [容易]合并排序数组 II
    [容易]搜索插入位置
  • 原文地址:https://www.cnblogs.com/zmc/p/3170018.html
Copyright © 2011-2022 走看看