java.lang.UnsupportedOperationException: Cannot nest operations in the same thread. Each nested operation must run in its own thread.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gradle (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In the test phase of several of my projects, I get an exception repeated many times (one for each test?). I tested manually installed gradles too and the issue is present on 3.2.1 too but seems fixed in 3.3.
Cannot nest operations in the same thread. Each nested operation must run in its own thread.
java.lang.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at java.util.
at java.util.
at java.lang.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gradle 3.2.1-5
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 13 23:17:26 2018
InstallationDate: Installed on 2013-01-11 (1887 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gradle
UpgradeStatus: Upgraded to bionic on 2018-03-07 (6 days ago)
I worked around this problem by manually installing the junit package (3.8.2-9). Note that the gradle package transitively declares a dependency to junit4, but seems to strictly require JUnit 3.