lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: Solr Update Handler Failes with Some Doc Characters
Date Wed, 09 May 2007 16:52:18 GMT
Can you use &#174; , instead of registered trade mark sign?
On my environment, I can post both &#174; and reg sign successfully, though.

Koji

av_work@yahoo.com wrote:
> Hi,
>
> I tried CDATA. It fails the same way. I will try to check of the utf8-example.xml works
ok (I just have to change it to match my schema).
>
> I just ran a test by adding (R) symbolt into the XML to get the exact error message.
See below.
>
> Thanks,
> Av
>
> *** SUBMITTED REQUEST *** (as captured by HTTP proxy)
>
> POST /solr/update HTTP/1.1
> Content-Type: text/xml; charset=utf-8
> Host: ws2006b:8983
> Content-Length: 695
> Expect: 100-continue
> Proxy-Connection: Close
> <?xml version="1.0" encoding="UTF-8"?>
> <add>
> <doc>
>   <field name="id">1000194</field>
>   <field name="url">http://www®barharborinn®com</field>
>   <field name="title">Bar Harbor Hotels and Bar Harbor Inn near Acadia in Bar Harbor
ME</field>
>   <field name="metaDescription">Bar Harbor Inn- premier oceanfront hotel in Bar
Harbor ME® Rated Superior First Class by OHG, Best in-town location®Special Value Packages-fine
dining-personal service-amenities®</field>
>   <field name="metaKeywords">Bar Harbor Inn- premier oceanfront hotel in Bar Harbor
ME® Rated Superior First Class by OHG, Best in-town location®Special Value Packages-fine
dining-personal service-amenities®</field>
> </doc>
>
> *** ERROR MESSAGE ***
>
> <html>
> <head>
> <title>Error 500 no more data available - expected end tag &lt;/add&gt;
to close start tag &lt;add&gt; from line 2, parser stopped on END_TAG seen ...e Packages-fine
dining-personal service-amenities\uae&lt;/field&gt;\r\n&lt;/doc&gt;... @9:7
> java.io.EOFException: no more data available - expected end tag &lt;/add&gt;
to close start tag &lt;add&gt; from line 2, parser stopped on END_TAG seen ...e Packages-fine
dining-personal service-amenities\uae&lt;/field&gt;\r\n&lt;/doc&gt;... @9:7
> at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3015)
> at org.xmlpull.mxp1.MXParser.more(MXParser.java:3026)
> at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
> at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
> at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1078)
> at org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:159)
> 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:188)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:156)
> at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
> at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> </title>
> </head>
> <body>
> <h2>HTTP ERROR: 500</h2><pre>no more data available - expected end
tag &lt;/add&gt; to close start tag &lt;add&gt; from line 2, parser stopped
on END_TAG seen ...e Packages-fine dining-personal service-amenities\uae&lt;/field&gt;\r\n&lt;/doc&gt;...
@9:7
> java.io.EOFException: no more data available - expected end tag &lt;/add&gt;
to close start tag &lt;add&gt; from line 2, parser stopped on END_TAG seen ...e Packages-fine
dining-personal service-amenities\uae&lt;/field&gt;\r\n&lt;/doc&gt;... @9:7
> at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3015)
> at org.xmlpull.mxp1.MXParser.more(MXParser.java:3026)
> at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
> at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
> at org.xmlpull.mxp1.MXParser.nextTag(MXParser.java:1078)
> at org.apache.solr.handler.XmlUpdateRequestHandler.update(XmlUpdateRequestHandler.java:159)
> 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:188)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:156)
> at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
> at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
> at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
> at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> </pre>
> <p>RequestURI=/solr/update</p>
> <p><i><small><a href="http://jetty.mortbay.org">Powered by Jetty://</a></small></i></p>
> </body>
> </html>
>
>
>  
> ____________________________________________________________________________________
> Finding fabulous fares is fun.  
> Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>   


Mime
View raw message