java.lang.NullPointerException

Apereo Issues | Earl Fogel | 9 years 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

    I built CAS with support for OpenID as per this page: http://www.ja-sig.org/wiki/display/CASUM/OpenID When I test OpenID using http://www.biff.org.uk/dave/openid/guestbook.cgi, I see the modified CAS login page, but as soon as I login, CAS throws a NullPointerException. Here's a snippet from cas.log: 2008-03-26 15:02:19,485 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - AuthenticationHandler: org.jasig.cas.authentication.handler.support.JaasAuthenticationHandler successfully authenticated the user which provided the following credentials: elf123 2008-03-26 15:02:19,500 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[cas]] - Servlet.service() for servlet cas threw exception java.lang.NullPointerException at org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:206) at org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:228) at org.jasig.cas.web.flow.GenerateServiceTicketAction.doExecute(GenerateServiceTicketAction.java:37) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203) at org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142) at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61) at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180) at org.springframework.webflow.engine.State.enter(State.java:200) at org.springframework.webflow.engine.Transition.execute(Transition.java:229) at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:58) at org.springframework.webflow.engine.State.enter(State.java:200) at org.springframework.webflow.engine.Transition.execute(Transition.java:229) at org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112) at org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)

    Apereo Issues | 9 years ago | Earl Fogel
    java.lang.NullPointerException
  2. 0

    I built CAS with support for OpenID as per this page: http://www.ja-sig.org/wiki/display/CASUM/OpenID When I test OpenID using http://www.biff.org.uk/dave/openid/guestbook.cgi, I see the modified CAS login page, but as soon as I login, CAS throws a NullPointerException. Here's a snippet from cas.log: 2008-03-26 15:02:19,485 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] - AuthenticationHandler: org.jasig.cas.authentication.handler.support.JaasAuthenticationHandler successfully authenticated the user which provided the following credentials: elf123 2008-03-26 15:02:19,500 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[cas]] - Servlet.service() for servlet cas threw exception java.lang.NullPointerException at org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:206) at org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:228) at org.jasig.cas.web.flow.GenerateServiceTicketAction.doExecute(GenerateServiceTicketAction.java:37) at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203) at org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142) at org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61) at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180) at org.springframework.webflow.engine.State.enter(State.java:200) at org.springframework.webflow.engine.Transition.execute(Transition.java:229) at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:58) at org.springframework.webflow.engine.State.enter(State.java:200) at org.springframework.webflow.engine.Transition.execute(Transition.java:229) at org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112) at org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)

    Apereo Issues | 9 years ago | Earl Fogel
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket()
    2. Jasig CAS Core
      GenerateServiceTicketAction.doExecute
      1. org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:206)
      2. org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:228)
      3. org.jasig.cas.web.flow.GenerateServiceTicketAction.doExecute(GenerateServiceTicketAction.java:37)
      3 frames
    3. Spring Web Flow
      Flow.onEvent
      1. org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203)
      2. org.springframework.webflow.engine.AnnotatedAction.execute(AnnotatedAction.java:142)
      3. org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61)
      4. org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180)
      5. org.springframework.webflow.engine.State.enter(State.java:200)
      6. org.springframework.webflow.engine.Transition.execute(Transition.java:229)
      7. org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:58)
      8. org.springframework.webflow.engine.State.enter(State.java:200)
      9. org.springframework.webflow.engine.Transition.execute(Transition.java:229)
      10. org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112)
      11. org.springframework.webflow.engine.Flow.onEvent(Flow.java:572)
      11 frames