camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7923) Camel-xmpp unit test is failing from time to time
Date Sat, 18 Oct 2014 17:12:33 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176057#comment-14176057
] 

Christian Müller commented on CAMEL-7923:
-----------------------------------------

It doesn't fail each time. It's only failing a few times.
But by having too many "fragile" test, it's annoying to do a build because of the many many
attempts you need.

> Camel-xmpp unit test is failing from time to time
> -------------------------------------------------
>
>                 Key: CAMEL-7923
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7923
>             Project: Camel
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 2.12.4
>            Reporter: Christian Müller
>            Assignee: Christian Müller
>             Fix For: 2.12.5
>
>
> {noformat}
> christians-mbp:camel-xmpp cmueller$ mvn test -Dtest=XmppMultiUserChatTest
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Camel :: XMPP 2.12.5
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-xmpp ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ camel-xmpp ---
> [INFO]
> [INFO] >>> camel-package-maven-plugin:2.12.5:generate-components-list (default)
@ camel-xmpp >>>
> [INFO]
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @ camel-xmpp ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ camel-xmpp ---
> [INFO]
> [INFO] <<< camel-package-maven-plugin:2.12.5:generate-components-list (default)
@ camel-xmpp <<<
> [INFO]
> [INFO] --- camel-package-maven-plugin:2.12.5:generate-components-list (default) @ camel-xmpp
---
> [INFO] Generated /Users/cmueller/workspaceCamel/camel/components/camel-xmpp/target/generated/camel/components/META-INF/services/org/apache/camel/component.properties
containing the Camel component xmpp
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ camel-xmpp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] Copying 1 resource
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ camel-xmpp ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ camel-xmpp
---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ camel-xmpp
---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-surefire-plugin:2.15:test (default-test) @ camel-xmpp ---
> [INFO] Surefire report directory: /Users/cmueller/workspaceCamel/camel/components/camel-xmpp/target/surefire-reports
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.camel.component.xmpp.XmppMultiUserChatTest
> stream:error (text)
> 	at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260)
> 	at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
> 	at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
> org.xmlpull.v1.XmlPullParserException: processing instruction can not have PITarget with
reserveld xml name (position: END_TAG seen ...</bind></iq><?xml ... @1:190)
> 	at org.xmlpull.mxp1.MXParser.parsePI(MXParser.java:2453)
> 	at org.xmlpull.mxp1.MXParser.parseEpilog(MXParser.java:1566)
> 	at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1393)
> 	at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
> 	at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
> 	at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
> 	at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
> No response from the server.:
> 	at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLAuthentication.java:469)
> 	at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:348)
> 	at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:203)
> 	at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:964)
> 	at org.apache.camel.component.xmpp.XmppGroupChatProducer.reconnect(XmppGroupChatProducer.java:92)
> 	at org.apache.camel.component.xmpp.XmppGroupChatProducer.process(XmppGroupChatProducer.java:72)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:113)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:73)
> 	at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375)
> 	at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343)
> 	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233)
> 	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343)
> 	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:184)
> 	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:124)
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:137)
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:144)
> 	at org.apache.camel.component.xmpp.XmppMultiUserChatTest.testXmppChat(XmppMultiUserChatTest.java:40)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
> 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.089 sec <<<
FAILURE! - in org.apache.camel.component.xmpp.XmppMultiUserChatTest
> testXmppChat(org.apache.camel.component.xmpp.XmppMultiUserChatTest)  Time elapsed: 6.974
sec  <<< ERROR!
> org.apache.camel.CamelExecutionException: Exception occurred during execution on the
exchange: Exchange[Message: the first message]
> 	at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:445)
> 	at org.jivesoftware.smackx.muc.MultiUserChat.sendMessage(MultiUserChat.java:1858)
> 	at org.apache.camel.component.xmpp.XmppGroupChatProducer.process(XmppGroupChatProducer.java:78)
> 	at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:113)
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
> 	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> 	at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:73)
> 	at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375)
> 	at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343)
> 	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233)
> 	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343)
> 	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:184)
> 	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:124)
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:137)
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:144)
> 	at org.apache.camel.component.xmpp.XmppMultiUserChatTest.testXmppChat(XmppMultiUserChatTest.java:40)
> Results :
> Tests in error:
>   XmppMultiUserChatTest.testXmppChat:40 � CamelExecution Exception occurred duri...
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.049s
> [INFO] Finished at: Fri Oct 17 07:27:40 CEST 2014
> [INFO] Final Memory: 12M/81M
> [INFO] ------------------------------------------------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message