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

NullPointerException generated by setThreadTokenAndRefCount #1149

Closed
kford-newrelic opened this issue Feb 6, 2023 · 5 comments
Closed

NullPointerException generated by setThreadTokenAndRefCount #1149

kford-newrelic opened this issue Feb 6, 2023 · 5 comments
Labels
GTSE There is an associated support escalation with this issue. on-roadmap Issue has been added to our product roadmap and will be worked in the coming quarter

Comments

@kford-newrelic
Copy link
Contributor

Customer was upgrading from the 7.5.0 agent to the 7.11.1 agent. The explicitly referenced use of http4s 0.23 being a foundation of these apps, which encountered the following

at com.nr.agent.instrumentation.Utils.setThreadTokenAndRefCount(Utils.java:57)
java.lang.NullPointerException
at com.newrelic.agent.Transaction.linkTxOnThread(Transaction.java:1403)
at com.newrelic.agent.TokenImpl.link(TokenImpl.java:91)
at cats.effect.IOFiber.run(IOFiber.scala:21)
at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:585)

Need to review the referenced code and check whether a simple null check needs to be added or not.

@kford-newrelic kford-newrelic added GTSE There is an associated support escalation with this issue. on-roadmap Issue has been added to our product roadmap and will be worked in the coming quarter labels Feb 6, 2023
@workato-integration
Copy link

@kford-newrelic
Copy link
Contributor Author

May be addressed by #1148

@workato-integration
Copy link

Jira CommentId: 150074
Commented by aonuki:

Custom jar with possible fix can be downloaded at
[https:/newrelic/newrelic-java-agent/actions/runs/4128081650]

 

@workato-integration
Copy link

Jira CommentId: 150850
Commented by kford:

Completed with #1148

@workato-integration
Copy link

Work has been completed on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GTSE There is an associated support escalation with this issue. on-roadmap Issue has been added to our product roadmap and will be worked in the coming quarter
Projects
Archived in project
Development

No branches or pull requests

1 participant