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

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

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
            Priority: Minor


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-2016 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close