Neuron ESB User Network

The Service Bus for the Connected Business

Hi,

I wrapped a c# process step in a business process that has been running without issues for several months in a Timeout process step, but am getting an System.AggregateException now whenever the code block is executed. It's odd because if I process the same messages without encapsulating the code step in a Timeout, I do not get an issue, nor if I run it via the process trace debugger. 

We wanted to add the Timeout as a precaution in-case the code in the C# code step (which calls a DLL) becomes blocked or takes too long to execute.

the below error is thrown when we include the Timeout step (also including screenshot of business process) - appreciate any insight. 

thanks

Marc

Parent Process: Unknown Process Name

Source Process: FIX_TRACKER
Source Process Step: Timeout-FHIRBuilder

Exception Type: System.AggregateException
Exception Message: One or more errors occurred.
Exception Trace: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at Neuron.Pipelines.ContainerPipelineStep`1.OnExecute(PipelineContext`1 state)
at Neuron.Pipelines.PipelineStep`1.Execute(PipelineContext`1 state)

Inner Exception Type: Neuron.Pipelines.PipelineException
Inner Exception Message: The code step "C# - FHIRBuilde Call" failed due to an error: Object reference not set to an instance of an object.
Inner Exception Trace: at Neuron.Pipelines.CodePipelineStep`1.OnExecute(PipelineContext`1 state)
at Neuron.Pipelines.PipelineStep`1.Execute(PipelineContext`1 state)
at Neuron.Pipelines.PipelineStepGroup`1.OnExecute(PipelineContext`1 context)
at Neuron.Pipelines.ContainerPipelineStep`1.<>n__FabricatedMethod4(PipelineContext`1 A_1)
at Neuron.Pipelines.ContainerPipelineStep`1.<>c__DisplayClass2.<OnExecute>b__0()
at System.Threading.Tasks.Task.Execute()

Inner Exception Type: Neuron.Pipelines.PipelineException
Inner Exception Message: Object reference not set to an instance of an object.
Inner Exception Trace: at Neuron.Pipelines.PipelineStep`1.Execute(PipelineContext`1 state)
at Neuron.Pipelines.CodePipelineStep`1.OnExecute(PipelineContext`1 state)

Inner Exception Type: System.NullReferenceException
Inner Exception Message: Object reference not set to an instance of an object.
Inner Exception Trace: at Neuron.Pipelines.PipelineContext`1.get_Configuration()
at __DynamicCode.Type4c868b922b740ec87ca1fa222e36b7.OnExecute(PipelineContext`1 context) in c:\Windows\Temp\d4kwxy4k.0.cs:line 36
at Neuron.Pipelines.PipelineStep`1.Execute(PipelineContext`1 state)

Views: 162

Attachments:

Reply to This

Replies to This Discussion

I've dug a bit deeper and it appears that the calls in the C# step to the context.Configuration maybe what is causing the issue. For example, we are grabbing a Credential from the configuration based on an Env var setting. The context.EnvironmentVariables seems ok, but the context.Configuration.Credentials throws the exception above.

var envCredName = context.EnvironmentVariables["neuron_fhir_client_credentials"];
var cred = context.Configuration.Credentials[envCredName];

any reason why getting the context.Configuration within a Timeout step would be an issue?

thanks.

Marc

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019
Suman vadde is now a member of Neuron ESB User Network
Dec 16, 2019
Morten Andreasen is now a member of Neuron ESB User Network
Dec 9, 2019
Profile IconCarl Porch, Cordier, Lahbib Marouan and 4 more joined Neuron ESB User Network
Nov 18, 2019
Miroslav Jelev posted a discussion

Using unsupported OAuth provider

Is it possible to create a custom OAuth provider?  Specifically, we are working with Cisco (https://cloudsso.cisco.com/as/token.oauth2).We have a requirement to integrate with a Cisco soap server which uses OAuth2 for authentication. We are using a Service Connector to send a message to the SOAP service, but we need to write custom code in a business process to authenticate with their Cisco OAuth provider. We saw that Neuron supports…See More
Jul 29, 2019
Profile Iconchris comer, Fahd EL YOUBI, Vishal Misal and 2 more joined Neuron ESB User Network
May 16, 2019
Alixx Skevington posted a discussion

Docker Windows 2019 - Neuron 3.5

Hi, We are using 3.5 for our application and I am trying to containerise it for our integration tests.  Building and deploying VM's as this is very time consuming to build and deploy.So I have decided that I to go down docker; everything in our stack has migrated nicely except Neuron.  The first issue was that I needed a later version of the 2016 image or 2019 image from MS which I have. I have managed to install MSMQ on it as well. But when I try to run a silent install everything runs.  But…See More
Apr 15, 2019

Badge

Loading…

© 2020   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service