liquibase.exception.LiquibaseException

liquibase.command.CommandExecutionException: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: "B'0'"

Samebug tips2

Java does not handle IPv6 nameservers before 1.8.0_60. Upgrade to the latest JVM.


rprp

This is a bug in Wise, updating to v4.10 seems to solve the problem.


rafaelrafael

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

Solutions on the web3682

  • via Unknown by Dieter Van de Walle,
  • via Unknown by Dieter Van de Walle,
  • Stack trace

    • liquibase.exception.LiquibaseException: liquibase.command.CommandExecutionException: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: "B'0'" at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:164) 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.command.CommandExecutionException: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: "B'0'" at liquibase.command.AbstractCommand.execute(AbstractCommand.java:13) at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:162) ... 3 more Caused by: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: "B'0'" at liquibase.snapshot.jvm.ColumnSnapshotGenerator.addTo(ColumnSnapshotGenerator.java:116) at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:73) at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:194) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:273) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:293) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:293) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:273) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:293) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:293) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:293) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:315) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:235) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:208) at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:70) at liquibase.snapshot.DatabaseSnapshot.<init>(DatabaseSnapshot.java:44) at liquibase.snapshot.JdbcDatabaseSnapshot.<init>(JdbcDatabaseSnapshot.java:21) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:150) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:139) at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190) at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140) at liquibase.command.DiffCommand.run(DiffCommand.java:132) at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8) ... 4 more Caused by: java.lang.NumberFormatException: For input string: "B'0'" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.<init>(Integer.java:867) at liquibase.util.SqlUtil.parseValue(SqlUtil.java:129) at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDefaultValue(ColumnSnapshotGenerator.java:372) at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readColumn(ColumnSnapshotGenerator.java:219) at liquibase.snapshot.jvm.ColumnSnapshotGenerator.addTo(ColumnSnapshotGenerator.java:111) ... 38 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

    guizmaiiguizmaii
    Once,
    Михайло ТітовМихайло Тітов
    4 times, last one
    HandemelindoHandemelindo
    Once,
    Julien SaabJulien Saab
    34 times, last one
    derproggerderprogger
    2 times, last one
    193 more bugmates