oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stein Welberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OLTU-191) Get resource fails with NPE
Date Tue, 01 Mar 2016 01:04:18 GMT

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

Stein Welberg commented on OLTU-191:
------------------------------------

I really wonder how this has worked in the past since the validate method has always been
called and there is no suitable validator for the resource requests..

> Get resource fails with NPE
> ---------------------------
>
>                 Key: OLTU-191
>                 URL: https://issues.apache.org/jira/browse/OLTU-191
>             Project: Apache Oltu
>          Issue Type: Task
>          Components: demo-client, oauth2-client
>            Reporter: Jasha Joachimsthal
>            Assignee: Stein Welberg
>
> A resource call in the client demo fails with an NPE on the validator.
> {noformat}
> 2016-02-29 21:17:30.066:WARN::/get_resource
> java.lang.NullPointerException
> 	at org.apache.oltu.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:80)
> 	at org.apache.oltu.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:71)
> 	at org.apache.oltu.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:63)
> 	at org.apache.oltu.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:115)
> 	at org.apache.oltu.oauth2.client.OAuthClient.resource(OAuthClient.java:81)
> 	at org.apache.oltu.oauth2.client.demo.controller.ResourceController.authorize(ResourceController.java:57)
> 	...
> {noformat}
> To reproduce:
> # start the demo client
> # do the authorize flow for Facebook
> # do a resource call for https://graph.facebook.com/me
> The HTTP request towards Facebook succeeds, but it response cannot be converted into
an {{OAuthResourceResponse}}.
> The client demo uses the {{URLConnectionClient}} implementation for {{HttpClient}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message