Search code examples
reactorproject-reactor

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


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" );


Solution

  • 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.