lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Can I use SolrJ 6.3.0 to talk to a Solr 5.2.3 server?
Date Wed, 04 Jan 2017 16:08:38 GMT
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(
> 	at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(
> 	at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(
> 	at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(
> 	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(
> 	at com.carrotsearch.randomizedtesting.ThreadLeakControl$
> 	at

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.

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:


View raw message