Informix generateChangeLog issue

Unlikely to be a Liquibase bug. Try running with --logLevel=debug. If you can’t figure out the problem with that, make sure your reply has details on what command you did as well as the debug output.

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

I am using Liquibase version 3.3.2 to create a changelog for my existing Informix DB using the generateChangeLog command.

The changelog.xml (483 Kb) is created successfully but contains no changesets! I have tried using other versions of Liquibase but no success. Is it a Liquibase bug?

Thanks in advance for the help.

Here is how the changelog.xml looks like -

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog "xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "xsi:schemaLocation=“http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd”/>

Hi Steve,

Here is the command -

liquibase --changeLogFile=changelog.xml --url=“jdbc:informix-sqli://172.28.137.182:9088/glsnextgen:informixserver=testgif” --username=abc --password=abc --logLevel=debug --logFile=log.txt generateChangeLog

Liquibase ‘generateChangeLog’ Successful

Here is the debug output -

DEBUG 18/2/15 10:37 AM: liquibase: Connected to santhosh@jdbc:informix-sqli://172.28.137.182:9088/glsnextgen:informixserver=testgif

DEBUG 18/2/15 10:37 AM: liquibase: Setting auto commit to false from true

DEBUG 18/2/15 10:37 AM: liquibase: Executing EXECUTE database command: EXECUTE PROCEDURE IFX_ALLOW_NEWLINE(‘T’);

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.CatalogAndSchema.customize(CatalogAndSchema.java:132)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:116)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 17 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 25 more

DEBUG 18/2/15 10:37 AM: liquibase: Computed checksum for 1424236030375 as 9bac50feef8f4d4b1c1f6d291ac63b0a

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject(SchemaSnapshotGenerator.java:43)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)

at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)

at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)

at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 30 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 38 more

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.CatalogAndSchema.standardize(CatalogAndSchema.java:81)

at liquibase.CatalogAndSchema.customize(CatalogAndSchema.java:119)

at liquibase.database.AbstractJdbcDatabase.getSchemaFromJdbcInfo(AbstractJdbcDatabase.java:1329)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.toCatalogAndSchema(SchemaSnapshotGenerator.java:96)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject(SchemaSnapshotGenerator.java:65)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)

at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)

at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)

at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 34 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 42 more

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.CatalogAndSchema.standardize(CatalogAndSchema.java:81)

at liquibase.diff.compare.core.SchemaComparator.isSameObject(SchemaComparator.java:34)

at liquibase.diff.compare.DatabaseObjectComparatorChain.isSameObject(DatabaseObjectComparatorChain.java:43)

at liquibase.diff.compare.DatabaseObjectComparatorFactory.isSameObject(DatabaseObjectComparatorFactory.java:147)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject(SchemaSnapshotGenerator.java:70)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)

at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)

at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)

at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 34 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 42 more

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.CatalogAndSchema.standardize(CatalogAndSchema.java:81)

at liquibase.CatalogAndSchema.customize(CatalogAndSchema.java:119)

at liquibase.database.AbstractJdbcDatabase.getSchemaFromJdbcInfo(AbstractJdbcDatabase.java:1329)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.toCatalogAndSchema(SchemaSnapshotGenerator.java:96)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject(SchemaSnapshotGenerator.java:65)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)

at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)

at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)

at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 34 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 42 more

INFO 18/2/15 10:37 AM: liquibase: Error getting default schema

liquibase.exception.DatabaseException: Error executing SQL call current_schema: A syntax error has occurred.

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:103)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:132)

at liquibase.executor.jvm.JdbcExecutor.query(JdbcExecutor.java:143)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:151)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:166)

at liquibase.executor.jvm.JdbcExecutor.queryForObject(JdbcExecutor.java:161)

at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:318)

at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:301)

at liquibase.CatalogAndSchema.standardize(CatalogAndSchema.java:81)

at liquibase.diff.compare.core.SchemaComparator.isSameObject(SchemaComparator.java:34)

at liquibase.diff.compare.DatabaseObjectComparatorChain.isSameObject(DatabaseObjectComparatorChain.java:43)

at liquibase.diff.compare.DatabaseObjectComparatorFactory.isSameObject(DatabaseObjectComparatorFactory.java:147)

at liquibase.snapshot.jvm.SchemaSnapshotGenerator.snapshotObject(SchemaSnapshotGenerator.java:70)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:63)

at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)

at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:163)

at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:60)

at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:37)

at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)

at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)

at liquibase.command.DiffCommand.createReferenceSnapshot(DiffCommand.java:190)

at liquibase.command.DiffCommand.createDiffResult(DiffCommand.java:140)

at liquibase.command.GenerateChangeLogCommand.run(GenerateChangeLogCommand.java:45)

at liquibase.command.AbstractCommand.execute(AbstractCommand.java:8)

at liquibase.integration.commandline.CommandLineUtils.doGenerateChangeLog(CommandLineUtils.java:153)

at liquibase.integration.commandline.Main.doMigration(Main.java:939)

at liquibase.integration.commandline.Main.run(Main.java:177)

at liquibase.integration.commandline.Main.main(Main.java:96)

Caused by: java.sql.SQLException: A syntax error has occurred.

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3208)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3518)

at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2353)

at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2269)

at com.informix.jdbc.IfxSqli.executePrepare(IfxSqli.java:1153)

at com.informix.jdbc.IfxPreparedStatement.e(IfxPreparedStatement.java:318)

at com.informix.jdbc.IfxCallableStatement.(IfxCallableStatement.java:132)

at com.informix.jdbc.IfxSqliConnect.i(IfxSqliConnect.java:5932)

at com.informix.jdbc.IfxSqliConnect.prepareCall(IfxSqliConnect.java:2140)

at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:95)

… 34 more

Caused by: java.sql.SQLException

at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)

at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3523)

… 42 more

INFO 18/2/15 10:37 AM: liquibase: changelog.xml does not exist, creating

DEBUG 18/2/15 10:37 AM: liquibase: MissingObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.UniqueConstraint liquibase.structure.core.ForeignKey liquibase.structure.core.Index liquibase.structure.core.View

DEBUG 18/2/15 10:37 AM: liquibase: UnexpectedObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.StoredProcedure liquibase.structure.core.UniqueConstraint liquibase.structure.core.View liquibase.structure.core.Table liquibase.structure.core.PrimaryKey liquibase.structure.core.Column liquibase.structure.core.Index liquibase.structure.core.Sequence

DEBUG 18/2/15 10:37 AM: liquibase: ChangedObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.Index liquibase.structure.core.UniqueConstraint liquibase.structure.core.View

Thanks for the help !

Following up on my previous post, I’ve added the defaultSchema and my command now looks like this -

liquibase --changeLogFile=changelog.xml --url=“jdbc:informix-sqli://172.28.137.182:9088/glsnextgen:informixserver=testgif” --username=abc --password=abc --logLevel=debug --logFile=log.txt --defaultSchema=sysmaster generateChangeLog

However, the generated changelog still has no changesets. This is what the changelog looks like -

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"/>

This is what my debug log looks like -

DEBUG 18/2/15 11:22 AM: liquibase: Connected to santhosh@jdbc:informix-sqli://172.28.137.182:9088/glsnextgen:informixserver=testgif

DEBUG 18/2/15 11:22 AM: liquibase: Setting auto commit to false from true

DEBUG 18/2/15 11:22 AM: liquibase: Executing EXECUTE database command: EXECUTE PROCEDURE IFX_ALLOW_NEWLINE('T');

DEBUG 18/2/15 11:22 AM: liquibase: Computed checksum for 1424238728847 as 9ed2ff6dc6133a2a2bb8f27d79bd1597

INFO 18/2/15 11:22 AM: liquibase: changelog1.xml does not exist, creating

DEBUG 18/2/15 11:22 AM: liquibase: MissingObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.UniqueConstraint liquibase.structure.core.ForeignKey liquibase.structure.core.Index liquibase.structure.core.View

DEBUG 18/2/15 11:22 AM: liquibase: UnexpectedObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.StoredProcedure liquibase.structure.core.UniqueConstraint liquibase.structure.core.View liquibase.structure.core.Table liquibase.structure.core.PrimaryKey liquibase.structure.core.Column liquibase.structure.core.Index liquibase.structure.core.Sequence

DEBUG 18/2/15 11:22 AM: liquibase: ChangedObjectChangeGenerator type order: liquibase.structure.core.Catalog liquibase.structure.core.ForeignKey liquibase.structure.core.Schema liquibase.structure.core.Sequence liquibase.structure.core.StoredProcedure liquibase.structure.core.Table liquibase.structure.core.Column liquibase.structure.core.PrimaryKey liquibase.structure.core.Index liquibase.structure.core.UniqueConstraint liquibase.structure.core.View

Thanks for the troubleshooting. I created https://liquibase.jira.com/browse/CORE-2278 to track the issue.

Nathan