Hi,
We are running CAS 4.2.7 using Tomcat 8, we added the configuration to use the
JPATicketRegistry but noticed that every time it tried to perform a cleanup of
the TGT Tickets an error would be thrown:
2017-05-23 16:50:35,131 ERROR [org.jasig.cas.ticket.registry.JpaTicketRegistry]
- <Error removing
TGT-**********************************************T3SxJMcabb-fiusso-stg01 from
registry.>
javax.persistence.TransactionRequiredException: No EntityManager with actual
transaction available for current thread - cannot reliably process 'remove' call
at
org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:278)
~[spring-orm-4.2.8.RELEASE.jar:4.2.8.RELEASE]
at com.sun.proxy.$Proxy82.remove(Unknown Source) ~[?:?]
at
org.jasig.cas.ticket.registry.JpaTicketRegistry.removeTicket(JpaTicketRegistry.java:89)
~[cas-server-support-jpa-ticket-registry-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.JpaTicketRegistry.deleteTicketsFromResultList(JpaTicketRegistry.java:211)
~[cas-server-support-jpa-ticket-registry-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.JpaTicketRegistry.deleteTicketGrantingTickets(JpaTicketRegistry.java:241)
~[cas-server-support-jpa-ticket-registry-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.JpaTicketRegistry.deleteSingleTicket(JpaTicketRegistry.java:167)
~[cas-server-support-jpa-ticket-registry-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.AbstractTicketRegistry.deleteTicket(AbstractTicketRegistry.java:98)
~[cas-server-core-tickets-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.AbstractTicketRegistry$$FastClassBySpringCGLIB$$b70f3271.invoke(<generated>)
~[cas-server-core-tickets-4.2.7.jar:4.2.7]
at
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
~[spring-core-4.2.8.RELEASE.jar:4.2.8.RELEASE]
at
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:651)
~[spring-aop-4.2.8.RELEASE.jar:4.2.8.RELEASE]
at
org.jasig.cas.ticket.registry.JpaTicketRegistry$$EnhancerBySpringCGLIB$$a717405.deleteTicket(<generated>)
~[cas-server-support-jpa-ticket-registry-4.2.7.jar:4.2.7]
at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) ~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_112]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112]
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
~[spring-aop-4.2.8.RELEASE.jar:4.2.8.RELEASE]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
~[spring-aop-4.2.8.RELEASE.jar:4.2.8.RELEASE]
at com.sun.proxy.$Proxy83.deleteTicket(Unknown Source) ~[?:?]
at
org.jasig.cas.ticket.registry.TicketRegistryCleaner$1.apply(TicketRegistryCleaner.java:126)
~[cas-server-core-tickets-4.2.7.jar:4.2.7]
at
org.jasig.cas.ticket.registry.TicketRegistryCleaner$1.apply(TicketRegistryCleaner.java:1)
~[cas-server-core-tickets-4.2.7.jar:4.2.7]
at com.google.common.collect.Iterators$8.transform(Iterators.java:799)
~[guava-18.0.jar:?]
at
com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
~[guava-18.0.jar:?]
at
org.jasig.cas.ticket.registry.TicketRegistryCleaner.execute(TicketRegistryCleaner.java:139)
~[cas-server-core-tickets-4.2.7.jar:4.2.7]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
~[quartz-2.2.1.jar:?]
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
~[quartz-2.2.1.jar:?]
Are there any suggestions for resolving this error, is there a possible fix?
Thanks!
___________________
Juan Quintanilla
[email protected]<mailto:[email protected]>
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/BN6PR05MB3634C872AE6CF1A955686B2F86FE0%40BN6PR05MB3634.namprd05.prod.outlook.com.