project-reactor - Nullpointer when loading UUIDUtils with a failsafe integration test

153 views Asked by At

I am running into a NP when running an integration test of the reactor EventBus with failsafe

I think this this because the class UUIDUtils is being loaded by the bootstrap classloader and hence the call to getClassLoader() is returning null? Caused by: java.lang.NullPointerException at reactor.core.support.UUIDUtils.<clinit>(UUIDUtils.java:39)

IS_THREADLOCALRANDOM_AVAILABLE = null != UUIDUtils.class.getClassLoader().loadClass( "java.util.concurrent.ThreadLocalRandom" );

1

There are 1 answers

2
Jon Brisbin On BEST ANSWER

Would you mind creating a GitHub issue on this so we can track a fix? Sounds like maybe we just need to try/catch setting this boolean and let it be false in this case.