that’s weird
there must be a naked thread being used in your local that isn’t there in remote?
Somewhere outside your code sample, maybe?
Does the Java produce the same error in your local? Can you write a wad of Java using that and reproduce it locally?