Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8754

Segment-copy command is broken due to unsatisfied dependency to commons-lang 3.x

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: segment-azure
    • Labels:
      None

      Description

      Running the segment-copy command to transfer a repo from Azure to local storage, I get this:

      $ java -jar oak-run-1.20-SNAPSHOT.jar segment-copy az:<AZURE_URI>/directory .
      Apache Jackrabbit Oak 1.20-SNAPSHOT
      Started segment-copy transfer!
      Source: Azure Segment Store@<AZURE_URI>/directory
      Destination: TarMK Segment Store@.
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
      	at org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.migrateJournal(SegmentStoreMigrator.java:107)
      	at org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.lambda$migrate$0(SegmentStoreMigrator.java:90)
      	at org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.runWithRetry(SegmentStoreMigrator.java:218)
      	at org.apache.jackrabbit.oak.segment.azure.tool.SegmentStoreMigrator.migrate(SegmentStoreMigrator.java:90)
      	at org.apache.jackrabbit.oak.segment.azure.tool.SegmentCopy.run(SegmentCopy.java:203)
      	at org.apache.jackrabbit.oak.run.SegmentCopyCommand.execute(SegmentCopyCommand.java:52)
      	at org.apache.jackrabbit.oak.run.Main.main(Main.java:49)
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 7 more
      

        Attachments

        1. OAK-8754.patch
          1 kB
          Andrei Dulceanu

          Activity

            People

            • Assignee:
              adulceanu Andrei Dulceanu
              Reporter:
              adulceanu Andrei Dulceanu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: