lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Result from server is not rooted with a <result> tag
Date Fri, 20 Jul 2007 13:03:22 GMT
Hello Karen,

You should grab solrj from its new home: http://solrstuff.org/svn/solrj/

Otis
--
Lucene Consulting -- http://lucene-consulting.com/



----- Original Message ----
From: Karen Loughran <k.loughran@qub.ac.uk>
To: solr-user@lucene.apache.org
Sent: Friday, July 20, 2007 12:41:28 PM
Subject: Result from server is not rooted with a <result> tag


Hi all, 

I'm using the code from solr-client which (downloaded from 
http://issues.apache.org/jira/browse/SOLR-20)
to add new solr records programmatically with java to my db (solr 1.2). 

Basically:

            SolrClient client = new SolrClientImpl( new 
URL(http://localhost:8080/solr/) );

            // Adding a document
            SimpleSolrDoc ex = new SimpleSolrDoc();
            ex.setField( "programId", programId );
            ex.setField( "Title", title);
        (and so on for each field)
 
            client.add( ex );
            client.commit( true, true );




It used to work, but now I get the exception shown below:  

TCP mon shows the response back from the solr server as:

HTTP/1.1 200 OK 
Server: Apache-Coyote/1.1 
Content-Type: text/xml;charset=UTF-8 
Content-Length: 147 
Date: Fri, 20 Jul 2007 09:31:21 GMT 
 
<?xml version="1.0" encoding="UTF-8"?>
   <response>
      <lst name="responseHeader">
         <int name="status">0</int>
         <int name="QTime">3</int>
      </lst>
   </response>

Not sure what has changed ?  Does anyone recognise this error ?  Should this 
client code work with solr 1.2 ?

many thanks
Karen


INFO: added id={bbc.co.uk/newsround/277108109} in 29ms
20-Jul-2007 11:28:31 org.apache.solr.core.SolrCore execute
INFO: /update/  0 44
org.apache.solr.client.exception.SolrClientException: Result from server is 
not rooted with a <result> tag.
        at 
org.apache.solr.client.impl.SolrClientImpl.postUpdateXml(SolrClientImpl.java:172)
        at 
org.apache.solr.client.impl.SolrClientImpl.add(SolrClientImpl.java:291)
        at 
org.apache.solr.client.impl.SolrClientImpl.add(SolrClientImpl.java:216)
        at uk.ac.besc.prism.publication.impl.publication.addSolrRecord(Unknown 
Source)
        at uk.ac.besc.prism.publication.impl.publication.notifyIndex(Unknown 
Source)
        at uk.ac.besc.prism.publication.impl.publication.publish(Unknown 
Source)
        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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
        at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
        at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
        at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
        at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
        at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:619)
2007-07-20 11:28:31,417 DEBUG impl.GroupMapper [debug:138] 
[notifyIndex@-1]Exiting




Mime
View raw message