[
https://issues.apache.org/jira/browse/SM-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118130#comment-15118130
]
Krzysztof Sobkowiak commented on SM-2787:
-----------------------------------------
I think, the problem is caused with a huge log output generated using the DEBUG
log mode. At the beginning the problem happened randomly in each CXF itest and
some other itests. I have extracted the CxfWsn itest in a separate class,
changed the log level to INFO for all other itests and DEBUG for CxfWsn and it
fixed the problem in all itests except the CxfWsn itests. The CxfWsn itests
need the DEBUG mode, otherwise the test cannot find the expected log entry
produced by Camel. The solution would be the change of the route to produce the
log entry with INFO log level or find the problem why the itests have problems
with the big log output.
> Test failures in CxfWsnExamplesTest
> -----------------------------------
>
> Key: SM-2787
> URL: https://issues.apache.org/jira/browse/SM-2787
> Project: ServiceMix
> Issue Type: Bug
> Components: itests
> Reporter: Krzysztof Sobkowiak
> Fix For: 7.0.0.M1, 7.0.0
>
>
> The CXF itest fail randomly with following error
> {code}
> Running org.apache.servicemix.itests.CxfWsnExamplesTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 25.176 sec
> <<< FAILURE! - in org.apache.servicemix.itests.CxfWsnExamplesTest
> testCxfWsn(org.apache.servicemix.itests.CxfWsnExamplesTest) Time elapsed:
> 25.168 sec <<< ERROR!
> java.lang.NullPointerException: null
> at
> org.apache.servicemix.itests.IntegrationTestSupport$PaxLoggingAppender$$anonfun$containsMessage$1.apply(IntegrationTestSupport.scala:115)
> at
> org.apache.servicemix.itests.IntegrationTestSupport$PaxLoggingAppender$$anonfun$containsMessage$1.apply(IntegrationTestSupport.scala:115)
> at
> scala.collection.IndexedSeqOptimized$$anonfun$1.apply(IndexedSeqOptimized.scala:50)
> at
> scala.collection.IndexedSeqOptimized$$anonfun$1.apply(IndexedSeqOptimized.scala:50)
> at
> scala.collection.IndexedSeqOptimized$class.segmentLength(IndexedSeqOptimized.scala:195)
> at
> scala.collection.mutable.ArrayBuffer.segmentLength(ArrayBuffer.scala:48)
> at scala.collection.GenSeqLike$class.prefixLength(GenSeqLike.scala:93)
> at scala.collection.AbstractSeq.prefixLength(Seq.scala:41)
> at
> scala.collection.IndexedSeqOptimized$class.find(IndexedSeqOptimized.scala:50)
> at scala.collection.mutable.ArrayBuffer.find(ArrayBuffer.scala:48)
> at
> org.apache.servicemix.itests.IntegrationTestSupport$PaxLoggingAppender.containsEvent(IntegrationTestSupport.scala:117)
> at
> org.apache.servicemix.itests.IntegrationTestSupport$PaxLoggingAppender.containsMessage(IntegrationTestSupport.scala:115)
> at
> org.apache.servicemix.itests.CxfWsnExamplesTest$$anonfun$testCxfWsn$1$$anonfun$apply$mcV$sp$19.apply(ExamplesIntegrationTests.scala:202)
> at
> org.apache.servicemix.itests.CxfWsnExamplesTest$$anonfun$testCxfWsn$1$$anonfun$apply$mcV$sp$19.apply(ExamplesIntegrationTests.scala:202)
> at
> org.apache.servicemix.itests.Await$class.org$apache$servicemix$itests$Await$$await(Await.scala:31)
> at org.apache.servicemix.itests.Await$class.await(Await.scala:28)
> at
> org.apache.servicemix.itests.IntegrationTestSupport.await(IntegrationTestSupport.scala:37)
> at
> org.apache.servicemix.itests.IntegrationTestSupport.expect(IntegrationTestSupport.scala:82)
> at
> org.apache.servicemix.itests.CxfWsnExamplesTest$$anonfun$testCxfWsn$1.apply$mcV$sp(ExamplesIntegrationTests.scala:202)
> 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.CxfWsnExamplesTest.testCxfWsn(ExamplesIntegrationTests.scala:201)
> Results :
> Tests in error:
>
> CxfWsnExamplesTest.testCxfWsn:201->IntegrationTestSupport.testWithFeature:64->IntegrationTestSupport.testWithFeature:74->IntegrationTestSupport.expect:82->IntegrationTestSupport.await:37
> ยป NullPointer
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
> {code}
> Problem happens only in itests. No problem while manual installation in
> ServiceMix
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)