org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials

Jenkins JIRA | Peter Runge | 5 years ago
  1. 0

    When attempting to download a JDK with an NTLM proxy configured in settings, the following error occurs: SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:332) at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:320) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:232) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at hudson.tools.JDKInstaller.locate(JDKInstaller.java:379) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:124) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150) at hudson.model.JDK.forNode(JDK.java:112) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:842) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:156) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:572) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473) at hudson.model.Run.run(Run.java:1408) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) The proxy settings definitely work in other parts of Jenkins, as plugins can be downloaded installed through it. Username/password is specified as part of proxy settings.

    Jenkins JIRA | 5 years ago | Peter Runge
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
  2. 0

    When attempting to download a JDK with an NTLM proxy configured in settings, the following error occurs: SEVERE: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials at org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:332) at org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:320) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:232) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at hudson.tools.JDKInstaller.locate(JDKInstaller.java:379) at hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:124) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150) at hudson.model.JDK.forNode(JDK.java:112) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:842) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:156) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:572) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473) at hudson.model.Run.run(Run.java:1408) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) The proxy settings definitely work in other parts of Jenkins, as plugins can be downloaded installed through it. Username/password is specified as part of proxy settings.

    Jenkins JIRA | 5 years ago | Peter Runge
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
  3. 0

    Frequent exception from TaskManager plugin

    YouTrack | 7 years ago
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jira Connection Fails

    YouTrack | 7 years ago
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
  6. 0

    TeamCity Integration does not honor proxy exceptions from IDEA proxy settings

    YouTrack | 2 years ago
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.commons.httpclient.auth.InvalidCredentialsException

      Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials

      at org.apache.commons.httpclient.auth.NTLMScheme.authenticate()
    2. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTLMScheme.java:332)
      2. org.apache.commons.httpclient.HttpMethodDirector.authenticateProxy(HttpMethodDirector.java:320)
      3. org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:232)
      4. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
      5. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
      6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
      6 frames
    3. Hudson
      AbstractBuild.getEnvironment
      1. hudson.tools.JDKInstaller.locate(JDKInstaller.java:379)
      2. hudson.tools.JDKInstaller.performInstallation(JDKInstaller.java:124)
      3. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      4. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
      5. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:150)
      6. hudson.model.JDK.forNode(JDK.java:112)
      7. hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:842)
      7 frames
    4. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
      2. hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:156)
      3. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:572)
      3 frames
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:473)
      2. hudson.model.Run.run(Run.java:1408)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames