Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - SolrJ (Trunk) Invalid version or the data in not in 'javabin' format


Copy link to this message
-
Re: SolrJ (Trunk) Invalid version or the data in not in 'javabin' format
Em 2011-02-01, 09:55

Hi,

sorry for the late feedback. Everything seems to be fine now.

Thank you!
Koji Sekiguchi wrote:
>
> (11/01/31 3:11), Em wrote:
>>
>> Hello list,
>>
>> I build an application that uses SolrJ to communicate with Solr.
>>
>> What did I do?
>> Well, I deleted all the solrj-lib stuff from my application's
>> Webcontent-directory and inserted the solrj-lib from the freshly compiled
>> solr 4.0 - trunk.
>> However, when trying to query Solr 4.0 it shows me a
>> RuntimeException:
>> Invalid version or the data in not in 'javabin' format
>
> I've just committed a small change so that you can see the version
> difference
> (I'll open the JIRA issue later because it is in maintenance now):
>
> Index: solr/src/common/org/apache/solr/common/util/JavaBinCodec.java
> ==================================================================> --- solr/src/common/org/apache/solr/common/util/JavaBinCodec.java
> (revision 1065245)
> +++ solr/src/common/org/apache/solr/common/util/JavaBinCodec.java (working
> copy)
> @@ -96,7 +96,8 @@
>       FastInputStream dis = FastInputStream.wrap(is);
>       version = dis.readByte();
>       if (version != VERSION) {
> -      throw new RuntimeException("Invalid version or the data in not in
> 'javabin' format");
> +      throw new RuntimeException("Invalid version (expected " + VERSION +
> +          ", but " + version + ") or the data in not in 'javabin'
> format");
>       }
>       return readVal(dis);
>     }
>
> Can you try the latest trunk and see the version difference?
>
> Koji
> --
> http://www.rondhuit.com/en/
>
>

--
View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Trunk-Invalid-version-or-the-data-in-not-in-javabin-format-tp2384421p2396195.html
Sent from the Solr - User mailing list archive at Nabble.com.