We were doing some load testing and we started getting a NullPointerException 
at the stack trace below.  We don't get the NPE all the time, so I am guessing 
some of these objects got corrupted somehow.
One place the clear() method is called from is the recycle() method in the 
Response object from the same package.

Has anyone seen this before?  My Internet searches did not reveal any other 
reports of this.  Is this something that has already been fixed in the course 
of other changes?

The version of Tomcat is 9.0.12 and we are using the openSSL underneath all 
this.

Thanks,
Mark

---------------
 at 
org.apache.catalina.connector.CoyoteOutputStream.checkNonBlockingWrite(CoyoteOutputStream.java:134)
 at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:95)
 at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
 at dsi.core.io.ByteCounterOutputStream.write(ByteCounterOutputStream.java:37)

--------------- CoyoteOutputStream
    private boolean checkNonBlockingWrite() {
        boolean nonBlocking = !ob.isBlocking(); <-- Line 134
        if (nonBlocking && !ob.isReady()) {
            throw new 
IllegalStateException(sm.getString("coyoteOutputStream.nbNotready"));
        }
        return nonBlocking;
    }
--------------- CoyoteOutputStream
    /**
     * Clear facade.
     */
    void clear() {
        ob = null;
    }
--------------- CoyoteOutputStream
    @Override
    public void close() throws IOException {
        ob.close();
    }
---------------

Mark Claassen
Senior Software Engineer

Donnell Systems, Inc.
130 South Main Street
Leighton Plaza Suite 375
South Bend, INĀ  46601
E-mail: mailto:mclaas...@ocie.net
Voice: (574)232-3784
Fax: (574)232-4014

Disclaimer:
The opinions provided herein do not necessarily state or reflect 
those of Donnell Systems, Inc.(DSI). DSI makes no warranty for and 
assumes no legal liability or responsibility for the posting. 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to