https://issues.apache.org/bugzilla/show_bug.cgi?id=55241

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #10 from Mark Thomas <ma...@apache.org> ---
Your code is throwing java.lang.InternalError which is a sub-class of
java.lang.VirtualMachineError

The javadoc states that VirtualMachineError is:
<quote>
Thrown to indicate that the Java Virtual Machine is broken or has run out of
resources necessary for it to continue operating.
</quote>

Tomcat handles application code throwing any Throwablte with two exceptions:
- OutOfMemoryError
- VirtualMachineError
as both of these are considered fatal to the JVM.

In this case the application should not be throwing java.lang.InternalError as
the JVM is neither broken nor has it run out of resources.

The reason I could not repeat this is that your steps to reproduce generates a
ClientAbortException which is correctly handled. My test did not generate a
java.lang.InternalError

That NIO did not exhibit the problem was due to a bug in the NIO connector (now
fixed) that incorrectly swallowed VirtualMachineErrors.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to