java.lang.NullPointerException

Oracle Community | inna.shapiro.il | 2 years ago
  1. 0

    I have a change log using a sqlFile changeset, and I am finding various issues with comments. The one at hand: if a comment line ends with semicolon, it seems Liquibase will see it as a statement to execute. For instance, if my SQL file looks like this: {code} -- This one is ignored -- This too is ignored; as the semicolon is not the last character -- This is just a comment but Liquibase will try to execute it; CREATE TABLE MY_TABLE ( column1 VARCHAR(50)); {code} Liquibase will try to execute the three comments as a statement (I gather because it sees line-ending semi-colons as indication of statements): {code} DEBUG 1/27/15 6:55 PM: liquibase: changelog/db-changelog-master.xml: changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon: Executing EXECUTE database command: -- This one is ignored -- This too is ignored; as the semicolon is not the last character -- This is just a comment but Liquibase will try to execute it SEVERE 1/27/15 6:55 PM: liquibase: changelog/db-changelog-master.xml: changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon: Change Set changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon failed. Error: java.lang.NullPointerException liquibase.exception.DatabaseException: java.lang.NullPointerException at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:316) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1210) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:550) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.update(Liquibase.java:200) at liquibase.integration.commandline.Main.doMigration(Main.java:1044) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: java.lang.NullPointerException at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:973) at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1041) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329) at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1909) at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1871) at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:318) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:314) ... 11 more {code}

    JIRA | 2 years ago | Rafael Chaves
    liquibase.exception.DatabaseException: java.lang.NullPointerException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I have a change log using a sqlFile changeset, and I am finding various issues with comments. The one at hand: if a comment line ends with semicolon, it seems Liquibase will see it as a statement to execute. For instance, if my SQL file looks like this: {code} -- This one is ignored -- This too is ignored; as the semicolon is not the last character -- This is just a comment but Liquibase will try to execute it; CREATE TABLE MY_TABLE ( column1 VARCHAR(50)); {code} Liquibase will try to execute the three comments as a statement (I gather because it sees line-ending semi-colons as indication of statements): {code} DEBUG 1/27/15 6:55 PM: liquibase: changelog/db-changelog-master.xml: changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon: Executing EXECUTE database command: -- This one is ignored -- This too is ignored; as the semicolon is not the last character -- This is just a comment but Liquibase will try to execute it SEVERE 1/27/15 6:55 PM: liquibase: changelog/db-changelog-master.xml: changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon: Change Set changelog/db-changelog-3.7-initial.xml::3.7_initial::pixeon failed. Error: java.lang.NullPointerException liquibase.exception.DatabaseException: java.lang.NullPointerException at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:316) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:55) at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:122) at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1227) at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1210) at liquibase.changelog.ChangeSet.execute(ChangeSet.java:550) at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43) at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73) at liquibase.Liquibase.update(Liquibase.java:200) at liquibase.integration.commandline.Main.doMigration(Main.java:1044) at liquibase.integration.commandline.Main.run(Main.java:175) at liquibase.integration.commandline.Main.main(Main.java:94) Caused by: java.lang.NullPointerException at oracle.jdbc.driver.T4C8Oall.getNumRows(T4C8Oall.java:973) at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1041) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329) at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1909) at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1871) at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:318) at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:314) ... 11 more {code}

    JIRA | 2 years ago | Rafael Chaves
    liquibase.exception.DatabaseException: java.lang.NullPointerException
  4. 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

    1 unregistered visitors
    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 oracle.jdbc.driver.OracleStatement.executeMaybeDescribe()
    2. Oracle jdbc
      OracleStatementWrapper.execute
      1. oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1189)
      2. oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1289)
      3. oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1909)
      4. oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1871)
      5. oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:318)
      5 frames
    3. oracle.dbtools.db
      DBUtil.hasAccess
      1. oracle.dbtools.db.DBUtil.hasAccess(DBUtil.java:1817)
      1 frame
    4. oracle.dbtools.raptor
      RaptorTask.call
      1. oracle.dbtools.raptor.query.QueryUtils.checkNonOracleAccess(QueryUtils.java:506)
      2. oracle.dbtools.raptor.query.QueryUtils.getQuery(QueryUtils.java:337)
      3. oracle.dbtools.raptor.query.QueryUtils.getQuery(QueryUtils.java:242)
      4. oracle.dbtools.raptor.query.ObjectQueries.getQuery(ObjectQueries.java:42)
      5. oracle.dbtools.raptor.navigator.db.xml.XmlObjectFactory.createFolderInstance(XmlObjectFactory.java:49)
      6. oracle.dbtools.raptor.navigator.db.xml.XmlTypeOwnerInstance.listTypeFolders(XmlTypeOwnerInstance.java:93)
      7. oracle.dbtools.raptor.navigator.db.impl.TypeContainerTreeNode.loadTypeFolders(TypeContainerTreeNode.java:111)
      8. oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:184)
      9. oracle.dbtools.raptor.navigator.db.impl.DatabaseTreeNode$LoadTask.doWork(DatabaseTreeNode.java:112)
      10. oracle.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)
      10 frames
    5. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      1 frame
    6. oracle.dbtools.raptor
      RaptorTaskManager$RaptorFutureTask.run
      1. oracle.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:554)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames