{"record":{"id":"c85a8687f5133585","repo":"quarkusio/quarkus","slug":"failed","errorCode":null,"errorMessage":"Failed","messagePattern":"Failed","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java","lineNumber":52,"sourceCode":"        }\n        String clazz = className;\n        String method = \"<init>\";\n        if (methodName != null) {\n            int index = methodName.lastIndexOf('.');\n            clazz = methodName.substring(0, index);\n            method = methodName.substring(index + 1);\n        }\n\n        File[] files = reportsDir.listFiles();\n        if (files == null) {\n            throw new MojoFailureException(\"No reports in \" + reportsDir);\n        }\n        for (File i : files) {\n            if (i.getName().startsWith(\"call_tree\")) {\n                try {\n                    System.out.println(new ReportAnalyzer(i.getAbsolutePath()).analyse(clazz, method));\n                } catch (Exception e) {\n                    throw new MojoExecutionException(\"Failed\", e);\n                }\n            }\n        }\n    }\n}\n","sourceCodeStart":34,"sourceCodeEnd":58,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/maven/src/main/java/io/quarkus/maven/AnalyseCallTreeMojo.java#L34-L58","documentation":"AnalyseCallTreeMojo.execute wraps any Exception from ReportAnalyzer.analyse(clazz, method) into this generic MojoExecutionException with the cause attached. The report file exists but could not be parsed or the class/method was not found in it.","triggerScenarios":"ReportAnalyzer.analyse throwing while parsing a call_tree report — corrupt/truncated report file, format produced by a different Quarkus version, or the target class/method absent from the report.","commonSituations":"Analyzing a stale report generated for different code; report truncated by an interrupted build; mismatch between className/method parsed from methodName (defaults to <init> when only className given).","solutions":["Read the 'Caused by' stack trace for the actual parse failure.","Regenerate the call tree report with the same Quarkus version and current code.","Confirm the target method (default constructor if unspecified) actually appears in the report."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"File[] reports = new File('target/reports').listFiles((d, n) -> n.startsWith('call_tree')); if (reports == null || reports.length == 0) throw new IllegalStateException('No call_tree report found');","typeGuard":null,"tryCatchPattern":"catch (MojoExecutionException e) { e.getCause()?.printStackTrace(); log.error('Report analysis failed; regenerate the report and retry'); }","preventionTips":["Regenerate reports after code changes before analysis.","Match report and analyzer Quarkus versions.","Confirm the target class/method exists in the report."],"tags":["maven","parsing","analysis"],"backgroundTag":"report-parse-failed","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}