{"record":{"id":"7924576f89b140e0","repo":"apache/maven","slug":"invalid-threads-core-multiplier-value-threadco","errorCode":null,"errorMessage":"Invalid threads core multiplier value: '${threadConfiguration}'. Value must be positive.","messagePattern":"Invalid threads core multiplier 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":934,"sourceCode":"                        return MavenRepositorySystem.buildArtifactRepository(\n                                new org.apache.maven.settings.Repository(r));\n                    } catch (Exception e) {\n                        // nothing currently\n                        return null;\n                    }\n                })\n                .filter(Objects::nonNull)\n                .toList());\n    }\n\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        }","sourceCodeStart":916,"sourceCodeEnd":952,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java#L916-L952","documentation":"Error \"Invalid threads core multiplier 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:934 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"}