I am aot-compiling my source. Not doing any weird reloading anything.
I have seen NoClassDefFoundError in a worker thread during JVM shutdown. Normally I see it with Boot pods, where a timer is still active and it triggers between the time a needed class gets unloaded and the JVM shuts down. I would consider your -main
waiting on a promise that the shutdown hook delivers to be suspicious here.
I don’t know that I care that the promise is ever delivered, but I think that’s neither here nor there wrt the problem. The shutdown hook is barfing when it tries to call component/stop-system
I would add a println
inside your shutdown hook function — just to verify that it is not somehow being invoked twice (and it’s the second call that’s failing).