Why would ConfigurationService.get(XMLObjectProviderRegistry.class) return null ?

Tom Zeller tzeller at dragonacea.biz
Mon Mar 9 15:16:43 EDT 2015


Happened to notice that
net.shibboleth.idp.saml.session.SAML2SPSessionTest throws an NPE for
me from Eclipse or via Maven on the command line in a clean dev
environment. Probably PEBKAC as Rod would say. Obviously tests pass on
Jenkins. It looks like XMLObjectProviderRegistry getProviderRegistry()
which calls ConfigurationService.get(XMLObjectProviderRegistry.class)
returns null, what do I need to do to fix this ? Is there a missing
runtime dependency or something ?

Thanks.

TRACE [org.opensaml.core.config.ConfigurationService:140] - Resolving
configuration propreties source
TRACE [org.opensaml.core.config.ConfigurationService:144] - Evaluating
configuration properties implementation:
org.opensaml.core.config.provider.ThreadLocalConfigurationPropertiesSource
TRACE [org.opensaml.core.config.ConfigurationService:152] - Unable to
resolve non-null configuration properties from any
ConfigurationPropertiesSource
TRACE [org.opensaml.core.config.ConfigurationService:191] - Resolved
effective configuration partition name 'default'

java.lang.NullPointerException
 at org.opensaml.core.xml.util.XMLObjectSupport.buildXMLObject(XMLObjectSupport.java:408)
 at net.shibboleth.idp.saml.session.SAML2SPSessionTest.testInstantiation(SAML2SPSessionTest.java:33)


More information about the dev mailing list