0

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

// 标记术语

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

// 词干化

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
#

我应该怎么办?

4

1 回答 1

0

升级你的 JVM。由于 Oracle jvm 中的错误,它在 lucene 网站上有详细记录,您不能使用 java 1.7.0。

于 2014-05-02T12:42:46.090 回答