With Cas 5.3.4.
Hibernate:
insert
into
SAML2_ATTRIBUTE_QUERY_TICKETS
(NUMBER_OF_TIMES_USED, CREATION_TIME, EXPIRATION_POLICY, EXPIRED, LAST_TIME_USED, PREVIOUS_LAST_TIME_USED, object, relyingParty, SERVICE, ticketGrantingTicket_ID, TYPE, ID)
values
(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'SATQ', ?)
2018-10-19 16:46:56,395 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] - <(conn=3232) Duplicate entry 'SATQ-oG9xzSjwFzlCyugfCdoRxugEKCU=' for key 'PRIMARY'>
2018-10-19 16:46:56,398 ERROR [org.hibernate.internal.ExceptionMapperStandardImpl] - <HHH000346: Error during managed flush [org.hibernate.exception.ConstraintViolationException: could not execute statement]>
2018-10-19 16:46:56,400 INFO [org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail record BEGIN
=============================================================
WHO: audit:unknown
WHAT: could not execute statement; SQL [n/a]; constraint [PRIMARY]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
ACTION: SAML2_RESPONSE_FAILED
APPLICATION: CAS
WHEN: Fri Oct 19 16:46:56 EDT 2018
CLIENT IP ADDRESS: 132.207.22.127
SERVER IP ADDRESS: 132.207.6.41
=============================================================
>
2018-10-19 16:46:56,411 ERROR [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/cas].[dispatcherServlet]] - <Servlet.service() for servlet [dispatcherServlet] in context with path [/cas] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [PRIMARY]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement] with root cause>
java.sql.SQLException:
Duplicate entry 'SATQ-oG9xzSjwFzlCyugfCdoRxugEKCU=' for key 'PRIMARY'Query is: insert into SAML2_ATTRIBUTE_QUERY_TICKETS (NUMBER_OF_TIMES_USED, CREATION_TIME, EXPIRATION_POLICY, EXPIRED, LAST_TIME_USED, PREVIOUS_LAST_TIME_USED, object, relyingParty, SERVICE, ticketGrantingTicket_ID, TYPE, ID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'SATQ', ?), parameters [0,'2018-10-19 16:46:56.381',<Stream>,0,'2018-10-19 16:46:56.381',<null>,'<?xml version="1.0" encoding="UTF-8"?><saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" ID="_4057543231534213152" IssueInstant="2018-10-19T20:46:56.364Z" Version="2.0"><saml2:Issuer>
https://testcas5.yerbynet.com/cas/idp</saml2:Issuer><saml2:Subject><saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" NameQualifier="
https://sp.testshib.org/shibboleth-sp" SPNameQualifier="
https://sp.testshib.org/shibboleth-sp">oG9xzSjwFzlCyugfCdoRxugEKCU=</saml2:NameID><saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"><saml2:SubjectConfirmationData InResponseTo="_ede3d6158ee3a460014ae3900455b674" NotOnOrAfter="2018...
at org.mariadb.jdbc.internal.util.LogQueryTool.exceptionWithQuery(LogQueryTool.java:153) ~[mariadb-java-client-2.2.4.jar!/:?]
at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:254) ~[mariadb-java-client-2.2.