Closed glassfishrobot closed 9 years ago
Reported by arunkumarl87
@AdamLindenthal said: Hi Arun,
could you please be a bit more specific? Just pasting the exception with no comments at all does not help much... We would appreciate more information about the environment and configuration (the more and detailed, the better - don't hesitate to paste code and config snippets, etc). Of course, a minimalistic maven based reproducer test case would be best.
From your current bug report we cannot even deduct which Jersey version you are using. Regards, Adam
@AdamLindenthal said: Closing the issue as incomplete for now, as the reporter did not respond for quite some while. @Arun - feel free to reopen once you've got some more details to provide (see the previous comment).
This issue was imported from java.net JIRA JERSEY-2655
Marked as incomplete on Wednesday, October 8th 2014, 12:19:04 pm
ava.lang.NullPointerException: null at org.glassfish.hk2.utilities.ServiceLocatorUtilities.enablePerThreadScope(ServiceLocatorUtilities.java:100) at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:141) at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:123) at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:304)
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:285)
at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.sling.servlets.resolver.internal.SlingServletResolver.createServlet(SlingServletResolver.java:964)
at org.apache.sling.servlets.resolver.internal.SlingServletResolver.bindServlet(SlingServletResolver.java:912)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
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.BindMethod.invoke(BindMethod.java:37)
at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1608)
at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1593)
at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:382)
at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:331)
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.invokeServiceListenerCallback(EventDispatcher.java:940)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4425)
at org.apache.felix.framework.Felix.registerService(Felix.java:3429)
at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
at org.ops4j.peaberry.osgi.OSGiServiceExport.exportOSGiService(OSGiServiceExport.java:69)
at org.ops4j.peaberry.osgi.OSGiServiceExport.(OSGiServiceExport.java:46)
at org.ops4j.peaberry.osgi.OSGiServiceRegistry.add(OSGiServiceRegistry.java:59)
at org.ops4j.peaberry.internal.ServiceSettings.getExport(ServiceSettings.java:180)
at org.ops4j.peaberry.internal.ExportedServiceProvider.get(ExportedServiceProvider.java:45)
at org.ops4j.peaberry.internal.ExportedServiceProvider.get(ExportedServiceProvider.java:31)
at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60)
at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944)
at com.erac.carshare.activator.GuiceActivator.start(GuiceActivator.java:97)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:4861)
at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4128)
at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:178)
at java.lang.Thread.run(Thread.java:745)
Environment
OSGI - Felix