XML validation on changelog xml

Hi,

Using the latest version from the trunk Liquibase doesn’t seem to eat a changelog XML with the 1.9 name space. I did change the namespace to 2.0, it validates against the XSD but still it is not processed (validation done with XMLspy).

This is the XML declaration:

    http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

But running Liquibase results in

    WARNING: C:/temp/01_changelog_copy.xml is using schema version dbchangelog rather than version 2.0 liquibase.exception.ValidationFailedException: Validation Failed:     2 changes have validation failures           java.lang.NullPointerException           java.lang.NullPointerException

What’s wrong?

Chris

I did commit a change last night that catches the version number error correctly with 2.0. 

Can you run with the --logLevel=DEBUG flag and post the output?

Nathan

I did check out the modifications and tested it with both a 1.9 and 2.0 version XML. I currently have revision 1242 from the trunk.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?> http://www.liquibase.org/xml/ns/dbchangelog/1.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">

       
           
               
                   
               
               
               
           
       

When I parse this file with Liquibase it gives a warning on the version. No exception anymore.

    WARNING: /C:/CatDev/netbeans_study/dbrevisionautomator/target/classes/changelog19_1.xml is using schema version 1.9 rather than version 2.0

Then I try a changelog for 2.0. The XML validates in XmlSpy.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?> http://www.liquibase.org/xml/ns/dbchangelog"         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">                                                    

I still get a warning:

    WARNING: /C:/CatDev/netbeans_study/dbrevisionautomator/target/classes/changelog20_1.xml is using schema version dbchangelog rather than version 2.0

The content of the files are parsed correctly and the table is created. But what to do with this warning?

Chris