[ 
https://issues.apache.org/jira/browse/MYFACES-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520571
 ] 

Leonardo Uribe commented on MYFACES-1704:
-----------------------------------------

I tried to replicate the error without success. Myfaces + trinidad. At first 
looks it seems to be a EL expression that trigger the stack overflow.

But looking more carefully the stack trace, one could find a pattern. These 
lines:

at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
 

[back to at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)]

Are repeated over and over again. 

Conclusion:  It could be one of the following

a. Bad parameter call from FacesCompositeELResolver 
b. The error is not on myfaces, because the recursive call is inside facelets


Anyway, Duong, could you provide more information about the page or EL 
expression that trigger the stack overflow, in order to try to fix it

regards

Leonardo Uribe




> myfaces-1.2.0 Servlet exception
> -------------------------------
>
>                 Key: MYFACES-1704
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1704
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions:  1.2.0
>         Environment: tomcat-6.0.14, jdk-1.6, myfaces-1.2.0, 
> jsf-facelets-1.1.11, shale-1.0.4, trinidad-1.2., spring-jpa-2.0.5 in CentOS-4
>            Reporter: Duong BaTien
>
> The exception seems to be at faces servlet processing. Updating from working
> jsf-1.1 app to jsf-1.2 app. This looks like an issue with myfaces 1.2.0. 
> I re-run maven with Sun-RI 1.2, everything is fine. 
> Duong BaTien
> DBGROUPS and BudhNet
> SEVERE: Servlet.service() for servlet faces threw exception
> java.lang.StackOverflowError
>       at 
> org.apache.catalina.connector.Request.removeAttribute(Request.java:1336)
>       at 
> org.apache.catalina.connector.RequestFacade.removeAttribute(RequestFacade.java:514)
>       at 
> org.apache.catalina.core.ApplicationHttpRequest.removeAttribute(ApplicationHttpRequest.java:256)
>       at 
> org.apache.myfaces.context.servlet.RequestMap.removeAttribute(RequestMap.java:56)
>       at 
> org.apache.myfaces.util.AbstractAttributeMap.remove(AbstractAttributeMap.java:121)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.unsetScope(FacesCompositeELResolver.java:163)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:152)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:104)
>       at 
> org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:61)
>       at 
> org.apache.shale.faces.ShaleVariableResolver.resolveVariable(ShaleVariableResolver.java:157)
>       at 
> org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
>       at 
> org.apache.myfaces.el.convert.VariableResolverToELResolver.getValue(VariableResolverToELResolver.java:93)
>       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.access$301(FacesCompositeELResolver.java:46)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver$4.invoke(FacesCompositeELResolver.java:108)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.invoke(FacesCompositeELResolver.java:148)
>       at 
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:104)
>       at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
>       at org.apache.el.parser.AstValue.getValue(AstValue.java:86)
>       at 
> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
>       at 
> com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
>       at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
>       at com.sun.facelets.tag.TagAttribute.getValue(TagAttribute.java:200)
>       at 
> com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
>       at 
> com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
>       at 
> com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
>       at 
> com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
>       at 
> com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
>       at 
> com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
>       at 
> com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
>       at 
> com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
>       at 
> com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
>       at 
> com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
>       at 
> com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
>       at 
> com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
>       at 
> com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
>       at 
> com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
>       at 
> com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
>       at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to