-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null reference exception in WriteJsonImpl #2185
Labels
bug
Something isn't working
community
To tag external issues and PRs
good first issue
Good for newcomers
Comments
Unfortunately the dump does not include line numbers, but looking at the implementation:
The method should probably check for null argument, plus the only place i feel could strongly face a NULL reference is "item.Value.ToString()", it should be handled with null propagation. |
@david-garcia-garcia Thanks for your bug report and assessment of the likely cause. We'll work on fixing this bug soon. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
community
To tag external issues and PRs
good first issue
Good for newcomers
Description
APM is not reporting, see this from the logs:
System.NullReferenceException: Object reference not set to an instance of an object. at NewRelic.Agent.Core.JsonConverters.LoadedModuleWireModelCollectionJsonConverter.WriteJsonImpl(JsonWriter jsonWriter, LoadedModuleWireModelCollection value) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer) at NewRelic.Agent.Core.DataTransport.JsonSerializer.Serialize(Object[] parameters) at NewRelic.Agent.Core.DataTransport.ConnectionHandler.SendDataOverWire[T](ICollectorWire wire, String method, Object[] data) at NewRelic.Agent.Core.DataTransport.ConnectionHandler.SendDataRequest[T](String method, Object[] data) at NewRelic.Agent.Core.DataTransport.ConnectionManager.SendDataRequest[T](String method, Object[] data) at NewRelic.Agent.Core.DataTransport.DataTransportService.TrySendDataRequest[T](String method, Object[] data)
This is a log from an IIS hosted APM'ed application.
Expected Behavior
There are no errors, and data ir properly sent to NR APM.
Steps to Reproduce
Not sure.
Your Environment
This is a Windows Server 2022 image running in an AKS cluster. Base image: FROM mcr.microsoft.com/windows/servercore:ltsc2022
Additional context
For Maintainers Only or Hero Triaging this bug
The text was updated successfully, but these errors were encountered: