Hi. We have a micro-services architecture on one o...
# pact-jvm
a
Hi. We have a micro-services architecture on one of our projects. We’re using the following packages in the same micro-service which is a client to another micro-service and a server for other clients:
Copy code
"au.com.dius.pact.provider:junit5spring:4.3.8"
"au.com.dius.pact.consumer:junit5:4.3.8" // tried this with junit 4 as well.
Because of this, running either tests now keep failing:
Copy code
...
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
We think it’s because of including those packages together, despite running different classes for 1) generating the consumer tests. 2) running provider verifications. Any ideas for if this is indeed supported?
r
Can you provide the full stack trace, or at least the cause message?
a
Sorry, didn’t think that stacktrace would be helpful, since it’s all under a java thread, but I suppose it might be helpful for you 🙂
r
That looks like a Java compiler error,
Copy code
> Task :micro-service:compileJava
compiler message file broken: key=compiler.misc.msg.bug arguments=11.0.2, {1}, {2}, {3}, {4}, {5}, {6}, {7}
java.lang.NullPointerException
        at jdk.compiler/com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply(Flow.java:1235)
What version of Java are you using?
a
Java 11
r
Which distribution?
a
Copy code
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
r
Maybe try upgrading your Java version, that error is not a Pact-JVM error
a
Ah bummer, thanks! That fixed it 🙂
Weird that this happened however, since we use Java 11 everywhere! Even on our android consumer.
🤷‍♂️ 1