Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-9370

HttpStatusCodeException not serializable

    Details

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

      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
          rstoya05-aop 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
          rstoya05-aop 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
          psfung 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
          psfung 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
          cbeams Chris Beams added a comment -

          This duplicates SPR-9273.

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

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              psfung 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:
                3 years, 7 weeks, 1 day ago