{"record":{"id":"05ac0eaffbb2c220","repo":"apache/flink","slug":"no-exception-thrown-although-the-job-execution-was","errorCode":null,"errorMessage":"No exception thrown although the job execution was not successful.","messagePattern":"No exception thrown although the job execution was not successful\\.","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"flink-clients/src/main/java/org/apache/flink/client/deployment/application/UnsuccessfulExecutionException.java","lineNumber":65,"sourceCode":"    }\n\n    public Optional<JobStatus> getStatus() {\n        return Optional.ofNullable(status);\n    }\n\n    public static UnsuccessfulExecutionException fromJobResult(\n            final JobResult result, final ClassLoader userClassLoader) {\n\n        checkState(result != null && !result.isSuccess());\n        checkNotNull(userClassLoader);\n\n        // We do this to uniformize the behavior of the \"ATTACHED\" and \"DETACHED\"\n        // in application mode, while maintaining the expected exceptions thrown in case\n        // of a failed job execution.\n\n        try {\n            result.toJobExecutionResult(userClassLoader);\n            throw new IllegalStateException(\n                    \"No exception thrown although the job execution was not successful.\");\n\n        } catch (Throwable t) {\n\n            final JobID jobID = result.getJobId();\n            final JobStatus status = result.getJobStatus().orElse(null);\n\n            return status == JobStatus.CANCELED || status == JobStatus.FAILED\n                    ? new UnsuccessfulExecutionException(\n                            jobID, status, \"Job Status: \" + status.name(), t)\n                    : new UnsuccessfulExecutionException(\n                            jobID, null, \"Job failed for unknown reason.\", t);\n        }\n    }\n}\n","sourceCodeStart":47,"sourceCodeEnd":81,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-clients/src/main/java/org/apache/flink/client/deployment/application/UnsuccessfulExecutionException.java#L47-L81","documentation":"Error \"No exception thrown although the job execution was not successful.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: No exception thrown although the job execution was not successful.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: No exception thrown although the job execution was not successful.","solutions":["Address the cause reported by the error message: No exception thrown although the job execution was not successful.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"No exception thrown although the job execution was not successful.\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}