Hi, Scott! Thanks! It works!
Well, not exactly "works". It returns to the OpenID application without authentication, but CAS Server doesn't crash. I have to read a little more about OpenId to understand the full problem, but now it seems that is not CAS fault. See you! Jaume Scott Battaglia wrote: > In the applicationContext.xml, look for the following line: > > <entry > > key="org.jasig.cas.authentication.principal.OpenIdService" > value-ref="serviceTicketUniqueIdGenerator" /> > > If needs to be changed. The actual key should be > "org.jasig.cas.support.openid.authentication.principal.OpenIdService" > > I'll file a JIRA issue to fix this for CAS 3.1.2. > > Thanks > -Scott > > On Jan 8, 2008 7:17 AM, Jaume Moral Ros <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, Scott > > Sorry, I wrote only part of the excepcion stacktrace. The problem in in > grantServiceTicket() method of CentralAuthenticationServiceImpl. > > Ah, I'm using CAS 3.1. > > java.lang.NullPointerException > > org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:206) > > org.jasig.cas.CentralAuthenticationServiceImpl.grantServiceTicket(CentralAuthenticationServiceImpl.java:228) > > > org.jasig.cas.web.flow.GenerateServiceTicketAction.doExecute(GenerateServiceTicketAction.java:37) > > org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:203) > org.springframework.webflow.engine.AnnotatedAction.execute > (AnnotatedAction.java:142) > > org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:61) > (and then the stack trace is the same than the other exception) > > Thanks! > > > Scott Battaglia wrote: > > Jaume, > > > > If you can locate the line number that is throwing the > > NullPointerException that would allow me to help you debug better. > > > > -Scott > > > > On Jan 3, 2008 9:41 AM, Jaume Moral Ros < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: > > > > Hello, Scott > > > > I see it on screen. > > > > exception > > > > org.springframework.web.util.NestedServletException: Request > processing > > failed; nested exception is > > org.springframework.webflow.engine.ActionExecutionException : > Exception > > thrown executing [EMAIL PROTECTED] targetAction = > > [EMAIL PROTECTED], > attributes = > > map[[empty]]] in state 'generateServiceTicket' of flow > 'login-webflow' > > -- action execution attributes were 'map[[empty]]'; nested > exception is > > java.lang.NullPointerException > > > > > > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:487) > > > > > > > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440) > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java > :115) > > > > root cause > > > > org.springframework.webflow.engine.ActionExecutionException: > Exception > > thrown executing [ [EMAIL PROTECTED] targetAction = > > [EMAIL PROTECTED] , > attributes = > > map[[empty]]] in state 'generateServiceTicket' of flow > 'login-webflow' > > -- action execution attributes were 'map[[empty]]'; nested > exception is > > java.lang.NullPointerException > > > > > > org.springframework.webflow.engine.ActionExecutor.execute(ActionExecutor.java:68) > > > > org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:180) > > org.springframework.webflow.engine.State.enter (State.java:200) > > > org.springframework.webflow.engine.Transition.execute(Transition.java:229) > > > > org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:58) > > org.springframework.webflow.engine.State.enter (State.java:200) > > > org.springframework.webflow.engine.Transition.execute(Transition.java:229) > > > > org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112) > > org.springframework.webflow.engine.Flow.onEvent (Flow.java:572) > > > > org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java:208) > > org.springframework.webflow.engine.ActionState.doEnter > (ActionState.java:185) > > org.springframework.webflow.engine.State.enter (State.java:200) > > > org.springframework.webflow.engine.Transition.execute(Transition.java:229) > > > org.springframework.webflow.engine.TransitionableState.onEvent > (TransitionableState.java:112) > > org.springframework.webflow.engine.Flow.onEvent (Flow.java:572) > > > > org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent(RequestControlContextImpl.java > :208) > > > > org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:185) > > org.springframework.webflow.engine.State.enter (State.java:200) > > org.springframework.webflow.engine.Transition.execute > (Transition.java:229) > > > > org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112) > > org.springframework.webflow.engine.Flow.onEvent (Flow.java:572) > > > > org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent > (RequestControlContextImpl.java:208) > > > > org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:185) > > org.springframework.webflow.engine.State.enter (State.java:200) > > org.springframework.webflow.engine.Transition.execute > (Transition.java:229) > > > > org.springframework.webflow.engine.TransitionableState.onEvent(TransitionableState.java:112) > > org.springframework.webflow.engine.Flow.onEvent (Flow.java:572) > > > > org.springframework.webflow.engine.impl.RequestControlContextImpl.signalEvent > (RequestControlContextImpl.java:208) > > > > org.springframework.webflow.engine.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java > > :214) > > org.springframework.webflow.executor.FlowExecutorImpl.resume > (FlowExecutorImpl.java:245) > > > > org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:115) > > > > org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal > > > (FlowController.java:172) > > > > org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) > > > org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle > (SimpleControllerHandlerAdapter.java > > :48) > > > > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857) > > org.springframework.web.servlet.DispatcherServlet.doService > (DispatcherServlet.java:792) > > org.springframework.web.servlet.FrameworkServlet.processRequest > > (FrameworkServlet.java:475) > > > > org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java > :440) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > javax.servlet.http.HttpServlet.service(HttpServlet.java :802) > > > > org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java > :115) > > > > root cause > > > > java.lang.NullPointerException > > > > > > > > > > Scott Battaglia wrote: > > > Jamue, > > > > > > If you look in the cas.log file do you see the specific stack > > trace error? > > > > > > -Scott > > > > > > > > > On Jan 3, 2008 5:57 AM, Jaume Moral Ros < > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > > > <mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>>> wrote: > > > > > > Hi everybody! > > > > > > I'm trying to configure my CAS to use as OpenID server. I > > followed the > > > wiki page http://www.ja-sig.org/wiki/display/CASUM/OpenID > > > > > > But I get an exception when trying to login in an > external > > OpenID > > > application with my OpenID user (which is > > > http://www.fib.upc.es/openid/a0000000) > > > > > > org.springframework.web.util.NestedServletException : > Request > > processing > > > failed; nested exception is > > > > org.springframework.webflow.engine.ActionExecutionException : > > Exception > > > thrown executing [EMAIL PROTECTED] targetAction = > > > [EMAIL PROTECTED], > > attributes = > > > map[[empty]]] in state 'generateServiceTicket' of flow > > 'login-webflow' > > > -- action execution attributes were 'map[[empty]]'; nested > > exception is > > > java.lang.NullPointerException > > > > > > > > > Everything works OK without OpenID (normal CAS server) > > > > > > Any idea? Whan can I do? > > > > > > Jaume Moral > > > LCFIB > > > _______________________________________________ > > > Yale CAS mailing list > > > [email protected] <mailto:[email protected]> > <mailto: [email protected] <mailto:[email protected]>> <mailto: > > [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>>> > > > http://tp.its.yale.edu/mailman/listinfo/cas > > > > > > > > > > > > > > > -- > > > -Scott Battaglia > > > > > > LinkedIn: http://www.linkedin.com/in/scottbattaglia > > > < http://www.linkedin.com/in/scottbattaglia> > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > _______________________________________________ > > > Yale CAS mailing list > > > [email protected] <mailto:[email protected]> <mailto: > [email protected] <mailto:[email protected]>> > > > http://tp.its.yale.edu/mailman/listinfo/cas > > < http://tp.its.yale.edu/mailman/listinfo/cas> > > _______________________________________________ > > Yale CAS mailing list > > [email protected] <mailto:[email protected]> > <mailto:[email protected] <mailto:[email protected]>> > > http://tp.its.yale.edu/mailman/listinfo/cas > <http://tp.its.yale.edu/mailman/listinfo/cas> > > <http://tp.its.yale.edu/mailman/listinfo/cas> > > > > > > > > > > -- > > -Scott Battaglia > > > > LinkedIn: http://www.linkedin.com/in/scottbattaglia > > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > Yale CAS mailing list > > [email protected] <mailto:[email protected]> > > http://tp.its.yale.edu/mailman/listinfo/cas > _______________________________________________ > Yale CAS mailing list > [email protected] <mailto:[email protected]> > http://tp.its.yale.edu/mailman/listinfo/cas > > > > > -- > -Scott Battaglia > > LinkedIn: http://www.linkedin.com/in/scottbattaglia > <http://www.linkedin.com/in/scottbattaglia> > > > ------------------------------------------------------------------------ > > _______________________________________________ > Yale CAS mailing list > [email protected] > http://tp.its.yale.edu/mailman/listinfo/cas _______________________________________________ Yale CAS mailing list [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
