In javadoc of ServletOuputStream, we have:
Throws:
|IllegalStateException
<
http://download.oracle.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true>|
- if one of the following conditions is true
* the associated request is neither upgraded nor the async started
* setWriteListener is called more than once within the scope of
the same request.
Shing Wai Chan
On 12/8/15, 11:40 AM, Edward Burns wrote:
> Copying from mail sent to users_at_servlet-spec.java.net.
>
>>>>>> On Tue, 1 Dec 2015 18:00:29 -0500, "Martin Mulholland"<mmulholl_at_us.ibm.com> said:
> MM> Section 3.7:
>
>
> MM> Section 5.3 - setWriteListener()
>
> Spec> It is illegal to switch to the traditional blocking IO at that
> Spec> point.
>
> MM> Add a clarification to say how such a illegal switch is reported.
> MM> IOException from OutputStream write methods?
>
> I propose adding the following text after "at that point."
>
> Proposed53> The use of IO related method calls after this illegal switch
> Proposed53> to traditional blocking IO produces unspecified results.
>
>