You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/10/03 11:51:06 UTC

[Bug 61581] SecurityException trying to access JNI classes in Drawboard example when running with SecurityManager

https://bz.apache.org/bugzilla/show_bug.cgi?id=61581

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
            Version|trunk                       |7.0.82

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
AprServletOutputStream.java:135 is

  if (Status.APR_STATUS_IS_EAGAIN(-written)) {

APR_STATUS_IS_EAGAIN is a method, not a constant, and thus Java tries to load
the class.

If I preload the Status class the issue does not happen.


This is: to work-around this issue, add the following attribute to
JreMemoryLeakPreventionListener configured in conf/server.xml:

[[[
    classesToInitialize="org.apache.tomcat.jni.Status"
]]]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org