Lucene项目致命错误

时间:2014-05-02 11:00:46

标签: java lucene stemming porter-stemmer

我有很多短信,我在他们的代码行下面运行。

// tokenize term

TokenStream tokenStream = new ClassicTokenizer(LUCENE_VERSION, new StringReader(term));

// stemmize

tokenStream = new PorterStemFilter(tokenStream);

有时我得到以下错误,有时没有:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000025f8360, pid=1688, tid=7492
#
# JRE version: 7.0-b147
# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode windows-amd64     compressed oops)
# Problematic frame:
# J  org.apache.lucene.analysis.PorterStemmer.stem(I)Z
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of   Windows
#

我该怎么办?

1 个答案:

答案 0 :(得分:0)

升级您的JVM。由于Oracle jvm中的一个错误,它在lucene网站上有很好的文档证明你不能使用java 1.7.0。