Re: SolrJ (Trunk) Invalid version or the data in not in 'javabin' format
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
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
(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/
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: Invalid version or the data in not in 'javabin' format
thats was the solution!! i package the current lucene and solrj repositories (dev 4.0) and copy the nesseccary jars to nutch-libs (after removing the old), building nutch and run it - it works!! thank you peter :) marcel On 09/12/2010 03:40 PM, Peter Sturge wrote: Could be a solrj .jar version compat issue. Check that the client and server's solrj version jars match up. Peter On Sun, Sep 12, 2010 at 1:16 PM, h00kpub...@gmail.com wrote: hi... currently i am integrating nutch (release 1.2) into solr (trunk). if i indexing to solr index with nutch i got the exception: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:99) at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:466) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) at org.apache.nutch.indexer.solr.SolrWriter.close(SolrWriter.java:98) at org.apache.nutch.indexer.IndexerOutputFormat$1.close(IndexerOutputFormat.java:48) at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:474) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216) 2010-09-12 11:44:55,101 ERROR solr.SolrIndexer - java.io.IOException: Job failed! can you tell me, whats wrong or how can i fix this? best regards marcel :)
Re: Invalid version or the data in not in 'javabin' format
Could be a solrj .jar version compat issue. Check that the client and server's solrj version jars match up. Peter On Sun, Sep 12, 2010 at 1:16 PM, h00kpub...@gmail.com wrote: > hi... currently i am integrating nutch (release 1.2) into solr (trunk). if > i indexing to solr index with nutch i got the exception: > > java.lang.RuntimeException: Invalid version or the data in not in 'javabin' > format > at > org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:99) > at > org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:466) > at > org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243) > at > org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) > at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) > at org.apache.nutch.indexer.solr.SolrWriter.close(SolrWriter.java:98) > at > org.apache.nutch.indexer.IndexerOutputFormat$1.close(IndexerOutputFormat.java:48) > at > org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:474) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411) > at > org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216) > 2010-09-12 11:44:55,101 ERROR solr.SolrIndexer - java.io.IOException: Job > failed! > > can you tell me, whats wrong or how can i fix this? > > best regards marcel :) > > > >
Invalid version or the data in not in 'javabin' format
hi... currently i am integrating nutch (release 1.2) into solr (trunk). if i indexing to solr index with nutch i got the exception: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:99) at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:466) at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:105) at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:49) at org.apache.nutch.indexer.solr.SolrWriter.close(SolrWriter.java:98) at org.apache.nutch.indexer.IndexerOutputFormat$1.close(IndexerOutputFormat.java:48) at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:474) at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:411) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216) 2010-09-12 11:44:55,101 ERROR solr.SolrIndexer - java.io.IOException: Job failed! can you tell me, whats wrong or how can i fix this? best regards marcel :)