I have a CAS 5.3.16 running in production environment. It often reports 
"Error creating bean with name xxxx", then gets OutOfServce requently, I 
have to restart the CAS each time.
Here is my configure: 
cas.authn.mfa.gauth.issuer=SSO2FA
cas.authn.mfa.gauth.label=SSO2FA
cas.authn.mfa.gauth.name=SSO2FA
cas.authn.mfa.gauth.crypto.encryption.key=xxxxxx
cas.authn.mfa.gauth.crypto.signing.key=xxxx
cas.authn.mfa.gauth.trustedDeviceEnabled=true

cas.authn.mfa.gauth.mongo.host=127.0.0.1
cas.authn.mfa.gauth.mongo.port=27017
cas.authn.mfa.gauth.mongo.userId=ssouser
cas.authn.mfa.gauth.mongo.password=Welcome1
cas.authn.mfa.gauth.mongo.databaseName=ssodb
cas.authn.mfa.gauth.mongo.dropCollection=false
cas.authn.mfa.gauth.mongo.socketKeepAlive=false
cas.authn.mfa.gauth.mongo.retryWrites=false
cas.authn.mfa.gauth.mongo.tokenCollection=token2fa

And here is the error:
2021-06-23 16:00:29,704 WARN 
[org.apereo.cas.adaptors.gauth.GoogleAuthenticatorMongoDbTokenRepository] - 
<Error creating bean with name 
'scopedTarget.mongoDbGoogleAuthenticatorTemplate' defined in class path 
resource 
[org/apereo/cas/config/GoogleAuthenticatorMongoDbConfiguration.class]: 
Initialization of bean failed; nested exception is 
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error 
creating bean with name 
'scopedTarget.persistenceExceptionTranslationPostProcessor': Requested bean 
is currently in creation: Is there an unresolvable circular reference?>
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'scopedTarget.mongoDbGoogleAuthenticatorTemplate' defined in 
class path resource 
[org/apereo/cas/config/GoogleAuthenticatorMongoDbConfiguration.class]: 
Initialization of bean failed; nested exception is 
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error 
creating bean with name 
'scopedTarget.persistenceExceptionTranslationPostProcessor': Requested bean 
is currently in creation: Is there an unresolvable circular reference?
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
 
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
 
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:351)
 
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:379)
 
~[spring-cloud-context-1.3.0.RELEASE.jar:1.3.0.RELEASE]
        at 
org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:181) 
~[spring-cloud-context-1.3.0.RELEASE.jar:1.3.0.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:346)
 
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
 
~[spring-beans-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35)
 
~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.getTarget(CglibAopProxy.java:703)
 
~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:653)
 
~[spring-aop-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.data.mongodb.core.MongoTemplate$$EnhancerBySpringCGLIB$$fafee833.remove(<generated>)
 
~[spring-data-mongodb-1.10.15.RELEASE.jar:?]
        at 
org.apereo.cas.adaptors.gauth.GoogleAuthenticatorMongoDbTokenRepository.cleanInternal(GoogleAuthenticatorMongoDbTokenRepository.java:51)
 
~[cas-server-support-gauth-mongo-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.otp.repository.token.BaseOneTimeTokenRepository.clean(BaseOneTimeTokenRepository.java:21)
 
~[cas-server-support-otp-mfa-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.otp.repository.token.OneTimeTokenRepositoryCleaner.clean(OneTimeTokenRepositoryCleaner.java:26)
 
~[cas-server-support-otp-mfa-5.3.16.jar:5.3.16]
        at 
org.apereo.cas.config.support.authentication.GoogleAuthenticatorAuthenticationEventExecutionPlanConfiguration$GoogleAuthenticatorOneTimeTokenRepositoryCleaner.clean(GoogleAuthenticatorAuthenticationEventExecutionPlanConfiguration.java:214)
 
~[cas-server-support-gauth-5.3.16.jar:5.3.16]
        at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source) 
~[?:?]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 
~[?:1.8.0_232]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_232]
        at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
 
~[spring-context-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
 
~[spring-context-4.3.25.RELEASE.jar:4.3.25.RELEASE]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
~[?:1.8.0_232]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
~[?:1.8.0_232]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 
~[?:1.8.0_232]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 
~[?:1.8.0_232]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_232]

-- 
- 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/1b271811-6e1f-4751-94ac-307e03db083cn%40apereo.org.

Reply via email to