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.

Google Groups | BingFeng Wang | 8 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

    dropwizard-guice add ContainerRequestFilter error

    Google Groups | 8 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.
  2. 0

    HTTP pulls fail on 2.1.3

    Google Groups | 7 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
  3. 0

    when i add a filter to jersey , then Jersey error

    GitHub | 8 months ago | wbf1013
    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
  4. Speed up your debug routine!

    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