Hi,
I have written a custom JDBC TicketRegistry and custom TGT Expiration policy. 
The TGT Expiration policy (MyTimeoutExpirationPolicy.java) implements 
ExpirationPolicy and isExpired(..) is decided based on data from database. The 
MyTimeoutExpirationPolicy uses Util classes (dbutil/etc) to fetch the required 
data from database. At the runtime I am getting the ConversionException.

Can anyone please give me a pointer on this issue.

18:22:36,325 ERROR [ContainerBase] Servlet.service() for servlet cas threw 
exception
com.thoughtworks.xstream.converters.ConversionException: Cannot convert type 
com.myticket.support.MyTimeoutExpirationPolicy to type 
org.jasig.cas.ticket.ExpirationPolicy
---- Debugging information ----
class               : org.jasig.cas.ticket.TicketGrantingTicketImpl
required-type       : org.jasig.cas.ticket.TicketGrantingTicketImpl
path                : 
/org.jasig.cas.ticket.TicketGrantingTicketImpl/expirationPolicy
-------------------------------
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:229)
        at 
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:162)
        at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
        at 
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
        at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
        at 
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
        at 
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
        at 
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)



Thanks & Regards,
Gokula


-- 
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