Generate SQL from ChangeLog using API and being Offline

Hello,



I am trying to merely convert ChangeLog into an SQL file using the Java
API. I tried something like:

Database
database = DatabaseFactory.getInstance()

.findCorrectDatabaseImplementation(new OfflineConnection(“offline:oracle”));
Liquibase
liquibase = new Liquibase(“changeLog.xml”,
resourceAccessor, database);
liquibase.update(new
Contexts(), writer);

But I get on the very first line:

liquibase.exception.UnexpectedLiquibaseException: java.lang.NoSuchMethodException: liquibase.database.OfflineConnection.getWrappedConnection()

at liquibase.database.core.OracleDatabase.setConnection(OracleDatabase.java:62)

at liquibase.database.DatabaseFactory.findCorrectDatabaseImplementation(DatabaseFactory.java:123)

What I did miss? Where could I find an example of code to do that?

Thanks for your help,

Gérald

Same problem with Liquibase command line

liquibase
–changeLogFile /path/to/changeLog.xml --url offline:oracle updateSQL
Unexpected
error running Liquibase: java.lang.NoSuchMethodException: liquibase.database.OfflineConnection.getWrappedConnection()

Is it a bug or do I misuse Liquibase?

I guess it’s bug in OracleDatabase#setConnection because using MySQL instead of Oracle, I have no problem.

https://liquibase.jira.com/browse/CORE-2192