java.lang.IllegalStateException: Cannot inject a custom principal into unauthenticated request

GitHub | ggrnd0 | 3 months ago
  1. 0

    GitHub comment 1713#243804875

    GitHub | 3 months ago | ggrnd0
    java.lang.IllegalStateException: Cannot inject a custom principal into unauthenticated request
  2. 0

    alfresco 4.2.d startup problems. | Alfresco Forums

    alfresco.com | 1 year ago
    java.lang.IllegalStateException: Unauthenticated
  3. 0

    How to use Bean Managed Transactions with EJB3, JPA and JTA | Geert Schuring

    wordpress.com | 8 months ago
    java.lang.IllegalStateException: Container AddStationBean: it is illegal to inject UserTransaction into a CMT bean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java mon amour: March 2011

    javamonamour.org | 4 months ago
    java.lang.IllegalStateException: Container bla: it is illegal to inject UserTransaction into a CMT bean
  6. 0

    Exception during use of dbexport feature on PostgreSQL database

    symmetricds | 1 year ago | onhala
    java.lang.IllegalStateException: Cannot translate a java.lang.Long into a byte[]

    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. java.lang.IllegalStateException

      Cannot inject a custom principal into unauthenticated request

      at io.dropwizard.auth.PrincipalContainerRequestValueFactory.provide()
    2. io.dropwizard.auth
      PrincipalContainerRequestValueFactory.provide
      1. io.dropwizard.auth.PrincipalContainerRequestValueFactory.provide(PrincipalContainerRequestValueFactory.java:20)
      2. io.dropwizard.auth.PrincipalContainerRequestValueFactory.provide(PrincipalContainerRequestValueFactory.java:12)
      2 frames
    3. jersey-core-server
      ParamInjectionResolver.resolve
      1. org.glassfish.jersey.server.internal.inject.ParamInjectionResolver.resolve(ParamInjectionResolver.java:134)
      1 frame
    4. ServiceLocator Default Implementation
      SystemDescriptor.create
      1. org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      2. org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      3. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      4. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      4 frames
    5. Jersey Core
      RequestScope.findOrCreate
      1. org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
      1 frame
    6. ServiceLocator Default Implementation
      SystemDescriptor.create
      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.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:692)
      4. org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:78)
      5. org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      6. org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      7. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      8. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      8 frames
    7. Jersey Core
      RequestScope.findOrCreate
      1. org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
      1 frame
    8. ServiceLocator Default Implementation
      SystemDescriptor.create
      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.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:692)
      4. org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:78)
      5. org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      6. org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      7. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      8. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      8 frames
    9. Jersey Core
      RequestScope.findOrCreate
      1. org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
      1 frame
    10. ServiceLocator Default Implementation
      SystemDescriptor.create
      1. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
      2. org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:679)
      3. org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:78)
      4. org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:211)
      5. org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:234)
      6. org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:357)
      7. org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
      7 frames
    11. Jersey Core
      RequestScope.findOrCreate
      1. org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:162)
      1 frame
    12. ServiceLocator Default Implementation
      ServiceLocatorImpl.getService
      1. org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
      2. org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:765)
      3. org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:704)
      3 frames
    13. Jersey Core
      Injections.getOrCreate
      1. org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
      1 frame
    14. jersey-core-server
      RoutingStage.apply
      1. org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:284)
      2. org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:74)
      3. org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:109)
      4. org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
      5. org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
      6. org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
      7. org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:112)
      8. org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:92)
      9. org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:61)
      9 frames
    15. Jersey Core
      Stages.process
      1. org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
      1 frame
    16. jersey-core-server
      ServerRuntime$2.run
      1. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:318)
      1 frame
    17. 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
    18. 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
    19. 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
    20. Dropwizard Jetty Support
      NonblockingServletHolder.handle
      1. io.dropwizard.jetty.NonblockingServletHolder.handle(NonblockingServletHolder.java:49)
      1 frame
    21. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
      1 frame
    22. Dropwizard Servlet Support
      ThreadNameFilter.doFilter
      1. io.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:34)
      1 frame
    23. Jetty
      ServletHandler$CachedChain.doFilter
      1. org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
      1 frame
    24. 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
    25. 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
    26. Metrics Integration for Jetty 9.1 and higher
      InstrumentedHandler.handle
      1. com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:240)
      1 frame
    27. Dropwizard Jetty Support
      RoutingHandler.handle
      1. io.dropwizard.jetty.RoutingHandler.handle(RoutingHandler.java:51)
      1 frame
    28. org.eclipse.jetty
      GzipHandler.handle
      1. org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:459)
      1 frame
    29. Dropwizard Jetty Support
      BiDiGzipHandler.handle
      1. io.dropwizard.jetty.BiDiGzipHandler.handle(BiDiGzipHandler.java:68)
      1 frame
    30. 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
    31. 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
    32. 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
    33. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame