java.lang.NullPointerException

JIRA | Marco Perazzo | 3 years ago
  1. 0

    When performing the dropAll command, a NullPointerException gets thrown in ForeignKeyComparator. This is the complete stacktrace: java.lang.NullPointerException at liquibase.diff.compare.core.ForeignKeyComparator.isSameObject(ForeignKeyComparator.java:41) at liquibase.diff.compare.DatabaseObjectComparatorChain.isSameObject(DatabaseObjectComparatorChain.java:39) at liquibase.diff.compare.DatabaseObjectComparatorFactory.isSameObject(DatabaseObjectComparatorFactory.java:92) at liquibase.snapshot.jvm.ForeignKeySnapshotGenerator.snapshotObject(ForeignKeySnapshotGenerator.java:164) at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:59) at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42) at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:62) at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:75) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:157) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:128) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:121) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:109) at liquibase.database.AbstractJdbcDatabase.dropDatabaseObjects(AbstractJdbcDatabase.java:869) at liquibase.Liquibase.dropAll(Liquibase.java:550) at liquibase.Liquibase.dropAll(Liquibase.java:537) at LiquiTest.main(LiquiTest.java:52) I think this was introduced with the following commit: https://github.com/liquibase/liquibase/commit/921adca4cb468bb7efada34baf580aae0f7348b9

    JIRA | 3 years ago | Marco Perazzo
    java.lang.NullPointerException
  2. 0

    When performing the dropAll command, a NullPointerException gets thrown in ForeignKeyComparator. This is the complete stacktrace: java.lang.NullPointerException at liquibase.diff.compare.core.ForeignKeyComparator.isSameObject(ForeignKeyComparator.java:41) at liquibase.diff.compare.DatabaseObjectComparatorChain.isSameObject(DatabaseObjectComparatorChain.java:39) at liquibase.diff.compare.DatabaseObjectComparatorFactory.isSameObject(DatabaseObjectComparatorFactory.java:92) at liquibase.snapshot.jvm.ForeignKeySnapshotGenerator.snapshotObject(ForeignKeySnapshotGenerator.java:164) at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:59) at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42) at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:62) at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:75) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144) at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:157) at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107) at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:128) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:121) at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:109) at liquibase.database.AbstractJdbcDatabase.dropDatabaseObjects(AbstractJdbcDatabase.java:869) at liquibase.Liquibase.dropAll(Liquibase.java:550) at liquibase.Liquibase.dropAll(Liquibase.java:537) at LiquiTest.main(LiquiTest.java:52) I think this was introduced with the following commit: https://github.com/liquibase/liquibase/commit/921adca4cb468bb7efada34baf580aae0f7348b9

    JIRA | 3 years ago | Marco Perazzo
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.diff.compare.core.ForeignKeyComparator.isSameObject()
    2. Liquibase Core
      Liquibase.dropAll
      1. liquibase.diff.compare.core.ForeignKeyComparator.isSameObject(ForeignKeyComparator.java:41)
      2. liquibase.diff.compare.DatabaseObjectComparatorChain.isSameObject(DatabaseObjectComparatorChain.java:39)
      3. liquibase.diff.compare.DatabaseObjectComparatorFactory.isSameObject(DatabaseObjectComparatorFactory.java:92)
      4. liquibase.snapshot.jvm.ForeignKeySnapshotGenerator.snapshotObject(ForeignKeySnapshotGenerator.java:164)
      5. liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:59)
      6. liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42)
      7. liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:62)
      8. liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:42)
      9. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:75)
      10. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      11. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      12. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      13. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124)
      14. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      15. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      16. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      17. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      18. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      19. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124)
      20. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      21. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      22. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      23. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      24. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      25. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124)
      26. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      27. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      28. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      29. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      30. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      31. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:124)
      32. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      33. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      34. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      35. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      36. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      37. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:144)
      38. liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:157)
      39. liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:107)
      40. liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:94)
      41. liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:128)
      42. liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:121)
      43. liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:109)
      44. liquibase.database.AbstractJdbcDatabase.dropDatabaseObjects(AbstractJdbcDatabase.java:869)
      45. liquibase.Liquibase.dropAll(Liquibase.java:550)
      46. liquibase.Liquibase.dropAll(Liquibase.java:537)
      46 frames
    3. Unknown
      LiquiTest.main
      1. LiquiTest.main(LiquiTest.java:52)
      1 frame