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

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

    GitHub comment 1713#243804875

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

    How can I cope with "IllegalStateException: BeanFactory not initialized or already closed"?

    Stack Overflow | 6 years ago | user569825
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  3. 0

    issues in spring petclinic applicaiton

    Stack Overflow | 4 years ago | user2216702
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - c all 'refresh' before multicasting events via the context: Root WebApplicationCon text: startup date [Wed Mar 27 11:31:56 CDT 2013]; root of context hierarchy at org.springframework.context.support.AbstractApplic ationContext.getApp licationEventMulticaster(AbstractApplicationContex t.java:347) [spring-context-3. 2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.publis hEvent(AbstractApplicationContext.java:334) [spring-context-3.2.2.RELEASE.jar:3. 2.2.RELEASE] at org.springframework.context.support.AbstractApplic ationContext.doClos e(AbstractApplicationContext.java:1049) [spring-context-3.2.2.RELEASE.jar:3.2.2. RELEASE] at org.springframework.context.support.AbstractApplic ationContext.close( AbstractApplicationContext.java:1010) [spring-context-3.2.2.RELEASE.jar:3.2.2.RE LEASE] at org.springframework.web.context.ContextLoader.clos eWebApplicationCont ext(ContextLoader.java:558) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.springframework.web.context.ContextLoaderListe ner.contextDestroye d(ContextLoaderListener.java:143) [spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.apache.catalina.core.StandardContext.listenerS top(StandardContext .java:4831) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.StandardContext.stopInter nal(StandardContext .java:5478) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.stop(Lifecy cleBase.java:232) [ tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.start(Lifec ycleBase.java:160) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1559) [tomcat-embed-core-7.0.30.jar:7.0.30] at org.apache.catalina.core.ContainerBase$StartChild. call(ContainerBase. java:1549) [tomcat-embed-core-7.0.30.jar:7.0.30] at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303) [n a:1.6.0_20] at java.util.concurrent.FutureTask.run(FutureTask.jav a:138) [na:1.6.0_20 ] at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExec utor.java:886) [na:1.6.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor .java:908) [na:1.6.0_20]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Porting project JBoss AS 6 to JBoss AS 7

    Stack Overflow | 5 years ago | Rounak
    java.lang.IllegalStateException: Application was not properly initialize d at startup, could not find Factory: javax.faces.application.ApplicationFactory at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.jav a:894) [jsf-api.jar:] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319) [jsf-api .jar:] at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext .java:112) [jsf-impl.jar:] at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureList ener.java:325) [jsf-impl.jar:] at org.apache.catalina.core.StandardContext.listenerStop(StandardContext .java:3465) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContext.stop(StandardContext.java:39 70) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 888) [jbossweb-7.0.1.Final.jar:7.0.2.Final] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentS ervice.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(Se rviceControllerImpl.java:1824) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceCont rollerImpl.java:1759) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1110) [:1.7.0] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:603) [:1.7.0]
  6. 0

    incorporating ldap plugin with grails application

    Stack Overflow | 3 years ago | paul
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    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