Transient MissingResourceException when using annotation processor
We have just integrated hibernate-validator-annotation-processor into our build. Since then some of our Travis CI builds have started to fail randomly. A representative stack trace is the following:
(The stacktrace is not quite complete; this is probably due to Travis CI not retaining the last bit of output after receiving an error signal.)
A Google search turns up one other report of this issue. There the users decided to drop the annotation processor; we'd rather not do that.
We have a rather complicated Maven setup and since it's all private code I cannot share a simple reproduction case, but the maven-compiler-plugin configuration effectively amounts to the following:
Our Travis CI build uses mvn -T 2; this concurrency aspect may be relevant.
Ubuntu 14.04.5 LTS
Apache Maven 3.5.3
OK, thanks. It really looks like the JDK issue above so let's hope it's all fixed now.
Hi , no worries!
Unfortunately our internal build is not yet fully JDK 9+ compatible, so we can't use oraclejdk10 yet. But I am working on taking away the various hurdles that prevent us from upgrading to JDK 11. Hope to complete that in the next few weeks (it's a side project ). I'll report back once we have completed that task.
Sorry about the delay, I was on vacation.
I don't think it's something we can fix ourselves unfortunately, it looks a lot like this issue https://bugs.openjdk.java.net/browse/JDK-8163449 mentioned in the other report you wrote about.
Could you try to upgrade your Travis build to use JDK 10 (by using oraclejdk10) and see if it reproduces?