# YAML update fails with Unexpected error running Liquibase: java.util.LinkedHashMap cannot be cast to java.util.List

**URL:** <https://forum.liquibase.org/t/yaml-update-fails-with-unexpected-error-running-liquibase-java-util-linkedhashmap-cannot-be-cast-to-java-util-list/3154>\
**Category:** General Discussion\
**Created:** [January 16, 2015, 1:07am UTC](https://forum.liquibase.org/t/yaml-update-fails-with-unexpected-error-running-liquibase-java-util-linkedhashmap-cannot-be-cast-to-java-util-list/3154 "2015-01-16T01:07:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcstang](https://avatars.discourse-cdn.com/v4/letter/g/3da27b/32.png) [@gcstang](https://forum.liquibase.org/u/gcstang)\
**Post date:** [January 16, 2015, 1:07am UTC](https://forum.liquibase.org/t/yaml-update-fails-with-unexpected-error-running-liquibase-java-util-linkedhashmap-cannot-be-cast-to-java-util-list/3154/1 "2015-01-16T01:07:00Z")

</div>

JDK: 7u67

Running on MacOSX with Mavericks

Liquibase 3.3.2

SnakeYaml 1.13 (also tried 1.12 and 1.14)

MySQL Connector: mysql-connector-java-5.1.34.jar

 Running from command line I created a changelog using:

./liquibase --changeLogFile test.yaml generateChangeLog

Now when I set to a new database and run update:

./liquibase --changeLogFile test.yaml update

I get this error:

Unexpected error running Liquibase: java.util.LinkedHashMap cannot be cast to java.util.List

test.yaml content below here:

databaseChangeLog:

changeSet:

```
id: 1421340276226-1</div>

author: myname (generated)</div>

changes:</div>

- createTable:</div>

    columns:</div>

    - column:</div>

        autoIncrement: true</div>

        constraints:</div>

          constraints:</div>

            primaryKey: true</div>

        name: id</div>

        type: BIGINT</div>

    - column:</div>

        constraints:</div>

          constraints:</div>

            nullable: false</div>

        name: fname</div>

        type: VARCHAR(255)</div>

    - column:</div>

        constraints:</div>

          constraints:</div>

            nullable: false</div>

        name: lname</div>

        type: VARCHAR(255)</div>

    tableName: person</div></div>
```

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [January 16, 2015, 1:07am UTC](https://forum.liquibase.org/t/yaml-update-fails-with-unexpected-error-running-liquibase-java-util-linkedhashmap-cannot-be-cast-to-java-util-list/3154/2 "2015-01-16T01:07:00Z")

</div>

Slow response, but I created [https://liquibase.jira.com/browse/CORE-2275](https://liquibase.jira.com/browse/CORE-2275) to track the issue. Thanks for reporting it.

Nathan
