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 Em <ma...@yahoo.de> on 2011/01/30 19:11:55 UTC
SolrJ (Trunk) Invalid version or the data in not in 'javabin'
format
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
Maybe its interesting: Solr was empty. I do not know how it would look like
if there was something inside the index.
Any ideas how to fix that problem?
Thank you
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Trunk-Invalid-version-or-the-data-in-not-in-javabin-format-tp2384421p2384421.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: SolrJ (Trunk) Invalid version or the data in not in 'javabin'
format
Posted by Em <ma...@yahoo.de>.
Hi,
I will give you feedback today. There occured another issue with our current
Solr-installation that I have to fix.
Thanks for your effort!
Regards
--
View this message in context: http://lucene.472066.n3.nabble.com/SolrJ-Trunk-Invalid-version-or-the-data-in-not-in-javabin-format-tp2384421p2389343.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: SolrJ (Trunk) Invalid version or the data in not in 'javabin'
format
Posted by Em <ma...@yahoo.de>.
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.
Re: SolrJ (Trunk) Invalid version or the data in not in 'javabin'
format
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
(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/