com.google.inject.ProvisionException: Error while locating instance bound to desktopbeautifier.persistence.ImageManager

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Gili, 6 months ago
Error while locating instance bound to desktopbeautifier.persistence.ImageManager
java.lang.NullPointerException:
at com.wideplay.warp.jpa.EntityManagerFactoryHolder.getCurrentEntityManager(EntityManagerFactoryHolder.java:101)
at com.wideplay.warp.jpa.EntityManagerFactoryHolder.getEntityManager(EntityManagerFactoryHolder.java:128)
at com.wideplay.warp.jpa.EntityManagerProvider.get(EntityManagerProvider.java:42)
at com.wideplay.warp.jpa.EntityManagerProvider.get(EntityManagerProvider.java:33)
at com.google.inject.BoundProviderFactory.get(BoundProviderFactory.java:60)
at com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.java:640)
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.InjectorImpl$SingleFieldInjector.inject(InjectorImpl.java:473)
at com.google.inject.BinderImpl$StaticInjection$2.call(BinderImpl.java:463)
at com.google.inject.BinderImpl$StaticInjection$2.call(BinderImpl.java:461)
at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:747)
at com.google.inject.BinderImpl$StaticInjection.runMemberInjectors(BinderImpl.java:460)
at com.google.inject.BinderImpl.createInjector(BinderImpl.java:285)
at com.google.inject.Guice.createInjector(Guice.java:79)
at com.google.inject.Guice.createInjector(Guice.java:53)
at desktopbeautifier.servlet.ServletContextInjector.getInjector(ServletContextInjector.java:23)
at com.wideplay.warp.servlet.WarpServletContextListener.contextInitialized(WarpServletContextListener.java:39)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.