{"record":{"id":"234de583ab6f74cf","repo":"apache/maven","slug":"invalid-threads-value-threadconfiguration-s","errorCode":null,"errorMessage":"Invalid threads value: '${threadConfiguration}'. Supported are int and float values ending with C.","messagePattern":"Invalid threads value: '(.+?)'\\. Supported are int and float values ending with C\\.","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java","lineNumber":950,"sourceCode":"\n                if (coreMultiplier <= 0.0f) {\n                    throw new IllegalArgumentException(\"Invalid threads core multiplier value: '\" + threadConfiguration\n                            + \"'. Value must be positive.\");\n                }\n\n                int procs = Runtime.getRuntime().availableProcessors();\n                int threads = (int) (coreMultiplier * procs);\n                return threads == 0 ? 1 : threads;\n            } else {\n                int threads = Integer.parseInt(threadConfiguration);\n                if (threads <= 0) {\n                    throw new IllegalArgumentException(\n                            \"Invalid threads value: '\" + threadConfiguration + \"'. Value must be positive.\");\n                }\n                return threads;\n            }\n        } catch (NumberFormatException e) {\n            throw new IllegalArgumentException(\"Invalid threads value: '\" + threadConfiguration\n                    + \"'. Supported are int and float values ending with C.\");\n        }\n    }\n\n    protected abstract int execute(C context) throws Exception;\n}\n","sourceCodeStart":932,"sourceCodeEnd":957,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java#L932-L957","documentation":"Error \"Invalid threads value: '${threadConfiguration}'. Supported are int and float values ending with C.\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java:950 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}