Thanks a lot, Shawn.  It works now.

Have a nice weekend,

-Jenny



<http://localhost:8983/solr/db>


On Fri, Jun 14, 2013 at 6:47 PM, Shawn Heisey <s...@elyograg.org> wrote:

> On 6/14/2013 4:26 PM, Jenny Huang wrote:
> > Hi,
> >
> > I need to use solrj to do a full data import from a table in database,
> and
> > encountered the solr version error: "java.lang.RuntimeException: Invalid
> > version (expected 2, but 60) or the data in not in 'javabin' format".  To
> > figure out what went wrong, I stripped the program to bare bone and let
> it
> > run data import for the 'db' in solr tutorial example-DIH
> > (\solr-4.3.0\example\example-DIH), and experienced the same version
> error.
>
> This error actually means that the response you are getting is HTML
> rather than javabin.
>
> The reason you are getting the error is because you have given SolrJ a
> URL from the admin UI, not a core base URL for API calls.  Use this
> instead:
>
>         String url = "http://localhost:8983/solr/db";;
>
> Thanks,
> Shawn
>
>

Reply via email to