This is the underlying exception:
> Caused by: org.apache.solr.common.SolrException: No such core: Universities
> - Embedded Solr Server
>    at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
>    at
> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
>    ... 123 more

It thinks you are talking to a core named 'Universities'. If this does
not help, you could post the code that opens the SolrServer and
creates the query object.


On Mon, May 10, 2010 at 5:32 PM, Eric Berry <elbe...@gmail.com> wrote:
> Hello,
>   I'm running into an exception when I try to search against the example
> index provided with the Solr download.
>
> I have created a grails application where I want to embed the Solr server.
>
> I'm using Solr 1.4.0.
> [exception]
> Caused by: org.apache.solr.client.solrj.SolrServerException: Error executing
> query
>    at
> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:95)
>    at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:118)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
>    at
> org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
>    at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:90)
>    at
> com.eharmony.search.UniversitySearchService.search(UniversitySearchService.groovy:43)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at
> org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
>    at
> org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
>    at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)
>    at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:155)
>    at
> com.eharmony.search.UniversitySearchService.search(UniversitySearchService.groovy)
>    at
> com.eharmony.search.UniversitySearchService$$FastClassByCGLIB$$3e5e1cb9.invoke(<generated>)
>    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
>    at
> org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
>    at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>    at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
>    at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>    at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
>    ... 94 more
> Caused by: org.apache.solr.common.SolrException: No such core: Universities
> - Embedded Solr Server
>    at
> org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:104)
>    at
> org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
>    ... 123 more
> [/exception]
>
> If I run the standalone Solr server and connect to it using a
> 'CommonsHttpSolrServer', everything works fine.
>
> However, If I point my 'EmbeddedSolrServer' at the same home directory that
> the standalone server is using, it fails to search with the exception above.
> I tried using both examples provided in the wiki:
> http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer
>
> Any help would be greatly appreciated.
>
> Thanks,
> Eric
>
> --
> Learn from the past. Live in the present. Plan for the future.
> Blog: http://www.townsfolkdesigns.com/blogs/elberry
> jEdit <http://www.jedit.org> - Programmer's Text Editor
> Bazaar <http://bazaar.canonical.com> - Version Control for Humans
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to