Note that there are some explanatory texts on larger screens.

plurals
  1. POSolr indexing fails on server.request(up)
    primarykey
    data
    text
    <p>while indexing into solr, i am getting an error like this.</p> <pre><code> HTTP Status 500 - lazy loading error org.apache.solr.common.SolrException: lazy loading error at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:260) at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:242) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376) at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at </code></pre> <p>The URL formed is : <code>http://localhost:8080/solr/update/extract?Latitude=51.9125&amp;Longitude=179.5&amp;commit=true&amp;waitFlush=true&amp;waitSearcher=true&amp;wt=javabin&amp;version=2</code></p> <p>(I have configured tomcat using Xampp on Windows machine)</p> <p>I have been following SOF and various other blogs/forums and tried to debug it but for hours i could not find anything.</p> <p>I have added the following things in the solr.xml</p> <pre><code>&lt;maxFieldLength&gt;10000&lt;/maxFieldLength&gt; &lt;writeLockTimeout&gt;60000&lt;/writeLockTimeout&gt; &lt;commitLockTimeout&gt;60000&lt;/commitLockTimeout&gt; &lt;lockType&gt;simple&lt;/lockType&gt; &lt;unlockOnStartup&gt;true&lt;/unlockOnStartup&gt; &lt;reopenReaders&gt;true&lt;/reopenReaders&gt; &lt;requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048000" /&gt; &lt;lst name="defaults"&gt; &lt;!--str name="echoParams"&gt;explicit&lt;/str--&gt; &lt;!--int name="rows"&gt;10&lt;/int--&gt; &lt;!--str name="df"&gt;text&lt;/str--&gt; &lt;str name="Latitude"&gt;Latitude&lt;/str&gt; &lt;str name="Longitude"&gt;Longitude&lt;/str&gt; &lt;/lst&gt; </code></pre> <p>Even tried adding the following to solconfig.xml ands restarting tomcat i get </p> <pre><code> &lt;requestHandler name="/update/extract" class="org.apache.solr.handler.extraction.ExtractingRequestHandler"&gt; &lt;lst name="defaults"&gt; &lt;str name="ext.map.Last-Modified"&gt;last_modified&lt;/str&gt; &lt;bool name="ext.ignore.und.fl"&gt;true&lt;/bool&gt; &lt;/lst&gt; &lt;/requestHandler&gt; </code></pre> <p>On the Java console it shows an error : org.apache.solr.common.SolrException: Internal Server Error </p> <ol> <li><p>I realized the issue might be because of my solr home path. I created a new directory and copied all the config files there and mentioned that as my solr path. However, I later update the solrconfig.xml, correcting paths for all the jars.</p></li> <li><p>Also tried adding the 'pdfbox and fontbox' jars in to solr lib folder and restarting Tomcat</p></li> </ol> <p>My Java code is : </p> <pre><code> String urlString = "http://localhost:8080/solr"; SolrServer server = new CommonsHttpSolrServer(urlString); ContentStreamUpdateRequest up = new ContentStreamUpdateRequest("/update/extract"); String fileName=f.toString(); up.addFile(new File(fileName)); up.setParam("Latitude", Latitude); up.setParam("Longitude", Longitude); up.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); server.request(up); </code></pre> <p>(Port8080 is the one i have configured)</p> <p>Still solr indexing is not working at my end.. i have tried hours debugging this and figuring out. It would be really great if you can show me some hint or suggest anything i am doing wrong. </p> <blockquote> <p>As for your ref i have already tried : <a href="http://wiki.apache.org/solr/FrontPage" rel="nofollow noreferrer">http://wiki.apache.org/solr/FrontPage</a> <a href="http://wiki.apache.org/solr/ContentStreamUpdateRequestExample" rel="nofollow noreferrer">http://wiki.apache.org/solr/ContentStreamUpdateRequestExample</a> <a href="http://wiki.apache.org/solr/UpdateRichDocuments" rel="nofollow noreferrer">http://wiki.apache.org/solr/UpdateRichDocuments</a> <a href="http://wiki.apache.org/solr/ExtractingRequestHandler#Configuration" rel="nofollow noreferrer">http://wiki.apache.org/solr/ExtractingRequestHandler#Configuration</a> <a href="http://lucene.472066.n3.nabble.com/Problem-using-ExtractingRequestHandler-with-tomcat-td494930.html" rel="nofollow noreferrer">http://lucene.472066.n3.nabble.com/Problem-using-ExtractingRequestHandler-with-tomcat-td494930.html</a> <a href="http://lucene.472066.n3.nabble.com/Internal-Server-Error-td715713.html" rel="nofollow noreferrer">http://lucene.472066.n3.nabble.com/Internal-Server-Error-td715713.html</a> <a href="https://stackoverflow.com/questions/5693671/how-to-index-pdfs-content-with-solrj">How to index pdf&#39;s content with SolrJ?</a></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload