Skip to content
Latchkey
Java & JVM

Maven, Gradle, and JVM failures in CI - resolved.

Resolve Java build failures: Maven and Gradle dependency errors, JVM heap exhaustion, daemon problems, toolchain mismatches, and test failures. Clear fixes for CI pipelines.

Maven

Dependency resolution, plugins, and repositories.

"NoSuchMethodError" (AssertJ/Mockito)Fix java.lang.NoSuchMethodError in AssertJ or Mockito tests in CI - a transitive dependency pins an older Ass… Checkstyle/SpotBugs violations failed the buildFix Checkstyle/SpotBugs "failed with ... violations" in CI - static-analysis rules broke the build. Fix the f… "Error building classpath"Fix tools.deps "Error building classpath. Could not find artifact X" in CI - a coordinate in deps.edn cannot… Maven/gitlibs cache coldFix slow Clojure CI builds caused by an uncached ~/.m2, ~/.gitlibs, and .cpcache - every run re-downloads dep… GITLIBS private repo authFix Clojure git dependency clone failures for private repos in CI - tools.deps clones into GITLIBS (~/.gitlib… Flyway/Liquibase migration failed in testsFix Flyway/Liquibase migration failures during tests in CI - a bad migration, a checksum mismatch, or a diale… JaCoCo coverage below configured minimumFix JaCoCo "Rule violated ... minimum is ... but was" in CI - coverage dipped below the configured limit. Add… "Address already in use"Fix Java "java.net.BindException: Address already in use" in CI -- an integration test or app cannot bind its… "No tests found / No runnable methods"Fix JUnit "No tests found" / "No runnable methods" in CI - Surefire matched no test classes, or JUnit 4/5 ann… "must declare at least one ArgumentsSource"Fix JUnit 5 "Configuration error: ... must declare at least one ArgumentsSource" / "junit-jupiter-params not… JUnit 5 tests not running (engine missing)Fix JUnit 5 tests being skipped in CI - Surefire/Gradle needs the JUnit Platform plus jupiter-engine, and vin… "Could not find artifact"Fix Leiningen "Could not find artifact X in central (clojars)" in CI - no configured Maven repository publish… "Could not transfer artifact"Fix Leiningen "Could not transfer artifact X from/to clojars" in CI - the repository was reachable but the do… "Error reading project.clj"Fix Leiningen "Error reading project.clj" or "Failed to read" in CI - the project file has a syntax or evalua… "Retrieving ... from clojars" hangFix a Leiningen build that stalls on "Retrieving ... from clojars" in CI - a cold Maven cache forces every de… -DskipTests vs -Dmaven.test.skipFix a Maven build where -DskipTests still fails on test compilation in CI - skipTests only skips running test… "'dependencies.dependency.version' is missing"Fix Maven "'dependencies.dependency.version' for X is missing" in CI - a dependency has no version and none i… "'version' is missing" (plugin)Fix Maven "'build.plugins.plugin.version' for X is missing" in CI - a plugin is configured without a version… "401 Unauthorized" (deploy)Fix Maven "Failed to deploy artifacts ... status code: 401 Unauthorized" in CI -- the deploy repository rejec… "Annotation processor not found"Fix Maven annotation-processing failures in CI - "Annotation processor X not found", missing generated source… "Blocked mirror for repositories"Fix Maven 3.8+ "Blocked mirror for repositories" in CI - Maven blocks insecure http:// repos by default. Swit… "Could not find SNAPSHOT artifact"Fix Maven "Could not find artifact ...:SNAPSHOT in snapshots" in CI - a SNAPSHOT dependency was never deploye… "Cannot access central ... in offline mode"Fix Maven "Cannot access central (https://repo.maven.apache.org/maven2) in offline mode" in CI - the build ra… "Cannot find the class file for java.lang.Object"Fix Maven/compiler "Cannot find the class file for java.lang.Object" / "cannot access Object" in CI - a broke… "Checksum validation failed"Fix Maven "Checksum validation failed, expected ... but is ..." in CI - a truncated download, a stale cache,… "Connection refused" (repo)Fix transient Maven "Connect to repo failed: Connection refused" / "Connection timed out" transfer errors in… "Connection reset"Fix transient Maven "Could not transfer artifact ... Connection reset" in CI - a repo or proxy dropped the TC… "Could not create local repository"Fix Maven "Could not create local repository at ..." in CI - the ~/.m2 path is unwritable from permissions, a… "Could not find artifact ...-SNAPSHOT"Fix Maven "Could not find artifact com.example:lib:jar:1.0-SNAPSHOT" in CI - snapshots are disabled on the re… "Could not find artifact ... in central"Fix Maven "Could not find artifact <coords> in central" in CI - a version that is not on Maven Central, an ar… "Error reading settings.xml"Fix Maven "Could not read settings.xml" / "non-parseable settings" in CI - a malformed or wrong-path settings… "Could not resolve dependencies"Fix Maven "Could not resolve dependencies for project" in CI - a missing artifact, the wrong repository, or a… "Could not resolve plugin"Fix Maven "Plugin org.apache.maven.plugins:... could not be resolved" in CI - the plugin or its version is no… "Could not transfer artifact ... 401/403"Fix Maven "Could not transfer artifact ... authentication failed ... 401/403" in CI - a private repo rejectin… "Checksum validation failed"Fix Maven "Could not validate integrity of download ... Checksum validation failed, expected X but is Y" in C… "The projects in the reactor contain a cyclic reference"Fix Maven "The projects in the reactor contain a cyclic reference" in CI - two or more modules depend on each… "error: release version 17 not supported"Fix Maven "error: release version 17 not supported" in CI - the maven.compiler.release is newer than the JDK… "Failed to execute goal ... :compile"Decode Maven "Failed to execute goal ...:compile ... Compilation failure" in CI - a wrapper around a real jav… "Failed to execute goal ... copy-dependencies"Fix Maven "Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:...:copy-dependencies" in… "Failed to execute goal spring-boot:repackage"Fix Maven "Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:repackage" in CI - repack… "Failed to read artifact descriptor"Fix Maven "Failed to read artifact descriptor for <coords>" in CI - a missing or corrupt POM for a dependency… "invalid target release"Fix Maven "Fatal error compiling: invalid target release: 21" in CI - the JDK running Maven is older than the… "Cannot run program \"javac\""Fix Maven compiler "Fatal error compiling: Fork failed: ... Cannot run program javac: error=2, No such file o… "invalid target release: 17"Fix Maven "Fatal error compiling: invalid target release: 17" in CI - the JDK running the build is older than… "mvn: command not found"Fix "mvn: command not found" / "mvn: not found" in CI - Maven is not installed on the runner or not on PATH.… "No compiler is provided in this environment"Fix Maven "No compiler is provided in this environment. Perhaps you are running on a JRE" in CI - JAVA_HOME p… "No compiler is provided in this environment"Fix Maven "No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?"… "No goals have been specified"Fix Maven "No goals have been specified for this build" and unknown-lifecycle-phase errors in CI - calling mv… "No plugin found for prefix"Fix Maven "No plugin found for prefix 'x' in the current project and in the plugin groups" - a misremembered… "Non-parseable POM"Fix Maven "Non-parseable POM ... unexpected end of stream / must be terminated by the matching end-tag" in CI… "Non-resolvable parent POM"Fix Maven "Non-resolvable parent POM" in CI - a parent that is not in the reactor, missing relativePath, or a… Maven "OutOfMemoryError: Metaspace"Fix Maven "java.lang.OutOfMemoryError: Metaspace" in CI - the Maven JVM exhausted class-metadata space, often… "package javax.xml.bind does not exist"Fix Maven "package javax.xml.bind/javax.annotation/javax.activation does not exist" in CI - Java EE / JAXB mo… "peer not authenticated"Fix Maven "peer not authenticated" in CI - a failed TLS handshake from a missing certificate chain, an outdat… "PKIX path building failed"Fix Maven "PKIX path building failed: unable to find valid certification path" in CI - the JDK truststore doe… "PKIX path building failed"Fix Maven "PKIX path building failed ... unable to find valid certification path" in CI - the JVM does not tr… "Plugin ... or one of its dependencies could not be resolved"Fix Maven "Plugin org.x:y:z or one of its dependencies could not be resolved" in CI - a wrong plugin version,… "Plugin ... could not be resolved"Fix Maven "Plugin <coords> or one of its dependencies could not be resolved" in CI - a missing plugin version… "Premature end of Content-Length"Fix Maven "Premature end of Content-Length delimited message body" in CI - an artifact download was truncated… "Return code is: 501"Fix Maven "Transfer failed ... Return code is: 501/502/503" in CI - the repo or proxy returned a server-side… "Source option 8 is no longer supported"Fix Maven compile "Source option 8 is no longer supported. Use 9 or later." in CI - a newer JDK dropped suppo… "The following artifacts could not be resolved"Fix Maven "Could not resolve dependencies ... The following artifacts could not be resolved: <list>" in CI -… "There are test failures"Fix Maven Surefire "There are test failures" build failures in CI - failing tests fail the build by design; l… "status code: 503 Service Unavailable"Fix Maven "Could not transfer artifact ... status code: 503, reason phrase: Service Unavailable" in CI - the… "Unable to locate the Javac Compiler"Fix Maven "Unable to locate the Javac Compiler in: ... You are running on a JRE rather than a JDK" in CI - th… "Unknown lifecycle phase"Fix Maven "Unknown lifecycle phase '<x>'" in CI - a misspelled phase, a mistyped -D property without the =val… "${revision}" not resolvedFix Maven version placeholders like ${revision} not resolving in CI - the property that defines the version i… "status code: 401, ReasonPhrase: Unauthorized"Fix Maven "Failed to transfer ... status code: 401 Unauthorized" in CI - missing or wrong server credentials… "status code: 403, ReasonPhrase: Forbidden"Fix Maven "Failed to deploy ... status code: 403 Forbidden" in CI - credentials are valid but lack deploy per… "duplicate" (assembly)Fix maven-assembly-plugin problems in CI - duplicate entries in the fat jar, a missing Main-Class manifest, o… "Non-resolvable import POM"Fix Maven "Non-resolvable import POM" / unmanaged versions after a BOM import in CI - a missing BOM artifact,… "You have N Checkstyle violations"Fix maven-checkstyle-plugin "Failed during checkstyle execution: There are N errors" build failures in CI - s… "package ... does not exist"Fix Maven compile failing with "package com.example.x does not exist" in CI - a dependency missing from the c… "option --release is not allowed with ... -source"Fix Maven compiler conflicts in CI - mixing `<release>` with `<source>`/`<target>`, or `error: option --relea… "zip END header not found"Fix Maven "error in opening zip file / zip END header not found" in CI - a JAR in the local ~/.m2 repository… dependencyManagement version conflictFix Maven dependencyManagement version conflicts in CI - two BOMs or managed entries pin the same artifact to… "405 Method Not Allowed"Fix Maven deploy "Transfer failed ... status code: 405 Method Not Allowed" in CI - the repository URL rejects… "status code: 409 Conflict"Fix Maven deploy "status code: 409, reason phrase: Conflict" in CI - the release repository forbids overwriti… "distributionManagement ... has not been specified"Fix Maven "deployment failed: repository element was not specified in the POM inside distributionManagement"… "specify -Durl"Fix Maven deploy:deploy-file failures in CI - the goal needs -Durl, -DrepositoryId, and a matching server ent… "must be unique"Fix Maven "'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique" in CI - the POM dec… "Dependency convergence error"Fix Maven Enforcer "Failed while enforcing releasability ... Dependency convergence error" in CI - the same a… "Dependency convergence error"Fix Maven Enforcer "Dependency convergence error for <artifact>" in CI - two paths in the tree pull different… "Some Enforcer rules have failed"Fix Maven "Some Enforcer rules have failed" in CI - a banned dependency, a convergence conflict, or a require… "Some Enforcer rules have failed"Fix Maven "Some Enforcer rules have failed" in CI - a constraint (Java version, Maven version, banned depende… "error: [<Check>] ..."Fix Maven Error Prone "error: [<Check>] ..." compile failures in CI - Error Prone runs as a compiler plugin a… "There are test failures" (failsafe)Fix maven-failsafe-plugin "There are test failures" in CI - integration tests run by verify failed, and fails… Failsafe integration tests skippedFix Maven Failsafe integration tests not running in CI - the integration-test/verify goals are unbound or nam… "gpg: signing failed: No secret key"Fix Maven "Failed to execute goal ...gpg:sign ... gpg: signing failed: No secret key" in CI - no GPG private… "Coverage checks have not been met"Fix maven jacoco-maven-plugin "Rule violated for ... : lines covered ratio is X, but expected minimum Y" in C… "You have N PMD violations"Fix maven-pmd-plugin "You have N PMD violations" / CPD duplicate-code failures in CI - PMD found rule violati… "Unable to tag SCM"Fix maven-release-plugin "Unable to tag SCM" in CI - the release:prepare goal could not push the git tag, usu… Missing <server> auth in CISet up Maven settings.xml <server> credentials in CI without committing secrets - write the file from environ… "Overlapping classes" (shade)Fix maven-shade-plugin "We have a duplicate ... / Overlapping classes" warnings and broken uber-jars in CI -… "overlapping classes" (shade)Fix Maven Shade "We have a duplicate / overlapping classes" failing the build in CI - two dependencies ship t… "failed with N bugs"Fix spotbugs-maven-plugin "Failed during spotbugs execution" / "BugInstance ... found" build failures in CI -… stale -SNAPSHOT not refreshedFix a stale Maven SNAPSHOT in CI - the build uses an old cached -SNAPSHOT because the repository updatePolicy… "forked VM terminated without properly saying goodbye"Fix Maven Surefire "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?… "Could not download maven-...-bin.zip"Fix Maven Wrapper "Error downloading / Could not download maven-x.y.z-bin.zip" in CI - mvnw could not fetch t… "MockitoException: Cannot mock/spy ... final class"Fix Mockito "Cannot mock/spy because ... is a final class" in CI - older Mockito cannot mock final types with… "Conflicting cross-version suffixes"Fix sbt "Conflicting cross-version suffixes in: ... _2.12, _2.13" in CI - the classpath mixes the same librar… "different Scala versions"Fix sbt warnings and failures from multiple subprojects declaring different Scala versions in CI - a shared l… "ResolveException: Error downloading ... not found"Fix sbt "sbt.librarymanagement.ResolveException: Error downloading X: not found" in CI - none of the configur… "unresolved dependency"Fix sbt "unresolved dependency: org#name;version: not found" in CI - Ivy resolution failed for a module becau… sbt boot / launcher download failsFix sbt failing to download its boot files (the launcher, scala compiler, or sbt jars) behind a proxy in CI -… Coursier "download error"Fix sbt Coursier "download error: Caught java.io.IOException" in CI - the Coursier fetcher could not retrieve… sbt re-resolving every runFix slow sbt CI runs that re-download all dependencies because ~/.ivy2, ~/.sbt, and the Coursier cache are no… "org.springframework.beans.factory.BeanCreationException"Fix Spring BeanCreationException in CI - a bean could not be constructed or autowired. Read the nested cause… "Field required a bean of type"Fix Spring "Field x in com.example.Y required a bean of type 'Z' that could not be found" in CI - a field-inj… "required a bean that could not be found"Fix Spring "Parameter N of constructor in X required a bean of type Y that could not be found" in CI - a cons… "beans form a cycle"Fix Spring "The dependencies of some of the beans in the application context form a cycle" in CI - two or mor… "Failed to configure a DataSource"Fix Spring Boot "Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasourc… "Port 8080 was already in use"Fix Spring Boot "Web server failed to start. Port 8080 was already in use" in CI - a leftover server, a paral… "@MockBean leaks between tests"Fix Spring Boot "@MockBean stubs leak between tests" in CI - stale stubbing or recorded interactions carry in… "IllegalStateException: Failed to load ApplicationContext"Fix Spring "Failed to load ApplicationContext" in @SpringBootTest in CI - a bean failed to start, a property… "There was an error in the forked process"Fix Surefire "There was an error in the forked process" in CI - the forked test JVM failed to start or crashe… "The forked VM terminated without properly saying goodbye"Fix Surefire "The forked VM terminated without properly saying goodbye" in CI - the test JVM was killed mid-r… "Could not connect to Ryuk"Fix Testcontainers "Could not start container" / "Timed out waiting for container ... Ryuk" in CI - the Ryuk… "Error reading edn"Fix tools.deps "Error reading edn" in CI - deps.edn is malformed EDN (unbalanced braces, a stray comma, or a… "Manifest type not detected"Fix tools.deps "Manifest type not detected for coordinate" in CI - a git or local dependency has no deps.edn,… "SHA ... could not be resolved"Fix tools.deps git dependency failures in CI - "SHA X could not be resolved" or a GITLIBS clone error means t…

Gradle

Daemon, cache, and build script errors.

"AAPT2 aapt2 Daemon startup failed"Fix Android "AAPT2 aapt2 Daemon startup failed" in CI - the AAPT2 binary could not start, usually a missing r… "Android resource linking failed"Fix Android "Android resource linking failed" in CI - AAPT2 could not link resources because of an undefined… "compileSdkVersion is not specified"Fix Android "compileSdkVersion is not specified" in CI - the module build file does not declare a compile SDK… "Execution failed for task ':app:mergeDexRelease'"Fix Android "Execution failed for task ':app:mergeDexRelease'" in CI - dex merging failed, often from the 64K… "Failed to apply plugin 'com.android.application'"Fix Android "Failed to apply plugin 'com.android.application'" in CI - the Android Gradle plugin could not in… "Failed to find Build Tools revision X"Fix Android "Failed to find Build Tools revision X.Y.Z" in CI - the build tools version the project requires… "Namespace not specified"Fix Android "Namespace not specified" in CI - Android Gradle plugin 8 requires a namespace in build.gradle in… "NDK not configured"Fix Android "NDK not configured" and "No version of NDK matched the requested version" in CI - a native build… "No connected devices!"Fix Android "No connected devices!" in CI - the connectedAndroidTest task found no emulator or device, so ins… "Program type already present"Fix Android R8 "Program type already present" and "Missing class" in CI - the release minify step found a dup… "compose compiler ... version" incompatibleFix Jetpack/Compose Multiplatform "This version of the Compose Compiler requires Kotlin version X" in CI - th… "detekt ... issues found"Fix detekt "Analysis failed with N weighted issues" / "Build failed with weighted issues" in CI - detekt foun… ":compileJava NO-SOURCE"Fix Gradle building nothing - ":compileJava NO-SOURCE" and an empty jar in CI - sources are not under the exp… ":compileJava" - "cannot find symbol"Fix Gradle ":compileJava FAILED" with "error: cannot find symbol" in CI - a missing dependency on the compile… "./gradlew: Permission denied"Fix "./gradlew: Permission denied" in CI - the wrapper script lost its executable bit in the repository, so t… "annotation processors must be declared"Fix Gradle warning/error "Annotation processors must be explicitly declared" in CI - a processor on the compi… "Build cache is disabled"Fix Gradle "Build cache is disabled" in CI - the cache flag is off, so every task re-runs from scratch and bu… "BUILD FAILED"Fix Gradle "BUILD FAILED" in CI -- the banner is only a summary. Read the "What went wrong" block and the nam… "is corrupt. Discarding."Fix Gradle "Cache entry ... is corrupt. Discarding." in CI - a build cache artifact was truncated or damaged,… "Cannot fingerprint input"Fix Gradle "Cannot fingerprint input file property ... could not list contents ... broken symbolic link" in C… "task name is ambiguous"Fix Gradle "Task ... is ambiguous in root project. Candidates are: ..." in CI - an abbreviated or duplicated… "Circular dependency between the following tasks"Fix Gradle "Circular dependency between the following tasks" in CI - two or more tasks depend on each other d… "N problems were found storing the configuration cache"Fix Gradle "Configuration cache problems found" / "invocation of Task.project at execution time is unsupporte… "Could not create service of type"Fix Gradle "Gradle could not start your build ... Could not create service of type ..." in CI - a corrupt ~/.… "Could not create service of type"Fix Gradle "Could not create service of type X using method Y" in CI - Gradle failed to initialise an interna… "Could not create task ... of type"Fix Gradle "Could not create task ':x' of type Y" in CI - the task type is from a plugin not applied, or a co… "Could not determine java version from"Fix Gradle "Could not determine java version from 'X'" in CI - the JAVA_HOME on the runner points at a JDK wh… "Could not determine the dependencies of task"Fix Gradle "Could not determine the dependencies of task ':x:y'" in CI - a configuration whose resolution fai… "Could not determine the dependencies of task"Fix Gradle "Could not determine the dependencies of task ':x:y'" in CI - a configuration that fails to resolv… "Could not download"Fix Gradle "Could not download <artifact>" / "Read timed out" in CI - a transient network failure fetching a… "Could not find com.example:lib:1.0"Fix Gradle "Could not find com.example:lib:1.0" in CI - none of the declared repositories host that exact coo… "Could not find group:name:version"Fix Gradle "Could not find group:name:version" in CI - a declared dependency does not exist in any configured… "Could not find method ... for arguments"Fix Gradle "Could not find method implementation()/x() for arguments ... on object of type ..." in CI - a mis… "Could not find method implementation()"Fix Gradle "Could not find method implementation() for arguments" in CI - a dependency configuration is used… "GradleWrapperMain" not foundFix "Could not find or load main class org.gradle.wrapper.GradleWrapperMain" in CI - the runner cannot launch… "Could not GET ... received status code 401"Fix Gradle "Could not GET https://... received status code 401 from server: Unauthorized" in CI - the reposit… "Received status code 401 from server"Fix Gradle "Could not GET ... Received status code 401 from server: Unauthorized" in CI - the private reposit… "Could not get unknown property"Fix Gradle "Could not get unknown property 'x' for <object>" in CI - a referenced project/ext/version-catalog… "Could not initialize class org.codehaus.groovy"Fix Gradle "Could not initialize class org.codehaus.groovy.reflection.ReflectionCache" / "vm.class.module" in… "Could not initialize class org.codehaus.groovy"Fix Gradle "Could not initialize class org.codehaus.groovy.reflection.ReflectionCache" in CI - Gradle's embed… "Could not load entry ... from ... build cache"Fix Gradle "Could not load entry ... from remote build cache" in CI - a cache entry could not be read or unpa… "Could not open ... cache"Fix Gradle "Could not open cp_proj / cp_settings / generic class cache" in CI - a corrupt ~/.gradle/caches en… "Could not read workspace metadata"Fix Gradle "Could not read workspace metadata from .../metadata.bin" in CI - the transforms cache entry is co… "Could not resolve all artifacts for configuration"Fix Gradle "Could not resolve all artifacts for configuration ':classpath'" in CI - a build-script/plugin cla… "Could not resolve all dependencies"Fix Gradle "Could not resolve all dependencies for configuration :app:runtimeClasspath" in CI - a declared re… "Could not resolve all dependencies"Fix Gradle "Could not resolve all dependencies for configuration" in CI -- a missing repository, a wrong coor… "Could not resolve all files for configuration"Fix Gradle "Could not resolve all files for configuration ':app:runtimeClasspath'" in CI - a missing artifact… "Could not resolve all task dependencies for configuration"Fix Gradle "Could not resolve all task dependencies for configuration" in CI - a configuration could not reso… "Could not resolve ... kotlin-stdlib"Fix "Could not resolve org.jetbrains.kotlin:kotlin-stdlib:<version>" in CI - Gradle cannot find or agree on t… "Could not resolve"Fix Gradle "Could not resolve <dependency>" / "Could not find" in CI - wrong coordinates, a missing repositor… "Could not store entry ... in remote build cache"Fix Gradle "Could not store entry in remote build cache" in CI - the cache node rejected the write (403, read… "Daemon compilation failed"Fix Gradle Kotlin "Daemon compilation failed: ... / Could not connect to Kotlin compile daemon" in CI - the K… "lock state ... is out of date"Fix Gradle "Dependency lock state for configuration X is out of date" in CI - the resolved dependencies no lo… "Execution failed for KaptWithoutKotlincTask"Fix Gradle "Execution failed for task :kaptGenerateStubsKotlin / :kaptKotlin" (KaptWithoutKotlincTask) in CI… "Execution failed for task ':test'"Fix Gradle "Execution failed for task ':test'. There were failing tests" in CI - the Test task ran and at lea… "Execution failed for task"Decode Gradle "Execution failed for task ':x:y'" in CI - a generic wrapper whose real cause is in the lines b… "Expiring Daemon ... heap space is exhausted"Fix Gradle "Expiring Daemon because JVM heap space is exhausted" in CI - the daemon JVM ran low on heap and s… "Could not PUT ... 401 Unauthorized"Fix Gradle maven-publish "Could not PUT ... received status code 401 from server: Unauthorized" in CI - missi… "Gradle build daemon disappeared unexpectedly"Fix Gradle "Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)" in CI… "daemon disappeared unexpectedly"Fix Gradle "Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)" in CI… "Process 'Gradle Test Executor N' finished with non-zero exit value"Fix Gradle "Process Gradle Test Executor finished with non-zero exit value" in CI - the test worker JVM crash… "Inconsistent JVM-target compatibility detected"Fix Gradle "Inconsistent JVM-target compatibility detected for tasks compileJava and compileKotlin" in CI - t… "Inconsistent JVM-target compatibility"Fix Gradle "Inconsistent JVM-target compatibility detected for tasks compileJava and compileKotlin" in CI - J… "invalid source release"Fix Gradle "invalid source release: 21" / "error: release version 21 not supported" in CI - the JDK compiling… Gradle "OutOfMemoryError: Java heap space"Fix Gradle build failing with "java.lang.OutOfMemoryError: Java heap space" in a compile or codegen worker -… "KotlinReflectionNotSupportedError"Fix "kotlin.jvm.KotlinReflectionNotSupportedError: Kotlin reflection implementation is not found at runtime"… "Minimum supported Gradle version is X"Fix "Minimum supported Gradle version is X. Current version is Y" in CI - a plugin (often the Android Gradle… "Plugin ... was not found"Fix Gradle "Plugin [id: x, version: y] was not found in any of the following sources" in CI - a missing plugi… "Plugin [id: ...] was not found"Fix Gradle "Plugin [id: 'x'] was not found in any of the following sources" in CI - the plugin id or version… "Plugin [id: ...] was not found"Fix Gradle "Plugin [id: 'x'] was not found in any of the following sources" in CI - a missing plugin version,… "Plugin was not found in any of the following sources"Fix Gradle "Plugin [id: '...'] was not found in any of the following sources" in CI - the plugin id/version i… "already on the classpath must not include a version"Fix Gradle "Error resolving plugin ... already on the classpath must not include a version" in CI - a plugin… "Plugin with id 'x' not found"Fix Gradle "Plugin with id 'x' not found" in CI - a legacy apply plugin: that has no classpath dependency, a… "problems were found storing the configuration cache"Fix Gradle "N problems were found storing the configuration cache" in CI - a task or plugin accessed disallow… "Publishing build scan failed"Fix Gradle "Publishing build scan failed" in CI - the build finished but the scan could not upload to scans.g… "remote build cache ... 401"Fix Gradle remote build cache 401/403 errors in CI - Develocity rejected the cache request because GRADLE_ENT… "Gradle X requires Java Y"Fix Gradle startup errors like "Gradle 8.x requires Java 8 or later to run" / running on an unsupported JDK i… "Could not compile settings file" / settings evaluation failedFix Gradle "Build file 'settings.gradle' line: N ... evaluation failed" / "Could not compile settings file" i… "Task :compileJava FAILED"Decode Gradle "> Task :compileJava FAILED" in CI - a javac error wrapped by Gradle. Read the "cannot find sym… "Task 'X' not found in root project"Fix Gradle "Task 'X' not found in root project" in CI - the task name passed to gradlew does not exist at tha… "Process 'Gradle Test Executor' ... quit unexpectedly"Fix Gradle "The process 'Gradle Test Executor N' was terminated. ... Test process quit unexpectedly" in CI -… "The Daemon will expire after the build"Fix Gradle "The Daemon will expire after the build ... performance may suffer" / "available JVM memory is low… "unable to load ... from remote build cache"Fix Gradle "Could not load entry from remote build cache" in CI - the remote cache node was unreachable or re… "Timeout waiting to lock"Fix Gradle "Timeout waiting to lock <artifact cache / file hash cache>" in CI - a stale lock from a crashed b… "Timeout waiting to lock"Fix Gradle "Timeout waiting to lock ... It is currently in use by another Gradle instance" in CI - two Gradle… "Unable to start the daemon process"Fix Gradle "Unable to start the daemon process ... Could not reserve enough space" / invalid org.gradle.jvmar… "Unsupported class file major version"Fix Gradle "Unsupported class file major version 65/66/67" in CI - Gradle itself is running on a JDK newer th… "Using insecure protocols ... is unsupported"Fix Gradle 7+ "Using insecure protocols with repositories, without explicit opt-in, is unsupported" in CI - a… Build cache corruptionFix Gradle build-cache problems in CI - "Cache entry ... is corrupt", stale cached outputs, or unexpected reb… "cannot serialize object of type"Fix Gradle configuration cache "cannot serialize object of type X" in CI - a task holds a non-serializable re… "configuration cache ... problems were found"Fix Gradle "Configuration cache problems found" in a Kotlin build in CI - a task or build script captured a d… Daemon "OutOfMemoryError"Fix Gradle daemon "java.lang.OutOfMemoryError: Java heap space" / "Metaspace" in CI - the daemon JVM ran out… "native-image building failed" (Gradle)Fix Gradle GraalVM nativeCompile (org.graalvm.buildtools.native) failures in CI - missing reachability metada… "Build image failed" (Jib Gradle)Fix Gradle jib / bootBuildImage failures in CI - registry auth (401/403), an unreachable base image, or a mis… "Daemon compilation failed: insufficient memory"Fix Kotlin "e: Daemon compilation failed: insufficient memory" / OutOfMemoryError in the Kotlin compile daemo… "Execution failed for task ':kaptKotlin'" / KSP errorFix Gradle Kotlin kapt/ksp failures in CI - "Annotation processor ... error", a missing processor dependency,… "The following files had format violations"Fix Gradle spotless "The following files had format violations" / spotlessCheck failures in CI - code does no… "does not \"opens\" ... to unnamed module" (test)Fix Gradle test failures on JDK 17+ with "InaccessibleObjectException: module java.base does not \"opens\" ..… "Unresolved reference: libs"Fix Gradle version catalog errors in CI - "Unresolved reference: libs" or an undefined accessor means the cat… "Gradle ... requires Java" / unsupported JVMFix Gradle failing because the Gradle version does not support the JDK running it (too new or too old) - upgr… "Verification of Gradle distribution failed!"Fix Gradle "Verification of Gradle distribution failed! ... Configured checksum ... Actual checksum" in CI -… Wrapper distribution failedFix Gradle wrapper "Could not install Gradle distribution" / "Could not download gradle-x.x-bin.zip" in CI -… "Could not find or load main class GradleWrapperMain"Fix "Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain" in CI - the `gradle/wrapp… "Downloading https://...gradle-bin.zip"Fix Gradle wrapper distribution download failures in CI - the wrapper could not fetch gradle-X.Y-bin.zip beca… "Verification of Gradle distribution failed"Fix Gradle wrapper "Verification of Gradle distribution failed!" in CI - the downloaded distribution SHA-256… "Duplicate class ... found in modules"Fix Gradle/Android D8 "Duplicate class <X> found in modules <A> and <B>" in CI - the same class ships in two… "e: ... Type mismatch"Fix the Kotlin "e: ... Type mismatch: inferred type is X but Y was expected" compile error in CI - the compil… "e: ... Unresolved reference"Fix the Kotlin compiler "e: ... Unresolved reference" error in CI - the compileKotlin task cannot resolve a s… "w: ..." warnings treated as errorsFix Kotlin builds where "w: ... " warnings fail CI because allWarningsAsErrors is on - the compiler promotes… "Duplicate class ... found in modules"Fix "Duplicate class X found in modules A and B" in a Kotlin/Gradle build in CI - two dependencies (often ove… "Kotlin compile daemon ... terminated"Fix "Kotlin compile daemon ... terminated unexpectedly" / "Could not connect to Kotlin daemon" in CI - the ou… "Script compilation error" (build.gradle.kts)Fix Gradle Kotlin DSL "Script compilation error" and "Unresolved reference" in build.gradle.kts in CI - the b… "Kotlin Gradle plugin ... incompatible ... Gradle"Fix "The applied Kotlin Gradle plugin ... is incompatible with the Gradle version" in CI - the Kotlin plugin… "kapt ... annotation processing" failedFix kapt annotation processing failures in CI - the "kaptGenerateStubs"/"kapt" task fails because a processor… "ksp" symbol processing failedFix KSP (Kotlin Symbol Processing) failures in CI - the "kspKotlin" task errors or generates nothing because… "expected ... has no actual declaration"Fix Kotlin Multiplatform "expected declaration has no actual declaration" errors in CI - a commonMain expect… "multiplatform ... target" missingFix Kotlin Multiplatform build failures in CI where a requested target is not registered or its toolchain is… "kotlin.test ..." / MockK verify failedFix Kotlin test failures in CI using kotlin.test assertions and MockK - assertion failures, MockK "no answer… "Serializable ... plugin not applied"Fix kotlinx.serialization "Serializer for class is not found" or "kotlinx-serialization plugin is not applied… "ktlint ... not formatted"Fix ktlint failures in CI - the ktlintCheck task reports files that are "not formatted" or lint errors, faili… "cannot find symbol" (Lombok)Fix javac "cannot find symbol: method getX()" with Lombok in CI - annotation processing is off or Lombok is n… "No implementation was created for Mapper"Fix MapStruct "No implementation was created for ...Mapper due to having a problem in the erroneous element"… "No warnings can be incurred under -Xfatal-warnings"Fix an sbt build that fails in CI only because of -Xfatal-warnings - a compiler warning that is tolerated loc… "Extracting structure failed"Fix sbt "Extracting structure failed" in CI - a tool (often an IDE import or metals/bloop) could not load the… "Not a valid command" / "Not a valid key"Fix sbt "Not a valid command: X" and "Not a valid key: X" in CI - sbt could not parse the command or setting… "object X is not a member of package Y"Fix Scala "object X is not a member of package Y" in CI - the compiler resolved the package but the reference… "Reference to undefined setting"Fix sbt "Reference to undefined setting" and undefined-task errors in CI - the build references a key that is… "server is already running"Fix sbt "another instance of sbt is running" / server lock errors in CI - a stale lock or a second sbt proces… "must be formatted" (scalafmtCheck)Fix sbt "X.scala must be formatted" from scalafmtCheckAll in CI - a file does not match the scalafmt rules an… "deduplicate: different file contents found"Fix sbt-assembly "deduplicate: different file contents found in the following" in CI - two jars contribute th… "could not find implicit value for parameter"Fix Scala "could not find implicit value for parameter X: Y" in CI - the compiler needs a given/implicit of t… "type mismatch; found ... required ..."Fix Scala "type mismatch; found: X required: Y" in CI - an expression has a type the surrounding context does… "value X is not a member of Y"Fix Scala "value X is not a member of Y" in CI - the type does not define the method or field being called, o… "Not found: X" (Scala 3)Fix Scala 3 "Not found: X" errors in CI during a 2.13 to 3 migration - a name that resolved under Scala 2 no… "multiple SLF4J bindings"Fix SLF4J "Class path contains multiple SLF4J bindings" / "providers" in CI - two logging backends are on the…

JVM memory & runtime

Heap, metaspace, and OutOfMemoryError.

"Killed" / exit code 137Fix a Maven/Gradle build that prints "Killed" and exits 137 in CI - the kernel OOM killer terminated the JVM.… AOT "OutOfMemoryError"Fix Clojure AOT / uberjar "java.lang.OutOfMemoryError" in CI - ahead-of-time compilation loads every namespac… "Gradle build daemon disappeared unexpectedly"Fix Gradle "build daemon disappeared unexpectedly" during tests in CI - the daemon JVM was killed, usually by… "Gradle out of memory"Fix Gradle running out of memory in CI -- the daemon or a worker hits "java.lang.OutOfMemoryError: Java heap… "OutOfMemoryError: Java heap space"Fix Gradle "java.lang.OutOfMemoryError: Java heap space" in CI - the daemon or a forked JVM ran out of heap b… "OutOfMemoryError: Metaspace"Fix Gradle "java.lang.OutOfMemoryError: Metaspace" in CI - the daemon exhausted class metadata space, usually… "Daemon will be stopped ... low heap"Fix Gradle "The Daemon will be stopped at the end of the build after running out of JVM heap space" / "low he… "OutOfMemoryError" in Gradle Test ExecutorFix "java.lang.OutOfMemoryError: Java heap space" thrown by the Gradle Test Executor / test worker in CI - th… "java.net.BindException: Address already in use"Fix java.net.BindException: Address already in use in CI - a test tried to bind a port another process holds.… "CodeCache is full. Compiler has been disabled"Fix Java "CodeCache is full. Compiler has been disabled" warnings in CI - the JIT code cache filled, the comp… "Could not reserve enough space for ... object heap"Fix "Error occurred during initialization of VM: Could not reserve enough space for ... object heap" in CI -… "GC overhead limit exceeded"Fix "java.lang.OutOfMemoryError: GC overhead limit exceeded" in a Maven/Gradle build - the JVM spent almost a… "GC overhead limit exceeded"Fix "java.lang.OutOfMemoryError: GC overhead limit exceeded" in CI - the JVM spends almost all its time colle… "NoClassDefFoundError" / "ClassNotFoundException"Fix "java.lang.NoClassDefFoundError" / "ClassNotFoundException" during tests in CI - a class present at compi… "OutOfMemoryError: Compressed class space"Fix "java.lang.OutOfMemoryError: Compressed class space" in CI - the compressed class pointer space (capped b… "OutOfMemoryError: Direct buffer memory"Fix "java.lang.OutOfMemoryError: Direct buffer memory" in CI - off-heap NIO direct ByteBuffers exhausted the… "OutOfMemoryError: GC overhead limit exceeded"Fix java.lang.OutOfMemoryError: GC overhead limit exceeded in CI - the JVM spent nearly all its time in GC re… "OutOfMemoryError: Java heap space"Fix "java.lang.OutOfMemoryError: Java heap space" in CI -- the JVM filled its heap. Raise -Xmx, fix a leak or… "OutOfMemoryError: Java heap space"Fix "java.lang.OutOfMemoryError: Java heap space" in CI - the JVM heap (-Xmx) was too small for the workload,… Build "OutOfMemoryError: Metaspace"Fix "java.lang.OutOfMemoryError: Metaspace" during a Maven/Gradle build - class metadata exhausted the Metasp… "OutOfMemoryError: Metaspace"Fix "java.lang.OutOfMemoryError: Metaspace" in CI - too many loaded classes for the Metaspace limit, often fr… "OutOfMemoryError: Metaspace"Fix java.lang.OutOfMemoryError: Metaspace during tests in CI - class metadata exhausted Metaspace, often from… "OutOfMemoryError: PermGen space"Fix legacy "java.lang.OutOfMemoryError: PermGen space" on JDK 7 and earlier in CI - the permanent generation… "OutOfMemoryError: unable to create native thread"Fix java.lang.OutOfMemoryError: unable to create new native thread in CI - the OS refused a new thread (ulimi… "StackOverflowError"Fix "java.lang.StackOverflowError" in CI - unbounded recursion overflowed the thread stack, or a deep-but-val… "unable to create new native thread"Fix "java.lang.OutOfMemoryError: unable to create new native thread" in CI - the process hit the OS thread/ul… "unable to create new native thread"Fix "java.lang.OutOfMemoryError: unable to create new native thread" in a Maven/Gradle build - the process hi… Daemon "Java heap space" during buildFix "java.lang.OutOfMemoryError: Java heap space" thrown by the Gradle daemon while configuring or building a… Exit code 137 (OOM-killed)Why a Java build/test step exits with code 137 in CI - the kernel OOM-killed the JVM because RSS exceeded the… "java.net.ConnectException: Connection refused" (test DB)Fix "Connection refused" to a test database in CI - the DB was not up or not reachable when tests connected.… "Could not reserve enough space for ... object heap"Fix "Error occurred during initialization of VM: Could not reserve enough space for <N>KB object heap" in CI… "Could not reserve enough space for object heap"Fix JVM "Error occurred during initialization of VM: Could not reserve enough space for ... object heap" in C… "OutOfMemoryError: Metaspace" (Kotlin daemon)Fix "java.lang.OutOfMemoryError: Metaspace" in the Kotlin compile daemon in CI - class metadata exhausted Met… "The forked VM terminated without ... goodbye"Fix Maven Surefire "The forked VM terminated without properly saying goodbye. VM crash or System.exit called?… "sbt.ForkMain failed with exit code"Fix sbt "ForkMain failed with exit code 137" and forked-test OutOfMemoryError in CI - the forked test JVM was… "GC overhead limit exceeded"Fix sbt "java.lang.OutOfMemoryError: GC overhead limit exceeded" in CI - the JVM spent almost all its time co… "OutOfMemoryError: Metaspace"Fix sbt "java.lang.OutOfMemoryError: Metaspace" in CI - the JVM running sbt exhausted class-metadata space, u… "Failed to load ApplicationContext"Fix "java.lang.IllegalStateException: Failed to load ApplicationContext" from @SpringBootTest in CI - the who… "APPLICATION FAILED TO START"Fix the Spring Boot "APPLICATION FAILED TO START" banner in CI - the failure analyzer prints a Description an… "Unable to start web server"Fix org.springframework.context.ApplicationContextException "Unable to start web server" in CI - the servlet… "bean definition ... overriding is disabled"Fix "The bean X could not be registered. A bean with that name has already been defined and overriding is dis… "java.net.UnknownHostException"Fix Spring Boot "Caused by: java.net.UnknownHostException" in CI - a hostname in a datasource, broker, or HTT… "Connection refused" to the databaseFix Spring Boot "Connection refused" to a Postgres or MySQL service container in CI - the app started before… "Could not resolve placeholder"Fix Spring Boot "IllegalArgumentException: Could not resolve placeholder 'X' in value '${X}'" in CI - a prope… "Error creating bean with name"Fix Spring "Error creating bean with name X" in CI - bean instantiation threw during context refresh; the nes… "Failed to configure a DataSource"Fix Spring Boot "Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasourc… "required a bean ... that could not be found"Fix Spring Boot "Field X in Y required a bean of type Z that could not be found" in CI - an autowired field h… "java.lang.OutOfMemoryError: Java heap space"Fix "java.lang.OutOfMemoryError: Java heap space" during Spring Boot tests in CI - many full application cont… "no main manifest attribute"Fix "no main manifest attribute, in app.jar" when running a Spring Boot jar in CI - a plain jar was built ins… "NoSuchBeanDefinitionException"Fix org.springframework.beans.factory.NoSuchBeanDefinitionException in CI - Spring has no bean of the require… "UnsatisfiedDependencyException"Fix org.springframework.beans.factory.UnsatisfiedDependencyException in CI - a bean could not be created beca… "Port 8080 was already in use"Fix Spring Boot "Web server failed to start. Port 8080 was already in use." in CI - a previous app or a paral… @DirtiesContext rebuilding contextsFix slow, memory-heavy Spring Boot CI caused by @DirtiesContext - it discards the cached context and rebuilds… @MockBean leaking across testsFix @MockBean stubs leaking between Spring Boot tests in CI - a cached context shares the mock, so stubs set… bootRun hangs the CI jobFix a Spring Boot CI step that hangs because ./gradlew bootRun (or mvn spring-boot:run) starts a long-running… "Validate failed: Migration checksum mismatch"Fix Spring Boot Flyway "Validate failed" and "Migration ... failed" in CI - an applied migration was edited (… "JdbcSQLSyntaxErrorException"Fix Spring Boot "org.h2.jdbc.JdbcSQLSyntaxErrorException" in CI - tests run against embedded H2 while product… "liquibase.exception.ValidationFailedException"Fix Spring Boot Liquibase "ValidationFailedException: Validation Failed: changeset checksums do not match" in… Slow full-context tests in CISpeed up Spring Boot CI where every test uses @SpringBootTest - each full context is slow to build; switch to… "Could not find a valid Docker environment"Fix Testcontainers "Could not find a valid Docker environment" in Spring Boot tests in CI - the Docker daemon… Wrong spring.profiles.active in CIFix Spring Boot picking the wrong spring.profiles.active in CI - the runner loads dev/prod config instead of… "ContainerLaunchException: Container startup failed"Fix Testcontainers "Container startup failed" in CI - a container did not become ready (wait strategy, image… "Could not find a valid Docker environment"Fix Testcontainers "Could not find a valid Docker environment" in CI - no reachable Docker daemon for contain…

Toolchain & versions

JDK selection and bytecode mismatches.

"java: command not found"Fix "java: command not found" / "javac: command not found" in CI - no JDK installed or not on PATH because se… Java version drift in CIFix Java version drift in CI where a tool (sdkman, jenv, a later step, or matrix mis-pin) silently changes th… "ClassNotFoundException"Fix Clojure "java.lang.ClassNotFoundException" and "NoClassDefFoundError" in CI - a Java class the code uses… "Execution error (ExceptionInfo)"Fix Clojure "Execution error (ExceptionInfo)" in CI - code threw a runtime ex-info during a clj -X or -M run,… "Syntax error compiling"Fix "Syntax error compiling" and "Error loading namespace" in CI - the Clojure compiler failed to load a name… "Unable to resolve symbol"Fix Clojure "Unable to resolve symbol X in this context" in CI - the compiler found no var, local, or import… "clojure: command not found"Fix "clojure: command not found" (or "clj: command not found") in CI - the Clojure CLI / tools.deps is not in… JDK version mismatchFix Clojure builds failing on a JDK version mismatch in CI - the runner JDK is older or newer than the projec… clj-kondo / cljfmt non-zeroFix Clojure lint and format steps failing CI - clj-kondo findings, cljfmt/cljstyle formatting differences exi… "No locally installed toolchains match"Fix Gradle "No matching toolchains found ... No locally installed toolchains match (and auto-detect/download… "No matching toolchains found"Fix Gradle "No matching toolchains found for requested specification" in CI - no installed JDK satisfies the… "No matching toolchains found"Fix Gradle "No matching toolchains found for requested specification" in CI - the requested JDK is not instal… "Toolchain auto-provisioning is not enabled"Fix Gradle "Toolchain auto-provisioning is not enabled" in CI - Gradle needs to download a JDK for the reques… "Unsupported class file major version"Fix Gradle "Unsupported class file major version NN" in CI - Gradle or a plugin was compiled for a newer JDK… "this version only supports Java up to X"Fix Gradle "Unsupported Java ... This version of Gradle only supports Java up to version X" in CI - the runne… Toolchain JDK download failedFix Gradle "Could not download <jdk> ... Unable to download toolchain" in CI - toolchain auto-provisioning co… "No compatible toolchains found"Fix Gradle "No compatible toolchains found for request ... (auto-detect false / auto-download false)" in CI -… "Unable to download toolchain"Fix Gradle "Unable to download toolchain matching ... / No matching toolchains found and auto-provisioning fa… "invalid manifest"Fix jar "Invalid Manifest format" / "no main manifest attribute" / "invalid or corrupt jarfile" in CI - a mal… "class file has wrong version"Fix javac "class file has wrong version 65.0, should be 61.0" in CI - a dependency was compiled for a newer J… "Comparison method violates its general contract!"Fix Java "java.lang.IllegalArgumentException: Comparison method violates its general contract!" in CI - a Com… "Could not find or load main class"Fix "Error: Could not find or load main class X" in CI - wrong main-class name, a class missing from the clas… "Could not find tools.jar"Fix "Could not find tools.jar" in CI - a tool needs the JDK's tools.jar (JRE has none), or it runs on JDK 9+… "java.lang.ExceptionInInitializerError"Fix java.lang.ExceptionInInitializerError in CI - a static initializer or static field threw while a class wa… "java.lang.IllegalAccessError"Fix java.lang.IllegalAccessError from JPMS module boundaries in CI - code accesses a type not exported/opened… "Caused by: java.lang.reflect.InvocationTargetException"Fix java.lang.reflect.InvocationTargetException in CI - a reflectively invoked method threw, and the real exc… "JAVA_HOME is not set"Fix "ERROR: JAVA_HOME is not set and no 'java' command could be found" in CI - Maven/Gradle launchers need JA… "java.lang.ClassNotFoundException"Fix java.lang.ClassNotFoundException in CI - a class named at runtime is not on the classpath. Add the missin… "java.lang.NoClassDefFoundError"Fix java.lang.NoClassDefFoundError in CI - a class present at compile time is missing or failed to initialize… "java.lang.NoSuchMethodError"Fix java.lang.NoSuchMethodError in CI - code was compiled against one version of a library but runs against a… "java.lang.StackOverflowError"Fix java.lang.StackOverflowError in CI - the call stack overflowed, almost always from unbounded recursion or… "java.lang.VerifyError"Fix java.lang.VerifyError in CI - the bytecode verifier rejected a class, usually from an outdated bytecode t… "Error: <module> not found" (jlink/jpackage)Fix jlink/jpackage failures in CI - a module not on the module path, an automatic (non-modular) module reject… "module java.base does not ... open"Fix "InaccessibleObjectException: module java.base does not \"opens\" ... to unnamed module" on JDK 17+ in CI… "module does not read module"Fix javac/java "module X does not read module Y" in CI - a JPMS module uses a type from another module withou… "java.lang.module.FindException"Fix java.lang.module.FindException in CI - the module system cannot find or read a required module on the mod… "NoClassDefFoundError"Fix "java.lang.NoClassDefFoundError" in CI -- a class present at compile time is missing from the runtime cla… "NoSuchMethodError"Fix "java.lang.NoSuchMethodError" in CI -- a method present at compile time is missing at runtime because a d… "which does not export it"Fix javac "package X is declared in module Y, which does not export it to module Z" in CI - JPMS strong encap… "Picked up JAVA_TOOL_OPTIONS: ..."Resolve the "Picked up JAVA_TOOL_OPTIONS" message in CI - a harmless stderr notice unless it injects unwanted… "Unsupported major.minor version 61.0"Fix "Unsupported major.minor version 61.0/52.0" in CI - the legacy form of UnsupportedClassVersionError from… "Unsupported major.minor version 5x.0"Fix legacy "java.lang.UnsupportedClassVersionError: Unsupported major.minor version 52.0" in CI - classes com… "UnsupportedClassVersionError"Fix "java.lang.UnsupportedClassVersionError ... has been compiled by a more recent version of the Java Runtim… "java.lang.UnsupportedClassVersionError"Fix java.lang.UnsupportedClassVersionError in CI - a class was compiled for a newer Java version than the JVM… "UnsupportedClassVersionError"Fix "java.lang.UnsupportedClassVersionError: ... has been compiled by a more recent version of the Java Runti… Compile target newer than run JDKFix builds where compiled bytecode targets a newer Java than the runtime JDK in CI - compile and run stages u… "No matching toolchains found" (auto-detect)Fix Java toolchain auto-detection failing in CI - Gradle/Maven cannot find a JDK matching the requested langu… "option --release cannot be used with --source/--target"Fix javac "option --release cannot be used together with --source or --target" in CI - the build sets both th… "error: release version X not supported"Fix javac "error: release version 21 not supported" in CI - the JDK running the compile is older than the --r… "invalid flag: --release"Fix javac "invalid flag: --release" in CI - the `--release` flag needs JDK 9+, so an old JDK 8 (or earlier) c… "error: cannot find symbol" (javadoc)Fix javadoc "error: cannot find symbol" failing the build in CI - the javadoc tool runs without the full comp… "JavaFX runtime components are missing"Fix "Error: JavaFX runtime components are missing, and are required to run this application" in CI - JavaFX i… "jlink: module not found"Fix jlink "Error: module not found: X" in CI - a module named in --add-modules (or required transitively) is… "Keystore was tampered with, or password was incorrect"Fix keytool/JarSigner "keystore was tampered with, or password was incorrect" in CI - a wrong/empty store pas… "Inconsistent JVM-target compatibility"Fix "Inconsistent JVM-target compatibility detected for tasks compileJava (1.8) and compileKotlin (17)" in CI… "No matching toolchains found"Fix "No matching toolchains found for requested specification: {languageVersion=NN}" in a Kotlin build in CI… "Unsupported class file major version"Fix "Unsupported class file major version NN" in a Kotlin/Gradle build in CI - a class was compiled for a new… "Could not find or load main class clojure.main"Fix "Could not find or load main class clojure.main" in CI - the JVM launched without Clojure on the classpat… "lein: command not found"Fix "lein: command not found" in CI - Leiningen is not installed on the runner or not on PATH, so no lein tas… "No :main namespace specified"Fix Leiningen "No :main namespace specified" in CI - lein run or uberjar has no entry point because :main is… "Subprocess failed"Fix Leiningen "Subprocess failed" and lein test non-zero exit in CI - a spawned JVM exited non-zero, usually… "source release 17 requires target release 17"Fix javac "error: source release 17 requires target release 17" in CI - mismatched maven.compiler.source and… "Unsupported class file major version 65"Fix "Unsupported class file major version 65" in CI - a bytecode-manipulation tool (ASM in a plugin) cannot r… "Native Image building failed"Fix GraalVM native-image (native-maven-plugin) failures in CI - missing reflection/resource metadata, missing… "Build to ... failed" (Jib)Fix Jib (jib-maven-plugin) and spring-boot:build-image failures in CI - registry auth (401/403), an unreachab… "Cannot find matching toolchain definitions"Fix Maven "Cannot find matching toolchain definitions for the following toolchain types" in CI - toolchains.x… "Cannot find matching toolchain"Fix Maven "Cannot find matching toolchain definitions for the following toolchain types: jdk" in CI - toolcha… "JAVA_HOME is set to an invalid directory"Fix "JAVA_HOME is set to an invalid directory" / "JAVA_HOME is not defined correctly" in CI - JAVA_HOME point… "class file has wrong version 61.0, should be 55.0"Fix Scala "class file has wrong version 61.0, should be 55.0" in CI - a dependency was compiled for a newer J… "Unsupported class file major version"Fix sbt "Unsupported class file major version N" in CI - a bytecode tool or plugin cannot process class files… "No such var"Fix tools.build "Syntax error: No such var" or "Wrong number of args" in CI - a build.clj calls a tools.build… Runner uses the wrong Java versionFix builds picking the wrong Java version on a CI runner - multiple JDKs installed and JAVA_HOME/PATH selects… Wrong JAVA_HOMEFix the wrong JDK running in CI because JAVA_HOME or PATH points at an unexpected version - builds use a diff…
Explore other topics