The title should read CAS 5.2.2 for the version

--Mike K.

On Wednesday, February 7, 2018 at 1:03:43 AM UTC-8, Mike Kromarek wrote:
>
> I recently switched from the Postgresql JPA ticket registry to MongoDB and 
> am having a strange issue.  The authentication succeeds, but then it fails 
> to add the ticket to the mongo database, causing the process to fail and 
> return to the login screen.
>
> -- cas.properties --
> cas.ticket.registry.mongo.host=localhost
> cas.ticket.registry.mongo.userId=<redacted>
> cas.ticket.registry.mongo.password=<redacted>
> cas.ticket.registry.mongo.databaseName=casdb
> cas.ticket.registry.mongo.collectionName=cas-ticket-registry
> cas.ticket.registry.mongo.dropCollection=false
> 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.ticket.registry.mongo.idleTimeout=30000
>
>
> CAS connects to the database with the specified user, makes all the tables 
> and seems like everything should be good.  Then it encodes the TGT, but 
> fails to add it.  
>
>
> 2018-02-07 00:46:30,024 DEBUG 
> [org.apereo.cas.ticket.factory.DefaultTicketGrantingTicketFactory] - 
> <Encoded ticket-granting ticket id 
> [TGT-******************************************
> 3wOfaglzGL-JNpegctV--qfA0S5-xCE-aws-stage-cas.highline.edu]>
> 2018-02-07 00:46:30,025 DEBUG 
> [org.apereo.cas.ticket.registry.MongoDbTicketRegistry] - <Adding ticket 
> [TGT-******************************************
> 3wOfaglzGL-JNpegctV--qfA0S5-xCE-aws-stage-cas.highline.edu]>
> 2018-02-07 00:46:30,118 ERROR 
> [org.apereo.cas.ticket.registry.MongoDbTicketRegistry] - <Failed adding 
> [TGT-******************************************
> 3wOfaglzGL-JNpegctV--qfA0S5-xCE-aws-stage-cas.highline.edu]: 
> [java.lang.NullPointerException]>
> 2018-02-07 00:46:30,118 DEBUG 
> [org.apereo.cas.AbstractCentralAuthenticationService] - <Publishing 
> [org.apereo.cas.support.events.ticket.CasTicketGrantingTicketCreatedEvent@2c84b7f8[ticketGrantingTicket=TGT-******************************************
> 3wOfaglzGL-JNpegctV--qfA0S5-xCE-aws-stage-cas.highline.edu]]>
>
> Has anyone else ran into this?
>
> --Mike K
>
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/cedbef03-0359-4725-95d4-bf606492c163%40apereo.org.

Reply via email to