Liquibase 2.0 beta 4 error

If I try to use a xml file that does work in version 1.9.5 I get this error:

Migration Failed: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException
.  For more information, use the --logLevel flag)
5-ott-2009 16.01.54 liquibase.logging.JavaUtilLogger severe
GRAVE: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException

liquibase.exception.ValidationFailedException: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException

        at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:121)
        at liquibase.Liquibase.update(Liquibase.java:106)
        at liquibase.Liquibase.update(Liquibase.java:134)
        at liquibase.integration.commandline.Main.doMigration(Main.java:674)
        at liquibase.integration.commandline.Main.main(Main.java:105)

I refer version 1.9 of xml schema definition, but I obtain the same result if I use version 2.0

Could you add the logLevel=debug flag and post the output? 

Nathan

This is the output with --logLevel=debug option set:

6-ott-2009 10.59.54 liquibase.logging.JavaUtilLogger info
INFO: Successfully acquired change log lock
6-ott-2009 10.59.54 liquibase.logging.JavaUtilLogger info
INFO: Creating database history table with name: [dbo].[DATABASECHANGELOG]
6-ott-2009 10.59.54 liquibase.logging.JavaUtilLogger warning
AVVERTENZA: TestForeignKey_v2.xml is using schema version 1.9 rather than version 2.0
Migration Failed: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException
.  For more information, use the --logLevel flag)
6-ott-2009 10.59.55 liquibase.logging.JavaUtilLogger severe
GRAVE: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException

liquibase.exception.ValidationFailedException: Validation Failed:
    3 changes have validation failures
          java.lang.NullPointerException
          java.lang.NullPointerException
          java.lang.NullPointerException

        at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java
:121)
        at liquibase.Liquibase.update(Liquibase.java:106)
        at liquibase.Liquibase.update(Liquibase.java:134)
        at liquibase.integration.commandline.Main.doMigration(Main.java:674)
        at liquibase.integration.commandline.Main.main(Main.java:105)

I added some better logging at the debug level.  Could you download http://www.liquibase.org/liquibase-2.0-b5-SNAPSHOT-bin.zip and tell me what the output is with logLevel=DEBUG?

Nathan

This is the output with new version 2.0 b5 and logLevel=DEBUG:

12-ott-2009 13.52.18 liquibase.logging.JavaUtilLogger info
INFO: Successfully acquired change log lock
12-ott-2009 13.52.18 liquibase.logging.JavaUtilLogger info
INFO: Creating database history table with name: [dbo].[DATABASECHANGELOG]
12-ott-2009 13.52.18 liquibase.logging.JavaUtilLogger warning
AVVERTENZA: TestForeignKey_v2.xml is using schema version 1.9 rather than version 2.0
12-ott-2009 13.52.18 liquibase.logging.JavaUtilLogger severe
GRAVE: Error thrown as a SAXException: Unexpected change: liquibase.change.core.ModifyColumnChange
java.lang.RuntimeException: Unexpected change: liquibase.change.core.ModifyColumnChange
        at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:272)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:80)
        at liquibase.Liquibase.update(Liquibase.java:96)
        at liquibase.Liquibase.update(Liquibase.java:127)
        at liquibase.integration.commandline.Main.doMigration(Main.java:678)
        at liquibase.integration.commandline.Main.main(Main.java:105)java.lang.RuntimeException: Unexpected change: liquibase.change.core.ModifyColumnChange
        at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:272)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:80)
        at liquibase.Liquibase.update(Liquibase.java:96)
        at liquibase.Liquibase.update(Liquibase.java:127)
        at liquibase.integration.commandline.Main.doMigration(Main.java:678)
        at liquibase.integration.commandline.Main.main(Main.java:105)Migration Failed: Unexpected change: liquibase.change.core.ModifyColumnChange
12-ott-2009 13.52.18 liquibase.logging.JavaUtilLogger severe
GRAVE: Unexpected change: liquibase.change.core.ModifyColumnChange
liquibase.exception.ChangeLogParseException: Invalid Migration File: Unexpectedchange: liquibase.change.core.ModifyColumnChange
        at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:114)
        at liquibase.Liquibase.update(Liquibase.java:96)
        at liquibase.Liquibase.update(Liquibase.java:127)
        at liquibase.integration.commandline.Main.doMigration(Main.java:678)
        at liquibase.integration.commandline.Main.main(Main.java:105)
Caused by: java.lang.RuntimeException: Unexpected change: liquibase.change.core.ModifyColumnChange
        at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:340)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at liquibase.parser.core.xml.XMLChangeLogSAXParser.parse(XMLChangeLogSAXParser.java:80)
        … 4 more
Caused by: java.lang.RuntimeException: Unexpected change: liquibase.change.core.
ModifyColumnChange
        at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:272)
        … 18 more

Andrea

The modifyColumn change was removed from liquibase core as part of 2.0, just before the RC1 release.  You can download the modifyColumn change as an extension from http://liquibase.jira.com/wiki/display/CONTRIB/ModifyColumn+Change and add it to your classpath.

Nathan

Ok,
thanks

Andrea