StackOverflowError when running unittests from gradle

I’m not entirely sure this is gradle related, but the stacktrace does indicate something is wrong somewhere!

Regards /Jesper Thuun-Petersen

Unexpected exception thrown. java.lang.StackOverflowError

at java.lang.Exception.(Exception.java:66)

at java.lang.RuntimeException.(RuntimeException.java:62)

at javax.jdo.JDOException.(Unknown Source)

at javax.jdo.JDOCanRetryException.(Unknown Source)

at javax.jdo.JDOUserException.(Unknown Source)

at kodo.util.UserException.(UserException.java:54)

at kodo.util.UserException.(UserException.java:30)

at kodo.jdbc.meta.MappingInfoNotFoundException.(MappingInfoNotFoundException.java:29)

at kodo.jdbc.meta.MappingInfoNotFoundException.newSerializableInstance(MappingInfoNotFoundException.java:36)

at kodo.util.UserException.writeReplace(UserException.java:61)

at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1062)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1131)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder.(Message.java:66)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:138)

at org.gradle.messaging.remote.internal.Message$TopLevelExceptionPlaceholder.(Message.java:136)

at org.gradle.messaging.remote.internal.Message$ExceptionReplacingObjectOutputStream.replaceObject(Message.java:151)

at org.gradle.messaging.remote.internal.Message$ExceptionPlaceholder$1.replaceObject(Message.java:62)

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1140)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)

There are some known problems with Gradle’s ‘Test’ task not being able to handle certain exceptions thrown from tests. Seems like you have hit one of them. I’ve raised a JIRA issue for this.

Ok, thanks! It’s killing our CI server, so a quick fix would be much appreciated!

I can’t say when this issue will get prioritized. If you need a quick fix, you may have to look for a workaround. For example, you could write a JUnit rule that converts database related exceptions (which seem to be a hotspot for this kind of problem) to runtime exceptions.

Thanks for the tip. We’re using Junit 3 and we have > 3000 tests, so even though I know nothing about Junit rules, this doesn’t look feasible, as Junit looks like it’s tied in with junit 4.

I tried to do some further exception handling on the outer levels of some of my unit tests, converting the databaseexceptions to runtime exceptions. This did apparently not solve the problem.

Replacing the offending exception (as shown in the stack trace) should definitely solve the problem. (Of course, you need to avoid chaining the offending exception.)