Skip to content

java-errors

15 Posts

ThreadLocal Goes Missing Inside StructuredTaskScope

A ThreadLocal that worked fine in a thread pool returns null the moment a virtual thread forks a subtask. Here's the mechanism, and what actually fixes it.

Java InvalidClassException: local class incompatible

InvalidClassException: local class incompatible means the stream's serialVersionUID no longer matches your class. Here is why it drifted, and how to fix it without losing data.

Too Many Open Files in Java: File Descriptor Leaks Fixed

java.io.IOException: Too many open files means you hit the descriptor limit. How to count FDs, find the leak with /proc and lsof, and set limits that hold.