You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
From ggrussen...@gmail.com on May 03, 2013 14:06:25
The issue comes from the fact that the Project instance referenced by the AntLog instance referenced as the LOG static field of DbSupportFactory is not the Project instance being executed for invocations after the first one. As a consequence, it does not contain any threaded tasks and returns a null Task.
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: