Mongo DB Ticket Registry not working properly

115 views
Skip to first unread message

Karl Banke

unread,
Jun 22, 2017, 10:02:07 AM6/22/17
to CAS Community
When starting CAS with the MongoDB TicketRegistry I get an infinite recursion whenever a service ticket is created.

[[1;31m2017-06-22 13:30:43,869 ERROR [org.apereo.cas.ticket.registry.MongoDbTicketRegistry] - <Failed adding [ST-1-LdYuJ7iBKdKSfNlIoizm-cas]: [java.lang.IllegalArgumentException: com.fasterxml.jackson.d
atabind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver["beanFactory"]->org.spri
ngframework.beans.factory.support.DefaultListableBeanFactory["autowireCandidateResolver"]->org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver["beanFactory"]->org.springfra
mework.beans.factory.support.DefaultListableBeanFactory["autowireCandidateResolver"]->org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver["beanFactory"]->org.springframewor
k.beans.factory.support.DefaultListableBeanFactory["autowireCandidateResolver"]->org.springframework.context.annotation.ContextAnnotationAutowireCandidateResolver["beanFactory"]->org.springframework.bea
ns.fa.......


Karl Banke

unread,
Jun 23, 2017, 2:42:02 AM6/23/17
to CAS Community
I am running Version 5.1. Logging into cas works without any issues. This is my Registry Configuration

cas.ticket.registry.mongo.idleTimeout=30000
cas.ticket.registry.mongo.port=27017
cas.ticket.registry.mongo.dropCollection=false
cas.ticket.registry.mongo.socketKeepAlive=false
cas.ticket.registry.mongo.collectionName=cas_ticket_registry
cas.ticket.registry.mongo.timeout=5000
cas.ticket.registry.mongo.writeConcern=NORMAL
cas.ticket.mongo.conns.lifetime=60000
cas.ticket.mongo.conns.perHost=
10
cas.serviceRegistry.mongo.password=M3[0m-89
cas.serviceRegistry.mongo.databaseName=cas-mongo-database

Karl Banke

unread,
Jun 23, 2017, 2:58:37 AM6/23/17
to CAS Community
Regardless of any configuration the error occurs as soon as I include the mongo ticket registry dependency.

<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-mongo-ticket-registry</artifactId>
<version>${cas.version}</version>
</dependency>

Misagh Moayyed

unread,
Jun 23, 2017, 11:18:24 AM6/23/17
to cas-...@apereo.org

This seems like a bug. You may want to submit an issue, and I can try to review this and we can collaborate on GH together. Sound good?

 

--Misagh

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/d043dc76-7ecf-447b-bc64-7d9e22c30250%40apereo.org.

Karl Banke

unread,
Jun 26, 2017, 3:16:55 AM6/26/17
to CAS Community, mmoa...@unicon.net
Reply all
Reply to author
Forward
0 new messages