Look at the attached gif
we have 3 places where we access and modify internals of the pagemap.
1> through Session.getPage()/PageMap.get() (The resolve rendered page to get a request target)
2> In the normal user event handling/response code (sync by session)
3> detach after that. (see Page.endVersion) (RequestCycle.detach())
This is not so nice..
Pushing the resolve can't be done because we need the request target to know if we have to sync
But the request target like PageRequestTarget or a InterfaceRequestTarget needs first a page..
So i guess we do need to synchronized the access around Pagemap with the session object..
Any better idea's to handle this?
johan
On 3/30/06, SourceForge.net <[EMAIL PROTECTED]> wrote:
Bugs item #1461287, was opened at 2006-03-30 12:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1461287&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 9
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: PageMap has buggy behavior
Initial Comment:
Switching between clicking on a link and the back
button causes the following NPE, intermittently. I
tried this deployed on tomcat, jetty, in a debugger and
without debugger.
Root cause:
java.lang.NullPointerException
at wicket.PageMap.removeEntry(PageMap.java:333)
at wicket.PageMap.access(PageMap.java:625)
at wicket.PageMap.get(PageMap.java:456)
at wicket.Session.getPage(Session.java:365)
at
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:149)
at
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java :92)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
at wicket.RequestCycle.step(RequestCycle.java:922)
at wicket.RequestCycle.steps(RequestCycle.java :1014)
at wicket.RequestCycle.request(RequestCycle.java:452)
at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:210)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1461287&group_id=119783
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
callhierachy.GIF
Description: GIF image
