Code Monkey home page Code Monkey logo

hippo-db-migration-demo's People

Contributors

woonsanko avatar

Watchers

 avatar  avatar

hippo-db-migration-demo's Issues

Exception: SharedItemStateManager cannot be cast to HippoSharedItemStateManager

As part of a an test run of these migration steps on a mostly empty project generated from the default HippoCMS v12 archetype we ran into the following error when running the migrate step.

Exception in thread "main" java.lang.ClassCastException: org.apache.jackrabbit.core.state.SharedItemStateManager cannot be cast to org.hippoecm.repository.jackrabbit.HippoSharedItemStateManager
        at org.hippoecm.repository.FacetedNavigationEngineImpl.doInit(FacetedNavigationEngineImpl.java:655)
        at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:78)
        at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:683)
        at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(WorkspaceConfig.java:251)
        at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:171)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1902)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doPostInitialize(RepositoryImpl.java:2140)
        at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:2038)
        at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:544)
        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:327)
        at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:616)
        at org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:148)
        at org.apache.jackrabbit.core.RepositoryCopier.copy(RepositoryCopier.java:112)
        at org.apache.jackrabbit.standalone.Main.backup(Main.java:248)
        at org.apache.jackrabbit.standalone.Main.run(Main.java:172)
        at org.apache.jackrabbit.standalone.Main.main(Main.java:59)

Our test case is migrating from a basic H2 setup with the mostly empty v12 instance of HippoCMS over to one that has been configured locally to run with Postgres through cargo. The eventual goal is to model these same steps to perform a MySQL to Postgres conversion once we get our footing with a simple scenario.

While just a guess at this point I'm wondering if the error has something to do with our choice when selecting "best compatible version which you can download" as we did in step 4. In our case we went for jackrabbit-standalone-2.20.2.jar but perhaps that's not correct for HippoCMS v12?

Another detail is that the target Postgres database has been created and stood up using the same empty v12 project with just the connection details modified to work with Postgres. We've confirmed that the site appears to be working correctly with cargo but the backup/target database in this case is not empty because we've already initialized it by running the project with cargo pointing to the DB. It wasn't clear from the steps whether the database should be empty or have an initial schema already created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.