Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1654

NullPointerException in AttributeResolver

    XMLWordPrintable

    Details

    • Operating System:
      Linux
    • Java Version:
      Debian OpenJDK 11
    • Servlet Container:
      Apache Tomcat 9

      Description

      Could amount to the same problem as IDP-1623 , but since I got there on a different way (I think) I file this bug anyway.
      I have an activation condition in my DataConnectors to prevent resolving, and thus releasing, attributes of a special user to all but one SP. (See this thread this thread from the mailing list.)
      If the activation condition fails and none of the attributes resolve any value, the NullPointerException occurs:

      2020-08-06 13:55:20,008 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:431] - Attribute Resolver 'ShibbolethAttributeResolver': Resolving dependencies for 'bworgid'
      2020-08-06 13:55:20,008 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:431] - Attribute Resolver 'ShibbolethAttributeResolver': Resolving dependencies for 'staticAttributes'
      2020-08-06 13:55:20,009 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:440] - Attribute Resolver 'ShibbolethAttributeResolver': Finished resolving dependencies for 'staticAttributes'
      2020-08-06 13:55:20,009 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:392] - Attribute Resolver 'ShibbolethAttributeResolver': Resolving data connector staticAttributes
      2020-08-06 13:55:20,015 - - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractResolverPlugin:246] - Resolver plugin 'staticAttributes': activation criteria not met, nothing to do
      2020-08-06 13:55:20,016 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:412] - Attribute Resolver 'ShibbolethAttributeResolver': Data connector 'staticAttributes' produced no attributes
      2020-08-06 13:55:20,016 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:440] - Attribute Resolver 'ShibbolethAttributeResolver': Finished resolving dependencies for 'bworgid'
      2020-08-06 13:55:20,017 - - DEBUG [net.shibboleth.idp.attribute.resolver.AbstractAttributeDefinition:137] - Attribute Definition 'bworgid': produced an attribute with no values
      2020-08-06 13:55:20,017 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:335] - Attribute Resolver 'ShibbolethAttributeResolver': Attribute definition 'bworgid' produced an attribute with 0 values
      ...
      2020-08-06 13:55:20,076 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:451] - Attribute Resolver 'ShibbolethAttributeResolver': De-duping (and null filtering) attribute definition bworgid result
      2020-08-06 13:55:20,076 - - DEBUG [net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl:513] - Attribute Resolver 'ShibbolethAttributeResolver': Removing result of attribute definition 'bworgid', contains no values
      2020-08-06 13:55:20,131 - - ERROR [net.shibboleth.idp.saml.profile:-2] - Uncaught runtime exception
      java.lang.NullPointerException: null
      at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl.collectExportingDataConnectors(AttributeResolverImpl.java:542)
      2020-08-06 13:55:20,161 - - WARN [org.opensaml.profile.action.impl.LogEvent:101] - A non-proceed event occurred while processing the request: RuntimeException

      This configuration works in V3.4.

        Attachments

          Activity

            People

            Assignee:
            rdw@iay.org.uk Rod Widdowson
            Reporter:
            michels@uni-kl.de Thorsten Michels
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: