[Jersey-issues] [JIRA] Resolved: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

  • From: "Marek Potociar (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [Jersey-issues] [JIRA] Resolved: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL
  • Date: Fri, 25 Jan 2013 17:53:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/JERSEY-1671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marek Potociar resolved JERSEY-1671.
------------------------------------

    Fix Version/s: 2.0-unplanned
                   2.0
       Resolution: Fixed

Fixed by uptaking a patch from an external contributor.

> NullPointer  using JAXRS 2.0 client apis over SSL 
> --------------------------------------------------
>
>                 Key: JERSEY-1671
>                 URL: http://java.net/jira/browse/JERSEY-1671
>             Project: jersey
>          Issue Type: Bug
>          Components: connectors
>    Affects Versions: 2.0-m11
>         Environment: Standalone Java 7 (Oracle). Ubuntu Linux 12.11 (64)
>            Reporter: cpellegrini
>            Assignee: Marek Potociar
>            Priority: Minor
>             Fix For: 2.0-unplanned, 2.0
>
>
> The code:
> {code} 
> Client client = ClientFactory.newClient();
> WebTarget target = client.target("https://api.stackexchange.com/2.1/users";)
>    .path("1305740").queryParam("site", "stackoverflow");
> Response v=target.request().get();
> {code}
> produces the exception:
> {noformat}Exception in thread "main" javax.ws.rs.client.ClientException
>       at 
> org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:220)
> ...
> Caused by: java.lang.NullPointerException
>       at 
> org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:258)
> {noformat}
> Turns out that the connector does not find the {{SslConfig}} property.
> {code} 
> client.setProperty( ClientProperties.SSL_CONFIG, new 
> SslConfig(null,SSLContext.getDefault()));
> {code} 
> does the trick, but binds the client to a specific implementation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Jersey-issues] [JIRA] Created: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

cpellegrini (JIRA) 01/24/2013

[Jersey-issues] [JIRA] Commented: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

cpellegrini (JIRA) 01/24/2013

[Jersey-issues] [JIRA] Assigned: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

Marek Potociar (JIRA) 01/25/2013

[Jersey-issues] [JIRA] Resolved: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

Marek Potociar (JIRA) 01/25/2013

[Jersey-issues] [JIRA] Work logged: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

Marek Potociar (JIRA) 01/25/2013

[Jersey-issues] [JIRA] Updated: (JERSEY-1671) NullPointer using JAXRS 2.0 client apis over SSL

Pavel Bucek (JIRA) 01/29/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150226.965aeb8)
 
 
Close
loading
Please Confirm
Close