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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • segment-azure
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment