Am pretty sure it's happening after the tests as they are completing fine.
It's only happening on this one project as well. I've removed the
TestingApplicationContext.xml and test-hibernate.cfg.xml files since I
assume I don't need them if the module doesn't contain mapping files and
it's still happening.

On 12 March 2012 17:28, Ben Wolfe <[email protected]> wrote:

> Does it hinder the tests finishing cleanly?  Are we closing the pool for
> some reason?  Perhaps I copied too much from the Listener class to the
> BaseContextSensitiveTest class way back in the day...
>
> Ben
>
>  On Mon, Mar 12, 2012 at 10:28 AM, Rowan Seymour <[email protected]> wrote:
>
>>  Am seeing the exception below in my module when running Maven tests. It
>> happens after the tests are run. The module doesn't have any mapping files
>> and I only see if I include a BaseModuleContextSensitiveTest based test
>> class. Any ideas ???
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.openmrs.module.iqchartimport.EntityBuilderTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.873 sec
>> Running org.openmrs.module.iqchartimport.iq.IQChartSessionTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.044 sec
>> 0    [Thread-8] ERROR org.hibernate.tool.hbm2ddl.SchemaExport  - schema
>> export unsuccessful
>> java.sql.SQLException: com.mchange.v2.c3p0.PoolBackedDataSource@531c6e3f[ 
>> connectionPoolDataSource ->
>> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@9794b7e [
>> acquireIncrement -> 1, acquireRetryAttempts -> 5, acquireRetryDelay ->
>> 1000, autoCommitOnClose -> false, automaticTestTable -> null,
>> breakAfterAcquireFailure -> false, checkoutTimeout -> 0,
>> connectionCustomizerClassName -> null, connectionTesterClassName ->
>> com.mchange.v2.c3p0.impl.DefaultConnectionTester,
>> debugUnreturnedConnectionStackTraces -> false, factoryClassLocation ->
>> null, forceIgnoreUnresolvedTransactions -> false, identityToken ->
>> 1hge13o8m1umumw17t4gda|378feca1, idleConnectionTestPeriod -> 3000,
>> initialPoolSize -> 0, maxAdministrativeTaskTime -> 0, maxConnectionAge ->
>> 0, maxIdleTime -> 100, maxIdleTimeExcessConnections -> 0, maxPoolSize ->
>> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 0,
>> nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@88c0ca5b[ 
>> description -> null, driverClass -> null, factoryClassLocation -> null,
>> identityToken -> 1hge13o8m1umumw17t4gda|17e319a, jdbcUrl ->
>> jdbc:hsqldb:mem:openmrs, properties -> {user=******, password=******,
>> release_mode=after_transaction} ], preferredTestQuery -> null,
>> propertyCycle -> 0, testConnectionOnCheckin -> false,
>> testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0,
>> usesTraditionalReflectiveProxies -> false; userOverrides: {} ],
>> dataSourceName -> null, factoryClassLocation -> null, identityToken ->
>> 1hge13o8m1umumw17t4gda|293a985, numHelperThreads -> 3 ] has been closed()
>> -- you can no longer use it.
>>  at
>> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.assertCpds(AbstractPoolBackedDataSource.java:447)
>> at
>> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getPoolManager(AbstractPoolBackedDataSource.java:459)
>>  at
>> com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
>> at
>> org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:56)
>>  at
>> org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27)
>> at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:180)
>>  at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:143)
>> at
>> org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:810)
>>  at
>> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.destroy(AbstractSessionFactoryBean.java:251)
>> at
>> org.springframework.orm.hibernate3.LocalSessionFactoryBean.destroy(LocalSessionFactoryBean.java:865)
>>  at
>> org.openmrs.api.db.hibernate.HibernateSessionFactoryBean.destroy(HibernateSessionFactoryBean.java:150)
>> at
>> org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:151)
>>  at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462)
>>  at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430)
>> at
>> org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:853)
>>  at
>> org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:831)
>> at
>> org.springframework.context.support.AbstractApplicationContext$1.run(AbstractApplicationContext.java:764)
>>
>>
>> --
>>
>> *Dr Rowan Seymour**
>> Partners In Health, Rwanda*
>> Tel: +250783835665
>>
>> ------------------------------
>> Click here to 
>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
>> OpenMRS Developers' mailing list
>
>
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list




-- 
*Rowan Seymour*
tel: +250 783835665
http://twitter.com/rowanseymour

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to