Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Unhandled Exception: Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'BpsConsole.Domain.System.Car' because the type requires a JSON object (e.g
- . {"name":"value"}) to deserialize correctly.
- To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like L
- ist<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
- Path 'trigger.car', line 1, position 184.
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, J
- sonProperty containerMember, Object existingValue)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProper
- ty, JsonReader reader, Object target)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProp
- erty containerMember, Object existingValue)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, J
- sonProperty containerMember, Object existingValue)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerPrope
- rty, JsonReader reader, Object target)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonPro
- perty containerMember, Object existingValue)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
- JsonProperty containerMember, Object existingValue)
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
- at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
- at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
- at BpsConsole.Domain.System.Messages.SystemResultMessagePipeline.ExecuteAsync(Message message) in C:\Users\jan.teply\Projects\BpsVisualization\BpsConsole\BpsConsole\Domain\System\Messages\MessagePipeline
- .cs:line 81
- at BpsConsole.Domain.System.Messages.MessageProcessor.ProcessAsync(Message message) in C:\Users\jan.teply\Projects\BpsVisualization\BpsConsole\BpsConsole\Domain\System\Messages\MessageProcessor.cs:line 2
- 7
- at BpsConsole.Infrastructure.Mqtt.MqttListener.ClientOnApplicationMessageReceived(Object s, MqttApplicationMessageReceivedEventArgs e) in C:\Users\jan.teply\Projects\BpsVisualization\BpsConsole\BpsConsol
- e\Infrastructure\Mqtt\MqttListener.cs:line 63
- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
- --- End of stack trace from previous location where exception was thrown ---
- at System.Threading.ThreadPoolWorkQueue.Dispatch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement