{"record":{"id":"0bb60bafda563c6a","repo":"apache/maven","slug":"invalid-threads-value-threadconfiguration-v","errorCode":null,"errorMessage":"Invalid threads value: '${threadConfiguration}'. Value must be positive.","messagePattern":"Invalid threads value: '(.+?)'\\. Value must be positive\\.","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java","lineNumber":944,"sourceCode":"\n    protected int calculateDegreeOfConcurrency(String threadConfiguration) {\n        try {\n            if (threadConfiguration.endsWith(\"C\")) {\n                String str = threadConfiguration.substring(0, threadConfiguration.length() - 1);\n                float coreMultiplier = Float.parseFloat(str);\n\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":926,"sourceCodeEnd":957,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java#L926-L957","documentation":"Error \"Invalid threads value: '${threadConfiguration}'. Value must be positive.\" thrown in apache/maven.","triggerScenarios":"Thrown at impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java:944 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"}