Context initialization failed - Injected service was null or not an AttributeResolver

Y Levine ylevine20 at gmail.com
Fri Jan 6 20:55:45 EST 2017


I am attempting to set the 'attribute-resolver.xml' lookup for an attribute
via the DB -- the DB setting's are defined in the Tomcat's 'server.xml'.

The following error comes up (the attribute-resolver's DataConnector is
listed immediate following).

I can't figure out what was missing in the DataConnector to trigger the
error. And help would be appreciated. Thanks.

2017-01-06 17:31:53,923 - ERROR
[org.springframework.web.context.ContextLoader:351] - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'shibboleth.metrics.RegisterMetricSets$child#0' defined in
file [/opt/shibboleth-idp/system/conf/../../conf/admin/metrics.xml]: Cannot
resolve reference to bean 'shibboleth.metrics.AttributeResolverGaugeSet'
while setting bean property 'arguments' with key [7]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'shibboleth.metrics.AttributeResolverGaugeSet' defined in
file [/opt/shibboleth-idp/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 an AttributeResolver
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'shibboleth.metrics.AttributeResolverGaugeSet'
defined in file [/opt/shibboleth-idp/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 an AttributeResolver
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
Caused by:
net.shibboleth.utilities.java.support.component.ComponentInitializationException:
Injected service was null or not an AttributeResolver
    at
net.shibboleth.idp.attribute.resolver.impl.AttributeResolverServiceGaugeSet.doInitialize(AttributeResolverServiceGaugeSet.java:104)


Data connector from 'attribute-resolver.xml':


<DataConnector id="loginname" xsi:type="RelationalDatabase">

             <FailoverDataConnector ref="loginname-staticfailoverconnector"
/>

            <!-- define in tomcat's server.xml -->
             <ContainerManagedConnection
resourceName="java:comp/env/jdbc/SDB"  />


       <QueryTemplate>
        <![CDATA[
                        select * from LOGINNAME where LOGIN =
'$requestContext.principalName'
        ]]>
        </QueryTemplate>

                <Column columnName="LOGIN" attributeID="loginName" />

      </DataConnector>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170106/55473667/attachment.html>


More information about the users mailing list