Well, I say that but I am still butting against this issue with memcached .. 
the default ticketRegistry.xml implementation works fine, but as soon as I try 
and enable memcached (via verbatim instructions in the wiki) I keep getting a 
Java cast error :


(there was a ticket on almost this exact issue in OAUTH a while back but this 
is related to integration-memcached).


Any pointers on this?


Thanks,


Michael Holstein

Cleveland State University



SEVERE: Servlet.service() for servlet [cas] in context with path [/cas] threw 
exception [Request processing failed; nested exception is 
org.springframework.webflow.execution.ActionExecutionException: Exception 
thrown executing org.jasig.cas.web.flow.InitialFlowSetupAction@7c119453 in 
state 'null' of flow 'login' -- action execution attributes were 
'map[[empty]]'] with root cause

java.lang.ClassCastException: Cannot cast 
org.jasig.cas.ticket.registry.AbstractDistributedTicketRegistry$TicketGrantingTicketDelegator
 to org.jasig.cas.ticket.TicketGrantingTicketImpl

at java.lang.Class.cast(Class.java:3369)

at 
net.unicon.cas.mfa.web.support.RegisteredServiceAttributeMultiFactorAuthenticationArgumentExtractor.checkMfaRoles(RegisteredServiceAttributeMultiFactorAuthenticationArgumentExtractor.java:160)

at 
net.unicon.cas.mfa.web.support.RegisteredServiceAttributeMultiFactorAuthenticationArgumentExtractor.getAuthenticationMethod(RegisteredServiceAttributeMultiFactorAuthenticationArgumentExtractor.java:80)

at 
net.unicon.cas.mfa.web.support.AbstractMultiFactorAuthenticationArgumentExtractor.extractService(AbstractMultiFactorAuthenticationArgumentExtractor.java:71)

at 
net.unicon.cas.mfa.web.support.MultiFactorAuthenticationRequestsCollectingArgumentExtractor.extractService(MultiFactorAuthenticationRequestsCollectingArgumentExtractor.java:64)




________________________________
From: Michael O Holstein <[email protected]>
Sent: Tuesday, July 14, 2015 11:26 AM
To: [email protected]
Subject: Re: [cas-user] CAS-MFA -rc5 and -rc6 runtime issue


John,


I did a fresh pull of 1.05-RC5 and aside from commenting out some of the 
un-needed integrations did a successful build and execute .. so you were right, 
at some point I contaminated the overlay.


Thanks,


Michael Holstein

Cleveland State University


________________________________
From: John Gasper <[email protected]>
Sent: Monday, July 13, 2015 6:09 PM
To: [email protected]
Subject: Re: [cas-user] CAS-MFA -rc5 and -rc6 runtime issue

Hi Michael,

Did you override some of the MFA context/xml files? Various classes were 
updated with these last two RCs. You’ll want to compare your changes with that 
of baseline.

John

--
John Gasper
IAM Consultant
Unicon, Inc.
PGP/GPG Key: 0xbafee3ef


From: Michael O Holstein 
<[email protected]<mailto:[email protected]>>
Reply-To: <[email protected]<mailto:[email protected]>>
Date: Monday, July 13, 2015 at 2:00 PM
To: <[email protected]<mailto:[email protected]>>
Subject: [cas-user] CAS-MFA -rc5 and -rc6 runtime issue


To start with, "yes" .. I realize this is an extension that JASIG didn't write.


For those of you that are using the Unicon CAS-MFA has anyone had issues with 
the recent couple of versions? ..

I keep getting this error on runtime since (for -rc5 and -rc6 .. last version I 
know works was -rc2).


Hoping there are some fellow MFA folks or Unicon themselves lurking out there ..


Cheers,


Michael Holstein

Cleveland State University


-java


java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


-pom.xml (these additions to the stock one)


        <dependency>

            <groupId>org.jasig.cas</groupId>

            <artifactId>cas-server-integration-memcached</artifactId>

            <version>${cas.version}</version>

            <type>jar</type>

        </dependency>


        <dependency>

            <groupId>org.jasig.cas</groupId>

            <artifactId>cas-server-support-ldap</artifactId>

            <version>${cas.version}</version>

        </dependency>


        <dependency>

            <groupId>org.jasig.cas</groupId>

            <artifactId>cas-server-support-radius</artifactId>

            <version>${cas.version}</version>

        </dependency>


        <dependency>

            <groupId>org.jasig.cas</groupId>

            <artifactId>cas-server-support-spnego</artifactId>

            <version>${cas.version}</version>

        </dependency>


-tomcat runtime error


org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'registeredServiceAttributeMfaArgumentExtractor' defined in 
ServletContext resource 
[/WEB-INF/spring-configuration/mfaArgumentExtractorsConfiguration.xml]: Error 
setting property values; nested exception is 
org.springframework.beans.NotWritablePropertyException: Invalid property 
'mfaRoleProcessor' of bean class 
[net.unicon.cas.mfa.web.support.RegisteredServiceAttributeMultiFactorAuthenticationArgumentExtractor]:
 Bean property 'mfaRoleProcessor' is not writable or has an invalid setter 
method. Does the parameter type of the setter match the return type of the 
getter?

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1423)

--
You are currently subscribed to 
[email protected]<mailto:[email protected]> as: 
[email protected]<mailto:[email protected]>
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to