Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.50 KB | None | 0 0
  1. 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
  2. . {"name":"value"}) to deserialize correctly.
  3. 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
  4. 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.
  5. Path 'trigger.car', line 1, position 184.
  6.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract)
  7.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
  8.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, J
  9. sonProperty containerMember, Object existingValue)
  10.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProper
  11. ty, JsonReader reader, Object target)
  12.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  13.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProp
  14. erty containerMember, Object existingValue)
  15.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, J
  16. sonProperty containerMember, Object existingValue)
  17.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerPrope
  18. rty, JsonReader reader, Object target)
  19.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
  20.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonPro
  21. perty containerMember, Object existingValue)
  22.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract,
  23. JsonProperty containerMember, Object existingValue)
  24.    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
  25.    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
  26.    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
  27.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
  28.    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
  29.    at BpsConsole.Domain.System.Messages.SystemResultMessagePipeline.ExecuteAsync(Message message) in C:\Users\jan.teply\Projects\BpsVisualization\BpsConsole\BpsConsole\Domain\System\Messages\MessagePipeline
  30. .cs:line 81
  31.    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
  32. 7
  33.    at BpsConsole.Infrastructure.Mqtt.MqttListener.ClientOnApplicationMessageReceived(Object s, MqttApplicationMessageReceivedEventArgs e) in C:\Users\jan.teply\Projects\BpsVisualization\BpsConsole\BpsConsol
  34. e\Infrastructure\Mqtt\MqttListener.cs:line 63
  35.    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
  36. --- End of stack trace from previous location where exception was thrown ---
  37.    at System.Threading.ThreadPoolWorkQueue.Dispatch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement