java.lang.IllegalStateException: Not inside a request scope.

Stack Overflow | Sebastian Frey | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using Sessions from AuthFitler

    Google Groups | 3 weeks ago | joshg
    javax.servlet.ServletException: io.dropwizard.jersey.setup.JerseyServletContainer-c6634d@742729be==io.dropwizard.jersey.setup.JerseyServletContainer,1,false
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not inside a request scope.

      at jersey.repackaged.com.google.common.base.Preconditions.checkState()
    2. jersey-repackaged-guava
      Preconditions.checkState
      1. jersey.repackaged.com.google.common.base.Preconditions.checkState(Preconditions.java:173)
      1 frame
    3. Jersey Core
      RequestScope.findOrCreate
      1. org.glassfish.jersey.process.internal.RequestScope.current(RequestScope.java:233)
      2. org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:158)
      2 frames
    4. ServiceLocator Default Implementation
      IterableProviderImpl.get
      1. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
      2. org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:765)
      3. org.jvnet.hk2.internal.ServiceLocatorImpl.getUnqualifiedService(ServiceLocatorImpl.java:772)
      4. org.jvnet.hk2.internal.IterableProviderImpl.get(IterableProviderImpl.java:111)
      4 frames
    5. jersey-core-server
      ParamInjectionResolver.resolve
      1. org.glassfish.jersey.server.internal.inject.AbstractContainerRequestValueFactory.getContainerRequest(AbstractContainerRequestValueFactory.java:71)
      2. org.glassfish.jersey.server.internal.inject.PathParamValueFactoryProvider$PathParamValueFactory.provide(PathParamValueFactoryProvider.java:93)
      3. org.glassfish.jersey.server.internal.inject.ParamInjectionResolver.resolve(ParamInjectionResolver.java:134)
      3 frames
    6. ServiceLocator Default Implementation
      SystemDescriptor.dispose
      1. org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      2. org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      3. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      4. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      5. org.jvnet.hk2.internal.PerLookupContext.findOrCreate(PerLookupContext.java:70)
      6. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
      7. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
      8. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
      9. org.jvnet.hk2.internal.FactoryCreator.dispose(FactoryCreator.java:175)
      10. org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:526)
      10 frames
    7. Jersey Core
      RequestScope$Instance.release
      1. org.glassfish.jersey.process.internal.RequestScope$Instance.remove(RequestScope.java:532)
      2. org.glassfish.jersey.process.internal.RequestScope$Instance.release(RequestScope.java:549)
      2 frames
    8. jersey-core-server
      ServerRuntime$AsyncResponder.resume
      1. org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:968)
      2. org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:922)
      2 frames
    9. de.moss.ems
      AbstractCatalogResource.lambda$asyncGetRequest$0
      1. de.moss.ems.rest.resource.AbstractBaseResource.send(AbstractBaseResource.java:118)
      2. de.moss.ems.rest.resource.AbstractBaseResource.resume(AbstractBaseResource.java:165)
      3. de.moss.ems.rest.resource.catalog.CatalogsResource.handleGet(CatalogsResource.java:49)
      4. de.moss.ems.rest.resource.catalog.AbstractCatalogResource.lambda$asyncGetRequest$0(AbstractCatalogResource.java:44)
      4 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames