lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnamurthy, Kannan" <>
Subject Weird ClassCastException running lucene 5.2.1 on Java 1.8.
Date Tue, 23 Feb 2016 20:36:16 GMT

Recently we port our load test environment to Java 1.8 and since then we are seeing a ClassCastException
under heavy load after about 2 hours into our load test. Exception StackTrace below.

ava.lang.ClassCastException: [J cannot be cast to [B
        at org.apache.lucene.util.fst.BytesStore.getReverseReader(
        at org.apache.lucene.util.fst.BytesStore.getReverseReader(
        at org.apache.lucene.util.fst.FST.getBytesReader(
        at org.apache.lucene.codecs.blocktree.SegmentTermsEnum.<init>(
        at org.apache.lucene.codecs.blocktree.FieldReader.iterator(

After the first occurrence of this exception, any search request with a boolean query fails
with the same exception. As mentioned above this does happen not until about two hours. The
single segment index is created using "Java 1.7.0_04"  and the Search server where the ClassCastException
happens uses "Java 1.8.0_65"

Our target environment,

Index information : Single segment index created using

java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode

Lucene 5.2.1 version Information :

Manifest-Version: 1.0

Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_75-b13 (Oracle Corporation)
Extension-Name: org.apache.lucene
Specification-Title: Lucene Search Engine: core
Specification-Version: 5.2.1
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.lucene
Implementation-Version: 5.2.1 1684708 - shalin - 2015-06-10 23:11:06
Implementation-Vendor: The Apache Software Foundation
X-Compile-Source-JDK: 1.7
X-Compile-Target-JDK: 1.7

Search Searcher Java version :

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

OS Information:
Linux in2s1in056 3.0.58-0.6.6-default #1 SMP Tue Feb 19 11:07:00 UTC 2013 (1576ecd) x86_64
x86_64 x86_64 GNU/Linux

Please let me know if you need additional information on this issue. The error we are seeing
is similar to the one posted here,
Are there any known issues running lucene 5.2.1 on JDK 1.8. In the meantime I will try compiling
Lucene 5.2.1 using JDK 1.8 and see if this issues goes away.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message