Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jersey-dev] Not inside a request scope / The resource configuration is not modifiable in this context

Hi,

how does one even begin to debug cryptic exceptions like this? There's
no mention of which component is causing it.

MultiException stack 1 of 1
        java.lang.IllegalStateException: Not inside a request scope.
                at
org.glassfish.jersey.internal.guava.Preconditions.checkState(Preconditions.java:169)
                at
org.glassfish.jersey.process.internal.RequestScope.current(RequestScope.java:153)
                at
org.glassfish.jersey.inject.hk2.RequestContext.findOrCreate(RequestContext.java:55)
                at
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:666)
                at
org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:54)
                at
org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:988)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:998)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:976)
                at
org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.inject(AbstractHk2InjectionManager.java:202)
                at
org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.inject(ImmediateHk2InjectionManager.java:30)
                at
org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:423)
                at
org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:293)
                at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
                at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
                at
org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
                at
org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:292)
                at
org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:259)
                at
org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:311)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347)
                at javax.servlet.GenericServlet.init(GenericServlet.java:158)
                at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
                at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:986)
                at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871)
                at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
                at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
                at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1831)
                at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
                at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
                at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
                at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
                at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
                at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
                at
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
                at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
                at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
                at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
                at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
14-Apr-2020 21:14:58.686 SEVERE [main]
org.apache.catalina.core.StandardContext.loadOnStartup Servlet
[com.atomgraph.linkeddatahub.Application] in web application [] threw
load() exception
        java.lang.IllegalStateException: Not inside a request scope.
                at
org.glassfish.jersey.internal.guava.Preconditions.checkState(Preconditions.java:169)
                at
org.glassfish.jersey.process.internal.RequestScope.current(RequestScope.java:153)
                at
org.glassfish.jersey.inject.hk2.RequestContext.findOrCreate(RequestContext.java:55)
                at
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:666)
                at
org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:54)
                at
org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:988)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:998)
                at
org.jvnet.hk2.internal.ServiceLocatorImpl.inject(ServiceLocatorImpl.java:976)
                at
org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.inject(AbstractHk2InjectionManager.java:202)
                at
org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.inject(ImmediateHk2InjectionManager.java:30)
                at
org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:423)
                at
org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:293)
                at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
                at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
                at
org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
                at
org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:292)
                at
org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:259)
                at
org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:311)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347)
                at javax.servlet.GenericServlet.init(GenericServlet.java:158)
                at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
                at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:986)
                at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871)
                at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
                at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
                at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
                at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
                at
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1831)
                at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
                at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
                at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
                at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
                at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
                at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
                at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
                at
org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
                at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
                at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
                at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
                at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
                at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
                at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:498)
                at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
                at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
14-Apr-2020 21:15:06.548 SEVERE [https-openssl-nio-8443-exec-3]
org.apache.catalina.core.ApplicationContext.log Servlet.init() for
servlet [com.atomgraph.linkeddatahub.Application] threw exception
        java.lang.IllegalStateException: The resource configuration is
not modifiable in this context.
                at
org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(ResourceConfig.java:248)
                at
org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(ResourceConfig.java:195)
                at
org.glassfish.jersey.server.ResourceConfig.register(ResourceConfig.java:428)
                at
org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:306)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347)
                at javax.servlet.GenericServlet.init(GenericServlet.java:158)
                at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
                at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
                at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
                at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
                at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
                at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
                at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
                at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
                at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
                at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
                at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
                at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
                at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)
14-Apr-2020 21:15:06.551 SEVERE [https-openssl-nio-8443-exec-3]
org.apache.catalina.core.StandardWrapperValve.invoke Allocate
exception for servlet [com.atomgraph.linkeddatahub.Application]
        java.lang.IllegalStateException: The resource configuration is
not modifiable in this context.
                at
org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(ResourceConfig.java:248)
                at
org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(ResourceConfig.java:195)
                at
org.glassfish.jersey.server.ResourceConfig.register(ResourceConfig.java:428)
                at
org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:306)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
                at
org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347)
                at javax.servlet.GenericServlet.init(GenericServlet.java:158)
                at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
                at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
                at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
                at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
                at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
                at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
                at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
                at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
                at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
                at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
                at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
                at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
                at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
                at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)


Back to the top