Hello List, Im trying to build the 4.10.1-1 pyLucene and I got some errors.
The details: $ java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode) $ ant -version Apache Ant(TM) version 1.9.4 compiled on April 29 2014 $ /usr/local/bin/python -V Python 2.6.8 The system is a RHEL5.5 32-bit. The Makefile: PREFIX_PYTHON=/usr/local ANT=ant PYTHON=$(PREFIX_PYTHON)/bin/python JCC=$(PYTHON) -m jcc.__main__ NUM_FILES=8 Through the make I got many warnings like this: [javac] case 56: break; [javac] ^ [javac] /usr/src/pylucene-4.10.1-1/lucene-java-4.10.1/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java:30446: warning: [fallthrough] possible fall-through into case A lot of warnings like this: [javac] /usr/src/pylucene-4.10.1-1/lucene-java-4.10.1/lucene/analysis/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java:408: warning: [rawtypes] found raw type: Map [javac] void setStemDictionary(Map dict) { [javac] ^ [javac] missing type arguments for generic class Map<K,V> [javac] where K,V are type-variables: [javac] K extends Object declared in interface Map [javac] V extends Object declared in interface Map But it compiles. My problem is with make test. I got exceptions like this: /usr/local/bin/python test/test_PythonDirectory.py ETesting Indexing Incremental Looping indexing 0 EEEEEEEEE ====================================================================== ERROR: test_FieldEnumeration (__main__.PythonDirectoryTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/pylucene-4.10.1-1/test/test_PyLucene.py", line 235, in test_FieldEnumeration self.test_indexDocument() File "/usr/src/pylucene-4.10.1-1/test/test_PyLucene.py", line 84, in test_indexDocument self.closeStore(store, writer) File "test/test_PythonDirectory.py", line 281, in closeStore arg.close() JavaError: java.lang.RuntimeException: InvalidArgsError Java stacktrace: java.lang.RuntimeException: InvalidArgsError at org.apache.pylucene.store.PythonDirectory.deleteFile(Native Method) at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:723) at org.apache.lucene.index.IndexFileDeleter.deleteNewFiles(IndexFileDeleter.java:710) at org.apache.lucene.index.IndexWriter.deleteNewFiles(IndexWriter.java:4753) at org.apache.lucene.index.DocumentsWriter$DeleteNewFilesEvent.process(DocumentsWriter.java:737) at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4807) at org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4799) at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3226) at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3198) at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:907) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:984) at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:954) I have 10 failed tests with InvalidArgsError and I have 1 failed test with error: /usr/local/bin/python test/test_PythonException.py E ====================================================================== ERROR: testThroughLayerException (__main__.PythonExceptionTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "test/test_PythonException.py", line 35, in testThroughLayerException if lucene.getVMEnv().isShared(): AttributeError: 'jcc.JCCEnv' object has no attribute 'isShared' ---------------------------------------------------------------------- Ran 1 test in 0.003s FAILED (errors=1) JCC compiles without errors and with only one type of warning: cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ Can someone tell me what did I wrong? Any suggestions would be appreciated. Thanks, Csaba