Mailing List Archive

Some tests fail
Hello,

I'm developing an extension to Lucene, so I'm modifying its code, trying to
ensure that all existing tests pass. However, there are some problems with
them.

I checked out the trunk from the SVN today. For some reason, not all tests
pass, I have 10 errors and 3 failures.
1. Some tests give RMI error: ObjID already in use. I googled this error,
but I'm still not sure how to fix it. Any ideas, please? I use jdk1.6.
2. Some tests give "tempDir undefined" error. This is strange as instead of
System.getProperty("tempDir"), "java.io.tmpdir" should be used, right? If I
change the argument of the function, everything is correct. Why "tempDir"
constant is used?
3.TestRemoteCachingWrapperFilter fails because the search results length is
0 instead of 1 but I believe it's somehow linked to the fact the I have
troubles with remote interfaces
4. What is more strange, TestStandardAnalyzer.testStandard fails while
analyzing korean words (other words are ok). Is something wrong with my
configuration?
5. TestISOLatin1AccentFilter fails as well on this line:
assertEquals("cles", filter.next().termText()); Any ideas on how to fix this
are appreciated.

Thanks is advance for your help.

Regards,
Evgeny
Re: Some tests fail [ In reply to ]
Evgeny: the "general" list is for discussion of issues relating to the
entire family of lucene projects (the java api, nutch, hadoop, solr,
etc...) I think you're questions would be better answered by emailing the
java-user list.

the first piece of advice i can give you is to make sure you are using ant
to compile all the code and run the tests -- while it's certainly possible
to build directly from various IDEs, it may take some configuration to
get it working and the best first step is to make sure the ant targets
work for you "out of the box" so you have a baseline to discuss with
people -- the tempDir system property for example is set by the build
files. (would it be better to use java.io.tmpdir? probably since the
build files set them to the same thing, but i'm just telling you how it is
currenlty, not how it should be)

your other issues might also relate to not building with the standard ant
targets, since there are special rmic calls i nthe build.xml


: Date: Tue, 3 Jul 2007 10:34:13 +0100
: From: Evgeny Shadchnev <evgeny.shadchnev@gmail.com>
: Reply-To: general@lucene.apache.org
: To: general@lucene.apache.org
: Subject: Some tests fail
:
: Hello,
:
: I'm developing an extension to Lucene, so I'm modifying its code, trying to
: ensure that all existing tests pass. However, there are some problems with
: them.
:
: I checked out the trunk from the SVN today. For some reason, not all tests
: pass, I have 10 errors and 3 failures.
: 1. Some tests give RMI error: ObjID already in use. I googled this error,
: but I'm still not sure how to fix it. Any ideas, please? I use jdk1.6.
: 2. Some tests give "tempDir undefined" error. This is strange as instead of
: System.getProperty("tempDir"), "java.io.tmpdir" should be used, right? If I
: change the argument of the function, everything is correct. Why "tempDir"
: constant is used?
: 3.TestRemoteCachingWrapperFilter fails because the search results length is
: 0 instead of 1 but I believe it's somehow linked to the fact the I have
: troubles with remote interfaces
: 4. What is more strange, TestStandardAnalyzer.testStandard fails while
: analyzing korean words (other words are ok). Is something wrong with my
: configuration?
: 5. TestISOLatin1AccentFilter fails as well on this line:
: assertEquals("cles", filter.next().termText()); Any ideas on how to fix this
: are appreciated.
:
: Thanks is advance for your help.
:
: Regards,
: Evgeny
:



-Hoss