sim51/logisima-play-yml — Issue #10: Bug : "play yml:import" throws "No database found" exception
Author: Fluor
Created: 2012-01-31 07:24:44+00:00
State: open

I've exported data in default "data.yml" output file with 1.7 and command line `play yml:generate`.

If I try to import those data with (undocumented) command line `yml:import --reset`, I got the following exception :
```
Exception in thread "main" java.lang.RuntimeException: Cannot delete all table data : No database found. Check the configuration of your application.
at play.test.Fixtures.deleteDatabase(Fixtures.java:137)
at play.test.Fixtures.deleteAll(Fixtures.java:108)
at play.modules.yml.YmlImport.main(YmlImport.java:67)
Caused by: play.exceptions.DatabaseException: No database found. Check the configuration of your application.
at play.db.DB.getConnection(DB.java:63)
at play.test.Fixtures.deleteDatabase(Fixtures.java:120)
... 2 more
Caused by: java.lang.NullPointerException
at play.db.DB.getConnection(DB.java:56)
... 3 more
```

DB is obviously OK, as export could have been done.
My DB configuration is the following (In memory H2 with some custom parameters) :
```
db.url=jdbc:h2:mem:play;MODE=MYSQL;MVCC=TRUE;LOCK_TIMEOUT=25000
jpa.dialect=org.hibernate.dialect.H2Dialect
jpa.ddl=create
```