Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46131

java.lang.NullPointerException when Parsing warnings in console log with parser IAR Compiler (C/C++)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-plugin
    • Jenkins: 2.60.2
      IAR: 7.5.1.4405
      Warnings Plugin: 4.63

      [Phoenix] $ cmd /c call C:\Users\ADMINI~1\AppData\Local\Temp\jenkins5577269789334236181.bat

      C:\Jenkins\workspace\Phoenix>C:\tools\IAR\EWB7.5\common\bin\IarBuild app\DPT.ewp -build TestHost -log warnings
      IAR Command Line Build Utility V7.5.1.4405
      Copyright 2002-2016 IAR Systems AB.

      Building configuration: DPT - TestHost
      Updating build tree...

      704 file(s) deleted.
      Updating build tree...
      ap_animation.c
      ap_button.c
      ap_com.c
      ap_com_qmp.c
      ap_com_raw.c
      ap_com_visa_ap.c
      ap_config.c
      ap_contactless.c
      ap_crc_stm.c
      ap_crypto_sha.c
      ap_debug.c
      ap_debug_json.c
      ap_debug_menu.c
      ap_debug_sm.c
      ap_debug_xml.c
      ap_diag.c
      ap_display.c
      C:\Jenkins\workspace\Phoenix\library\ap_display.c(335) : Warning[Pe177]: function "configure" was declared but never referenced
      ap_flash_write.c
      ap_font_map.c
      ap_modem.c
      ap_posapi.c
      ap_qmp.c
      ap_rand.c
      ap_resource_maps.c
      ap_rtc.c
      ap_scheduler.c
      ap_serial.c
      ap_serial_passthru.c
      C:\Jenkins\workspace\Phoenix\library\ap_serial_passthru.c(15) : Warning[Pe550]: variable "s_dev_state" was set but never used
      ap_stdio_uart.c
      ap_stm32_loader.c
      ap_timer.c
      ap_txport.c
      ap_txport_uart.c
      ap_txport_usb.c
      authorise_payment_terminal.c
      bitmap_amount.c
      bitmap_Attention.c
      bitmap_Beyond_Blue.c
      bitmap_Boot_screen.c
      bitmap_CCQ_logo_240x320.c
      bitmap_Choco_tap.c
      bitmap_Cure.Brain.Cancer.Foundation.Logo.c
      bitmap_DBA.Logo.2016.c
      bitmap_DCCscreen_240x320.c
      bitmap_Donation_Unavailable.c
      bitmap_DonationStation.logo.BeyondBlue.c
      bitmap_DonationStation.logo.RBS.c
      bitmap_GDV_Logo.c
      bitmap_helping_hand.c
      bitmap_idle.c
      bitmap_logo.c
      bitmap_modem0.c
      bitmap_modem1.c
      bitmap_modem2.c
      bitmap_modem3.c
      bitmap_modem4.c
      bitmap_modem_disconnected.c
      bitmap_priceline_p1.c
      bitmap_priceline_p2.c
      bitmap_priceline_p3.c
      bitmap_priceline_p4.c
      bitmap_priceline_p5.c
      bitmap_priceline_p6.c
      bitmap_processing.c
      bitmap_quest_logo.c
      bitmap_salvos_p1.c
      bitmap_salvos_p2.c
      bitmap_salvos_p3.c
      bitmap_salvos_p4.c
      bitmap_salvos_p5.c
      bitmap_SmithFamily.c
      bitmap_Symbiosis.c
      bitmap_thanks.c
      bitmap_try_again.c
      bitmap_Variety_SA_logo.c
      circular.c
      cJSON.c
      cJSON_Utils.c
      crc_parametric.c
      donation_station.c
      DPT.c
      file_download.c
      font_glut_8x14.c
      font_glut_9x15.c
      font_helvetica_10.c
      font_helvetica_12.c
      font_helvetica_18.c
      font_roboto_$_36.c
      font_roboto_$_48.c
      font_roboto_17.c
      font_roboto_22.c
      font_roboto_28.c
      font_roboto_33.c
      font_roboto_39.c
      font_roboto_46.c
      font_roboto_51.c
      font_roboto_67.c
      font_roboto_black_10.c
      font_roboto_bold_17.c
      font_roboto_condensed_17.c
      font_roboto_condensed_22.c
      font_roboto_condensed_28.c
      font_roboto_condensed_33.c
      font_roboto_condensed_38.c
      font_roboto_condensed_45.c
      font_roboto_condensed_51.c
      font_roboto_condensed_67.c
      font_roboto_light_25.c
      font_roboto_light_38.c
      font_roboto_numbers_130.c
      font_roboto_numbers_161.c
      font_segoe_condensed_46.c
      font_swiss_8x16.c
      font_times_roman_10.c
      font_times_roman_24.c
      host_request.c
      lzma.c
      lzmadec.c
      mc_activate.c
      mc_command.c
      C:\Jenkins\workspace\Phoenix\library\modem\mc_command.c(157) : Warning[Pe177]: function "list_contains_item" was declared but never referenced
      mc_file_close.c
      mc_file_delete.c
      mc_file_open.c
      mc_file_read.c
      mc_file_size.c
      mc_http_get.c
      mc_http_post.c
      mc_http_read.c
      mc_http_url.c
      mc_http_wait_rsp.c
      mc_http_write.c
      mc_network_operator.c
      mc_open.c
      mc_read.c
      C:\Jenkins\workspace\Phoenix\library\modem\mc_read.c(212) : Warning[Pe177]: function "mc_read_data_new" was declared but never referenced
      mc_signal_quality.c
      mc_sim_iccid.c
      mc_simple.c
      mc_status.c
      mc_time.c
      mc_write.c
      C:\Jenkins\workspace\Phoenix\library\modem\mc_write.c(124) : Warning[Pe177]: function "mc_write_new" was declared but never referenced
      misc.c
      miscellany.c
      ping_request.c
      poll_request.c
      posapi_cancel.c
      posapi_contactless.c
      posapi_display.c
      posapi_host_message.c
      posapi_log_exception.c
      posapi_logon.c
      posapi_pld.c
      posapi_print.c
      posapi_qpp_info.c
      posapi_status.c
      posapi_time.c
      posapi_transaction.c
      printf.c
      rle.c
      RTT_Syscalls_IAR.c
      SEGGER_RTT.c
      SEGGER_RTT_printf.c
      startup_stm32f407xx.s
      stm32f4xx_adc.c
      stm32f4xx_can.c
      stm32f4xx_cec.c
      stm32f4xx_crc.c
      stm32f4xx_cryp.c
      stm32f4xx_cryp_aes.c
      stm32f4xx_cryp_des.c
      stm32f4xx_cryp_tdes.c
      stm32f4xx_dac.c
      stm32f4xx_dbgmcu.c
      stm32f4xx_dcmi.c
      stm32f4xx_dfsdm.c
      stm32f4xx_dma.c
      stm32f4xx_dma2d.c
      stm32f4xx_dsi.c
      stm32f4xx_exti.c
      stm32f4xx_flash.c
      stm32f4xx_flash_ramfunc.c
      stm32f4xx_fmpi2c.c
      stm32f4xx_fsmc.c
      stm32f4xx_gpio.c
      stm32f4xx_hash.c
      stm32f4xx_hash_md5.c
      stm32f4xx_hash_sha1.c
      stm32f4xx_i2c.c
      stm32f4xx_iwdg.c
      stm32f4xx_lptim.c
      stm32f4xx_ltdc.c
      stm32f4xx_pwr.c
      stm32f4xx_qspi.c
      stm32f4xx_rcc.c
      stm32f4xx_rng.c
      stm32f4xx_rtc.c
      stm32f4xx_sai.c
      stm32f4xx_sdio.c
      stm32f4xx_spdifrx.c
      stm32f4xx_spi.c
      stm32f4xx_syscfg.c
      stm32f4xx_tim.c
      stm32f4xx_usart.c
      stm32f4xx_wwdg.c
      stm32fxxx_it.c
      stream.c
      strsep.c
      sxml_util.c
      sxmlc.c
      system_stm32f4xx.c
      transaction_log_request.c
      update_request.c
      usb_bsp.c
      usb_core.c
      usb_dcd.c
      usb_dcd_int.c
      usb_device.c
      usb_hcd.c
      usb_hcd_int.c
      usb_host.c
      usbd_cdc_core.c
      usbd_cdc_vcp.c
      usbd_core.c
      usbd_desc.c
      usbd_ioreq.c
      usbd_req.c
      usbd_usr.c
      usbh_cdc_core.c
      usbh_cdc_funct.c
      usbh_core.c
      usbh_hcs.c
      usbh_ioreq.c
      usbh_stdreq.c
      usbh_usr.c
      uuid.c
      Linking
      Warning[Ls016]: [stack usage analysis] the program contains at least one indirect call. Example: from "npl_txport_shutdown". A complete list of such functions is in the map file.
      Warning[Ls017]: [stack usage analysis] the program contains at least one instance of recursion for which stack usage analysis has not been able to calculate a maximum stack depth. One function involved is "print_value" in cJSON.o [2]. A complete list of all recursion nests is in the map file.
      Performing Post-Build Action

      Total number of errors: 0
      Total number of warnings: 7

      C:\Jenkins\workspace\Phoenix>exit 0
      [WARNINGS] Parsing warnings in console log with parser IAR Compiler (C/C++)
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      at hudson.plugins.analysis.util.model.AbstractAnnotation.setFileName(AbstractAnnotation.java:423)
      at hudson.plugins.warnings.parser.Warning.<init>(Warning.java:64)
      at hudson.plugins.warnings.parser.AbstractWarningsParser.createWarning(AbstractWarningsParser.java:227)
      at hudson.plugins.warnings.parser.IarParser.composeWarning(IarParser.java:60)
      at hudson.plugins.warnings.parser.IarParser.createWarning(IarParser.java:53)
      at hudson.plugins.warnings.parser.RegexpParser.findAnnotations(RegexpParser.java:87)
      at hudson.plugins.warnings.parser.RegexpLineParser.parse(RegexpLineParser.java:86)
      at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:282)
      at hudson.plugins.warnings.parser.ParserRegistry.parse(ParserRegistry.java:261)
      at hudson.plugins.warnings.WarningsPublisher.parseConsoleLog(WarningsPublisher.java:370)
      at hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:312)
      at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:69)
      at hudson.plugins.analysis.core.HealthAwareRecorder.perform(HealthAwareRecorder.java:298)
      at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
      at hudson.model.Run.execute(Run.java:1760)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Build step 'Scan for compiler warnings' marked build as failure
      Finished: FAILURE

            drulli Ulli Hafner
            macgyver Roberto Pugliese
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: