Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-446

Context tests related to async servlet failing on WLS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.1.Final, 1.1.4.Final
    • None
    • None

      org.jboss.cdi.tck.tests.context.application.async.ApplicationContextAsyncListenerTest#testApplicationContextActiveOnComplete
      org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest#testRequestContextActiveOnComplete
      org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest#testSessionContextActiveOnComplete

      All of these fail for the following reason. A listener's onComplete method is being called. The method calls event.getAsyncContext().getResponse() and that is causing WLS to throw IllegalStateException. According to java doc for AsyncContext:
      ServletResponse getResponse()
      Gets the response that was used to initialize this AsyncContext by calling ServletRequest.startAsync() or ServletRequest.startAsync(ServletRequest, ServletResponse).
      Returns:
      the response that was used to initialize this AsyncContext
      Throws:
      IllegalStateException - if complete() or any of the dispatch() methods has been called in the asynchronous cycle

              tremes1@redhat.com Tomas Remes
              tremes1@redhat.com Tomas Remes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: