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 stanbol-dev by Pooja H Bavishi, 1 year ago
Service factory returned null.
via stanbol-dev by Rupert Westenthaler, 9 months ago
Service factory returned null.
via Atlassian JIRA by Samuel Le Berrigaud [Atlassian], 1 year ago
Service factory exception: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/Cache;
via Atlassian JIRA by Samuel Le Berrigaud [Atlassian], 1 year ago
Service factory exception: com.google.common.cache.CacheBuilder.build(Lcom/google/common/cache/CacheLoader;)Lcom/google/common/cache/Cache;
via Atlassian JIRA by Alex Wei [Atlassian], 2 years ago
Service factory exception: java.lang.Exception: The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly.
org.osgi.framework.ServiceException: Service factory returned null.	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:341)	at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:35)	at org.apache.felix.framework.ServiceRegistrationImpl$ServiceFactoryPrivileged.run(ServiceRegistrationImpl.java:372)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:214)	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)	at org.apache.felix.framework.Felix.getService(Felix.java:3556)	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)	at org.apache.stanbol.enhancer.jersey.resource.EnhancementEnginesRootResource$1.addingService(EnhancementEnginesRootResource.java:113)	at org.apache.stanbol.enhancer.servicesapi.impl.NameBasedServiceTrackingState.addingService(NameBasedServiceTrackingState.java:161)	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)	at org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker.open(EnginesTracker.java:212)	at org.apache.stanbol.enhancer.jersey.resource.EnhancementEnginesRootResource.activate(EnhancementEnginesRootResource.java:134)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:606)	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:231)	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:39)	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:624)	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:508)	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:149)	at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:315)	at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:127)	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:871)	at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:838)	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:777)	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:308)	at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:35)	at org.apache.felix.framework.ServiceRegistrationImpl$ServiceFactoryPrivileged.run(ServiceRegistrationImpl.java:372)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:214)	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:320)	at org.apache.felix.framework.Felix.getService(Felix.java:3556)	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)	at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:572)	at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2012)	at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:328)	at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:304)	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1480)	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1401)	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:1210)	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:1148)	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1432)	at org.apache.felix.framework.util.EventDispatcher$4.run(EventDispatcher.java:925)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:921)	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4401)	at org.apache.felix.framework.Felix.registerService(Felix.java:3411)	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:1003)	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:992)	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:134)	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:1044)	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:841)	at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:419)	at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:376)	at org.apache.felix.scr.impl.BundleComponentActivator.initialize(BundleComponentActivator.java:172)	at org.apache.felix.scr.impl.BundleComponentActivator.(BundleComponentActivator.java:120)	at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:258)	at org.apache.felix.scr.impl.Activator.access$000(Activator.java:45)	at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:185)	at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)	at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:479)	at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:414)	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)	at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:443)	at org.apache.felix.framework.util.EventDispatcher$3.run(EventDispatcher.java:861)	at java.security.AccessController.doPrivileged(Native Method)	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:858)	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4385)	at org.apache.felix.framework.Felix.startBundle(Felix.java:2080)	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1279)	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)	at java.lang.Thread.run(Thread.java:745)