lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: SolrServerException: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG .....
Date Fri, 20 Jul 2007 16:39:56 GMT
what version of solr are you running?  1.2?

Solrj is only tested with the latest trunk build, but I *think* it 
should work on 1.2.


Karen Loughran wrote:
> 
> Hi all, Otis,
> 
> I am now using the lastest solrj, and am trying to delete a solr record with 
> both deleteById and deleteByQuery as follows:
> 
> ...
>            CommonsHttpSolrServer solr = new CommonsHttpSolrServer( new 
> URL("http://localhost:8080/solr/") );
> 
>             SimpleSolrDoc ex = new SimpleSolrDoc();
> 
>             String programId = "kltest";
>             // solr.deleteById( programId );
>             solr.deleteByQuery( "programId:\"kltest\"" );
>             solr.commit(true, true);
> 
> 
> (programId is identified in the schema as unique identifier, also record 
> with "kltest" definitely exists ).
> But at runtime I get the following exception ?
> 
> I am using java version 1.6.0 and tomcat 5.5.23,
> 
> Does anyone recognise this ?  I am able to add records OK.
> 
> Many Thanks
> Karen
> 
> 
> java org/apache/solr/client/example/SimpleExampleKLDelete
> EXECUTE:http://localhost:8080/solr/update
> org.apache.solr.client.solrj.SolrServerException: TEXT must be immediately 
> followed by END_TAG and not START_TAG (position: START_TAG 
> seen ...<query>programId:"kltest"<query>... @1:40)   
> org.xmlpull.v1.XmlPullParserException: TEXT must be immediately followed by 
> END_TAG and not START_TAG (position: START_TAG 
> seen ...<query>programId:"kltest"<query>... @1:40)      at 
> org.xmlpull.mxp1.MXParser.nextText(MXParser.java:1063)       at 
> org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:251)
    
> at 
> org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:84)
     
> at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:77)
   
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:658)     at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:191)     

> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:159)    
   
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   
> 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)
> Caused by:
> Server side exception, status = 500: TEXT must be immediately followed by 
> END_TAG and not START_TAG (position: START_TAG 
> seen ...<query>programId:"kltest"<query>... @1:40)   
> org.xmlpull.v1.XmlPullParserException: TEXT must be immediately followed by 
> END_TAG and not START_TAG (position: START_TAG 
> seen ...<query>programId:"kltest"<query>... @1:40)        at 
> org.xmlpull.mxp1.MXParser.nextText(MXParser.java:1063)  at 
> org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:251)
    
> at 
> org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateRequestHandler.java:84)
     
> at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:77)
        
> at org.apache.solr.core.SolrCore.execute(SolrCore.java:658)        at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:191)     

> at 
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:159)    
   
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   
> 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)
>         at 
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:175)
>         at 
> org.apache.solr.client.solrj.update.DeleteDocuments.process(DeleteDocuments.java:82)
>         at 
> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.deleteByQuery(CommonsHttpSolrServer.java:217)
>         at 
> org.apache.solr.client.example.SimpleExampleKLDelete.main(SimpleExampleKLDelete.java:32)
> 


Mime
View raw message