Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
After upgrade to Karaf 4 the Drools6CamelServiceExamplesTest fails with following message
Running org.apache.servicemix.itests.Drools6CamelServiceExamplesTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 40.445 sec <<< FAILURE! - in org.apache.servicemix.itests.Drools6CamelServiceExamplesTest testDroolsCamelServerExample(org.apache.servicemix.itests.Drools6CamelServiceExamplesTest) Time elapsed: 25.368 sec <<< FAILURE! java.lang.AssertionError: Gave up waiting for test condition at org.junit.Assert.fail(Assert.java:88) at org.apache.servicemix.itests.IntegrationTestSupport.expect(IntegrationTestSupport.scala:83) at org.apache.servicemix.itests.Drools6CamelServiceExamplesTest$$anonfun$testDroolsCamelServerExample$1.apply$mcV$sp(Drools6IntegrationTests.scala:128) at org.apache.servicemix.itests.IntegrationTestSupport.testWithFeature(IntegrationTestSupport.scala:74) at org.apache.servicemix.itests.IntegrationTestSupport.testWithFeature(IntegrationTestSupport.scala:64) at org.apache.servicemix.itests.Drools6CamelServiceExamplesTest.testDroolsCamelServerExample(Drools6IntegrationTests.scala:127) Results : Failed tests: Drools6CamelServiceExamplesTest.testDroolsCamelServerExample:127->IntegrationTestSupport.testWithFeature:64->IntegrationTestSupport.testWithFeature:74->IntegrationTestSupport.expect:83 Gave up waiting for test condition Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
The itest output file contains following entry (for more see attached file)
Caused by: java.lang.IllegalArgumentException: Data format 'xstream' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath
at org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:107)[41:org.apache.camel.camel-core:2.16.1]
at org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:88)[41:org.apache.camel.camel-core:2.16.1]
It looks like the xstream component (which is installed together with the sample) is not correctly initialized
This problem occurs only in itests. It works when installed manually in ServiceMix