Petals Ant Tasks

NPE when building flow tree if a flow step is not ended

Details

  • Description:
    Hide

    When building flow trees from not ended flow instances, we can have the following NPE is a flow step is not ended (ie. if no MONIT trace 'provideFlowStepEnd' or 'provideFlowStepFailure' exists:

    java.lang.NullPointerException
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTask.execute(AbstractMonitAntTask.java:52)
    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    	at org.apache.tools.ant.Task.perform(Task.java:348)
    	at org.apache.tools.ant.Target.execute(Target.java:435)
    	at org.apache.tools.ant.Target.performTasks(Target.java:456)
    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
    	... 37 more
    Caused by: java.lang.NullPointerException
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.processFlowStep(BuildFlowTreesTask.java:136)
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.processFlow(BuildFlowTreesTask.java:109)
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.doTaskWithFlows(BuildFlowTreesTask.java:68)
    	at org.ow2.petals.ant.task.monit.AbstractMonitFlowsAntTaskRequiringRefId.doTaskRequiringRefId(AbstractMonitFlowsAntTaskRequiringRefId.java:39)
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTaskRequiringRefId.doTask(AbstractMonitAntTaskRequiringRefId.java:54)
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTask.execute(AbstractMonitAntTask.java:46)
    	... 49 more
    Show
    When building flow trees from not ended flow instances, we can have the following NPE is a flow step is not ended (ie. if no MONIT trace 'provideFlowStepEnd' or 'provideFlowStepFailure' exists:
    java.lang.NullPointerException
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTask.execute(AbstractMonitAntTask.java:52)
    	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:606)
    	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    	at org.apache.tools.ant.Task.perform(Task.java:348)
    	at org.apache.tools.ant.Target.execute(Target.java:435)
    	at org.apache.tools.ant.Target.performTasks(Target.java:456)
    	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
    	... 37 more
    Caused by: java.lang.NullPointerException
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.processFlowStep(BuildFlowTreesTask.java:136)
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.processFlow(BuildFlowTreesTask.java:109)
    	at org.ow2.petals.ant.task.monit.BuildFlowTreesTask.doTaskWithFlows(BuildFlowTreesTask.java:68)
    	at org.ow2.petals.ant.task.monit.AbstractMonitFlowsAntTaskRequiringRefId.doTaskRequiringRefId(AbstractMonitFlowsAntTaskRequiringRefId.java:39)
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTaskRequiringRefId.doTask(AbstractMonitAntTaskRequiringRefId.java:54)
    	at org.ow2.petals.ant.task.monit.AbstractMonitAntTask.execute(AbstractMonitAntTask.java:46)
    	... 49 more
  • Environment:
    -

Activity

Christophe DENEUX made changes - Tue, 6 Sep 2016 - 11:03:31 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Tue, 6 Sep 2016 - 11:03:42 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Tue, 6 Sep 2016 - 11:11:08 +0200

Fixed in trunk

Show
Christophe DENEUX added a comment - Tue, 6 Sep 2016 - 11:11:08 +0200 Fixed in trunk
Christophe DENEUX made changes - Tue, 6 Sep 2016 - 11:11:08 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.6.1 [ 10628 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
17s
1
Christophe DENEUX
Tue, 6 Sep 2016 - 11:03:31 +0200
Open Open In Progress In Progress
11s
1
Christophe DENEUX
Tue, 6 Sep 2016 - 11:03:42 +0200
In Progress In Progress Resolved Resolved
7m 26s
1
Christophe DENEUX
Tue, 6 Sep 2016 - 11:11:08 +0200



People

Dates

  • Created:
    Tue, 6 Sep 2016 - 11:03:14 +0200
    Updated:
    Tue, 6 Sep 2016 - 11:11:08 +0200
    Resolved:
    Tue, 6 Sep 2016 - 11:11:08 +0200