liquibase.exception.DatabaseException

liquibase.exception.UnexpectedLiquibaseException: Cannot parse snapshot offline:o racle?snapshot=snap.json

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web61

  • via JIRA by toleb, 9 months ago
    liquibase.exception.UnexpectedLiquibaseException: Cannot parse snapshot offline:o racle?snapshot=snap.json
  • via JIRA by Rafael Chaves, 9 months ago
    Cannot snapshot offline database
  • via JIRA by Rafael Chaves, 1 year ago
    Cannot snapshot offline database
  • Stack trace

    • liquibase.exception.DatabaseException: liquibase.exception.UnexpectedLiquibaseException: Cannot parse snapshot offline:o racle?snapshot=snap.json at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:143) at liquibase.integration.commandline.Main.createReferenceDatabaseFromCommandParams(Main.java:1249) at liquibase.integration.commandline.Main.doMigration(Main.java:964) at liquibase.integration.commandline.Main.run(Main.java:180) at liquibase.integration.commandline.Main.main(Main.java:99) Caused by: liquibase.exception.UnexpectedLiquibaseException: Cannot parse snapshot offline:oracle?snapshot=snap.json at liquibase.database.OfflineConnection.<init>(OfflineConnection.java:96) at liquibase.database.DatabaseFactory.openConnection(DatabaseFactory.java:167) at liquibase.database.DatabaseFactory.openDatabase(DatabaseFactory.java:146) at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:85) ... 4 more Caused by: liquibase.exception.LiquibaseParseException: liquibase.parser.core.ParsedNodeException: java.lang.ClassCastEx ception: java.lang.String cannot be cast to liquibase.structure.core.Column at liquibase.parser.core.yaml.YamlSnapshotParser.parse(YamlSnapshotParser.java:58) at liquibase.database.OfflineConnection.<init>(OfflineConnection.java:87) ... 7 more Caused by: liquibase.parser.core.ParsedNodeException: java.lang.ClassCastException: java.lang.String cannot be cast to l iquibase.structure.core.Column at liquibase.snapshot.DatabaseSnapshot.load(DatabaseSnapshot.java:443) at liquibase.parser.core.yaml.YamlSnapshotParser.parse(YamlSnapshotParser.java:51) ... 8 more Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to liquibase.structure.core.Column at liquibase.structure.core.PrimaryKey$1.toString(PrimaryKey.java:65) at liquibase.util.StringUtils.join(StringUtils.java:124) at liquibase.structure.core.PrimaryKey.getColumnNames(PrimaryKey.java:62) at liquibase.structure.core.PrimaryKey.hashCode(PrimaryKey.java:119) at java.util.HashMap.hash(Unknown Source) at java.util.HashMap.put(Unknown Source) at java.util.HashSet.add(Unknown Source) at liquibase.structure.DatabaseObjectCollection.add(DatabaseObjectCollection.java:89) at liquibase.snapshot.DatabaseSnapshot.load(DatabaseSnapshot.java:437) ... 9 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.