Jenkins JIRA | fbartz | 4 months ago
  1. 0

    - create a pipeline Job with dynamic gerrit triggers - open "Configure" again and save again (important) - restart Jenkins - you'll get a NPE loading the job: WARNING: Frank-pipeline-test-trigger java.lang.NullPointerException at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.cancelTimer( at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.stop( at at org.jenkinsci.plugins.workflow.job.WorkflowJob.onLoad( at hudson.model.Items.load( at jenkins.model.Jenkins$ at org.jvnet.hudson.reactor.TaskGraphBuilder$ at org.jvnet.hudson.reactor.Reactor.runTask( at jenkins.model.Jenkins$7.runTask( at org.jvnet.hudson.reactor.Reactor$ at org.jvnet.hudson.reactor.Reactor$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at the problem is the <gerritTriggerTimerTask> node in the job's config.xml: - When you freshly create the pipeline job (including dynamic trigger settings), the xml-node is not there and the job is loading correctly, even when restarting jenkins - as soon as you re-save the job config, the <gerritTriggerTimerTask> node is inserted in the job's xml and now on the next Jenkins restart the job fails to load with an NPE as stated above - if you don't restart the jenkins, the job keeps working and is still editable, also dynamic triggers work, but as soon as you restart jenkins, the job is no longer accessible - if you manually remove the <gerritTriggerTimerTask> node in the job's config.xml in the jenkins backend and restart jenkins, the job becomes available again (until the next save + restart)

    Jenkins JIRA | 4 months ago | fbartz
  2. 0
    samebug tip
    Assign onCickListener to imageView in ExpandableListView inside getChildView.
  3. 0
    samebug tip
    The Fragment was destroyed, and getActivity() returned null. Don't destroy the Fragment.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 1 year ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.cancelTimer()
    2. com.sonyericsson.hudson
      1. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.cancelTimer(
      2. com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.stop(
      2 frames
    3. org.jenkinsci.plugins
      2. org.jenkinsci.plugins.workflow.job.WorkflowJob.onLoad(
      2 frames
    4. Hudson
      1. hudson.model.Items.load(
      1 frame
    5. jenkins.model
      1. jenkins.model.Jenkins$
      1 frame
    6. init
      1. org.jvnet.hudson.reactor.TaskGraphBuilder$
      2. org.jvnet.hudson.reactor.Reactor.runTask(
      2 frames
    7. jenkins.model
      1. jenkins.model.Jenkins$7.runTask(
      1 frame
    8. init
      1. org.jvnet.hudson.reactor.Reactor$
      2. org.jvnet.hudson.reactor.Reactor$
      2 frames
    9. Java RT
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(
      2. java.util.concurrent.ThreadPoolExecutor$
      3 frames