Skip to content
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

indefinite NullPointerException after single timeout #1927

Closed
Hr0bar opened this issue Oct 26, 2021 · 4 comments · Fixed by #1931
Closed

indefinite NullPointerException after single timeout #1927

Hr0bar opened this issue Oct 26, 2021 · 4 comments · Fixed by #1931

Comments

@Hr0bar
Copy link

Hr0bar commented Oct 26, 2021

Expected behavior

Connection polling cycle is retried successfully after it fails once

Actual behavior

ApplicationInsights fail permanently with null pointer exception after connection timeouts once

System information

Please provide the following information:

  • SDK Version: ApplicationInsights 3.2.0
  • OS type and version: Docker container openjdk:11.0.13-jre
  • Application Server type and version (if applicable): Spring Boot 2.5.6
  • Using spring-boot? Yes

Logs

After Insights are running successfully for random time, this occurs randomly:
image

after that this:
image

and from then every polling cycle indefinitely:
image

Config

Pretty much default:

ENTRYPOINT ["java","-javaagent:/app/applicationinsights-agent-3.2.0.jar","-jar",".............


{
  "connectionString": "InstrumentationKey=CENSORED;IngestionEndpoint=https://eastus2-0.in.applicationinsights.azure.com/",
  "role": {
    "name": "CENSORED"
  },
  "sampling": {
    "percentage": 50
  }
}
@heyams
Copy link
Contributor

heyams commented Oct 26, 2021

@Hr0bar can you try out this new build and confirm that if it fixes your issue?
https://github.com/microsoft/ApplicationInsights-Java/files/7422052/applicationinsights-agent-3.2.1-SNAPSHOT.jar.zip

@Hr0bar
Copy link
Author

Hr0bar commented Oct 27, 2021

Thanks, Ill test it but have to wait some time to confirm, as the issue usually happens within less than three days of runtime.

@heyams
Copy link
Contributor

heyams commented Oct 28, 2021

fyi @Hr0bar this fix has been released in 3.2.2.
thank you for reporting.

@Hr0bar
Copy link
Author

Hr0bar commented Oct 28, 2021

Thanks, seems the error is not occurring anymore

@ghost ghost locked as resolved and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants