hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Lum (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1178) NPE thrown in DefaultUserTokenHandler
Date Fri, 30 Mar 2012 18:30:30 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242629#comment-13242629
] 

Cory Lum commented on HTTPCLIENT-1178:
--------------------------------------

This might be happening because I'm using BasicHttpContext instead of SyncBasicHttpContext
in a multi-threaded threaded execution..
                
> NPE thrown in DefaultUserTokenHandler
> -------------------------------------
>
>                 Key: HTTPCLIENT-1178
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1178
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.1.3
>            Reporter: Cory Lum
>
> java.lang.NullPointerException
> 	at org.apache.http.impl.client.DefaultUserTokenHandler.getAuthPrincipal(DefaultUserTokenHandler.java:91)
> 	at org.apache.http.impl.client.DefaultUserTokenHandler.getUserToken(DefaultUserTokenHandler.java:72)
> 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:516)
> 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
> 	at some.package.SomeClass.execute(SomeClass.java:123)
> -or-
> java.lang.NullPointerException
> 	at org.apache.http.impl.client.DefaultUserTokenHandler.getUserToken(DefaultUserTokenHandler.java:79)
> 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:516)
> 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
> 	at some.package.SomeClass.execute(SomeClass.java:123)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message