Spring Framework
  1. Spring Framework
  2. SPR-9370

HttpStatusCodeException not serializable

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      My app use an exception reporting framework that depends on the fact that all exceptions should be serializable. When org.springframework.web.client.HttpStatusCodeException is thrown in a RestTemplate method, the exception reporting framework complains that a Charset object in the HttpStatusCodeException is not serializable.

        Issue Links

          Activity

          Hide
          Rossen Stoyanchev added a comment -

          Changed from bug to improvement since the exception wasn't designed with that in mind. Would you be able to share which reporting framework has this requirement?

          Show
          Rossen Stoyanchev added a comment - Changed from bug to improvement since the exception wasn't designed with that in mind. Would you be able to share which reporting framework has this requirement?
          Hide
          Samuel Fung added a comment -

          >Changed from bug to improvement since the exception wasn't designed with that in mind.
          I disagree. Java Throwable implements Serializable, the design of all exceptions should consider serializablity.

          >Would you be able to share which reporting framework has this requirement?
          It is self developed.

          Show
          Samuel Fung added a comment - >Changed from bug to improvement since the exception wasn't designed with that in mind. I disagree. Java Throwable implements Serializable, the design of all exceptions should consider serializablity. >Would you be able to share which reporting framework has this requirement? It is self developed.
          Hide
          Chris Beams added a comment -

          This duplicates SPR-9273.

          Show
          Chris Beams added a comment - This duplicates SPR-9273 .

            People

            • Assignee:
              Rossen Stoyanchev
              Reporter:
              Samuel Fung
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 49 weeks, 1 day ago