spurious org.springframework.beans.factory.NoSuchBeanDefinitionException
Paul B. Henson
henson at cpp.edu
Mon Sep 11 21:53:51 UTC 2023
Every once in a blue moon I get what seems to be a spurious exception complaining that the bean shibboleth.Conditions.SimpleAttribute doesn't exist.
A user successfully authenticates:
2023-09-05 09:20:40,444 - 10.104.192.64/node0deltrc430ob5f2hbs7nze5w180045 - INFO [net.shibboleth.idp.authn.im
pl.KerberosCredentialValidator:210] - Credential Validator krb5: Login by 'lnabujaradeh' succeeded
2023-09-05 09:21:03,264 - 10.104.192.64/node0deltrc430ob5f2hbs7nze5w180045 - INFO [net.shibboleth.idp.authn.im
pl.FinalizeAuthentication:196] - Profile Action FinalizeAuthentication: Principal lnabujaradeh authenticated
but then it complains that this bean doesn't exist and things go sideways:
2023-09-05 09:21:03,902 - 10.104.192.64/node0deltrc430ob5f2hbs7nze5w180045 - WARN [net.shibboleth.ext.spring.c
ontext.FilesystemGenericWebApplicationContext:591] - Exception encountered during context initialization - can
celling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definiti
on with name 'shibboleth.context-check.Condition' defined in file [/opt/shibboleth-idp/conf/intercept/context-check-intercept-config.xml]: Could not resolve parent bean definition 'shibboleth.Conditions.SimpleAttribute'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shibboleth.Conditions.SimpleAttribute' available
2023-09-05 09:21:03,941 - 10.104.192.64/node0deltrc430ob5f2hbs7nze5w180045 - ERROR [net.shibboleth.idp.profile.interceptor:-2] - Uncaught runtime exception
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'shibboleth.context-check.Condition' defined in file [/opt/shibboleth-idp/conf/intercept/context-check-intercept-config.xml]: Could not resolve parent bean definition 'shibboleth.Conditions.SimpleAttribute'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shibboleth.Conditions.SimpleAttribute' available
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:1417)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'shibboleth.Conditions.SimpleAttribute' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:872)
2023-09-05 09:21:04,015 - 10.104.192.64/node0deltrc430ob5f2hbs7nze5w180045 - WARN [org.opensaml.profile.action.impl.LogEvent:101] - A non-proceed event occurred while processing the request: RuntimeException
I am indeed using that bean in my context-check-intercept-config:
<bean id="shibboleth.context-check.Condition"
parent="shibboleth.Conditions.SimpleAttribute"
p:useUnfilteredAttributes="true">
As far as I know, that is a valid bean and it works just fine 99.99% of the time. I'm not quite sure what is going on here?
Thanks...
--
Paul B. Henson | (909) 979-6361 | http://www.cpp.edu/~henson/
Operating Systems and Network Analyst | henson at cpp.edu
California State Polytechnic University | Pomona CA 91768
More information about the users
mailing list