level 1
公司用的solr4.10.1这个版本,在客户端调用的时候经常会抛出异常,信息如下:java.lang.IllegalStateException: TokenStream contract violation:close() call missing
不知道是什么情况。。。在Lucene中看见这个异常抛出的位置,但不是很明白。
package org.apache.lucene.analysis;
public final void setReader(Reader input) throws IOException {
if (input == null) {
throw new NullPointerException("input must not be null");
} else if (this.input != ILLEGAL_STATE_READER) {
throw new IllegalStateException("TokenStream contract violation: close() call missing");
}
this.inputPending = input;
assert setReaderTestPo[url]http://发 表[/url]int();
}
这个要怎么解决?
2015年08月23日 10点08分
1
不知道是什么情况。。。在Lucene中看见这个异常抛出的位置,但不是很明白。
package org.apache.lucene.analysis;
public final void setReader(Reader input) throws IOException {
if (input == null) {
throw new NullPointerException("input must not be null");
} else if (this.input != ILLEGAL_STATE_READER) {
throw new IllegalStateException("TokenStream contract violation: close() call missing");
}
this.inputPending = input;
assert setReaderTestPo[url]http://发 表[/url]int();
}
这个要怎么解决?