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 | wbf1013 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    when i add a filter to jersey , then Jersey error

    GitHub | 5 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

    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.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

      at com.google.inject.internal.InjectorImpl$2.get()
    2. Google Guice - Core Library
      InjectorImpl$2.get
      1. com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1025)
      1 frame
    3. com.squarespace.jersey2
      GuiceBindingDescriptor.create
      1. com.squarespace.jersey2.guice.GuiceBindingDescriptor.create(GuiceBindingDescriptor.java:66)
      1 frame
    4. ServiceLocator Default Implementation
      SystemDescriptor.create
      1. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
      1 frame