lievendoclo / Valkyrie-RCP

A fork from http://www.gitorious.org/valkyrie-rcp
Apache License 2.0
23 stars 10 forks source link

ValkyrieRepository race condition #21

Closed general-failure closed 9 years ago

general-failure commented 9 years ago

ValkyrieRepository must have been initialized in the spring context before any ActionCommand as they call ValkyrieRepository.getInstance()... via the constructor / afterPropertiesSet(). Otherwise, ValkyrieRepository.getInstance() will hang on the latch. The test suite actually hangs on the latch on some occasions. Currently I have no idea for a solution myself. Don't know if there are some clever container tricks, e.g. load a minimal ValkyrieRepository context first and then add the "main" context as a child context to that or something similar in that direction.

lievendoclo commented 9 years ago

I encountered this one some time ago as well but couldn't find the cause. Thanks for letting me know, I'll have a look this evening.

lievendoclo commented 9 years ago

fixed in master