Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9626

"Writer has already been closed" exception in GraphQLServlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • GraphQL Core 0.0.4
    • GraphQL Core 0.0.6
    • GraphQL
    • None

    Description

      The GraphQLServlet shouldn't call response.getWriter().flush() as the JsonWriter used by the JsonSerializer implements Closeable and as such closes the Writer.

      This causes a "Writer has already been closed" Exception when flush() is called.

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              etugarev Evgeny Tugarev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: