question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE when running IOFiber

See original GitHub issue

I am occasionally seeing an error with cats-effect 3.2.9 that I can’t yet reproduce locally. The following is the full stacktrace:

java.lang.NullPointerException: null
    at cats.effect.internals.Utils.setThreadTokenAndRefCount(Utils.java:57)
    at cats.effect.IOFiber.run(IOFiber.scala)
    at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:435)

I’m not sure where cats.effect.internals.Utils.setThreadTokenAndRefCount comes from, or what’s setting this off. Will continue make some attempts to minimise, but in the meantime the stacktrace makes it look like there’s some error in the heart of cats-effect. If there’s anything anyone can think of trying to help me produce a more useful report, please let me know - I am currently mystified by pretty much every aspect of the error

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
hughsimpsoncommented, Nov 26, 2021
1reaction
hughsimpsoncommented, Nov 10, 2021

I don’t think so, thanks very much though. I’ll raise an issue against new relic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cats-effect 3 instrumentation throws fatal NPE #544 - GitHub
Description cat-effect 3 instrumentation sometimes throws java.lang.NullPointerException: null at cats.effect.internals.Utils.
Read more >
java - What is a NullPointerException, and how do I fix it?
Throws an NPE with a custom error message if obj is null Objects. ... the statement labeled "HERE" is going to attempt to...
Read more >
How to Fix and Avoid NullPointerException in Java - Rollbar
NullPointerException in Java occurs when a variable is accessed which is not pointing to any object and refers to nothing or null.
Read more >
JR62019: YOU RECEIVE A NULLPOINTEREXCEPTION ... - IBM
When the BPMInstallOfflinePackage wsadmin command runs, a check determines whether the number of snapshots on the system is above the warning threshold.
Read more >
Java NullPointerException - Detect, Fix, and Best Practices
When we run the above program, it throws the following NullPointerException error message. Exception in thread "main" java.lang.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found