Question

I have a lot of text message, I run below lines of codes for them.

// tokenize term

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

// stemmize

tokenStream = new PorterStemFilter(tokenStream);

SOMETIMES i get below error and sometimes no:

# 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
#

what should I do?

Was it helpful?

Solution

Upgrade your JVM. Its well documented on the lucene website that you cannot use java 1.7.0, because of a bug in the Oracle jvm.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top