https://issues.apache.org/bugzilla/show_bug.cgi?id=56280

            Bug ID: 56280
           Summary: NPE on Kerberos login attempt using HTTPHC4
                    Implementation
           Product: JMeter
           Version: 2.11
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTTP
          Assignee: [email protected]
          Reporter: [email protected]

On attempt to perform Kerberos authentication using HTTPClient4 implementation
following NPE is being returned by sampler:

java.lang.NullPointerException
    at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:182)
    at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:158)
    at
org.apache.http.client.protocol.RequestAuthenticationBase.authenticate(RequestAuthenticationBase.java:125)
    at
org.apache.http.client.protocol.RequestAuthenticationBase.process(RequestAuthenticationBase.java:83)
    at
org.apache.http.client.protocol.RequestTargetAuthentication.process(RequestTargetAuthentication.java:80)
    at
org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:109)
    at
org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:176)
    at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:518)
    at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
    at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$4.run(HTTPHC4Impl.java:463)
    at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$4.run(HTTPHC4Impl.java:459)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:458)
    at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:295)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.followRedirects(HTTPSamplerBase.java:1411)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1482)
    at
org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.resultProcessing(HTTPAbstractImpl.java:306)
    at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:381)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
    at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
    at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
    at java.lang.Thread.run(Thread.java:744)

HTTPClient3.1, Java and blank work fine. 

It looks like that Subject cannot be obtained due to login failure.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to