You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Hans Reip <sp...@googlemail.com> on 2007/06/14 10:22:16 UTC
[Trinidad] RenderingContext Error when STATE_SAVING_METHODis
"client"
Hi,
I am trying to use trinidad together with other tomahawk and SUN RI
components. The view technology is JSP. So I followed the instructions for
installing trinidad from the myFaces page. Some JSP work but others don't.
I get the following message after I submit the form :
### backing-bean method -> start ###
14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
invoke
INFO: ***** Running time of method
[com.test.twa.business.coffeeservice.IConsumerService.getConsumerData] is: 0
ms
## return string is: editConsumer ##
14.06.2007 10:10:00 org.apache.myfaces.trinidad.context.RenderingContext
attach
WARNUNG: Trying to attach RenderingContext to a thread that already had one.
14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
invoke
INFO: ***** Running time of method
[com.test.twa.business.coffeeservice.IConsumerService.getConsumerOverview]
is: 0 ms
I get this message many times until a StackOverflowError occurs:
FATAL: Servlet.service() for servlet Faces Servlet threw exception
java.lang.StackOverflowError
at org.apache.catalina.connector.Request.doGetSession(Request.java:2190)
at org.apache.catalina.connector.Request.getSession(Request.java:2031)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:832)
...
...
Why does this error occur only at some JSPs, and why only when the
STATE_SAVING_METHOD is "client"?
By the way: if the STATE_SAVING_METHOD is "server" it works so far, but
there still is the following warning:
...
14.06.2007 09:59:30
org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
encodeFinally
WARNING: No AdfRenderingContext available
...
What does ths warning mean?
Thanks in advance
Hans
--
View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11115961
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Matthias Wessendorf <ma...@apache.org>.
mmm,
looks ok
the resource servlet is for serving resources ;-)
like Skinning CSS and JS
-M
On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
>
> Yes, I configured the filter:
>
> <filter>
> <filter-name>trinidad</filter-name>
>
> <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>trinidad</filter-name>
> <servlet-name>Faces Servlet</servlet-name>
> </filter-mapping>
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> I have also configured the following but I do not know what it is for. May
> this be the reason?
>
> <servlet>
> <servlet-name>resources</servlet-name>
>
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
> </servlet>
>
> <!-- This cannot be configured currently -->
> <servlet-mapping>
> <servlet-name>resources</servlet-name>
> <url-pattern>/adf/*</url-pattern>
> </servlet-mapping>
>
> In the faces-config I have added the default renderkit:
> <default-render-kit-id>
> org.apache.myfaces.trinidad.core
> </default-render-kit-id>
>
> I do not have any trinidad-config file but as I know I do not need one
> neccessarily.
> Hans
>
>
>
>
> Matthias Wessendorf-4 wrote:
> >
> > Iwas wondering because of AdfRenderingContext,
> > but that is a *legacy* logger entry,from old times.
> > Fixed...
> >
> > To your issue:
> > Did config the Filter ?
> >
> > On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
> >>
> >> Do you mean an old version of trinidad?
> >> I downloaded it yesterday, so it should be OK.
> >>
> >>
> >> Matthias Wessendorf-4 wrote:
> >> >
> >> > AdfRenderingContext
> >> >
> >> > you are using an old version, I think
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11116388
> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > mail: matzew-at-apache-dot-org
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11117133
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis
"client"
Posted by Hans Reip <sp...@googlemail.com>.
Yes, I configured the filter:
<filter>
<filter-name>trinidad</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>trinidad</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
I have also configured the following but I do not know what it is for. May
this be the reason?
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
</servlet>
<!-- This cannot be configured currently -->
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
In the faces-config I have added the default renderkit:
<default-render-kit-id>
org.apache.myfaces.trinidad.core
</default-render-kit-id>
I do not have any trinidad-config file but as I know I do not need one
neccessarily.
Hans
Matthias Wessendorf-4 wrote:
>
> Iwas wondering because of AdfRenderingContext,
> but that is a *legacy* logger entry,from old times.
> Fixed...
>
> To your issue:
> Did config the Filter ?
>
> On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
>>
>> Do you mean an old version of trinidad?
>> I downloaded it yesterday, so it should be OK.
>>
>>
>> Matthias Wessendorf-4 wrote:
>> >
>> > AdfRenderingContext
>> >
>> > you are using an old version, I think
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11116388
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> mail: matzew-at-apache-dot-org
>
>
--
View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11117133
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Matthias Wessendorf <ma...@apache.org>.
Iwas wondering because of AdfRenderingContext,
but that is a *legacy* logger entry,from old times.
Fixed...
To your issue:
Did config the Filter ?
On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
>
> Do you mean an old version of trinidad?
> I downloaded it yesterday, so it should be OK.
>
>
> Matthias Wessendorf-4 wrote:
> >
> > AdfRenderingContext
> >
> > you are using an old version, I think
> >
> >
>
> --
> View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11116388
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis
"client"
Posted by Hans Reip <sp...@googlemail.com>.
Do you mean an old version of trinidad?
I downloaded it yesterday, so it should be OK.
Matthias Wessendorf-4 wrote:
>
> AdfRenderingContext
>
> you are using an old version, I think
>
>
--
View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11116388
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Matthias Wessendorf <ma...@apache.org>.
AdfRenderingContext
you are using an old version, I think
On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
>
> Hi,
>
> I am trying to use trinidad together with other tomahawk and SUN RI
> components. The view technology is JSP. So I followed the instructions for
> installing trinidad from the myFaces page. Some JSP work but others don't.
>
> I get the following message after I submit the form :
>
> ### backing-bean method -> start ###
> 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> invoke
> INFO: ***** Running time of method
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerData] is: 0
> ms
> ## return string is: editConsumer ##
> 14.06.2007 10:10:00 org.apache.myfaces.trinidad.context.RenderingContext
> attach
> WARNUNG: Trying to attach RenderingContext to a thread that already had one.
> 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> invoke
> INFO: ***** Running time of method
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerOverview]
> is: 0 ms
>
> I get this message many times until a StackOverflowError occurs:
>
> FATAL: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.StackOverflowError
> at org.apache.catalina.connector.Request.doGetSession(Request.java:2190)
> at org.apache.catalina.connector.Request.getSession(Request.java:2031)
> at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:832)
> ...
> ...
>
> Why does this error occur only at some JSPs, and why only when the
> STATE_SAVING_METHOD is "client"?
>
> By the way: if the STATE_SAVING_METHOD is "server" it works so far, but
> there still is the following warning:
> ...
> 14.06.2007 09:59:30
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> encodeFinally
> WARNING: No AdfRenderingContext available
> ...
> What does ths warning mean?
>
> Thanks in advance
> Hans
> --
> View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11115961
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Matthias Wessendorf <ma...@apache.org>.
org.apache.myfaces.adf is "old"
org.apache.myfaces.trinidad should be the new namespace
=> org.apache.myfaces.trinidad.CLIENT_STATE_METHOD
-M
On 6/14/07, Stéphane Poirier <st...@gmail.com> wrote:
> I already got a wierd problem with client-side saving. Mine was solved by
> adding this to the application-config part of my web.xml.
>
> <context-param>
> <param-name>org.apache.myfaces.adf.CLIENT_STATE_METHOD
> </param-name>
> <param-value>all</param-value>
> </context-param>
>
> Does this helps?
>
>
>
> On 6/14/07, Adam Winer < awiner@gmail.com> wrote:
> > On 6/14/07, Hans Reip < spampolizei@googlemail.com> wrote:
> > >
> > > Hi,
> > >
> > > I am trying to use trinidad together with other tomahawk and SUN RI
> > > components. The view technology is JSP. So I followed the instructions
> for
> > > installing trinidad from the myFaces page. Some JSP work but others
> don't.
> > >
> > > I get the following message after I submit the form :
> > >
> > > ### backing-bean method -> start ###
> > > 14.06.2007 10:10:00
> com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> > > invoke
> > > INFO: ***** Running time of method
> > >
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerData]
> is: 0
> > > ms
> > > ## return string is: editConsumer ##
> > > 14.06.2007 10:10:00
> org.apache.myfaces.trinidad.context.RenderingContext
> > > attach
> > > WARNUNG: Trying to attach RenderingContext to a thread that already had
> one.
> > > 14.06.2007 10:10:00
> com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> > > invoke
> > > INFO: ***** Running time of method
> > >
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerOverview]
> > > is: 0 ms
> > >
> > > I get this message many times until a StackOverflowError occurs:
> > >
> > > FATAL: Servlet.service() for servlet Faces Servlet threw exception
> > > java.lang.StackOverflowError
> > > at
> org.apache.catalina.connector.Request.doGetSession(Request.java:2190)
> > > at
> org.apache.catalina.connector.Request.getSession(Request.java:2031)
> > > at
> > > org.apache.catalina.connector.RequestFacade.getSession
> (RequestFacade.java:832)
> > > ...
> >
> > Can you give us a longer stack trace? We need to see what
> > part of the stack is recursive.
> >
> > -- Adam
> >
> >
> > > ...
> > >
> > > Why does this error occur only at some JSPs, and why only when the
> > > STATE_SAVING_METHOD is "client"?
> > >
> > > By the way: if the STATE_SAVING_METHOD is "server" it works so far, but
> > > there still is the following warning:
> > > ...
> > > 14.06.2007 09:59:30
> > >
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> > > encodeFinally
> > > WARNING: No AdfRenderingContext available
> > > ...
> > > What does ths warning mean?
> > >
> > > Thanks in advance
> > > Hans
> > > --
> > > View this message in context:
> http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11115961
> > > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> > >
> > >
> >
>
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Stéphane Poirier <st...@gmail.com>.
I already got a wierd problem with client-side saving. Mine was solved by
adding this to the application-config part of my web.xml.
<context-param>
<param-name>org.apache.myfaces.adf.CLIENT_STATE_METHOD</param-name>
<param-value>all</param-value>
</context-param>
Does this helps?
On 6/14/07, Adam Winer <aw...@gmail.com> wrote:
>
> On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
> >
> > Hi,
> >
> > I am trying to use trinidad together with other tomahawk and SUN RI
> > components. The view technology is JSP. So I followed the instructions
> for
> > installing trinidad from the myFaces page. Some JSP work but others
> don't.
> >
> > I get the following message after I submit the form :
> >
> > ### backing-bean method -> start ###
> > 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> > invoke
> > INFO: ***** Running time of method
> > [com.test.twa.business.coffeeservice.IConsumerService.getConsumerData]
> is: 0
> > ms
> > ## return string is: editConsumer ##
> > 14.06.2007 10:10:00 org.apache.myfaces.trinidad.context.RenderingContext
> > attach
> > WARNUNG: Trying to attach RenderingContext to a thread that already had
> one.
> > 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> > invoke
> > INFO: ***** Running time of method
> > [
> com.test.twa.business.coffeeservice.IConsumerService.getConsumerOverview]
> > is: 0 ms
> >
> > I get this message many times until a StackOverflowError occurs:
> >
> > FATAL: Servlet.service() for servlet Faces Servlet threw exception
> > java.lang.StackOverflowError
> > at org.apache.catalina.connector.Request.doGetSession(
> Request.java:2190)
> > at org.apache.catalina.connector.Request.getSession(Request.java
> :2031)
> > at
> > org.apache.catalina.connector.RequestFacade.getSession(
> RequestFacade.java:832)
> > ...
>
> Can you give us a longer stack trace? We need to see what
> part of the stack is recursive.
>
> -- Adam
>
>
> > ...
> >
> > Why does this error occur only at some JSPs, and why only when the
> > STATE_SAVING_METHOD is "client"?
> >
> > By the way: if the STATE_SAVING_METHOD is "server" it works so far, but
> > there still is the following warning:
> > ...
> > 14.06.2007 09:59:30
> > org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> > encodeFinally
> > WARNING: No AdfRenderingContext available
> > ...
> > What does ths warning mean?
> >
> > Thanks in advance
> > Hans
> > --
> > View this message in context:
> http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11115961
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
> >
>
Re: [Trinidad] RenderingContext Error when STATE_SAVING_METHODis "client"
Posted by Adam Winer <aw...@gmail.com>.
On 6/14/07, Hans Reip <sp...@googlemail.com> wrote:
>
> Hi,
>
> I am trying to use trinidad together with other tomahawk and SUN RI
> components. The view technology is JSP. So I followed the instructions for
> installing trinidad from the myFaces page. Some JSP work but others don't.
>
> I get the following message after I submit the form :
>
> ### backing-bean method -> start ###
> 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> invoke
> INFO: ***** Running time of method
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerData] is: 0
> ms
> ## return string is: editConsumer ##
> 14.06.2007 10:10:00 org.apache.myfaces.trinidad.context.RenderingContext
> attach
> WARNUNG: Trying to attach RenderingContext to a thread that already had one.
> 14.06.2007 10:10:00 com.test.twa.reuse.logging.PerformanceLogAdviceAOP
> invoke
> INFO: ***** Running time of method
> [com.test.twa.business.coffeeservice.IConsumerService.getConsumerOverview]
> is: 0 ms
>
> I get this message many times until a StackOverflowError occurs:
>
> FATAL: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.StackOverflowError
> at org.apache.catalina.connector.Request.doGetSession(Request.java:2190)
> at org.apache.catalina.connector.Request.getSession(Request.java:2031)
> at
> org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:832)
> ...
Can you give us a longer stack trace? We need to see what
part of the stack is recursive.
-- Adam
> ...
>
> Why does this error occur only at some JSPs, and why only when the
> STATE_SAVING_METHOD is "client"?
>
> By the way: if the STATE_SAVING_METHOD is "server" it works so far, but
> there still is the following warning:
> ...
> 14.06.2007 09:59:30
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> encodeFinally
> WARNING: No AdfRenderingContext available
> ...
> What does ths warning mean?
>
> Thanks in advance
> Hans
> --
> View this message in context: http://www.nabble.com/-Trinidad--RenderingContext-Error-when-STATE_SAVING_METHODis-%22client%22-tf3920348.html#a11115961
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>