-
Bug
-
Resolution: Done
-
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