In the Address Hierarchy module, as soon as I autowire
AddressHierarchyAjaxControllerTest I get this
ERROR - SchemaExport.execute(287) |2017-03-18 11:15:35,416| schema export unsuccessful org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-135]
Full stack trace here.
I thought this could be related to the Spring version but it also fails the same way when running against Core 2.0.x. I added a new Maven build profile ‘openmrs-2.0’ for this, should you need to try stuff against Core 2.x (
mvn -P openmrs-2.0 clean install).
Would you mind running a
mvn clean install on your side? You can clone commit 86755eb2 from our fork to reproduce it.
I just don’t know yet enough of all the plumbing behind context sensitive tests to take action here. Where is the DB URL defined for the unit tests for instance, or how to overwrite it as suggested in the error message?
Thanks in advance for shedding light!