spring-projects/spring-boot · error · IllegalStateException
Interrupted while waiting for Spring Boot app to start.
Error message
Interrupted while waiting for Spring Boot app to start.
What it means
Error "Interrupted while waiting for Spring Boot app to start." thrown in spring-projects/spring-boot.
Source
Thrown at build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java:199
* @return the result
* @throws Exception in case of execution errors
*/
public <T> T execute(long wait, int maxAttempts, Callable<@Nullable T> callback) throws Exception {
getLog().debug("Waiting for spring application to start...");
for (int i = 0; i < maxAttempts; i++) {
T result = callback.call();
if (result != null) {
return result;
}
String message = "Spring application is not ready yet, waiting " + wait + "ms (attempt " + (i + 1) + ")";
getLog().debug(message);
synchronized (this.lock) {
try {
this.lock.wait(wait);
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IllegalStateException("Interrupted while waiting for Spring Boot app to start.");
}
}
}
throw new MojoExecutionException(
"Spring application did not start before the configured timeout (" + (wait * maxAttempts) + "ms");
}
@Override
protected boolean isUseTestClasspath() {
return this.useTestClasspath;
}
private class CreateJmxConnector implements Callable<@Nullable JMXConnector> {
private final int port;
CreateJmxConnector(int port) {
this.port = port;View on GitHub (pinned to 5b2dbdbb8b)
When it happens
Trigger: Thrown at build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java:199 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of spring-projects/spring-boot@5b2dbdbb8b (2026-08-04).
Data as JSON: /data/errors/14ba7ff93aff8233.json.
Report an issue: GitHub.