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

org.dspace.content.crosswalk.CrosswalkMetadataValidator needs apache commons-lang3 at least in version 3.2 but no version defined in pom.xml

    Details

    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      While updating demo.dspace.org to DSpace 6.0-rc2 the AIP import failed as the class org.apache.commons.lang3.tuple.ImmutableTriple couldn't be found. The Javadoc of apache commons states that it was introduced in version 3.2.
      DS-3057 adds a comment to one of our pom.xmls that commons-lang3 is a dependency from one of our dependencies. Nevertheless we need at least version 3.2.
      I don't have time today to decide which version we should include and where we should add this dependency, but adding at least version 3.2 of commons-lang3 fixed this problem at least on demo.

      I'll create this as a blocker as it blocks AIP-Import.

      Replacing DSpace object(s) with package located at /home/dspace/AIP-restore/SITE@10673-0.zip
      Will replace existing DSpace SITE [ hdl=10673/0 ]
      Exception: org/apache/commons/lang3/tuple/ImmutableTriple
      java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple
      at org.dspace.content.crosswalk.CrosswalkMetadataValidator.createKey(CrosswalkMetadataValidator.java:113)
      at org.dspace.content.crosswalk.CrosswalkMetadataValidator.validatedBefore(CrosswalkMetadataValidator.java:109)
      at org.dspace.content.crosswalk.CrosswalkMetadataValidator.checkMetadata(CrosswalkMetadataValidator.java:62)
      at org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDimField(XSLTIngestionCrosswalk.java:105)
      at org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDim(XSLTIngestionCrosswalk.java:80)
      at org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDim(XSLTIngestionCrosswalk.java:85)
      at org.dspace.content.crosswalk.XSLTIngestionCrosswalk.ingestDIM(XSLTIngestionCrosswalk.java:244)
      at org.dspace.content.crosswalk.AIPDIMCrosswalk.ingest(AIPDIMCrosswalk.java:193)
      at org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1247)
      at org.dspace.content.packager.METSManifest.crosswalkItemDmd(METSManifest.java:1124)
      at org.dspace.content.packager.DSpaceAIPIngester.crosswalkObjectDmd(DSpaceAIPIngester.java:163)
      at org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:472)
      at org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192)
      at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:292)
      at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
      at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
      at org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
      at org.dspace.app.packager.Packager.replace(Packager.java:737)
      at org.dspace.app.packager.Packager.main(Packager.java:377)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
      at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.tuple.ImmutableTriple
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 25 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pbecker Pascal-Nicolas Becker
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: