org.fcrepo.server.errors.ModuleInitializationException: couldn't set up path_algorithm for objectPaths Class org.fcrepo.server.storage.lowlevel.defaultstore.Store can not access a member of class org.fcrepo.server.storage.lowlevel.TimestampPathAlgorithm with modifiers "public"

Sakai JIRA | mike korcynski | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I just started a 3.7.1 upgrade at Tufts as well. While running the installer we ran into a different initial problem, and having resolved that have caught up the problem reported here, so first off, thanks for the info here in this thread. The problem we initially hit is that in our install we specify the low level storage option as legacy-fs, which upon start up results in the following error: ERROR 13:46:21.014 (Server) Module (org.fcrepo.server.storage.lowlevel.ILowlevelStorage) failed to initialize org.fcrepo.server.errors.ModuleInitializationException: couldn't set up path_algorithm for objectPaths Class org.fcrepo.server.storage.lowlevel.defaultstore.Store can not access a member of class org.fcrepo.server.storage.lowlevel.TimestampPathAlgorithm with modifiers "public" at org.fcrepo.server.storage.lowlevel.DefaultLowlevelStorageModule.postInitMod ule(DefaultLowlevelStorageModule.java:44) ~[fcrepo-server-3.7.1.jar:na] Looking at the fcrepo-server source it seemed to be related to this commit: https://github.com/fcrepo/fcrepo/commit/5ad360edf39bfeca57038974639b41073af1fd1b#diff-644ddc1704c65930c61becbd9826bee1 Where the Store class moved from being a support within DefaultLowlevelStorage in the org.fcrepo.server.storage.lowlevel package to the org.fcrepo.server.storage.lowlevel.default package as a top level class. I confirmed that by making the TimestampPathAlgorithm class public this issue goes away at startup since Store would then have access. Not sure if this is the correct fix or if Store should've stayed in the previous package.

    Sakai JIRA | 3 years ago | mike korcynski
    org.fcrepo.server.errors.ModuleInitializationException: couldn't set up path_algorithm for objectPaths Class org.fcrepo.server.storage.lowlevel.defaultstore.Store can not access a member of class org.fcrepo.server.storage.lowlevel.TimestampPathAlgorithm with modifiers "public"

    Root Cause Analysis

    1. org.fcrepo.server.errors.ModuleInitializationException

      couldn't set up path_algorithm for objectPaths Class org.fcrepo.server.storage.lowlevel.defaultstore.Store can not access a member of class org.fcrepo.server.storage.lowlevel.TimestampPathAlgorithm with modifiers "public"

      at org.fcrepo.server.storage.lowlevel.DefaultLowlevelStorageModule.postInitModule()
    2. org.fcrepo.server
      DefaultLowlevelStorageModule.postInitModule
      1. org.fcrepo.server.storage.lowlevel.DefaultLowlevelStorageModule.postInitModule(DefaultLowlevelStorageModule.java:44)[fcrepo-server-3.7.1.jar:na]
      1 frame