cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: NPE when calling ServiceUnavailableException.getRetryTime()
Date Sun, 19 Apr 2015 20:43:39 GMT
Hi - this is not a CXF issue. Most likely an initialization issue of 
this exception class which is part of the JAX-RS API. NPE is used in API 
a lot...

Cheers, Sergey
On 18/04/15 04:04, iris ding wrote:
> 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)
>
> I have create a jira in https://issues.apache.org/jira/browse/CXF-6356 and
> provide a proposed fix.
>
> Can you please take a look at the problem? Thanks a lot!
>
>
> Iris Ding
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/NPE-when-calling-ServiceUnavailableException-getRetryTime-tp5756231.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
>


Mime
View raw message