Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3002

NPE during initializing SolrAuthority

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: Service Manager, Solr
    • Labels:
      None
    • Environment:
      DSpace 6: current master from GitHub:
      commit: be8af9a50e46b65263ab94d7c07a5d8518df89d2

      OS: Debian Wheezy
      Java: OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-1~deb7u1)
    • Attachments:
      3
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      On a fresh install of DSpace6, after enabling SolrAuthority (following the docs [1] on ORCID integration), SolrAuthority can't initialize.

      The problem seems not to be ORCID-integration specific, it is just given as an example inspired by the official docs.

      Log extract is attached from tomcat's catalina.out and also the full exception after invocation of
      ./dspace/bin/dspace index-authority

      The NPE exception occures at SolrAuthority.java:43,
      https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/authority/SolrAuthority.java#L43

      Probably authorityServiceFactory service can't be found by its name, so null is returned at AuthorityServiceFactory.java:41,
      https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authority/factory/AuthorityServiceFactory.java#L41

      Files attached:
      dspace.cfg_enabling_orcid_integration.diff.txt: the diff to enable authority control
      solr_auth_init_failed_catalina.out.txt: log excerpt from Tomcat
      solr_auth_init_failed_index-authority_util.out.txt: stack trace on index-authority util-

      [1]: https://wiki.duraspace.org/display/DSDOC6x/ORCID+Integration

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jmarton Jozsef Marton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: