IllegalArgument when executing Flyway Ant build script several times in the same JVM #484
Comments
From ggrussen...@gmail.com on May 03, 2013 14:06:25 |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original author: ggrussen...@gmail.com (May 03, 2013 14:01:52)
I have an Ant build script containing Flyway tasks and a main method wrapping the script's execution.
When the main method is executed several times by restarting the JVM, everything is fine and the tasks execute cleanly. But if the main method gets called several times within the same JVM, only the first invocation succeeds, the subsequent ones fails with the following error message: "java.lang.IllegalArgumentException: null source".
This message is the one of the following exception:
Caused by: java.lang.IllegalArgumentException: null source
at java.util.EventObject.<init>(EventObject.java:38)
at org.apache.tools.ant.BuildEvent.<init>(BuildEvent.java:93)
at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2351)
at org.apache.tools.ant.Project.log(Project.java:492)
at com.googlecode.flyway.ant.AntLog.debug(AntLog.java:42)
at com.googlecode.flyway.core.dbsupport.DbSupportFactory.createDbSupport(DbSupportFactory.java:59)
at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1159)
at com.googlecode.flyway.core.Flyway.info(Flyway.java:967)
at com.googlecode.flyway.ant.MigrateTask.doExecuteWithMigrationConfig(MigrateTask.java:157)
at com.googlecode.flyway.ant.AbstractMigrationLoadingTask.doExecute(AbstractMigrationLoadingTask.java:271)
at com.googlecode.flyway.ant.AbstractFlywayTask.execute(AbstractFlywayTask.java:329)
... 33 more
Behaviour was observed with Flyway 2.1.1 and Ant 1.8.5.
Original issue: http://code.google.com/p/flyway/issues/detail?id=487
The text was updated successfully, but these errors were encountered: