Feature Request for SP.

Dan McLaughlin dmclaughlin at tech-consortium.com
Fri Mar 13 16:02:20 EDT 2020


Sometimes if there's been times when the metadata somehow gets
corrupted. When this happens we end up with a metadata file that is 0
bytes.  This causes the exception below.  I can't open a ticket
because the United IDP is busted.   This is an issue I've seen happen
a couple times, but it's easy to reproduce by simple whipping out the
contents of the metadata xml file.    It would be really nice if the
IDP would catch this exception and rename the metadata file and try to
download it again instead of fail like it does today.

Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'shibboleth.metrics.MetadataGaugeSet'
defined in file
[E:\servers\shib-idps\internal\system\conf\general-admin-system.xml]:
Invocation of init method failed; nested exception is
net.shibboleth.utilities.java.support.component.ComponentInitializationException:
Injected service was null or not a MetadataResolver
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 63 more
Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException:
Injected service was null or not a MetadataResolver
at net.shibboleth.idp.saml.metadata.impl.MetadataResolverServiceGaugeSet.doInitialize(MetadataResolverServiceGaugeSet.java:177)
at net.shibboleth.utilities.java.support.component.AbstractInitializableComponent.initialize(AbstractInitializableComponent.java:61)
at jdk.internal.reflect.GeneratedMethodAccessor783.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1760)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1697)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
... 70 more


--

Thanks,

Dan


More information about the dev mailing list