we really should make that invalidateNow() method very hard to find or
something like that.
don't use invalidateNow() so easily that is only valid is very very specific
circumstances.
just call invalidate()

But what you encounter is a bug that should be fixed if it isn't already by
matej

johan


On 9/18/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote:
>
> Not sure why I suddenly started getting this error...
>
> I'm using BETA3.  In my development environment, everything runs fine.  In
> production, I just started getting this error.  The differences between
> the
> two environments are - prod is linux / tomcat.  dev is windows / jetty in
> eclipse.  Obviously the dev envir is in development mode, and prod is in
> deployment mode.
>
> I have a page, SignOut:
>
>     public SignOut() {
>         getWebSession().invalidateNow();
>         throw new
> RestartResponseAtInterceptPageException(getApp().getHomePage());
>     }
>
>
> I get this error (only in prod):
>
>
> java.lang.RuntimeException: java.io.FileNotFoundException:
> /usr/java/tomcat-
> 5.5/work/Catalina/localhost/foo/bar-servlet-name-filestore/6B26389AA5F92EE
> 3ED34D262304E7E2E/pm-null (No such file or directory)
>         at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.newFileChannel(
> FileChannelPool.java:107)
>         at
> org.apache.wicket.protocol.http.pagestore.FileChannelPool.getFileChannel(
> FileChannelPool.java:174)
>         at
>
> org.apache.wicket.protocol.http.pagestore.DiskPageStore$SessionEntry.savePage
> (DiskPageStore.java:226)
>         at
>
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.flushPagesToSaveList
> (DiskPageStore.java:779)
>         at org.apache.wicket.protocol.http.pagestore.DiskPageStore.unbind(
> DiskPageStore.java:726)
>         at
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore.onUnbind(
> SecondLevelCacheSessionStore.java:729)
>         at org.apache.wicket.protocol.http.AbstractHttpSessionStore.unbind
> (
> AbstractHttpSessionStore.java:269)
>         at
> org.apache.wicket.protocol.http.AbstractHttpSessionStore.invalidate(
> AbstractHttpSessionStore.java:210)
>         at org.apache.wicket.Session.invalidateNow(Session.java:912)
>         at com.mycompany.web.wicket.pages.SignOut.<init>(SignOut.java:12)
>
> Thank you in advance!
> Jeremy Thomerson
>

Reply via email to