Actually I think this most recent issue is being triggered by the "indexOf"
in this line in login-webflow.xml on the server:
<end-state id="redirect"
view="externalRedirect:${externalContext.requestParameterMap
['service']}${requestScope.ticket == null ? '' : (
externalContext.requestParameterMap['service'].indexOf('?') != -1 ? '&'
: '?') + 'ticket=' + requestScope.ticket}" />
The exception I am getting is :
2006-12-21 18:05:31,480 DEBUG [
org.acegisecurity.adapters.cas3.CasAuthenticationHandler] - <Authentication
request for xxx successful.>
2006-12-21 18:05:31,481 INFO [
org.jasig.cas.authentication.AuthenticationManagerImpl] -
<AuthenticationHandler:
org.acegisecurity.adapters.cas3.CasAuthenticationHandler successfully
authenticated the user which provided the following credentials: xxx>
2006-12-21 18:05:31,482 INFO [org.jasig.cas.CentralAuthenticationServiceImpl]
- <Granted service ticket [ST-5-3Yk5aOAAndRmvXSaRiF2JrPr2Ew4xBsiR6N-20] for
service [https://demo.xxx.com/ProjectBuilder/j_acegi_cas_security_check] for
user [vstoessel]>
[18:05:31.496] org.springframework.web.util.NestedServletException: Request
processing failed; nested exception is
org.springframework.binding.expression.EvaluationException: Expression [
[EMAIL PROTECTED] expression = (requestScope.ticket == null) ? "" :
(((externalContext.requestParameterMap["service"].indexOf('?') != -1) ? '&'
: '?') + "ticket=" + requestScope.ticket), target = [
[EMAIL PROTECTED] externalContext = [
[EMAIL PROTECTED] requestParameterMap = map['lt' ->
'_cCDB5067F-28F5-085C-2A83-521065C289DA_kB1E777B5-5491-FE83-F0FE-18C17DC4F416',
'service' -> array<String>['
https://demo.xxx.com/ProjectBuilder/j_acegi_cas_security_check;jsessionid=abcp4lqggln11fk6TqN_q',
'https%3A%2F%2Fdemo.xxx.com%2FProjectBuilder%2Fj_acegi_cas_security_check'],
'username' -> 'xxx', '_eventId' -> 'submit', 'password' -> 'aaxis1']],
requestScope = map['ticket' ->
'ST-5-3Yk5aOAAndRmvXSaRiF2JrPr2Ew4xBsiR6N-20', 'ticketGrantingTicketId' ->
'TGT-5-wljZ9sNRXyPauL1m2Q4tT9F7ORLFvuOIBFr-50'], attributes = map[[empty]],
flowExecution = [EMAIL PROTECTED] flow = 'login-webflow',
flowSessions = [EMAIL PROTECTED] flow = 'login-webflow', state =
'redirect', scope = map['credentials' -> vstoessel, 'currentFormObject' ->
xxx], flashMap = map['
org.springframework.validation.BindException.credentials' ->
org.springframework.validation.BindException:
org.springframework.validation.BeanPropertyBindingResult: 0 errors, '
org.springframework.validation.BindException.currentFormObject' ->
org.springframework.validation.BindException:
org.springframework.validation.BeanPropertyBindingResult: 0 errors], status
= Active]]]], evaluationAttributes = map[[empty]]] failed - make sure the
expression is evaluatable on the target object; nested exception is
ognl.MethodFailedException: Method "indexOf" failed for object [
Ljava.lang.String;@4c6578 [java.lang.NoSuchMethodException: indexOf(
java.lang.Character)]
[18:05:31.496] Caused by:
org.springframework.binding.expression.EvaluationException: Expression [
[EMAIL PROTECTED] expression = (requestScope.ticket == null) ? "" :
(((externalContext.requestParameterMap["service"].indexOf('?') != -1) ? '&'
: '?') + "ticket=" + requestScope.ticket), target = [
[EMAIL PROTECTED] externalContext = [
[EMAIL PROTECTED] requestParameterMap = map['lt' ->
'_cCDB5067F-28F5-085C-2A83-521065C289DA_kB1E777B5-5491-FE83-F0FE-18C17DC4F416',
'service' -> array<String>['
https://demo.xxx.com/ProjectBuilder/j_acegi_cas_security_check;jsessionid=abcp4lqggln11fk6TqN_q',
'https%3A%2F%2Fdemo.xxx.com%2FProjectBuilder%2Fj_acegi_cas_security_check'],
'username' -> 'xxx', '_eventId' -> 'submit', 'password' -> 'xxx']],
requestScope = map['ticket' ->
'ST-5-3Yk5aOAAndRmvXSaRiF2JrPr2Ew4xBsiR6N-20', 'ticketGrantingTicketId' ->
'TGT-5-wljZ9sNRXyPauL1m2Q4tT9F7ORLFvuOIBFr-50'], attributes = map[[empty]],
flowExecution = [EMAIL PROTECTED] flow = 'login-webflow',
flowSessions = [EMAIL PROTECTED] flow = 'login-webflow', state =
'redirect', scope = map['credentials' -> vstoessel, 'currentFormObject' ->
vstoessel], flashMap = map['
org.springframework.validation.BindException.credentials' ->
org.springframework.validation.BindException:
org.springframework.validation.BeanPropertyBindingResult: 0 errors, '
org.springframework.validation.BindException.currentFormObject' ->
org.springframework.validation.BindException:
org.springframework.validation.BeanPropertyBindingResult: 0 errors], status
= Active]]]], evaluationAttributes = map[[empty]]] failed - make sure the
expression is evaluatable on the target object; nested exception is
ognl.MethodFailedException: Method "indexOf" failed for object [
Ljava.lang.String;@4c6578 [java.lang.NoSuchMethodException: indexOf(
java.lang.Character)]
Names and hosts have been changed to
On 12/21/06, Vinny <[EMAIL PROTECTED]> wrote:
I went ahead and upgraded my Resin server from 3.0.17 to 3.0.22 (been
meaning to for a while now)
all those previously null parameters are now visible!
The only issue I have right now is that a jstl/ognl error with this line:
<spring:message code="screen.confirmation.message" arguments="${
param.service}${fn:indexOf(params.service, '?') eq -1 ? '?' :
'&'}ticket=${ticket}" /></p>
I get:
Caused by: ognl.MethodFailedException: Method "indexOf" failed for object
[Ljava.lang.String;@4896f7 [java.lang.NoSuchMethodException: indexOf(
java.lang.Character)]
I'll keep digging. Thanks for the hints thus far.
--
Ghetto Java: http://www.ghettojava.com
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas