Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1078

Undertow statistics collector can break in certain non-standard usecases

XMLWordPrintable

    • Hide

      No easy way to reproduce, unfortunately.

      Show
      No easy way to reproduce, unfortunately.
    • Hide

      We worked around this bug by disabling statistics collection completely.

      Show
      We worked around this bug by disabling statistics collection completely.

      Our application uses a non-standard approach of sometimes rendering several JSF pages in response to one request. One main page is sent back as a response, other(s) created with redirected response etc. are sent as notification email. This worked fine in Wildfly 8.2, but breaks in Wildfly 10.1 (only if statistics collection is enabled) in that the secondary pages are not created with internal stacktrace looking like this:

      ...
      Caused by: java.lang.IllegalStateException: UT000139: Exchange already complete
      at io.undertow.server.HttpServerExchange.addExchangeCompleteListener(HttpServerExchange.java:916)
      at io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:54)
      at io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:274)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:209)
      at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:221)
      ... 66 more

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              doublep_ Paul Pogonyshev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: