[
https://issues.apache.org/jira/browse/CAMEL-5586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451990#comment-13451990
]
Babak Vahdat commented on CAMEL-5586:
-------------------------------------
O.K. it's fixed now. The tests also run now much faster than before (through
overriding the
[hook|http://camel.apache.org/maven/current/camel-test/apidocs/org/apache/camel/test/junit4/CamelTestSupport.html#isCreateCamelContextPerClass()]).
On my box now running all the tests take about 3 seconds compared to around 30
seconds before!
{code}
~/dev/workspace/camel/components/camel-elasticsearch>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel :: ElasticSearch 2.11-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camel-elasticsearch
---
[INFO] Deleting
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @
camel-elasticsearch ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
camel-elasticsearch ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
camel-elasticsearch ---
[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:compile (default-compile) @
camel-elasticsearch ---
[INFO] Compiling 4 source files to
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
camel-elasticsearch ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
camel-elasticsearch ---
[INFO] Compiling 3 source files to
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.8:test (default-test) @ camel-elasticsearch
---
[INFO] Surefire report directory:
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.camel.component.elasticsearch.ElasticsearchComponentTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.436 sec
Running org.apache.camel.component.elasticsearch.ElasticsearchConfigurationTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
Running org.apache.camel.component.elasticsearch.SpringElasticsearchTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.793 sec
Results :
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @
camel-elasticsearch ---
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for !org.apache.camel.component.elasticsearch.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for com.thoughtworks.xstream.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for freemarker.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for javax.persistence.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for net.sf.flatpack.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for net.sf.saxon.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.antlr.stringtemplate.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.abdera.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.commons.httpclient.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.commons.logging.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.cxf.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.qpid.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.velocity.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.apache.xmlbeans.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.ccil.cowan.tagsoup.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.eclipse.jetty.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.jivesoftware.smack.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.mortbay.cometd.*
[WARNING] Bundle org.apache.camel:camel-elasticsearch:bundle:2.11-SNAPSHOT :
Did not find matching referal for org.springframework.*
[INFO]
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
camel-elasticsearch ---
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
camel-elasticsearch ---
[INFO] Checking legal files in: camel-elasticsearch-2.11-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
camel-elasticsearch ---
[INFO] Installing
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/target/camel-elasticsearch-2.11-SNAPSHOT.jar
to
/Users/bvahdat/.m2/repository/org/apache/camel/camel-elasticsearch/2.11-SNAPSHOT/camel-elasticsearch-2.11-SNAPSHOT.jar
[INFO] Installing
/Users/bvahdat/dev/workspace/camel/components/camel-elasticsearch/pom.xml to
/Users/bvahdat/.m2/repository/org/apache/camel/camel-elasticsearch/2.11-SNAPSHOT/camel-elasticsearch-2.11-SNAPSHOT.pom
[INFO]
[INFO] --- maven-bundle-plugin:2.3.7:install (default-install) @
camel-elasticsearch ---
[INFO] Installing
org/apache/camel/camel-elasticsearch/2.11-SNAPSHOT/camel-elasticsearch-2.11-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.291s
[INFO] Finished at: Mon Sep 10 15:39:08 CEST 2012
[INFO] Final Memory: 17M/1011M
[INFO] ------------------------------------------------------------------------
~/dev/workspace/camel/components/camel-elasticsearch>
{code}
> camel-elasticsearch: Fail constantly on CI server and local machine
> -------------------------------------------------------------------
>
> Key: CAMEL-5586
> URL: https://issues.apache.org/jira/browse/CAMEL-5586
> Project: Camel
> Issue Type: Task
> Components: camel-elasticsearch
> Affects Versions: 2.11.0
> Reporter: Christian Müller
> Assignee: Babak Vahdat
> Fix For: 2.11.0
>
>
> {noformat}
> christian-muellers-macbook-pro:camel-elasticsearch cmueller$ mvn clean install
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Camel :: ElasticSearch 2.11-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ camel-elasticsearch
> ---
> [INFO] Deleting
> /Users/cmueller/workspaceCamel/camel/components/camel-elasticsearch/target
> [INFO]
> [INFO] --- maven-bundle-plugin:2.3.7:cleanVersions (versions) @
> camel-elasticsearch ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @
> camel-elasticsearch ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> camel-elasticsearch ---
> [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:compile (default-compile) @
> camel-elasticsearch ---
> [INFO] Compiling 4 source files to
> /Users/cmueller/workspaceCamel/camel/components/camel-elasticsearch/target/classes
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources)
> @ camel-elasticsearch ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
> camel-elasticsearch ---
> [INFO] Compiling 3 source files to
> /Users/cmueller/workspaceCamel/camel/components/camel-elasticsearch/target/test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.8:test (default-test) @
> camel-elasticsearch ---
> [INFO] Surefire report directory:
> /Users/cmueller/workspaceCamel/camel/components/camel-elasticsearch/target/surefire-reports
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.camel.component.elasticsearch.ElasticsearchComponentTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 29.103 sec
> Running
> org.apache.camel.component.elasticsearch.ElasticsearchConfigurationTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running org.apache.camel.component.elasticsearch.SpringElasticsearchTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 61.241 sec
> <<< FAILURE!
> Results :
> Tests in error:
>
> testSendBody(org.apache.camel.component.elasticsearch.SpringElasticsearchTest):
> Exception occurred during execution on the exchange: Exchange[Message:
> {content=test}]
> Tests run: 13, Failures: 0, Errors: 1, Skipped: 0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1:39.984s
> [INFO] Finished at: Sun Sep 09 22:39:03 CEST 2012
> [INFO] Final Memory: 11M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-test) on
> project camel-elasticsearch: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /Users/cmueller/workspaceCamel/camel/components/camel-elasticsearch/target/surefire-reports
> for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira