You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kaustuv Royburman <ka...@infoservices.in> on 2010/11/11 14:10:24 UTC

Error while indexing files with Solr

Hi,
I am trying to index documents (PDF, Doc, XLS, RTF) using the 
ExtractingRequestHandler.

I am following the tutorial at 
http://wiki.apache.org/solr/ExtractingRequestHandler
But when i run the following command

*curl 
"http://localhost:8983/solr/update/extract?literal.id=mydoc.doc&uprefix=attr_&fmap.content=attr_content" 
-F "myfile=@/home/system/Documents/mydoc.doc"*

i am getting the following error :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>lazy loading error

org.apache.solr.common.SolrException: lazy loading error
    at 
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:249)
    at 
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:231)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
    at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
    at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
    at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
    at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
    at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:285)
    at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
    at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:202)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
    at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
    at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.apache.solr.common.SolrException: Error loading class 
'org.apache.solr.handler.extraction.ExtractingRequestHandler'
    at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:375)
    at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413)
    at org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:449)
    at 
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:240)
    ...21 more
Caused by: java.lang.ClassNotFoundException: 
org.apache.solr.handler.extraction.ExtractingRequestHandler not found in 
java.net.URLClassLoader{urls=[], parent=ContextLoader@null}
    at java.net.URLClassLoader.findClass(libgcj.so.90)
    at java.lang.ClassLoader.loadClass(libgcj.so.90)
    at java.lang.ClassLoader.loadClass(libgcj.so.90)
    at java.lang.Class.forName(libgcj.so.90)
    at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:359)
    ...24 more
</pre>
<p>RequestURI=/solr/update/extract</p><p><i><small><a 
href="http://jetty.mortbay.org/">Powered by 
Jetty://</a></small></i></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>


I am running Debian Lenny and java version "1.6.0_22".
I am running apache-solr-1.4.1 and running it from the examples directory.

Please point me in the right direction and help me solve the problem.



-- 
---
Regards,
Kaustuv Royburman

Senior Software Developer
infoservices.in
DLF IT Park,
Rajarhat, 1st Floor, Tower - 3
Major Arterial Road,
Kolkata - 700156,
India