wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Eicher <...@teicher.net>
Subject Re: Page ... is not stateless ... but the stateless hint is set to true!
Date Mon, 11 Feb 2013 20:25:40 GMT

Hello Martin,

 > Put a breakpoint at Page#setStatelessHint() and see where it is called
 > with value == true.

It is not being called. That is, not before the warn message appears
in the log. statelesshint=true must be the deafult...?

My "BasePage" ist just
...
public class BasePage extends WebPage {

	@Inject Logger log;

	public BasePage() { //this is line 31 from the stack trace below
		YYYYYYSession session = (YYYYYYSession)getSession();
...

so I feel rather innocent about the message...

Cheers, Tom.


>
>
>     Hello,
>
>     I am receiving this message in the log
>
>     01:27:01,006 WARN  [org.apache.wicket.Page] Page '[Page class =
>     com.xxxxx.yyyyyy.components.__editor.Editor$EditorPage, id = 5,
>     render count = 0]' is not stateless because it is not bookmarkable,
>     but the stateless hint is set to true!
>
>
>     and I have no idea why ;-) Actually, I never intended to be
>     stateless (so far), so I thought I'd just give that stateless hint
>     as false. But:
>
>     setStatelessHint() cannot be called, since the warning is thrown
>     directly from my page constructor's super()...
>
>     And getStatelessHint() is final in Page and cannot be overridden...
>
>     Stack (see: all my "xxxxx" calls are just super()s cascading up...)
>
>     org.apache.wicket.Page.__isPageStateless(Page.java:445)
>     org.apache.wicket.page.__AbstractPageManager.touchPage(__AbstractPageManager.java:130)
>     org.apache.wicket.page.__PageManagerDecorator.__touchPage(__PageManagerDecorator.java:59)
>     org.apache.wicket.page.__PageAccessSynchronizer$2.__touchPage(__PageAccessSynchronizer.java:__273)
>     org.apache.wicket.Page.dirty(__Page.java:293)
>     org.apache.wicket.markup.html.__WebPage.dirty(WebPage.java:__324)
>     org.apache.wicket.Page.dirty(__Page.java:255)
>     org.apache.wicket.Page.__componentStateChanging(Page.__java:934)
>     org.apache.wicket.Component.__addStateChange(Component.java:__3518)
>     org.apache.wicket.Behaviors.__add(Behaviors.java:61)
>     org.apache.wicket.Component.__add(Component.java:4502)
>     org.apache.wicket.devutils.__inspector.__RenderPerformanceListener.__onInstantiation(__RenderPerformanceListener.__java:52)
>     org.apache.wicket.application.__ComponentInstantiationListener__Collection$1.notify(__ComponentInstantiationListener__Collection.java:38)
>     org.apache.wicket.application.__ComponentInstantiationListener__Collection$1.notify(__ComponentInstantiationListener__Collection.java:34)
>     org.apache.wicket.util.__listener.ListenerCollection.__notify(ListenerCollection.__java:80)
>     org.apache.wicket.application.__ComponentInstantiationListener__Collection.onInstantiation(__ComponentInstantiationListener__Collection.java:33)
>     org.apache.wicket.Component.<__init>(Component.java:683)
>     org.apache.wicket.__MarkupContainer.<init>(__MarkupContainer.java:120)
>     org.apache.wicket.Page.<init>(__Page.java:172)
>     org.apache.wicket.Page.<init>(__Page.java:136)
>     org.apache.wicket.markup.html.__WebPage.<init>(WebPage.java:__76)
>     com.xxxxx.yyyyyy.base.__BasePage.<init>(BasePage.java:__31)
>     com.xxxxx.yyyyyy.components.__editor.Editor$EditorPage.<__init>(Editor.java:97)
>     com.xxxxx.yyyyyy.components.__editor.Editor$EditButtonPlain.__onClick(Editor.java:153)
>     org.apache.wicket.markup.html.__link.Link.onLinkClicked(Link.__java:190)
>     sun.reflect.__NativeMethodAccessorImpl.__invoke0(__NativeMethodAccessorImpl.java)
>     sun.reflect.__NativeMethodAccessorImpl.__invoke(__NativeMethodAccessorImpl.java:__57)
>     sun.reflect.__DelegatingMethodAccessorImpl.__invoke(__DelegatingMethodAccessorImpl.__java:43)
>     java.lang.reflect.Method.__invoke(Method.java:601)
>     org.apache.wicket.__RequestListenerInterface.__internalInvoke(__RequestListenerInterface.java:__258)
>     org.apache.wicket.__RequestListenerInterface.__invoke(__RequestListenerInterface.java:__216)
>     org.apache.wicket.core.__request.handler.__ListenerInterfaceRequestHandle__r.invokeListener(__ListenerInterfaceRequestHandle__r.java:240)
>     org.apache.wicket.core.__request.handler.__ListenerInterfaceRequestHandle__r.respond(__ListenerInterfaceRequestHandle__r.java:226)
>     org.apache.wicket.request.__cycle.RequestCycle$__HandlerExecutor.respond(__RequestCycle.java:840)
>     org.apache.wicket.request.__RequestHandlerStack.execute(__RequestHandlerStack.java:64)
>     org.apache.wicket.request.__cycle.RequestCycle.execute(__RequestCycle.java:254)
>     org.apache.wicket.request.__cycle.RequestCycle.__processRequest(RequestCycle.__java:211)
>     org.apache.wicket.request.__cycle.RequestCycle.__processRequestAndDetach(__RequestCycle.java:282)
>     org.apache.wicket.protocol.__http.WicketFilter.__processRequestCycle(__WicketFilter.java:244)
>     org.apache.wicket.protocol.__http.WicketFilter.__processRequest(WicketFilter.__java:188)
>     org.apache.wicket.protocol.__http.WicketFilter.doFilter(__WicketFilter.java:267)
>     org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__280)
>     org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__248)
>     org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:275)
>     org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:161)
>     org.jboss.as.jpa.interceptor.__WebNonTxEmCloserValve.invoke(__WebNonTxEmCloserValve.java:50)
>     org.jboss.as.web.security.__SecurityContextAssociationValv__e.invoke(__SecurityContextAssociationValv__e.java:153)
>     org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:155)
>     org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102)
>     org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109)
>     org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:368)
>     org.apache.coyote.http11.__Http11Processor.process(__Http11Processor.java:877)
>     org.apache.coyote.http11.__Http11Protocol$__Http11ConnectionHandler.__process(Http11Protocol.java:__671)
>     org.apache.tomcat.util.net
>     <http://org.apache.tomcat.util.net>.__JIoEndpoint$Worker.run(__JIoEndpoint.java:930)
>     java.lang.Thread.run(Thread.__java:722)
>
>     What to do ?
>
>
>
>
>     I realize my setup is a bit exotic: I am building a component that
>     can be both a WebPage and a Panel (to live either on itself, or
>     inside a Modal Dialog with Bootstrap).
>     This is why I have an almost empty page just to wrap the panel...
>
>     The whole thing actually works! It's just that the message is a bit
>     annoying... (And since I'm just starting the whole thing, I dont't want
>     to make anything fundamentally wrong .. so I think I'd better ask...)
>
>     Cheers, Tom.
>
>     ------------------------------__------------------------------__---------
>     To unsubscribe, e-mail: users-unsubscribe@wicket.__apache.org
>     <mailto:users-unsubscribe@wicket.apache.org>
>     For additional commands, e-mail: users-help@wicket.apache.org
>     <mailto:users-help@wicket.apache.org>
>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>

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


Mime
View raw message