{"id":"aafe423162f84aee","repo":"spring-projects/spring-boot","slug":"spring-application-lifecycle-jmx-bean-not-found-c","errorCode":null,"errorMessage":"Spring application lifecycle JMX bean not found. Could not stop application gracefully","messagePattern":"Spring application lifecycle JMX bean not found\\. Could not stop application gracefully","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java","lineNumber":94,"sourceCode":"\t\t\treturn;\n\t\t}\n\t\tgetLog().info(\"Stopping application...\");\n\t\ttry (JMXConnector connector = SpringApplicationAdminClient.connect(this.jmxPort)) {\n\t\t\tMBeanServerConnection connection = connector.getMBeanServerConnection();\n\t\t\tstop(connection);\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\t// The response won't be received as the server has died - ignoring\n\t\t\tgetLog().debug(\"Service is not reachable anymore (\" + ex.getMessage() + \")\");\n\t\t}\n\t}\n\n\tprivate void stop(MBeanServerConnection connection) throws IOException, MojoExecutionException {\n\t\ttry {\n\t\t\tnew SpringApplicationAdminClient(connection, this.jmxName).stop();\n\t\t}\n\t\tcatch (InstanceNotFoundException ex) {\n\t\t\tthrow new MojoExecutionException(\n\t\t\t\t\t\"Spring application lifecycle JMX bean not found. Could not stop application gracefully\", ex);\n\t\t}\n\t}\n\n}\n","sourceCodeStart":76,"sourceCodeEnd":100,"githubUrl":"https://github.com/spring-projects/spring-boot/blob/5b2dbdbb8be64415eb6552f81ff7c449c8d251e6/build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java#L76-L100","documentation":"Error \"Spring application lifecycle JMX bean not found. Could not stop application gracefully\" thrown in spring-projects/spring-boot.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"5b2dbdbb8be64415eb6552f81ff7c449c8d251e6","analyzedAt":"2026-08-04T18:53:14.967Z","schemaVersion":2}