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

JIRA | Noah Levitt | 5 years ago
  1. 0

    Heritrix fails to handle a server that responds to a request with a 401 including for example these 2 headers: WWW-Authenticate: NTLM WWW-Authenticate: Basic realm="testrealm" Heritrix doesn't support NTLM, but it does support basic, and even if it is configured properly for the site in question, we get this: 2011-07-30 01:21:51.629 SEVERE thread-21 org.apache.commons.httpclient.HttpMethodDirector.authenticate() 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.authenticateHost(HttpMethodDirector.java:282) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:234) 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:346) at org.archive.modules.fetcher.FetchHTTP.innerProcess(FetchHTTP.java:642) at org.archive.modules.Processor.innerProcessResult(Processor.java:175) at org.archive.modules.Processor.process(Processor.java:142) at org.archive.modules.fetcher.FetchHTTP.process(FetchHTTP.java:904) at org.archive.modules.ProcessorChain.process(ProcessorChain.java:131) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:147) Reported on the mailing list by Adam Wilmer: http://tech.groups.yahoo.com/group/archive-crawler/message/7243

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

    Heritrix fails to handle a server that responds to a request with a 401 including for example these 2 headers: WWW-Authenticate: NTLM WWW-Authenticate: Basic realm="testrealm" Heritrix doesn't support NTLM, but it does support basic, and even if it is configured properly for the site in question, we get this: 2011-07-30 01:21:51.629 SEVERE thread-21 org.apache.commons.httpclient.HttpMethodDirector.authenticate() 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.authenticateHost(HttpMethodDirector.java:282) at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:234) 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:346) at org.archive.modules.fetcher.FetchHTTP.innerProcess(FetchHTTP.java:642) at org.archive.modules.Processor.innerProcessResult(Processor.java:175) at org.archive.modules.Processor.process(Processor.java:142) at org.archive.modules.fetcher.FetchHTTP.process(FetchHTTP.java:904) at org.archive.modules.ProcessorChain.process(ProcessorChain.java:131) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:147) Reported on the mailing list by Adam Wilmer: http://tech.groups.yahoo.com/group/archive-crawler/message/7243

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

    Trying to integrate Java and SSRS 2012

    Stack Overflow | 4 years ago | Michael Robinson
    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

    Error message while connecting to URL using HTMLUnit

    Stack Overflow | 8 years ago | Rajat
    org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials
  6. 0

    Example 3.16 - Failed to connect/reconnect Http Example

    manning.com | 3 months 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.authenticateHost(HttpMethodDirector.java:282)
      3. org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:234)
      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:346)
      6 frames
    3. org.archive.modules
      ProcessorChain.process
      1. org.archive.modules.fetcher.FetchHTTP.innerProcess(FetchHTTP.java:642)
      2. org.archive.modules.Processor.innerProcessResult(Processor.java:175)
      3. org.archive.modules.Processor.process(Processor.java:142)
      4. org.archive.modules.fetcher.FetchHTTP.process(FetchHTTP.java:904)
      5. org.archive.modules.ProcessorChain.process(ProcessorChain.java:131)
      5 frames
    4. org.archive.crawler
      ToeThread.run
      1. org.archive.crawler.framework.ToeThread.run(ToeThread.java:147)
      1 frame