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

NPE when calling ServiceUnavailableException.getRetryTime()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1, 3.0.3, 2.7.15
    • 3.1, 3.0.5
    • JAX-RS
    • None
    • Unknown
    • 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

        1. DateHeaderProvider.java
          2 kB
          Iris Ding

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            irisding Iris Ding
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: