Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6356

NPE when calling ServiceUnavailableException.getRetryTime()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.0.3, 2.7.15
    • Fix Version/s: 3.1, 3.0.5
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Flags:
      Patch

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              irisding iris ding
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: