zoukankan      html  css  js  c++  java
  • java日志空指针怎么定位问题

    示例报错:

    java.lang.NullPointerException: null
    at com.ipharmacare.sf.task.service.MatchAuditPlanService.getThisRecipeMsgList(MatchAuditPlanService.java:948) ~[ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.task.service.MatchAuditPlanService.isMzTaskMatched(MatchAuditPlanService.java:115) ~[ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.task.service.MatchAuditPlanService.isTaskMatchAuditPlan(MatchAuditPlanService.java:86) ~[ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.task.service.PharmacistWorkingService.taskBaseAuditPlanMatch(PharmacistWorkingService.java:60) ~[ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.task.service.DistributedTaskService.add(DistributedTaskService.java:107) ~[ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.AuditMainService.submitDistributedTask(AuditMainService.java:753) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.AuditMainService.optMain(AuditMainService.java:311) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.AuditMainService.mainProcess(AuditMainService.java:135) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.filter.HisDataNodeChain.doFilter(HisDataNodeChain.java:26) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.filter.common.HisDataCommonHandler.doFilter(HisDataCommonHandler.java:281) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.filter.HisDataNodeChain.doFilter(HisDataNodeChain.java:28) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.filter.common.XmlValidateHandler.doFilter(XmlValidateHandler.java:74) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.main.service.filter.HisDataNodeChain.doFilter(HisDataNodeChain.java:28) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at com.ipharmacare.sf.thread.RunSfTask.run(RunSfTask.java:39) [ipharmacare-distributed-sf-as-3.2.190523.RELEASE.jar:3.2.190523.RELEASE]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_112]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_112]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_112]
    空指针报错日志

     对于日志中的报错信息,在java中抛异常是从内往外,因此只需要重点关注第一行报错信息,下面的报错都是由于一层层传递调用该方法导致。查看报错的函数源码再定位问题:

  • 相关阅读:
    Python学习笔记--列表
    jmeter适用python来处理接口加密
    pytest-fixture参数化params(重要)
    Python38+Robot Framework 安装ExcelLibrary一直报错,提示“dist.py:267: userwarning: unknown distribution option: ‘inst’”
    robotframework之RIED运行测试用例报错Suite ‘XXX‘ contains no tests matching name ‘XXX‘ in sin suite
    在win10上安装python3.8 + Robotframework +RIDE报错
    Pytest自动化测试 断言失败后续代码继续执行
    学习pytest+allureUI自动化记录(示例代码)
    接口测试 Pytest断言处理_assert和异常断言
    selenium有界面下正常,无界面下报错:Message: element not interactable (Session info: headless chrome)
  • 原文地址:https://www.cnblogs.com/wang-mengmeng/p/11528456.html
Copyright © 2011-2022 走看看