You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris Merrill <ch...@webperformance.com> on 2011/11/07 20:55:56 UTC

upgrading 1.4 > 1.5, now get InstantiationException on AuthenticatedWebSession at startup

I've converted two apps from 1.4 to 1.5.  My GAE app seems to now be working fine, but my
other app, which runs in the more traditional Tomcat container and uses OpenJPA/Derby and Spring
is getting the exception below.

I've stepped down to that level of the code (AuthenticatedWebApplication.newSession()) and
don't see anything obviously wrong...so I'm apparently missing something because this prevents
any requests from being serviced.  It would be nice if the Java API gave us a more useful
exception message :(

Any ideas?

TIA!
Chris



ERROR [org.apache.wicket.util.listener.ListenerCollection] - <Error invoking listener:
org.apache.wicket.Application$2@6aceb8e2>
org.apache.wicket.WicketRuntimeException: Unable to instantiate web session class
org.apache.wicket.authroles.authentication.AuthenticatedWebSession
	at
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:133)
	at org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1521)
	at org.apache.wicket.Session.get(Session.java:159)
	at org.apache.wicket.Application$2.onDetach(Application.java:1587)
	at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99)
	at
org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97)
	at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119)
	at org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:142)
	at
org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
	at
org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95)
	at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:569)
	at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:508)
	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:284)
	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.InstantiationException
	at
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at
org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:127)
	... 30 more


-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
chris@webperformance.com                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: upgrading 1.4 > 1.5, now get InstantiationException on AuthenticatedWebSession at startup

Posted by Chris Merrill <ch...@webperformance.com>.
Ugh...AuthenticatedWebApplication is abstract and thus cannot be instantiated!  Somewhere
during my upgrade, my application started returning that instead of my session class  :(

Sorry for the noise.

Chris


On 11/7/2011 2:55 PM, Chris Merrill wrote:
> I've converted two apps from 1.4 to 1.5.  My GAE app seems to now be working fine, but my
> other app, which runs in the more traditional Tomcat container and uses OpenJPA/Derby and Spring
> is getting the exception below.
> 
> I've stepped down to that level of the code (AuthenticatedWebApplication.newSession()) and
> don't see anything obviously wrong...so I'm apparently missing something because this prevents
> any requests from being serviced.  It would be nice if the Java API gave us a more useful
> exception message :(
> 
> Any ideas?
> 
> TIA!
> Chris
> 
> 
> 
> ERROR [org.apache.wicket.util.listener.ListenerCollection] - <Error invoking listener:
> org.apache.wicket.Application$2@6aceb8e2>
> org.apache.wicket.WicketRuntimeException: Unable to instantiate web session class
> org.apache.wicket.authroles.authentication.AuthenticatedWebSession
> 	at
> org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:133)
> 	at org.apache.wicket.Application.fetchCreateAndSetSession(Application.java:1521)
> 	at org.apache.wicket.Session.get(Session.java:159)
> 	at org.apache.wicket.Application$2.onDetach(Application.java:1587)
> 	at
> org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99)
> 	at
> org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97)
> 	at org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119)
> 	at org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:142)
> 	at
> org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
> 	at
> org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95)
> 	at org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:569)
> 	at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:508)
> 	at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:284)
> 	at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
> 	at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
> 	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
> 	at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
> 	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
> 	at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.InstantiationException
> 	at
> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at
> org.apache.wicket.authroles.authentication.AuthenticatedWebApplication.newSession(AuthenticatedWebApplication.java:127)
> 	... 30 more
> 
> 


-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
chris@webperformance.com                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org