jax-rs-spec
  1. jax-rs-spec
  2. JAX_RS_SPEC-392

Client-side exception handling omitted by the specification

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: spec
    • Labels:
      None

      Description

      Specification text that defines provider exception handling (sections 4.5 and 6.7) as well as text that defines entity provider processing (sections 4.2.1, 4.2.2) refer to exception handling specified in section 3.3.4, which defines exception handling suitable only for the server side that also talks about exception mappers, special conversion of WebApplicationExceptions to Response objects etc.

      The client side exception handling definition needs to be added:

      • Chapters 4.2.1 and 4.2.2 should be extended to cover differences of client and server side entity provider processing wrt. exception handling (last step in both sections)
      • Chapters 4.5 and 6.7 should be extended with new definitions of provider exception handling on the client side.
        • javax.ws.rs.client.ResponseProcessingException should be explicitly covered too (see e.g. javax.ws.rs.client.InvocationCallback.failed(Throwable) or javax.ws.rs.client.Invocation.invoke(...) javadoc).
          • essentially, every Throwable originating in a provider executed on the client side is wrapped into a ProcessingException (request processing failures) or ResponseProcessingException (response processing failures), including any WebApplicationException instances thrown by the providers. The actual WebApplicationException instances are only thrown directly by client runtime as a result of a 3xx, 4xx or 5xx response status code that came from the server. ProcessingExeption is also thrown directly by runtime in case of any unrecoverable failures.

        Activity

        Hide
        Santiago Pericas-Geertsen added a comment -

        Updated sections 4.2.1 and 4.2.2 to clarify client and server exceptions. Split sections 4.5 and 6.7 into client and server runtime subsections.

        Show
        Santiago Pericas-Geertsen added a comment - Updated sections 4.2.1 and 4.2.2 to clarify client and server exceptions. Split sections 4.5 and 6.7 into client and server runtime subsections.

          People

          • Assignee:
            Santiago Pericas-Geertsen
            Reporter:
            Marek Potociar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: