Hi all,
I encounter the same problem, how to resolve it?
thx!
-rosen jiang
Johnnie wrote:
>
> Hi,
>
> I'm using Wicket 1.3.2, had a piece of code that read like this:
>
> public MySession(final AuthenticatedWebApplication application,
> final Request request) {
>
> super(application, request);
>
> }
>
> and was getting the following warning:
>
> warning: [deprecation]
> AuthenticatedWebSession(org.apache.wicket.authentication.AuthenticatedWebApplication,org.apache.wicket.Request)
> in org.apache.wicket.authentication.AuthenticatedWebSession has been
> deprecated
>
> so I tried to use the form of the constructor that takes only one argument
> - Request, like so:
>
> public ElectronicaSession(final AuthenticatedWebApplication
> application,
> final Request request) {
>
> super(request);
>
> }
>
> and now I get:
>
> org.apache.wicket.WicketRuntimeException: Unable to instantiate web
> session class my.package.MySession
>
> org.apache.wicket.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:120)
> org.apache.wicket.Session.findOrCreate(Session.java:228)
> org.apache.wicket.Session.findOrCreate(Session.java:211)
> org.apache.wicket.Session.get(Session.java:250)
> org.apache.wicket.Application$1.onInstantiation(Application.java:276)
>
> org.apache.wicket.Application.notifyComponentInstantiationListeners(Application.java:974)
> org.apache.wicket.Component.<init>(Component.java:866)
> org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:105)
> org.apache.wicket.Page.<init>(Page.java:236)
> org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:184)
>
> org.apache.wicket.markup.html.pages.ExceptionErrorPage.<init>(ExceptionErrorPage.java:55)
>
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:163)
> org.apache.wicket.RequestCycle.step(RequestCycle.java:1280)
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1330)
> org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:358)
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
>
> How do I avoid both the warning and the error?
>
> Best regards,
>
> Johnny
>
>
>
>
--
View this message in context:
http://www.nabble.com/warning%3A--deprecation--AuthenticatedWebSession%28AuthenticatedWebApplication%2CRequest%29-tp16329498p16524401.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]