{"record":{"id":"86b6d5d6dcb32d08","repo":"apache/maven","slug":"authentication-failed-e-getmessage","errorCode":null,"errorMessage":"Authentication failed: \" + e.getMessage()","messagePattern":"Authentication failed: \" \\+ e\\.getMessage\\(\\)","errorType":"exception","errorClass":"TransferFailedException","httpStatus":null,"severity":"error","filePath":"compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java","lineNumber":432,"sourceCode":"                                    checksumPolicy,\n                                    \"Error retrieving checksum file for \" + remotePath,\n                                    md5TryException);\n                        }\n                    }\n\n                    // reinstate the download monitor...\n                    if (downloadMonitor != null) {\n                        wagon.addTransferListener(downloadMonitor);\n                    }\n                }\n\n                // unset the firstRun flag, so we don't get caught in an infinite loop...\n                firstRun = false;\n            }\n        } catch (ConnectionException e) {\n            throw new TransferFailedException(\"Connection failed: \" + e.getMessage(), e);\n        } catch (AuthenticationException e) {\n            throw new TransferFailedException(\"Authentication failed: \" + e.getMessage(), e);\n        } catch (AuthorizationException e) {\n            throw new TransferFailedException(\"Authorization failed: \" + e.getMessage(), e);\n        } finally {\n            // Remove remaining TransferListener instances (checksum handlers removed in above finally clause)\n            if (downloadMonitor != null) {\n                wagon.removeTransferListener(downloadMonitor);\n            }\n\n            disconnectWagon(wagon);\n\n            releaseWagon(protocol, wagon);\n        }\n\n        if (downloaded) {\n            if (!temp.exists()) {\n                throw new ResourceDoesNotExistException(\"Downloaded file does not exist: \" + temp);\n            }\n","sourceCodeStart":414,"sourceCodeEnd":450,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L414-L450","documentation":"Error \"Authentication failed: \" + e.getMessage()\" thrown in apache/maven.","triggerScenarios":"Thrown at compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java:432 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-22T04:17:13.399Z"}