{"id":"883810c73a0b6d09","repo":"spring-projects/spring-boot","slug":"s-exited-with-code-d-s","errorCode":null,"errorMessage":"%s' exited with code %d: %s","messagePattern":"(.+?)' exited with code (.+?): (.+?)","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/CredentialHelper.java","lineNumber":71,"sourceCode":"\tCredentialHelper(String executable) {\n\t\tthis.executable = executable;\n\t}\n\n\t@Nullable Credential get(String serverUrl) throws IOException {\n\t\tProcessBuilder processBuilder = processBuilder(\"get\");\n\t\tProcess process = start(processBuilder);\n\t\ttry (OutputStream request = process.getOutputStream()) {\n\t\t\trequest.write(serverUrl.getBytes(StandardCharsets.UTF_8));\n\t\t}\n\t\ttry {\n\t\t\tint exitCode = process.waitFor();\n\t\t\ttry (InputStream response = process.getInputStream()) {\n\t\t\t\tif (exitCode == 0) {\n\t\t\t\t\treturn new Credential(SharedJsonMapper.get().readTree(response));\n\t\t\t\t}\n\t\t\t\tString errorMessage = new String(response.readAllBytes(), StandardCharsets.UTF_8);\n\t\t\t\tif (!isCredentialsNotFoundError(errorMessage)) {\n\t\t\t\t\tthrow new IOException(\"%s' exited with code %d: %s\".formatted(process, exitCode, errorMessage));\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tcatch (InterruptedException ex) {\n\t\t\tThread.currentThread().interrupt();\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tprivate ProcessBuilder processBuilder(String action) {\n\t\tProcessBuilder processBuilder = new ProcessBuilder().redirectErrorStream(true);\n\t\tif (Platform.isWindows()) {\n\t\t\tprocessBuilder.command(\"cmd\", \"/c\");\n\t\t}\n\t\tprocessBuilder.command().addAll(Arrays.asList(this.executable, action));\n\t\treturn processBuilder;\n\t}","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/spring-projects/spring-boot/blob/5b2dbdbb8be64415eb6552f81ff7c449c8d251e6/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/CredentialHelper.java#L53-L89","documentation":"Error \"%s' exited with code %d: %s\" thrown in spring-projects/spring-boot.","triggerScenarios":"Thrown at buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/CredentialHelper.java:71 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}