lucene-java-user mailing list archives

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


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(BytesStore.java:424)
        at org.apache.lucene.util.fst.BytesStore.getReverseReader(BytesStore.java:419)
        at org.apache.lucene.util.fst.FST.getBytesReader(FST.java:1369)
        at org.apache.lucene.codecs.blocktree.SegmentTermsEnum.<init>(SegmentTermsEnum.java:83)
        at org.apache.lucene.codecs.blocktree.FieldReader.iterator(FieldReader.java:156)
        at org.apache.lucene.index.TermContext.build(TermContext.java:94)
        at org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:191)
        at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:851)
        at org.apache.lucene.search.BooleanWeight.<init>(BooleanWeight.java:57)
        at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:184)
        at org.apache.lucene.search.FilteredQuery.createWeight(FilteredQuery.java:81)
        at org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:851)
        at org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:834)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:485)
        at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)





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, https://discuss.elastic.co/t/strange-marvel-exception/36112
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.

Thanks
Kannan
<https://discuss.elastic.co/t/strange-marvel-exception/36112>



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