spring-projects/spring-boot · error · MojoExecutionException
Spring application lifecycle JMX bean not found. Could not s
Error message
Spring application lifecycle JMX bean not found. Could not stop application gracefully
What it means
Error "Spring application lifecycle JMX bean not found. Could not stop application gracefully" thrown in spring-projects/spring-boot.
Source
Thrown at build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java:94
return;
}
getLog().info("Stopping application...");
try (JMXConnector connector = SpringApplicationAdminClient.connect(this.jmxPort)) {
MBeanServerConnection connection = connector.getMBeanServerConnection();
stop(connection);
}
catch (IOException ex) {
// The response won't be received as the server has died - ignoring
getLog().debug("Service is not reachable anymore (" + ex.getMessage() + ")");
}
}
private void stop(MBeanServerConnection connection) throws IOException, MojoExecutionException {
try {
new SpringApplicationAdminClient(connection, this.jmxName).stop();
}
catch (InstanceNotFoundException ex) {
throw new MojoExecutionException(
"Spring application lifecycle JMX bean not found. Could not stop application gracefully", ex);
}
}
}
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/StopMojo.java:94 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/aafe423162f84aee.json.
Report an issue: GitHub.