elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.01k stars 24.5k forks source link

mvn test throws errors like this 'NoClassDefFoundError org.elasticsearch.test.ESTestCase' #19115

Closed wenpos closed 8 years ago

wenpos commented 8 years ago

Elasticsearch version:release code(v2.3.3)

JVM version:1.8.0_60

OS version: 32~14.04.1-Ubuntu

Description of the problem including expected versus actual behavior: yes, I download the release code(v2.3.3) and put it on an CI environment. When execute the command 'mvn test', most of the test suites failed, most of whose log turn out to be "Throwable #1: java.lang.NoClassDefFoundError: org.elasticsearch.test.ESTestCase". Detail information is as follows:

Steps to reproduce: 1.mvn install 2.mvn clean test

Provide logs (if relevant): part of the log: Suite: org.elasticsearch.test.rest.test.TestSectionParserTests ERROR 0.00s J0 | TestSectionParserTests.initializationError <<<

Throwable #1: java.lang.NoClassDefFoundError: org.elasticsearch.test.ESTestCase at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethods(Class.java:1975) at com.carrotsearch.randomizedtesting.ClassModel$3.members(ClassModel.java:215) at com.carrotsearch.randomizedtesting.ClassModel$3.members(ClassModel.java:212) at com.carrotsearch.randomizedtesting.ClassModel$ModelBuilder.build(ClassModel.java:85) at com.carrotsearch.randomizedtesting.ClassModel.methodsModel(ClassModel.java:212) at com.carrotsearch.randomizedtesting.ClassModel.(ClassModel.java:207) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) Completed [554/558 (549!)] on J0 in 0.00s, 1 test, 1 error <<< FAILURES!

part of the log: [ERROR] Failed to execute goal com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.3.2:junit4 (tests) on project elasticsearch: There were test failures: 558 suites, 583 tests, 7 suite-level errors, 546 errors [seed: 9A962C70CAEC565A] -> [Help 1] Describe the feature:

cbuescher commented 8 years ago

Please ask questions like this in our forum discuss.elastic.co. When opening a question there it would help to know more about what you are trying to achieve, what your setup ist (are you running from command line or from ide etc...