Hi,

I have an application that uses WicketSessionFilter for providing access to
the Wicket session to servlets outside Wicket.
Application was working fine with 1.4.5. Migrated to 1.4.9 and now attempts
to retrieve sessions via Session.get() in  servlet fail with the error:

"you can only locate or create sessions in the context of a request cycle"

This excception is being generated on Session.findOrCreate
(Session.java:208):

 RequestCycle requestCycle = RequestCycle.get();
                if (requestCycle == null)
                {
                        throw new IllegalStateException(
                                "you can only locate or create sessions in
the context of a request cycle");
                }


The problem is WicketSessionFilter does not seem to bind the request cycle
to the current thread and hence is broken in 1.4.9. Am I missing something
or should I open a JIRA issue?

Regards,
  - Juliano

Reply via email to