On 1/4/2017 8:29 AM, Jennifer Coston wrote: > Can anyone explain how to get rid of this error? > > java.lang.Exception: Assertions mismatch: -ea was not specified but > -Dtests.asserts=true > at __randomizedtesting.SeedInfo.seed([5B25E606A72BD541]:0) > at > org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:47) > at > org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47) > at > org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64) > at > org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54) > at > com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) > at > com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367) > at java.lang.Thread.run(Thread.java:745)
When you started your test, a system property was included (the java commandline option for that is -Dtests.assert=true) that tells something that you wanted assertions enabled. Looks like this message comes from the lucene test-framework. When this property is set to true, it also requires a java commandline option to enable assertions, which is -ea as the message said. You'll need to either add "-ea" to the java commandline or remove the system property. If you didn't specify the system property and can't figure out how to remove it, then you'll likely need help from somebody who's really familiar with the build system. You can find those people on the dev mailing list or the #lucene-dev IRC channel on freenode. Some of them do hang out on this mailing list, but it's not really on-topic for this list. http://lucene.apache.org/core/discussion.html If you choose the IRC channel, here's a Solr resource about IRC channels. The channels this page mentions are specific to Solr, but the information provided is relevant for any technical IRC channel: https://wiki.apache.org/solr/IRCChannels Thanks, Shawn