Closed doolse closed 7 years ago
Sorry for barging into your issues @doolse, but did you find the root cause for this? I'm debugging a similar issue.
@jesjos I never looked too far into it because just removing the compile time validator fixed it but I imagine it was some sort of race condition.
Can you explain exactly what you mean by "removing the compile time validator"?
@davidmichaelkarr Removed the hibernate-validator-annotation-processor
jar
We had similar problem with different plugins - in our case this was to do with sharing JarFile instance between multiple classloaders in different threads. This means for all Jars loaded via a JarURLConnection, when one of the threads closes the JarFile it will close the instance for all other threads.
We have an experimental workaround to solving this that does the following (unfortunately you can only change the default caching flag through an instance method)
new HttpURLConnection(null) {
@Override
public void connect() throws IOException {
}
@Override
public void disconnect() {
}
@Override
public boolean usingProxy() {
return false;
}
}.setDefaultUseCaches(false);
See https://bugs.openjdk.java.net/browse/JDK-8163449 for a "fix" from Java 9 onwards
Looks like some sort of race condition in the compiler.