com.google.inject.ProvisionException: Error while locating instance bound to desktopbeautifier.web.RequestContext


Solutions on the web

Solution icon of googlegroups
via Google Groups by Gili, 4 months ago
Error while locating instance bound to desktopbeautifier.web.RequestContext

Stack trace

com.google.inject.ProvisionException: Error while locating instance
  bound to desktopbeautifier.web.RequestContext
	at desktopbeautifier.web.Application.<init>(Application.java:89)
	at com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.java:646)
	at com.google.inject.InjectorImpl.getParameters(InjectorImpl.java:666)
	at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:140)
	at com.google.inject.InjectorImpl$ImplicitBinding.get(InjectorImpl.java:1006)
	at com.google.inject.BindingBuilderImpl$FactoryProxy.get(BindingBuilderImpl.java:299)
	at com.google.inject.InjectorImpl$9$1.call(InjectorImpl.java:708)
	at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:747)
	at com.google.inject.InjectorImpl$9.get(InjectorImpl.java:702)
	at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:728)
	at org.apache.wicket.guice.GuiceWebApplicationFactory.createApplication(GuiceWebApplicationFactory.java:176)
	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.wideplay.warp.servlet.OutOfScopeException: Cannot
access scoped object. Either we are not currently inside an HTTP
Servlet request, or you may have forgotten to apply
com.wideplay.warp.servlet.WebFilter as a servlet filter for this
request.
	at com.wideplay.warp.servlet.ContextManager.getContext(ContextManager.java:70)
	at com.wideplay.warp.servlet.ContextManager.getRequest(ContextManager.java:60)
	at com.wideplay.warp.servlet.Servlets$2$1.get(Servlets.java:60)
	at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
	at com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.java:640)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.