Grails database migration fails with LiquibaseException -


i'm using grails database migration plugin.

this configuration:

grails.plugin.databasemigration.updateonstart = true grails.plugin.databasemigration.updateonstartfilenames = 'changelog.groovy' 

when start app exception:

| error 2013-08-20 08:55:47,356 [localhost-startstop-1] error context.grailscontextloader  - error initializing application: liquibase.exception.liquibaseexception: cannot find parser supports c message: liquibase.exception.liquibaseexception: cannot find parser supports c     line | method ->>  334 | innerrun  in java.util.concurrent.futuretask$sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  |    166 | run       in java.util.concurrent.futuretask |   1145 | runworker in java.util.concurrent.threadpoolexecutor |    615 | run       in java.util.concurrent.threadpoolexecutor$worker ^    724 | run . . . in java.lang.thread  caused liquibaseexception: cannot find parser supports c ->>   61 | getparser in liquibase.parser.changelogparserfactory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  |    623 | listunrunchangesets in liquibase.liquibase |     67 | docall .  in grails.plugin.databasemigration.migrationrunner$_autorun_closure1 |    132 | executeinsession in grails.plugin.databasemigration.migrationutils |     56 | autorun . in grails.plugin.databasemigration.migrationrunner |     96 | docall    in databasemigrationgrailsplugin$_closure2 |    334 | innerrun  in java.util.concurrent.futuretask$sync |    166 | run       in java.util.concurrent.futuretask |   1145 | runworker in java.util.concurrent.threadpoolexecutor |    615 | run       in java.util.concurrent.threadpoolexecutor$worker ^    724 | run . . . in java.lang.thread 

any ideas why?

the problem updateonstartfilenames property takes array, not string, configuration should be

grails.plugin.databasemigration.updateonstartfilenames = ['changelog.groovy'] 

the plugin iterates on list executing each in turn, when given string iterates on each character , executes it. liquibase throws exception because doesn't recognise suffix of first letter, in case, 'c'.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -