tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources
Date Wed, 27 Nov 2019 22:36:18 GMT
On 27/11/2019 19:21, wrote:


> Many thanks Mark. It seems fix works correctly.
> Because I observed the issue on version 8.5.49 and your build is version 9.0 
> I installed Apache Tomcat/9.0.29 and observed not the same error but very similar. It
was also StackOverflow and contained recursive DefaultFaceletContext.includeFacelet() method
> So I installed your build and got to login page without issue.
> Thanks for your fast reaction and solution.
> Will be this fix also for 8.5.50 release version?

Sorry to be a pain but could you test again? I've updated the 9.0.30-dev
build and added 8.5.50-dev here:

The last patch went to far and essentially complete undid the original
fix rather than keeping the original fix and fixing the regression you saw.

If you could download, test and report back that would be very helpful.

- this is NOT an official release
- this is NOT for production use
- this is ONLY for testing this bug
- please don't blame me if your server catches fire during testing ;)

(Sorry to go on about this but ASF releases have various bits of QA and
legal machinery behind them whereas test/dev builds like this don't and
we need to make sure folks reading this understand there is a difference.)



> Jan
> For info there is snipet of 9.0.29 log error:
> Caused by: java.lang.StackOverflowError
> 	at Method)
> 	at$ Source)
> 	at$3.hasMoreElements(Unknown Source)
> 	at Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at org.apache.catalina.loader.WebappClassLoaderBase$
> 	at org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.hasMoreElements(
> 	at java.util.ServiceLoader$LazyIterator.hasNextService(Unknown Source)
> 	at java.util.ServiceLoader$LazyIterator.hasNext(Unknown Source)
> 	at java.util.ServiceLoader$1.hasNext(Unknown Source)
> 	at javax.xml.parsers.FactoryFinder$ Source)
> 	at Method)
> 	at javax.xml.parsers.FactoryFinder.findServiceProvider(Unknown Source)
> 	at javax.xml.parsers.FactoryFinder.find(Unknown Source)
> 	at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
> 	at com.sun.faces.util.Util.createSAXParserFactory(
> 	at com.sun.faces.facelets.compiler.SAXCompiler.createSAXParser(
> 	at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(
> 	at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(
> 	at com.sun.faces.facelets.compiler.Compiler.compile(
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(
> 	at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(
> 	at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(
> 	at com.sun.faces.util.ExpiringConcurrentCache$
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message