We actually recommend you bind whatever you need from HttpServletRequest directly to the Credentials object that you're interested in. But what you're using obviously works too.
-Scott -Scott Battaglia PGP Public Key Id: 0x383733AA LinkedIn: http://www.linkedin.com/in/scottbattaglia On Wed, Oct 1, 2008 at 12:38 PM, jlcampos <[EMAIL PROTECTED]>wrote: > > Hi Scott, is there any other way that I could get access to the > servletrequest? I need to upload a file and pass some other parameters, > like > "from which application is the user accessing". > > Best Regards > > scott_battaglia wrote: > > > > Any reason why you're using the LegacyCasCredentials? It implies you're > > writing to the old API which isn't recommended. > > > > -Scott > > > > -Scott Battaglia > > PGP Public Key Id: 0x383733AA > > LinkedIn: http://www.linkedin.com/in/scottbattaglia > > > > > > On Tue, Sep 30, 2008 at 9:25 PM, jlcampos > > <[EMAIL PROTECTED]>wrote: > > > >> > >> Hi Scott, thanks for your help. > >> > >> Finally I got it, when I return false in my PasswordHandler, a > >> TicketException is thrown, I dont know where but the flashScope gets > >> populated with spring's BindException which contains in its target > object > >> property the LegacyCasCredentials, and in consecuence the servletrequest > >> property of LegacyCasCredentials as DefaultMultipartHttpServletRequest. > I > >> dont know if this is a problem exclusively of > >> DefaultMultipartHttpServletRequest or if we use just HttpServletRequest > >> the > >> NotSerializableException can occur? I dont know if HttpServletRequest > >> implementations are serializable. > >> > >> What do you think about all this. > >> > >> Best Regards > >> > >> > >> > >> > >> scott_battaglia wrote: > >> > > >> > Probably because the flow ends if you successfully authenticate and > >> you're > >> > redirected. > >> > > >> > -Scott > >> > > >> > -Scott Battaglia > >> > PGP Public Key Id: 0x383733AA > >> > LinkedIn: http://www.linkedin.com/in/scottbattaglia > >> > > >> > > >> > On Tue, Sep 30, 2008 at 2:41 PM, jlcampos > >> > <[EMAIL PROTECTED]>wrote: > >> > > >> >> > >> >> Im seeing that the error is thrown in FlowsessionImpl line 151 > >> >> > >> >> public void writeExternal(ObjectOutput out) line with > >> >> out.writeObject(flashMap); > >> >> > >> >> The question is, why when there is a success authentication the > >> flashMap > >> >> doesnot contain the DefaultMultipartHttpServletRequest and when > there > >> is > >> >> an > >> >> error it does? > >> >> > >> >> Any help will be highly appreciated. > >> >> > >> >> Regards > >> >> > >> >> > >> >> scott_battaglia wrote: > >> >> > > >> >> > It has to do with the fact that whatever you're trying to store > >> isn't > >> >> > serializable. My guess is the Web Flow is attempting to store it > in > >> >> its > >> >> > flow session. > >> >> > > >> >> > -Scott > >> >> > > >> >> > -Scott Battaglia > >> >> > PGP Public Key Id: 0x383733AA > >> >> > LinkedIn: http://www.linkedin.com/in/scottbattaglia > >> >> > > >> >> > > >> >> > On Sun, Sep 28, 2008 at 5:31 PM, jlcampos > >> >> > <[EMAIL PROTECTED]>wrote: > >> >> > > >> >> >> > >> >> >> Ok, I allready trace down the problem, in the > >> >> >> AuthenticationViaFomrAction, > >> >> >> when there is a TicketException, the populateErrorsInstance sets > >> >> >> BindingException objects to flash scope, but I still have no idea > >> of > >> >> why > >> >> >> this action causes the NotSerializableException. > >> >> >> > >> >> >> Please help. > >> >> >> > >> >> >> Regards > >> >> >> > >> >> >> jlcampos wrote: > >> >> >> > > >> >> >> > Hi, > >> >> >> > > >> >> >> > Im integrating CAS to an existing proyect which uses an > encrypted > >> >> file > >> >> >> as > >> >> >> > username and a manually input password. I already implemented a > >> >> >> > PasswordHandler in order to obtain the file from request, > decrypt > >> it > >> >> an > >> >> >> > read its data, everything is fine whenever I return true from my > >> >> >> > PasswordHandler, but when I return false, e.g. due to an not > >> found > >> >> >> user, > >> >> >> > Im getting ContinuationCreationException: Could not serialize > >> flow > >> >> >> > execution, I know this is spring webflow related but I want your > >> >> >> comments > >> >> >> > on why when I return false from my PasswordHandler the > >> serialization > >> >> >> > process cannot be achived and why when I return true it get > >> >> achieved. > >> >> >> > > >> >> >> > The stack trace follows > >> >> >> > > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.execution.repository.continuation.ContinuationCreationException: > >> >> >> > Could not serialize flow execution; make sure all objects stored > >> in > >> >> >> flow > >> >> >> > or flash scope are serializable; nested exception is > >> >> >> > java.io.NotSerializableException: > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.web.multipart.support.DefaultMultipartHttpServletRequest > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.<init>(SerializedFlowExecutionContinuation.java:75) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuationFactory.createContinuation(SerializedFlowExecutionContinuationFactory.java:55) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.putFlowExecution(ContinuationFlowExecutionRepository.java:162) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.executor.FlowExecutorImpl.resume(FlowExecutorImpl.java:226) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:111) > >> >> >> > Truncated. see log file for complete stacktrace > >> >> >> > java.io.NotSerializableException: > >> >> >> > > >> >> >> > >> >> > >> > org.springframework.web.multipart.support.DefaultMultipartHttpServletRequest > >> >> >> > at > >> >> >> > >> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) > >> >> >> > at > >> >> >> > > >> >> >> > >> >> > >> > java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) > >> >> >> > at > >> >> >> > >> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) > >> >> >> > Truncated. see log file for complete stacktrace > >> >> >> > > >> >> >> > > >> >> >> > Any comment will be highly appreciated. > >> >> >> > > >> >> >> > Best regards > >> >> >> > > >> >> >> > >> >> >> -- > >> >> >> View this message in context: > >> >> >> > >> >> > >> > http://www.nabble.com/Help-with-serialization-of-Multipart-Credentials-tp19712975p19715730.html > >> >> >> Sent from the CAS Users mailing list archive at Nabble.com. > >> >> >> > >> >> >> _______________________________________________ > >> >> >> 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 > >> >> > > >> >> > > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/Help-with-serialization-of-Multipart-Credentials-tp19712975p19748001.html > >> >> Sent from the CAS Users mailing list archive at Nabble.com. > >> >> > >> >> _______________________________________________ > >> >> 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 > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Help-with-serialization-of-Multipart-Credentials-tp19712975p19753173.html > >> Sent from the CAS Users mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> 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 > > > > > > -- > View this message in context: > http://www.nabble.com/Help-with-serialization-of-Multipart-Credentials-tp19712975p19764293.html > Sent from the CAS Users mailing list archive at Nabble.com. > > _______________________________________________ > 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
