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 | 2 months ago
  1. 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.
  2. 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
  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