Thanks Michael. This indeed had something to do with environment. mvn
test is running the test case without properly initialized environment.
Once I added System.setProperty( "java.home" , "/opt/jdk.../jre/" ) ; - it
started found the currency.data and moved on
So it is clearly not solr - bu
Clearly you're going to need to deposit 25 cents to make that call. :)
More seriously, I'm wondering if most of the issue is environment-related,
since it seems like it's looking for that file on your system based on the
path. I checked my machine and it doesn't have a
$JAVA_HOME/lib/currency.data
Hi
I am using solrj 4.6 for accessing solr 4.6.As a test case for my
application, I created a servlet which holds the SolrJ connection via
zookeeper.
When I run the test, I am getting a weird stack trace. The test fails on
not finding a currency file of java. This file I believe used to be
On 11/01/2012 05:06 AM, Jegannathan Mehalingam wrote:
Here is my code which uses CommonsHttpSolrServer:
String url = "http://localhost:8983/solr/#/solr/update/";;
your solr url looks wrong, try this :
http://localhost:8983/solr/update/
or maybe this one is you have a core named "solr" :
http:
I am using the default solr.xml that came with the installation. The
core name is defined as "solr". So, I changed the url to
"http://localhost:8983/solr/solr/"; and that resolves the issue. I also
replaced CommonsHttpSolrServer with HttpSolrServer and this works as
well. I tried both XMLRespon
On 10/31/2012 10:06 PM, Jegannathan Mehalingam wrote:
- I tried using HttpSolrServer, but had some problems and some news
groups mentioned that it is buggy and I should be using
CommonsHttpSolrServer. So, I am using CommonsHttpSolrServer. But both
approaches does not work.
- I have tried using
- I tried using HttpSolrServer, but had some problems and some news
groups mentioned that it is buggy and I should be using
CommonsHttpSolrServer. So, I am using CommonsHttpSolrServer. But both
approaches does not work.
- I have tried using SOLR 4.0 as well as 3.6.1. I get errors in both cases.