tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juri Berlanda <juri.berla...@tuwien.ac.at>
Subject Re: Error after upgrading to Tomcat 9.0.29
Date Mon, 25 Nov 2019 19:17:55 GMT
Hi all,

I post my Stacktrace again, as I mistakenly previously only sent it to 
Rémy Maucherat.

I'll try to make it as short as possible:

25-Nov-2019 14:01:34.842 SEVERE [http-nio-8080-exec-4] 
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() 
for servlet [Faces Servlet] in context with path [/access] threw 
exception [null] with root cause
     java.lang.StackOverflowError
         at 
java.base/sun.net.util.IPAddressUtil.checkHostString(IPAddressUtil.java:460)
         at 
java.base/java.net.URLStreamHandler.setURL(URLStreamHandler.java:518)
         at 
java.base/java.net.URLStreamHandler.parseURL(URLStreamHandler.java:312)
         at 
java.base/sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
         at java.base/java.net.URL.<init>(URL.java:663)
         at java.base/java.net.URL.<init>(URL.java:530)
         at 
java.base/jdk.internal.loader.URLClassPath$FileLoader.getResource(URLClassPath.java:1176)
         at 
java.base/jdk.internal.loader.URLClassPath$FileLoader.findResource(URLClassPath.java:1165)
         at 
java.base/jdk.internal.loader.URLClassPath$1.next(URLClassPath.java:341)
         at 
java.base/jdk.internal.loader.URLClassPath$1.hasMoreElements(URLClassPath.java:351)
         at 
java.base/java.net.URLClassLoader$3$1.run(URLClassLoader.java:687)
         at 
java.base/java.net.URLClassLoader$3$1.run(URLClassLoader.java:685)
         at java.base/java.security.AccessController.doPrivileged(Native 
Method)
         at 
java.base/java.net.URLClassLoader$3.next(URLClassLoader.java:684)
         at 
java.base/java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:709)
         at 
java.base/java.lang.CompoundEnumeration.next(ClassLoader.java:3022)
         at 
java.base/java.lang.CompoundEnumeration.hasMoreElements(ClassLoader.java:3031)
         at 
org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.inc(WebappClassLoaderBase.java:2701)
         at 
org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.hasMoreElements(WebappClassLoaderBase.java:2686)
         at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1202)
         at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1220)
         at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
         at 
java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
         at 
java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
         at 
java.xml/javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:287)
         at java.base/java.security.AccessController.doPrivileged(Native 
Method)
         at 
java.xml/javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:283)
         at 
java.xml/javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:261)
         at 
java.xml/javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:147)
         at 
org.apache.myfaces.view.facelets.compiler.SAXCompiler.createSAXParser(SAXCompiler.java:1063)
         at 
org.apache.myfaces.view.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:776)
         at 
org.apache.myfaces.view.facelets.compiler.Compiler.compile(Compiler.java:91)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory._createFacelet(DefaultFaceletFactory.java:388)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.access$000(DefaultFaceletFactory.java:56)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:123)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:120)
         at 
org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:84)
         at 
org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:51)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:270)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:572)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:551)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
         at 
org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:150)

     [From here ... ]
         at 
org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
         at 
org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:519)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:573)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:551)
         at 
org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
         at 
org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:150)
     [... to here repeats 140 times]

         at 
org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)

So it does not seem to be an endless recursion, as it seems to escape, 
but it seems to be to late and to deep in the stack. I'm really not sure 
what to make of this.

Cheers,

Juri

On 11/25/19 5:01 PM, Rémy Maucherat wrote:
> On Mon, Nov 25, 2019 at 3:03 PM Juri Berlanda <juri.berlanda@tuwien.ac.at>
> wrote:
>
>> Hi all,
>>
>> ok, I'll try to make it as short as possible:
>>
>> 25-Nov-2019 14:01:34.842 SEVERE [http-nio-8080-exec-4]
>> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
>> for servlet [Faces Servlet] in context with path [/access] threw
>> exception [null] with root cause
>>       java.lang.StackOverflowError
>>           at
>>
>> java.base/sun.net.util.IPAddressUtil.checkHostString(IPAddressUtil.java:460)
>>           at
>> java.base/java.net.URLStreamHandler.setURL(URLStreamHandler.java:518)
>>           at
>> java.base/java.net.URLStreamHandler.parseURL(URLStreamHandler.java:312)
>>           at
>> java.base/sun.net.www.protocol.file.Handler.parseURL(Handler.java:67)
>>           at java.base/java.net.URL.<init>(URL.java:663)
>>           at java.base/java.net.URL.<init>(URL.java:530)
>>           at
>>
>> java.base/jdk.internal.loader.URLClassPath$FileLoader.getResource(URLClassPath.java:1176)
>>           at
>>
>> java.base/jdk.internal.loader.URLClassPath$FileLoader.findResource(URLClassPath.java:1165)
>>           at
>> java.base/jdk.internal.loader.URLClassPath$1.next(URLClassPath.java:341)
>>           at
>>
>> java.base/jdk.internal.loader.URLClassPath$1.hasMoreElements(URLClassPath.java:351)
>>           at
>> java.base/java.net.URLClassLoader$3$1.run(URLClassLoader.java:687)
>>           at
>> java.base/java.net.URLClassLoader$3$1.run(URLClassLoader.java:685)
>>           at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>           at
>> java.base/java.net.URLClassLoader$3.next(URLClassLoader.java:684)
>>           at
>> java.base/java.net
>> .URLClassLoader$3.hasMoreElements(URLClassLoader.java:709)
>>           at
>> java.base/java.lang.CompoundEnumeration.next(ClassLoader.java:3022)
>>           at
>>
>> java.base/java.lang.CompoundEnumeration.hasMoreElements(ClassLoader.java:3031)
>>           at
>>
>> org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.inc(WebappClassLoaderBase.java:2701)
>>           at
>>
>> org.apache.catalina.loader.WebappClassLoaderBase$CombinedEnumeration.hasMoreElements(WebappClassLoaderBase.java:2686)
>>           at
>>
>> java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1202)
>>           at
>>
>> java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1220)
>>           at
>>
>> java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
>>           at
>> java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
>>           at
>> java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
>>           at
>> java.xml/javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:287)
>>           at java.base/java.security.AccessController.doPrivileged(Native
>> Method)
>>           at
>>
>> java.xml/javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:283)
>>           at
>> java.xml/javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:261)
>>           at
>>
>> java.xml/javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:147)
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.SAXCompiler.createSAXParser(SAXCompiler.java:1063)
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:776)
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.Compiler.compile(Compiler.java:91)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory._createFacelet(DefaultFaceletFactory.java:388)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.access$000(DefaultFaceletFactory.java:56)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:123)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:120)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:84)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.FaceletCacheImpl.getFacelet(FaceletCacheImpl.java:51)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:270)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:572)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:551)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
>>           at
>>
>> org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:150)
>>
>>       [From here ... ]
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:48)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:519)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:573)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:551)
>>           at
>>
>> org.apache.myfaces.view.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:240)
>>           at
>>
>> org.apache.myfaces.view.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:150)
>>       [... to here repeats 140 times]
>>
>>           at
>>
>> org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:59)
>>
>> So it does not seem to be an endless recursion, as it seems to escape,
>> but it seems to be to late and to deep in the stack. I'm really not sure
>> what to make of this.
>>
> This (mistakenly it seems) got sent only to me.
>
> Not sure about the issue at all or how it could be a regression caused by
> Tomcat. A URL stream handler was (re)introduced but I fail to see the real
> relevance.
>
> Rémy
>
>
>> Cheers,
>>
>> Juri
>>
>> On 11/25/19 2:52 PM, Rémy Maucherat wrote:
>>> On Mon, Nov 25, 2019 at 2:15 PM Juri Berlanda <
>> juri.berlanda@tuwien.ac.at>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I just tried to deploy my WebApplication (OpenWebBeans, MyFaces) to
>>>> Tomcat 9.0.29. While everything works fine in 9.0.27, on 9.0.29 as soon
>>>> as I access any page I get:
>>>>
>>>> 25-Nov-2019 14:01:34.842 SEVERE [http-nio-8080-exec-4]
>>>> org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service()
>>>> for servlet [Faces Servlet] in context with path [/censored] threw
>>>> exception [null] with root cause
>>>>        java.lang.StackOverflowError
>>>>
>>>> Since it is a StackOverflow, I'm not posting the Stacktrace here.
>>>>
>>> Well ;) Please post some parts of the stack trace so that we know where
>> and
>>> what occurs.
>>>
>>>
>>>> Has anybody had a different error? Is there a known fix or a workaround
>>>> for this?
>>>>
>>>> I'm happy to help debugging and fixing the issue, if there is one in
>>>> Tomcat. Just let me know how I can help.
>>>>
>>> Rémy
>>>

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


Mime
View raw message