Hi

look at the issue 173 :
I made a test config, but was unable to get the null ref exception

my test config :


 <tasks>

      <parallel>
        <tasks>
          <sequential>
            <description>Build Linux</description>
            <tasks>
              <exec>
                <executable>ping.exe</executable>
                <buildArgs>localhost</buildArgs>
                <buildTimeoutSeconds>15</buildTimeoutSeconds>
                <description>Pinging linux build server</description>
              </exec>
            </tasks>
          </sequential>
          <sequential>
            <description>Build Windows</description>
            <tasks>
              <exec>
                <executable>ping.exe</executable>
                <buildArgs>127.0.0.1</buildArgs>
                <buildTimeoutSeconds>15</buildTimeoutSeconds>
                <description>Pinging Windows build server</description>
              </exec>
            </tasks>
          </sequential>
        </tasks>
      </parallel>
    </tasks>



On 21 August 2012 21:34, Ruben Willems <[email protected]> wrote:

> Hi
>
> issue has been made
> http://www.cruisecontrolnet.org/issues/173
>
> with kind regards
> Ruben Willems
>
>
> On 3 August 2012 20:48, Michael Kelley <[email protected]> wrote:
>
>> I have a standard set of sequential tasks surrounded with a parallel task
>> like this:
>>
>> <parallel>
>>  <tasks>
>> <sequential>
>>  <description>Build Linux</description>
>> <tasks>
>>  ...
>> </tasks>
>>  </sequential>
>>  <sequential>
>>  <description>Build Windows</description>
>> <tasks>
>>  ...
>> </tasks>
>>  </sequential>
>> </tasks>
>> </parallel>
>>
>> Under 1.6.7981.1 this worked with any problems.  Under 1.8.0.0, I get
>> this exception that brings down the cruisecontrol service:
>>
>>
>> **Error Message:** System.NullReferenceException: Object reference not
>> set to an instance of an object. at
>> ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask.GetStatusInformation(RunningSubTaskDetails
>> Details) at
>> ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase.SubTaskStartupInformationUpdated(String
>> information, Object UserObject) at
>> ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformation.DoStartupInformationUpdated(String
>> information) at
>> ThoughtWorks.CruiseControl.Core.Util.BuildProgressInformation.SignalStartRunTask(String
>> information) at
>> ThoughtWorks.CruiseControl.Core.Tasks.SequentialTask.Execute(IIntegrationResult
>> result) at
>> ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.Run(IIntegrationResult
>> result) at
>> ThoughtWorks.CruiseControl.Core.Tasks.TaskContainerBase.RunTask(ITask task,
>> IIntegrationResult result, RunningSubTaskDetails taskDetails) at
>> ThoughtWorks.CruiseControl.Core.Tasks.ParallelTask.<>c__DisplayClass2.<Execute>b__0(Object
>> state)
>>
>> Looking at the source code could it be that tasksDetails in ParallelTask
>> has not been created yet and is therefore null?
>>
>>
>>
>>
>

Reply via email to