You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Calmus <mi...@calmus.org> on 2011/02/07 21:11:42 UTC

StackOverflowError in Application.getExpressionFactory

I am getting a StackOverflowError with my app. I can't figure out what
change I've made to my code or environment that is causing this separately
from what others in my group are doing. I've looked at the MyFaces source
and can kind of see how this could happen. This might even be a bug in the
MyFaces code, but I'm at a bit of a loss. Any suggestions would be
appreciated.

Here is the trace:

java.lang.StackOverflowError
 at
java.util.concurrent.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:338)
 at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:769)
 at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:99)
 at
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.java:510)
 at
org.apache.myfaces.context.servlet.ApplicationMap.getAttribute(ApplicationMap.java:46)
 at
org.apache.myfaces.util.AbstractAttributeMap.get(AbstractAttributeMap.java:89)
 at
javax.faces.application.Application.getMyfacesApplicationInstance(Application.java:73)
 at
javax.faces.application.Application.getExpressionFactory(Application.java:137)
 at
javax.faces.application.Application.getExpressionFactory(Application.java:140)
 at
javax.faces.application.Application.getExpressionFactory(Application.java:140)

Re: StackOverflowError in Application.getExpressionFactory

Posted by Mike Calmus <mi...@calmus.org>.
Turns out this problem was occurring when we were using Spring WebFlow
2.1.0. When we use 2.0.7 or 2.2.1 it doesn't happen.

On Wed, Feb 23, 2011 at 7:43 AM, Jakob Korherr <ja...@gmail.com>wrote:

> Hi,
>
> This happens if you're using a custom pre JSF-1.2 Application
> implementation. Every custom application implementation should extend
> ApplicationWrapper or implement every method.
>
> Regards,
> Jakob
>
> 2011/2/7 Mike Calmus <mi...@calmus.org>:
>  > I am getting a StackOverflowError with my app. I can't figure out what
> > change I've made to my code or environment that is causing this
> separately
> > from what others in my group are doing. I've looked at the MyFaces source
> > and can kind of see how this could happen. This might even be a bug in
> the
> > MyFaces code, but I'm at a bit of a loss. Any suggestions would be
> > appreciated.
> >
> > Here is the trace:
> >
> > java.lang.StackOverflowError
> >  at
> >
> java.util.concurrent.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:338)
> >  at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:769)
> >  at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:99)
> >  at
> >
> weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.java:510)
> >  at
> >
> org.apache.myfaces.context.servlet.ApplicationMap.getAttribute(ApplicationMap.java:46)
> >  at
> >
> org.apache.myfaces.util.AbstractAttributeMap.get(AbstractAttributeMap.java:89)
> >  at
> >
> javax.faces.application.Application.getMyfacesApplicationInstance(Application.java:73)
> >  at
> >
> javax.faces.application.Application.getExpressionFactory(Application.java:137)
> >  at
> >
> javax.faces.application.Application.getExpressionFactory(Application.java:140)
> >  at
> >
> javax.faces.application.Application.getExpressionFactory(Application.java:140)
> >
>
>
>
> --
> Jakob Korherr
>
> blog: http://www.jakobk.com
> twitter: http://twitter.com/jakobkorherr
> work: http://www.irian.at
>

Re: StackOverflowError in Application.getExpressionFactory

Posted by Jakob Korherr <ja...@gmail.com>.
Hi,

This happens if you're using a custom pre JSF-1.2 Application
implementation. Every custom application implementation should extend
ApplicationWrapper or implement every method.

Regards,
Jakob

2011/2/7 Mike Calmus <mi...@calmus.org>:
> I am getting a StackOverflowError with my app. I can't figure out what
> change I've made to my code or environment that is causing this separately
> from what others in my group are doing. I've looked at the MyFaces source
> and can kind of see how this could happen. This might even be a bug in the
> MyFaces code, but I'm at a bit of a loss. Any suggestions would be
> appreciated.
>
> Here is the trace:
>
> java.lang.StackOverflowError
>  at
> java.util.concurrent.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:338)
>  at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:769)
>  at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:99)
>  at
> weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.java:510)
>  at
> org.apache.myfaces.context.servlet.ApplicationMap.getAttribute(ApplicationMap.java:46)
>  at
> org.apache.myfaces.util.AbstractAttributeMap.get(AbstractAttributeMap.java:89)
>  at
> javax.faces.application.Application.getMyfacesApplicationInstance(Application.java:73)
>  at
> javax.faces.application.Application.getExpressionFactory(Application.java:137)
>  at
> javax.faces.application.Application.getExpressionFactory(Application.java:140)
>  at
> javax.faces.application.Application.getExpressionFactory(Application.java:140)
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at