Why does getPage() return null?
Because it does this:
if (page == null && pageClass != null && !requestCycle.getRedirect())
{
page = newPage(pageClass, requestCycle);
}
return page;
and the page == null.. but the pageClass shouldn't be null and it shouldn't
be a redirect at that point
(because it is a bookmarkable request)
can you tell me why that method doesn't return anything?
I also don't see why that happens on a session expire.. If it can't get the
page from a session.
It should generate a new page.
johan
On 2/7/07, Vincent Demay <[EMAIL PROTECTED]> wrote:
Hi all,
I've got a problem when my application session expire, an NPE is threw
with the following stack trace.
ERROR - RequestCycle -
java.lang.NullPointerException
at
wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents
(BookmarkableListenerInterfaceRequestTarget.java:104)
at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
DefaultEventProcessorStrategy.java:64)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
(AbstractCompoundRequestCycleProcessor.java:56)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java
:912)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:950)
at wicket.RequestCycle.step(RequestCycle.java:1026)
at wicket.RequestCycle.steps(RequestCycle.java:1100)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:243)
at wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:122)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1065)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
:185)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java
:391)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:765)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:628)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
:329)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java
:475)
I'm working with Wicket1.X 492460 revision and this problem disapears
when I use last Wicket1.X revision. I tried to find out what was the
problem but I not succeed in it.
Is someone already has this kind of exception? have you got an idea of
the reason? where did you fix that point (We can not use last revision
on production and we need to meke a patch to fix that)?
Thanks in advance.
NB : getPage() in BookmarkablePageRequestTarget return null.
--
Vincent Demay
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user