com.google.inject.OutOfScopeException: Cannot access scoped [javax.servlet.http.HttpServletRequest]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request. at com.google.inject.servlet.InternalServletModule.provideHttpServletRequest(InternalServletModule.java:106) (via modules: com.google.inject.servlet.ServletModule -> com.google.inject.servlet.InternalServletModule) while locating javax.servlet.http.HttpServletRequest 1 error

GitHub | svenwb | 3 months ago
  1. 0

    com.google.inject.OutOfScopeException on inject javax.servlet.http.HttpServletRequest

    GitHub | 3 months ago | svenwb
    com.google.inject.OutOfScopeException: Cannot access scoped [javax.servlet.http.HttpServletRequest]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request. at com.google.inject.servlet.InternalServletModule.provideHttpServletRequest(InternalServletModule.java:106) (via modules: com.google.inject.servlet.ServletModule -> com.google.inject.servlet.InternalServletModule) while locating javax.servlet.http.HttpServletRequest 1 error
  2. 0

    dropwizard-guice add ContainerRequestFilter error

    Google Groups | 2 months ago | BingFeng Wang
    com.google.inject.OutOfScopeException: Cannot access scoped [javax.servlet.http.HttpServletRequest]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.
  3. 0

    HTTP pulls fail on 2.1.3

    Google Groups | 6 years ago | Rob Heittman
    com.google.inject.ProvisionException: Guice provision errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access scoped object. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.goog le.inject.servlet.GuiceFilter as a servlet filter for this request. while locating com.google.gerrit.server.CurrentUser 1 error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    dropwizard-guice add ContainerRequestFilter error

    Google Groups | 2 months ago | BingFeng Wang
    com.google.inject.OutOfScopeException: Cannot access scoped [javax.servlet.http.HttpServletRequest]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.
  6. 0

    Guice: Injecting Interceptors in ServletModule

    Stack Overflow | 5 years ago | Nial Darbey
    com.google.inject.OutOfScopeException: Cannot access scoped object. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.

    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. com.google.inject.OutOfScopeException

      Cannot access scoped [javax.servlet.http.HttpServletRequest]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.

      at com.google.inject.servlet.GuiceFilter.getContext()
    2. Guice - Servlet
      ServletScopes$1$1.get
      1. com.google.inject.servlet.GuiceFilter.getContext(GuiceFilter.java:165)
      2. com.google.inject.servlet.GuiceFilter.getOriginalRequest(GuiceFilter.java:147)
      3. com.google.inject.servlet.ServletScopes$1$1.get(ServletScopes.java:107)
      3 frames
    3. Google Guice - Core Library
      InjectorImpl$2.get
      1. com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      2. com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
      3. com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      4. com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
      4 frames
    4. com.squarespace.jersey2
      GuiceBindingDescriptor.create
      1. com.squarespace.jersey2.guice.GuiceBindingDescriptor.create(GuiceBindingDescriptor.java:66)
      1 frame
    5. ServiceLocator Default Implementation
      SystemDescriptor.create
      1. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
      1 frame
    6. com.squarespace.jersey2
      GuiceScopeContext.findOrCreate
      1. com.squarespace.jersey2.guice.GuiceScopeContext.findOrCreate(GuiceScopeContext.java:36)
      1 frame
    7. ServiceLocator Default Implementation
      ServiceHandleImpl.getService
      1. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
      2. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
      3. org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
      3 frames
    8. Jersey Core
      ContextInjectionResolver.resolve
      1. org.glassfish.jersey.internal.inject.ContextInjectionResolver.resolve(ContextInjectionResolver.java:126)
      1 frame
    9. jersey-core-server
      ServerRuntime$2.run
      1. org.glassfish.jersey.server.internal.inject.DelegatedInjectionValueFactoryProvider$1.provide(DelegatedInjectionValueFactoryProvider.java:107)
      2. org.glassfish.jersey.server.spi.internal.ParamValueFactoryWithSource.provide(ParamValueFactoryWithSource.java:71)
      3. org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:90)
      4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:127)
      5. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
      6. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
      7. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
      8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
      9. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
      10. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
      10 frames
    10. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
      6 frames
    11. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
      2 frames
    12. jersey-container-servlet-core
      ServletContainer.service
      1. org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
      2. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427)
      3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388)
      4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341)
      5. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228)
      5 frames
    13. Dropwizard Jetty Support
      NonblockingServletHolder.handle
      1. io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49)
      1 frame
    14. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
      1 frame
    15. Dropwizard Servlet Support
      ThreadNameFilter.doFilter
      1. io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:34)
      1 frame
    16. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
      1 frame
    17. Dropwizard Jersey Support
      AllowedMethodsFilter.doFilter
      1. io.dropwizard.jersey.filter.AllowedMethodsFilter.handle(AllowedMethodsFilter.java:50)
      2. io.dropwizard.jersey.filter.AllowedMethodsFilter.doFilter(AllowedMethodsFilter.java:44)
      2 frames
    18. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
      1 frame
    19. com.signavio.pex
      PexCorrelationIdFilter.doFilter
      1. com.signavio.pex.common.util.PexCorrelationIdFilter.doFilter(PexCorrelationIdFilter.java:32)
      1 frame
    20. Jetty
      HandlerWrapper.handle
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
      2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
      3. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1174)
      4. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      5. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1106)
      6. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      7. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      7 frames
    21. Metrics Integration for Jetty 9.1 and higher
      InstrumentedHandler.handle
      1. com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:240)
      1 frame
    22. Dropwizard Jetty Support
      RoutingHandler.handle
      1. io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51)
      1 frame
    23. org.eclipse.jetty
      GzipHandler.handle
      1. org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:396)
      1 frame
    24. Dropwizard Jetty Support
      BiDiGzipHandler.handle
      1. io.dropwizard.jetty.BiDiGzipHandler.handle(BiDiGzipHandler.java:68)
      1 frame
    25. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)
      2. org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:169)
      3. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
      4. org.eclipse.jetty.server.Server.handle(Server.java:524)
      5. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
      6. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
      7. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      8. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      9. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      9 frames
    26. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
      3. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
      3 frames
    27. Jetty
      QueuedThreadPool$2.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
      2 frames
    28. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame