tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <jan.a...@seznam.cz>
Subject Re: Apache Tomcat 8.5.49 - StackOverflowError when getting static resources
Date Wed, 27 Nov 2019 19:21:50 GMT


On 27/11/2019 13:14:02, markt@apache.org wrote:


>On 27/11/2019 06:27, jan.atos@seznam.cz wrote:
>
>
>
>> "On 26/11/2019 16:34, Mark Thomas wrote: 
>
>>> I don't think so. More likely this is another instance of 
>
>>> https://bz.apache.org/bugzilla/show_bug.cgi?id=63964 
>
>> 
>
>> I think I have a fix for this. Are you able to build from source to test 
>
>> this once I commit the fix? If you aren't able to build from source, 
>
>> would it help if I provided a binary build? 
>
>> 
>
>> Mark 
>
>> 
>
>> Thank you for you answers. 
>
>> 
>
>> @Mark: It would help if you provide binary build, I'll test it.
>
>
>
>Thanks great. Thanks.
>
>
>
>You can pick up a 9.0.30-dev build from:
>
>http://people.apache.org/~markt/dev/v9.0.30-dev/
>
>
>
>Note: This is just to enable this fix to be tested. It isn't a formal
>
>release. Use it at your own risk. If you machine catches fire don't
>
>blame me
>
>
>
>Thanks,
>
>
>
>Mark
>
>
>
>---------------------------------------------------------------------
>
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>
>For additional commands, e-mail: users-help@tomcat.apache.org

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?

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


Mime
View raw message