tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
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, jan.atos@seznam.cz wrote:

<snip/>

> 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
calls.
> 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:

http://people.apache.org/~markt/dev/

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.

Note:
- 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.)

Thanks,

Mark


> 
> Jan
> 
> For info there is snipet of 9.0.29 log error:
> 
> Caused by: java.lang.StackOverflowError
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader$3.next(Unknown Source)
> 	at java.net.URLClassLoader$3.hasMoreElements(Unknown Source)
> 	at sun.misc.CompoundEnumeration.next(Unknown Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at sun.misc.CompoundEnumeration.next(Unknown Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at sun.misc.CompoundEnumeration.next(Unknown Source)
> 	at sun.misc.CompoundEnumeration.hasMoreElements(Unknown Source)
> 	at org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.inc(WebappClassLoaderBase.java:2701)
> 	at org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.hasMoreElements(WebappClassLoaderBase.java:2686)
> 	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$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native 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(Util.java:297)
> 	at com.sun.faces.facelets.compiler.SAXCompiler.createSAXParser(SAXCompiler.java:527)
> 	at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:463)
> 	at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:440)
> 	at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:124)
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:481)
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(DefaultFaceletFactory.java:106)
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:199)
> 	at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:197)
> 	at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:86)
> 	at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:81)
> 	at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:99)
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


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


Mime
View raw message