On 11/09/18 18:32, Asire, Scott wrote: > I’m sure this has been asked/answered before so just point me to where I can > read up on it.
https://svn.apache.org/viewvc/tomcat/trunk/bin/catalina.sh?annotate=1835115#l302 > I have tried this on Tomcat 8.5.31, 8.5.34, 9.0.12 and the same results > occur: When shutting down Tomcat the following warnings are generated on JDK > 10 and JDK 11 EA: > > I see these written to the console of my Tomcat window which I start by > running java and using org.apache.catalina.startup.Bootstrap as the main > class. You won't see those warnings if you start Tomcat with the standard scripts. > 2018/09/11 10:14:52.135 | INFO: Stopping service [Catalina] > > 2018/09/11 10:14:52.135 | WARNING: An illegal reflective access operation has > occurred > > 2018/09/11 10:14:52.135 | WARNING: Illegal reflective access by > org.apache.catalina.loader.WebappClassLoaderBase > (file:/usr/local/apache-tomcat-9.0.12/lib/catalina.jar) to field > java.io.ObjectStreamClass$Caches.localDescs > > 2018/09/11 10:14:52.135 | WARNING: Please consider reporting this to the > maintainers of org.apache.catalina.loader.WebappClassLoaderBase > > 2018/09/11 10:14:52.135 | WARNING: Use --illegal-access=warn to enable > warnings of further illegal reflective access operations > > 2018/09/11 10:14:52.135 | WARNING: All illegal access operations will be > denied in a future release > > Are there plans to address these in a future release? Not at the moment. We'll keep the explicit clearing in place as long as we can. Once it is permanently blocked we'll probably have to rely on the fact that the Maps in question use a WeakReference and wait for GC to clear the references. That will make tracking down genuine memory leaks harder so we'll have to see if we can persuade the JRE team to provide some sort of replacement API if/when we reach that point. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org