java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple

Sakai JIRA | Pascal-Nicolas Becker | 6 months ago
  1. 0

    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

    Sakai JIRA | 6 months ago | Pascal-Nicolas Becker
    java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple
  2. 0

    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

    Sakai JIRA | 6 months ago | Pascal-Nicolas Becker
    java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple
  3. 0

    I refreshed code from master and now I am encountering the following error while running an AIP restore. 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.app.packager.Packager.replace(Packager.java:780) 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) ... 21 more I suspect that the source of this issue was introduced by https://github.com/DSpace/DSpace/pull/1326 See https://github.com/DylanMeeus/DSpace/blob/cae419ada771549b4cac2c69a7abd46b6aa295a9/dspace-api/src/main/java/org/dspace/content/crosswalk/CrosswalkMetadataValidator.java#L10

    Sakai JIRA | 6 months ago | Terry Brady
    java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I refreshed code from master and now I am encountering the following error while running an AIP restore. 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.app.packager.Packager.replace(Packager.java:780) 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) ... 21 more I suspect that the source of this issue was introduced by https://github.com/DSpace/DSpace/pull/1326 See https://github.com/DylanMeeus/DSpace/blob/cae419ada771549b4cac2c69a7abd46b6aa295a9/dspace-api/src/main/java/org/dspace/content/crosswalk/CrosswalkMetadataValidator.java#L10

    Sakai JIRA | 6 months ago | Terry Brady
    java.lang.NoClassDefFoundError: org/apache/commons/lang3/tuple/ImmutableTriple
  6. 0

    Bizarre log4j error

    Stack Overflow | 5 years ago | IAmYourFaja
    java.lang.NoClassDefFoundError: javax/jms/JMSException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.commons.lang3.tuple.ImmutableTriple

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    7 frames
  3. DSpace Kernel :: API and Implementation
    Packager.main
    1. org.dspace.content.crosswalk.CrosswalkMetadataValidator.createKey(CrosswalkMetadataValidator.java:113)
    2. org.dspace.content.crosswalk.CrosswalkMetadataValidator.validatedBefore(CrosswalkMetadataValidator.java:109)
    3. org.dspace.content.crosswalk.CrosswalkMetadataValidator.checkMetadata(CrosswalkMetadataValidator.java:62)
    4. org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDimField(XSLTIngestionCrosswalk.java:105)
    5. org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDim(XSLTIngestionCrosswalk.java:80)
    6. org.dspace.content.crosswalk.XSLTIngestionCrosswalk.applyDim(XSLTIngestionCrosswalk.java:85)
    7. org.dspace.content.crosswalk.XSLTIngestionCrosswalk.ingestDIM(XSLTIngestionCrosswalk.java:244)
    8. org.dspace.content.crosswalk.AIPDIMCrosswalk.ingest(AIPDIMCrosswalk.java:193)
    9. org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1247)
    10. org.dspace.content.packager.METSManifest.crosswalkItemDmd(METSManifest.java:1124)
    11. org.dspace.content.packager.DSpaceAIPIngester.crosswalkObjectDmd(DSpaceAIPIngester.java:163)
    12. org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:472)
    13. org.dspace.content.packager.AbstractMETSIngester.replace(AbstractMETSIngester.java:1192)
    14. org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:292)
    15. org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
    16. org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
    17. org.dspace.content.packager.AbstractPackageIngester.replaceAll(AbstractPackageIngester.java:325)
    18. org.dspace.app.packager.Packager.replace(Packager.java:737)
    19. org.dspace.app.packager.Packager.main(Packager.java:377)
    19 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. DSpace Kernel :: API and Implementation
    ScriptLauncher.main
    1. org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
    2. org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
    2 frames