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

    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
    5. com.squarespace.jersey2
      GuiceScopeContext.findOrCreate
      1. com.squarespace.jersey2.guice.GuiceScopeContext.findOrCreate(GuiceScopeContext.java:36)
      1 frame
    6. 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