You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by 怪侠 <87...@qq.com> on 2012/03/19 15:12:04 UTC
回复: Invalid version (expected 2, but 60) or the data in not in'javabin' format
I use the same version of server(solr) and client(solrJ).
I try the version3.3.0 and version3.5.0, but get the same error.
------------------ 原始邮件 ------------------
发件人: "Tomás Fernández L�"<to...@gmail.com>;
发送时间: 2012年3月19日(星期一) 晚上7:19
收件人: "solr-user"<so...@lucene.apache.org>;
主题: Re: Invalid version (expected 2, but 60) or the data in not in'javabin' format
This looks like you are using a SolrJ version different than the Solr
server version you are using. Make sure that server and client are using
the same Solr version.
On Mon, Mar 19, 2012 at 8:02 AM, Markus Jelsma
<ma...@openindex.io>wrote:
> You probably have a non-char codepoint hanging around somewhere. You can
> strip them away:
> http://unicode.org/cldr/**utility/list-unicodeset.jsp?a=**
> [:Noncharacter_Code_Point=True<http://unicode.org/cldr/utility/list-unicodeset.jsp?a=[:Noncharacter_Code_Point=True>
> **:]
>
>
>
> On Mon, 19 Mar 2012 10:33:35 +0800, "怪侠" <87...@qq.com> wrote:
>
>> Hi, all.
>> I want to update the file's index. The folowing is my code:
>> ContentStreamUpdateRequest up = new ContentStreamUpdateRequest(
>> "/update/extract");
>> up.addFile(file);
>> up.setParam("uprefix", "attr_");
>> up.setParam("fmap.content", "attr_content");
>> up.setParam("literal.id", file.getPath());
>> up.setAction(**AbstractUpdateRequest.ACTION.**COMMIT, false, false);
>> solr.request(up);
>>
>> and I always get the error:
>> java.lang.RuntimeException: Invalid version (expected 2, but 60) or
>> the data in not in 'javabin' format
>>
>> and the error in solr server is:
>> Error processing "legacy" update
>> command:com.ctc.wstx.exc.**WstxIOException: Invalid UTF-8 middle byte
>> 0xe3 (at char #10, byte #-1).
>>
>> Could anyone tell me how to solve it?
>>
>> Thanks very much.
>>
>
> --
> Markus Jelsma - CTO - Openindex
> http://www.linkedin.com/in/**markus17<http://www.linkedin.com/in/markus17>
> 050-8536600 / 06-50258350
>