You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Michael Oswell <os...@movieset.com> on 2008/12/11 00:28:47 UTC

Terracotta integration and issue sharing pagemaps

I am running into an issue that I _think_ is related to our terracotta  
installation.

1.  User visits page with a PageableListView.
2.  User navigates to another page in the PageableListView
3.  User clicks on a link generated within the listview

The following exception is generated

>> org.apache.wicket.WicketRuntimeException: component  
>> mainContentPanel:photoListContainer:photoList:82:switchLink not  
>> found on page com.example.wicket.pages.ExamplePage[id = 2],  
>> listener interface = [RequestListenerInterface  
>> name=IBehaviorListener, method=public abstract void  
>> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>> 	at  
>> org 
>> .apache 
>> .wicket 
>> .request 
>> .AbstractRequestCycleProcessor 
>> .resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java: 
>> 416)
>> 	at  
>> org 
>> .apache 
>> .wicket 
>> .request 
>> .AbstractRequestCycleProcessor 
>> .resolveRenderedPage(AbstractRequestCycleProcessor.java:461)
>> 	at  
>> org 
>> .apache 
>> .wicket 
>> .protocol 
>> .http 
>> .WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
>> 	at com.example.wicket.WicketApplication 
>> $2.resolve(WicketApplication.java:119)
>> 	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1229)
>> 	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
>> 	at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>> 	at  
>> org 
>> .apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 
>> 387)
>> 	at  
>> org 
>> .apache 
>> .wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core 
>> .ApplicationFilterChain 
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 
>> 206)
>> 	at  
>> org 
>> .springframework 
>> .orm 
>> .hibernate3 
>> .support 
>> .OpenSessionInViewFilter 
>> .doFilterInternal(OpenSessionInViewFilter.java:198)
>> 	at  
>> org 
>> .springframework 
>> .web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java: 
>> 76)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core 
>> .ApplicationFilterChain 
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 
>> 206)
>> 	at  
>> com.randomcoder.security.DisableUrlSessionFilter.doFilter(Unknown  
>> Source)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core 
>> .ApplicationFilterChain 
>> .internalDoFilter(ApplicationFilterChain.java:235)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 
>> 206)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> 	at  
>> org 
>> .apache 
>> .catalina 
>> .core.StandardContextValve.invoke(StandardContextValve.java:191)
>> 	at  
>> org 
>> .apache 
>> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>> 	at  
>> org 
>> .apache 
>> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> 	at  
>> org 
>> .apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 
>> 568)
>> 	at  
>> org 
>> .apache 
>> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
>> 109)
>> 	at  
>> com.tc.tomcat55.session.SessionValve55.tcInvoke(SessionValve55.java: 
>> 63)
>> 	at  
>> com.tc.tomcat55.session.SessionValve55.invoke(SessionValve55.java:50)
>> 	at  
>> org 
>> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
>> 286)
>> 	at  
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>> 	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java: 
>> 283)
>> 	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>> 	at  
>> org 
>> .apache 
>> .jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>> 	at org.apache.jk.common.ChannelSocket 
>> $SocketConnection.runIt(ChannelSocket.java:889)
>> 	at org.apache.tomcat.util.threads.ThreadPool 
>> $ControlRunnable.run(ThreadPool.java:690)
>> 	at java.lang.Thread.run(Thread.java:595)

If I run only one server, then everything works as expected.  As soon  
as I add extra servers I begin to see this error.
 From what I can tell, it appears as though the page map is not being  
distributed via terracotta, though I could be wrong. :)
The reason I think this is it appears as though the PageableListView  
page that I navigate to doesn't exist in the pagemap on the server  
that handles the request when I click a link and as such, generates  
the above exception.

Installation:
	Terracotta 2.7.1
	Wicket 1.3.5
	tim-wicket-1.3-1.1.3

Any suggestions welcome.

thanks,

-- Mike

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


Re: Terracotta integration and issue sharing pagemaps

Posted by richardwilko <ri...@gmail.com>.
If you open the terracotta admin console you should be able to see your
shared roots.  If you are just using terracotta for http session clustering
then you should just see 1 root, which is the servlet http session.

The admin console lets you explore the shared objects, and if you go into a
single session, you will be able to see if it is sharing the pagemap.

If you cant see the shared root, then there is some sort of problem with the
terracotta config.

-----
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: http://www.nabble.com/Terracotta-integration-and-issue-sharing-pagemaps-tp20946423p20955787.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Terracotta integration and issue sharing pagemaps

Posted by Michael Oswell <os...@movieset.com>.
Ned,

I have tried setting setReuseItems(true) on the PageableListView but  
it makes no difference.

thanks,

-- Mike

On 10-Dec-08, at 4:30 PM, Ned Collyer wrote:

> From a quick glance (and im not at all familiar with  
> PageableListView - but
> am alright with their parent - ListView)
>
> Has it anything to do with not calling setReuseItems(true) on the  
> list view
> itself? - Ie, its destroying the links, then recreating them each  
> request?
>
> Rgds
>
> Ned


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


Re: Terracotta integration and issue sharing pagemaps

Posted by Ned Collyer <ne...@gmail.com>.
>From a quick glance (and im not at all familiar with PageableListView - but
am alright with their parent - ListView)

Has it anything to do with not calling setReuseItems(true) on the list view
itself? - Ie, its destroying the links, then recreating them each request?

Rgds

Ned



Michael Oswell wrote:
> 
> I am running into an issue that I _think_ is related to our terracotta  
> installation.
> 
> 1.  User visits page with a PageableListView.
> 2.  User navigates to another page in the PageableListView
> 3.  User clicks on a link generated within the listview
> 
> The following exception is generated
> 
>>> org.apache.wicket.WicketRuntimeException: component  
>>> mainContentPanel:photoListContainer:photoList:82:switchLink not  
>>> found on page com.example.wicket.pages.ExamplePage[id = 2],  
>>> listener interface = [RequestListenerInterface  
>>> name=IBehaviorListener, method=public abstract void  
>>> org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> 
> 
> If I run only one server, then everything works as expected.  As soon  
> as I add extra servers I begin to see this error.
>  From what I can tell, it appears as though the page map is not being  
> distributed via terracotta, though I could be wrong. :)
> The reason I think this is it appears as though the PageableListView  
> page that I navigate to doesn't exist in the pagemap on the server  
> that handles the request when I click a link and as such, generates  
> the above exception.
> 
> Installation:
> 	Terracotta 2.7.1
> 	Wicket 1.3.5
> 	tim-wicket-1.3-1.1.3
> 
> Any suggestions welcome.
> 
> thanks,
> 
> -- Mike
> 

-- 
View this message in context: http://www.nabble.com/Terracotta-integration-and-issue-sharing-pagemaps-tp20946423p20947187.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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