I also received a null pointer using the tag database command, running with Ant. But checking the DATABASECHANGELOG file I see that it did apply the tag I gave.
<target name="tag-database">
<tagDatabase
driver="${database.driver}"
url="${database.url}"
username="${database.username}"
password="${database.password}"
classpathref="g2.classpath"
tag="R1.0"
>
</tagDatabase>
</target>
All of the properties and references used work in my updateDatabase target so those are correct.
Buildfile: C:\Production\jboss_emr\g2\build-ci.xmlHere's my ant target.
tag-database:
[tagDatabase] WARNING 7/8/14 10:09 AM: liquibase: Can not use class liquibase.ext.hibernate.database.HibernateSpringDatabase as a Liquibase service because org.springframework.beans.factory.support.BeanDefinitionRegistry is not in the classpath
[tagDatabase] INFO 7/8/14 10:09 AM: liquibase: Successfully acquired change log lock
[tagDatabase] INFO 7/8/14 10:09 AM: liquibase: Successfully released change log lock
BUILD FAILED
C:\Production\jboss_emr\g2\build-ci.xml:383: liquibase.exception.DatabaseException: java.lang.NullPointerException
Total time: 5 seconds
<target name="tag-database">
<tagDatabase
driver="${database.driver}"
url="${database.url}"
username="${database.username}"
password="${database.password}"
classpathref="g2.classpath"
tag="R1.0"
>
</tagDatabase>
</target>
All of the properties and references used work in my updateDatabase target so those are correct.