You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/04/20 13:34:59 UTC

[jira] [Reopened] (CXF-6356) NPE when calling ServiceUnavailableException.getRetryTime()

     [ https://issues.apache.org/jira/browse/CXF-6356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin reopened CXF-6356:
-----------------------------------
      Assignee: Sergey Beryozkin

> NPE when calling ServiceUnavailableException.getRetryTime()
> -----------------------------------------------------------
>
>                 Key: CXF-6356
>                 URL: https://issues.apache.org/jira/browse/CXF-6356
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.1, 3.0.3, 2.7.15
>            Reporter: iris ding
>            Assignee: Sergey Beryozkin
>         Attachments: DateHeaderProvider.java
>
>
> Hi, I have a resource method as below:  
>  @GET
>         @Path("setmethod")
>         public String setMethod1() {
>         	 ServiceUnavailableException e = new ServiceUnavailableException(new Date());
>         	 e.getRetryTime(new Date());
>             ....}
> In this method, I simply construct a ServiceUnavailableException with Date parameter. Then when it runs into  e.getRetryTime(new Date()) it give below error:
> java.lang.NullPointerException
> at javax.ws.rs.ServiceUnavailableException.getRetryTime(ServiceUnavailableException.java:262)



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