org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.jasig.cas.web.flow.SendTicketGrantingTicketAction@53e9a90f in state 'sendTicketGrantingTicket' of flow 'login' -- action execution attributes were 'map[[empty]]'

  1. 0

    CAS: Content encryption header (enc) not set

    Stack Overflow | 3 months ago | Dennis von Eich
    org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing org.jasig.cas.web.flow.SendTicketGrantingTicketAction@53e9a90f in state 'sendTicketGrantingTicket' of flow 'login' -- action execution attributes were 'map[[empty]]'
  2. 0

    Error verifying signature of JWT signed with ES256 on aws lambda function

    Stack Overflow | 8 months ago | Laurent Petit
    org.jose4j.lang.UnresolvableKeyException: Unable to find a suitable verification key for JWS w/ header {"kid":"staging_0","alg":"ES256"} due to an unexpected exception (org.jose4j.lang.InvalidAlgorithmException: ES256 is an unknown, unsupported or unavailable alg algorithm (not one of [none, HS256, HS384, HS512, RS256, RS384, RS512]).) selecting from keys: [org.jose4j.jwk.EllipticCurveJsonWebKey{kty=EC, kid=staging_0, x=jz84fmrLuG5T9cnT-ydQdGjqk2iX2PsVYIcABTkXiqc, y=6oGYrjWEjhUSea5q7izitbcp5o7QlkArnm49OA0cPlI, crv=P-256}, org.jose4j.jwk.EllipticCurveJsonWebKey{kty=EC, kid=prod_0, x=cd5u73HnAueI1mgjuk9JSvU0ekonRCafffwaG-_D5VM, y=QjOMm1fqw3Aevkzzd-RVmlcmGMwPS9uajFN4nLnTwFc, crv=P-256}]

    Root Cause Analysis

    1. org.jose4j.lang.InvalidAlgorithmException

      Content encryption header (enc) not set.

      at org.jose4j.jwe.JsonWebEncryption.getContentEncryptionAlgorithm()
    2. org.jose4j.jwe
      JsonWebEncryption.getCompactSerialization
      1. org.jose4j.jwe.JsonWebEncryption.getContentEncryptionAlgorithm(JsonWebEncryption.java:131)
      2. org.jose4j.jwe.JsonWebEncryption.getCompactSerialization(JsonWebEncryption.java:242)
      2 frames
    3. Jasig CAS Core
      DefaultCipherExecutor$AjcClosure1.run
      1. org.jasig.cas.util.DefaultCipherExecutor.encryptValue(DefaultCipherExecutor.java:133)
      2. org.jasig.cas.util.DefaultCipherExecutor.encode_aroundBody0(DefaultCipherExecutor.java:86)
      3. org.jasig.cas.util.DefaultCipherExecutor$AjcClosure1.run(DefaultCipherExecutor.java:1)
      3 frames
    4. AspectJ runtime
      JoinPointImpl.proceed
      1. org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      1 frame
    5. org.jasig.inspektr
      TraceLogAspect.traceMethod
      1. org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
      1 frame
    6. Jasig CAS Core
      DefaultCasCookieValueManager$AjcClosure1.run
      1. org.jasig.cas.util.DefaultCipherExecutor.encode(DefaultCipherExecutor.java:85)
      2. org.jasig.cas.util.DefaultCipherExecutor.encode(DefaultCipherExecutor.java:1)
      3. org.jasig.cas.web.support.DefaultCasCookieValueManager.buildCookieValue_aroundBody0(DefaultCasCookieValueManager.java:72)
      4. org.jasig.cas.web.support.DefaultCasCookieValueManager$AjcClosure1.run(DefaultCasCookieValueManager.java:1)
      4 frames
    7. AspectJ runtime
      JoinPointImpl.proceed
      1. org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      1 frame
    8. org.jasig.inspektr
      TraceLogAspect.traceMethod
      1. org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
      1 frame
    9. Jasig CAS Core
      CookieRetrievingCookieGenerator$AjcClosure1.run
      1. org.jasig.cas.web.support.DefaultCasCookieValueManager.buildCookieValue(DefaultCasCookieValueManager.java:53)
      2. org.jasig.cas.web.support.CookieRetrievingCookieGenerator.addCookie_aroundBody0(CookieRetrievingCookieGenerator.java:67)
      3. org.jasig.cas.web.support.CookieRetrievingCookieGenerator$AjcClosure1.run(CookieRetrievingCookieGenerator.java:1)
      3 frames
    10. AspectJ runtime
      JoinPointImpl.proceed
      1. org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
      1 frame
    11. org.jasig.inspektr
      TraceLogAspect.traceMethod
      1. org.jasig.inspektr.aspect.TraceLogAspect.traceMethod(TraceLogAspect.java:44)
      1 frame
    12. Jasig CAS Core
      SendTicketGrantingTicketAction.doExecute
      1. org.jasig.cas.web.support.CookieRetrievingCookieGenerator.addCookie(CookieRetrievingCookieGenerator.java:66)
      2. org.jasig.cas.web.flow.SendTicketGrantingTicketAction.doExecute(SendTicketGrantingTicketAction.java:85)
      2 frames
    13. Spring Web Flow
      FlowHandlerAdapter.handle
      1. org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
      2. org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
      3. org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:77)
      4. org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
      5. org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)
      6. org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:51)
      7. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
      8. org.springframework.webflow.engine.State.enter(State.java:194)
      9. org.springframework.webflow.engine.Transition.execute(Transition.java:228)
      10. org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395)
      11. org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
      12. org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116)
      13. org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547)
      14. org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390)
      15. org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
      16. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
      17. org.springframework.webflow.engine.State.enter(State.java:194)
      18. org.springframework.webflow.engine.Transition.execute(Transition.java:228)
      19. org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:395)
      20. org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
      21. org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:116)
      22. org.springframework.webflow.engine.Flow.handleEvent(Flow.java:547)
      23. org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:390)
      24. org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
      25. org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:231)
      26. org.springframework.webflow.engine.ViewState.resume(ViewState.java:195)
      27. org.springframework.webflow.engine.Flow.resume(Flow.java:537)
      28. org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
      29. org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)
      30. org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:228)
      30 frames
    14. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
      2. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      3. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
      4. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
      4 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
      1 frame
    16. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
      1 frame
    17. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    19. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    20. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    21. org.jasig.cas
      ResponseHeadersEnforcementFilter.doFilter
      1. org.jasig.cas.security.ResponseHeadersEnforcementFilter.doFilter(ResponseHeadersEnforcementFilter.java:227)
      1 frame
    22. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
      2 frames
    23. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    24. org.jasig.cas
      RequestParameterPolicyEnforcementFilter.doFilter
      1. org.jasig.cas.security.RequestParameterPolicyEnforcementFilter.doFilter(RequestParameterPolicyEnforcementFilter.java:250)
      1 frame
    25. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
      2 frames
    26. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    27. org.jasig.inspektr
      ClientInfoThreadLocalFilter.doFilter
      1. org.jasig.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:62)
      1 frame
    28. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames
    29. Spring
      DelegatingFilterProxy.doFilter
      1. org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
      2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
      3. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
      4. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
      4 frames
    30. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      10 frames
    31. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:279)
      3 frames
    32. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    33. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    34. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame