BeanManagerProvider in deltaspike-core-api bundle references CDI containers of already uninstalled bundles.
https://github.com/apache/deltaspike/blob/deltaspike-0.4/deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/provider/BeanManagerProvider.java#L96
We can face serious problem if we use current version of arquillian-osgi-container. Arquillian bundle undeploys tested bundle but it holds old classloader because tested bundle was not uninstalled properly (deltaspike-core-api has reference to its classloader). When we execute arquillian test second time it can fail in the following place if some special conditions occurs:
https://github.com/jboss-switchyard/core/blob/2.0.0.Alpha3/bus/camel/src/main/java/org/switchyard/bus/camel/CamelMessage.java#L76
I results in the exception of this format: SWITCHYARD010813: Cannot convert from 'XXX' to 'XXX'. No registered Transformer available for transforming from 'XXX' to 'XXX'. A Transformer must be registered.
|