java.lang.NullPointerException

JIRA | Nathan Voxland | 5 years ago
  1. 0

    http://forum.liquibase.org/topic/null-pointer-exception-in-jdbcdatabasesnapshotgenerator#49382000000211045 I am having a small issue with the hibernate integration. I noticed that you split the hibernate aspect of liquibase into separate extension jar file in v2. I guess the documentation is a little out of date. Anyway having downloaded that, I now get a little further. The output I now get is D:\apps\liquibase-2.0.1-bin>java -jar liquibase.jar --logLevel=debug diff DEBUG 14/02/11 12:46:liquibase: Unable to load/access Apache Derby driver class org.apache.derby.tools.sysinfo to check version: org.apache.derby.tools.sysinfo DEBUG 14/02/11 12:46:liquibase: Connected to XTS_CHRIS@jdbc:oracle:thin:@asus4:1 521:XE WARNING 14/02/11 12:46:liquibase: Unknown database: Hibernate DEBUG 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... INFO 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... Liquibase Update Failed: Unknown Reason SEVERE 14/02/11 12:46:liquibase: Unknown Reason java.lang.NullPointerException at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables(JdbcD atabaseSnapshotGenerator.java:268) at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(J dbcDatabaseSnapshotGenerator.java:240) at liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(Da tabaseSnapshotGeneratorFactory.java:69) at liquibase.diff.Diff.compare(Diff.java:63) at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLine Utils.java:118) at liquibase.integration.commandline.Main.doMigration(Main.java:618) at liquibase.integration.commandline.Main.main(Main.java:116) Looking into the source code, I am a little confused. liquibase.ext.hibernate.database.HibernateDatabase.getConnection always returns null. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot obtains a DatabaseMetaData and then passes to readTables. My take on the getMetaData method is that it will always return null, hence fail for a hibernate driver. So it appears to me that something must have changed in this area, or I am doing something wrong.

    JIRA | 5 years ago | Nathan Voxland
    java.lang.NullPointerException
  2. 0

    from http://forum.liquibase.org/topic/null-pointer-exception-in-jdbcdatabasesnapshotgenerator I am having a small issue with the hibernate integration. I noticed that you split the hibernate aspect of liquibase into separate extension jar file in v2. I guess the documentation is a little out of date. Anyway having downloaded that, I now get a little further. The output I now get is D:\apps\liquibase-2.0.1-bin>java -jar liquibase.jar --logLevel=debug diff DEBUG 14/02/11 12:46:liquibase: Unable to load/access Apache Derby driver class org.apache.derby.tools.sysinfo to check version: org.apache.derby.tools.sysinfo DEBUG 14/02/11 12:46:liquibase: Connected to XTS_CHRIS@jdbc:oracle:thin:@asus4:1 521:XE WARNING 14/02/11 12:46:liquibase: Unknown database: Hibernate DEBUG 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... INFO 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... Liquibase Update Failed: Unknown Reason SEVERE 14/02/11 12:46:liquibase: Unknown Reason java.lang.NullPointerException at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables(JdbcD atabaseSnapshotGenerator.java:268) at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(J dbcDatabaseSnapshotGenerator.java:240) at liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(Da tabaseSnapshotGeneratorFactory.java:69) at liquibase.diff.Diff.compare(Diff.java:63) at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLine Utils.java:118) at liquibase.integration.commandline.Main.doMigration(Main.java:618) at liquibase.integration.commandline.Main.main(Main.java:116) Looking into the source code, I am a little confused. liquibase.ext.hibernate.database.HibernateDatabase.getConnection always returns null. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot obtains a DatabaseMetaData and then passes to readTables. My take on the getMetaData method is that it will always return null, hence fail for a hibernate driver. So it appears to me that something must have changed in this area, or I am doing something wrong.

    JIRA | 6 years ago | Nathan Voxland
    java.lang.NullPointerException
  3. 0

    from http://forum.liquibase.org/topic/null-pointer-exception-in-jdbcdatabasesnapshotgenerator I am having a small issue with the hibernate integration. I noticed that you split the hibernate aspect of liquibase into separate extension jar file in v2. I guess the documentation is a little out of date. Anyway having downloaded that, I now get a little further. The output I now get is D:\apps\liquibase-2.0.1-bin>java -jar liquibase.jar --logLevel=debug diff DEBUG 14/02/11 12:46:liquibase: Unable to load/access Apache Derby driver class org.apache.derby.tools.sysinfo to check version: org.apache.derby.tools.sysinfo DEBUG 14/02/11 12:46:liquibase: Connected to XTS_CHRIS@jdbc:oracle:thin:@asus4:1 521:XE WARNING 14/02/11 12:46:liquibase: Unknown database: Hibernate DEBUG 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... INFO 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... Liquibase Update Failed: Unknown Reason SEVERE 14/02/11 12:46:liquibase: Unknown Reason java.lang.NullPointerException at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables(JdbcD atabaseSnapshotGenerator.java:268) at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(J dbcDatabaseSnapshotGenerator.java:240) at liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(Da tabaseSnapshotGeneratorFactory.java:69) at liquibase.diff.Diff.compare(Diff.java:63) at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLine Utils.java:118) at liquibase.integration.commandline.Main.doMigration(Main.java:618) at liquibase.integration.commandline.Main.main(Main.java:116) Looking into the source code, I am a little confused. liquibase.ext.hibernate.database.HibernateDatabase.getConnection always returns null. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot obtains a DatabaseMetaData and then passes to readTables. My take on the getMetaData method is that it will always return null, hence fail for a hibernate driver. So it appears to me that something must have changed in this area, or I am doing something wrong.

    JIRA | 6 years ago | Nathan Voxland
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    http://forum.liquibase.org/topic/null-pointer-exception-in-jdbcdatabasesnapshotgenerator#49382000000211045 I am having a small issue with the hibernate integration. I noticed that you split the hibernate aspect of liquibase into separate extension jar file in v2. I guess the documentation is a little out of date. Anyway having downloaded that, I now get a little further. The output I now get is D:\apps\liquibase-2.0.1-bin>java -jar liquibase.jar --logLevel=debug diff DEBUG 14/02/11 12:46:liquibase: Unable to load/access Apache Derby driver class org.apache.derby.tools.sysinfo to check version: org.apache.derby.tools.sysinfo DEBUG 14/02/11 12:46:liquibase: Connected to XTS_CHRIS@jdbc:oracle:thin:@asus4:1 521:XE WARNING 14/02/11 12:46:liquibase: Unknown database: Hibernate DEBUG 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... INFO 14/02/11 12:46:liquibase: Reading tables for unsupported Database ... Liquibase Update Failed: Unknown Reason SEVERE 14/02/11 12:46:liquibase: Unknown Reason java.lang.NullPointerException at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables(JdbcD atabaseSnapshotGenerator.java:268) at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(J dbcDatabaseSnapshotGenerator.java:240) at liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(Da tabaseSnapshotGeneratorFactory.java:69) at liquibase.diff.Diff.compare(Diff.java:63) at liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLine Utils.java:118) at liquibase.integration.commandline.Main.doMigration(Main.java:618) at liquibase.integration.commandline.Main.main(Main.java:116) Looking into the source code, I am a little confused. liquibase.ext.hibernate.database.HibernateDatabase.getConnection always returns null. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot obtains a DatabaseMetaData and then passes to readTables. My take on the getMetaData method is that it will always return null, hence fail for a hibernate driver. So it appears to me that something must have changed in this area, or I am doing something wrong.

    JIRA | 5 years ago | Nathan Voxland
    java.lang.NullPointerException
  6. 0

    Liquibase Hibernate Plugin Does Not Work

    Stack Overflow | 2 years ago | Jazzepi
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables()
    2. Liquibase Core
      Main.main
      1. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.readTables(JdbcDatabaseSnapshotGenerator.java:268)
      2. liquibase.snapshot.jvm.JdbcDatabaseSnapshotGenerator.createSnapshot(JdbcDatabaseSnapshotGenerator.java:240)
      3. liquibase.snapshot.DatabaseSnapshotGeneratorFactory.createSnapshot(DatabaseSnapshotGeneratorFactory.java:69)
      4. liquibase.diff.Diff.compare(Diff.java:63)
      5. liquibase.integration.commandline.CommandLineUtils.doDiff(CommandLineUtils.java:118)
      6. liquibase.integration.commandline.Main.doMigration(Main.java:618)
      7. liquibase.integration.commandline.Main.main(Main.java:116)
      7 frames