Discussion:
[Liquibase-user] New Topic: Error Reading Migration File: null
Liquibase Community Forum
2010-12-07 23:13:10 UTC
Permalink
A new topic, 'Error Reading Migration File: null', has been made on a board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=820.new#new

The text of the topic is shown below:

I'm trying to launch Liquibase programatically and I'm running into some trouble. Using 2.0 RC7, I'm trying to use the following code to launch Liquibase and run a group of changes. Has anyone seen seen a similar issue, and if so, how did you work around it?

For reference, LIQUIBASE_SCRIPT_LOCATION = "conf/Database2.xml"

Code:
Liquibase liquibase = new Liquibase(LIQUIBASE_SCRIPT_LOCATION, new FileSystemResourceAccessor(), new JdbcConnection(conn));

String contexts = "audit,core,jbpm";
String tag = Long.toString(new Date().getTime());
try {
if(hasLiquibase) {
System.out.println("Tagging changeset");
liquibase.tag(tag);
}
liquibase.update(contexts);
} catch(Exception e) {
if(hasLiquibase) {
liquibase.rollback(tag, contexts);
}
throw e;
}



This is the stack trace that I receive:

liquibase.exception.ChangeLogParseException: Error Reading Migration File: null
at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:91)
at liquibase.Liquibase.update(Liquibase.java:105)

Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The Liquibase Community Forum Team.

Loading...