Title: Java exception on PDF import
Last modified: August 31, 2016

---

# Java exception on PDF import

 *  Resolved [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/)
 * Hi, indexing is working fine until i check it to index application/pdf. Then 
   i get the error message below. I have been searching this forum without any results.
   I dont get this message on my local environment where i run ubuntu 14.04 but 
   i do get the error on my production environment where i run Debian 7.
 * Error on attached file produktblad (ID: 12353): Solr HTTP error: OK (500) {“error”:{“
   metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”
   java.lang.ClassNotFoundException”],”msg”:”Error loading class ‘solr.extraction.
   ExtractingRequestHandler'”,”trace”:”org.apache.solr.common.SolrException: Error
   loading class ‘solr.extraction.ExtractingRequestHandler’\n\tat org.apache.solr.
   core.SolrResourceLoader.findClass(SolrResourceLoader.java:558)\n\tat org.apache.
   solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:489)\n\tat org.
   apache.solr.core.SolrCore.createInstance(SolrCore.java:566)\n\tat org.apache.
   solr.core.PluginBag$LazyPluginHolder.createInst(PluginBag.java:363)\n\tat org.
   apache.solr.core.PluginBag$LazyPluginHolder.get(PluginBag.java:348)\n\tat org.
   apache.solr.core.PluginBag.get(PluginBag.java:148)\n\tat org.apache.solr.handler.
   RequestHandlerBase.getRequestHandler(RequestHandlerBase.java:231)\n\tat org.apache.
   solr.core.SolrCore.getRequestHandler(SolrCore.java:1362)\n\tat org.apache.solr.
   servlet.HttpSolrCall.extractHandlerFromURLPath(HttpSolrCall.java:326)\n\tat org.
   apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:296)\n\tat org.apache.
   solr.servlet.HttpSolrCall.call(HttpSolrCall.java:412)\n\tat org.apache.solr.servlet.
   SolrDispatchFilter.doFilter(SolrDispatchFilter.java:229)\n\tat org.apache.solr.
   servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184)\n\tat org.eclipse.
   jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\
   tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\
   n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
   143)\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.
   java:577)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.
   java:223)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.
   java:1127)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.
   java:515)\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.
   java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.
   java:1061)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.
   java:141)\n\tat org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
   ContextHandlerCollection.java:215)\n\tat org.eclipse.jetty.server.handler.HandlerCollection.
   handle(HandlerCollection.java:110)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.
   handle(HandlerWrapper.java:97)\n\tat org.eclipse.jetty.server.Server.handle(Server.
   java:499)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:
   310)\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.
   java:257)\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.
   java:540)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.
   java:635)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.
   java:555)\n\tat java.lang.Thread.run(Thread.java:745)\nCaused by: java.lang.ClassNotFoundException:
   solr.extraction.ExtractingRequestHandler\n\tat java.net.URLClassLoader.findClass(
   URLClassLoader.java:381)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:
   424)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\n\tat java.lang.
   Class.forName0(Native Method)\n\tat java.lang.Class.forName(Class.java:348)\n\
   tat org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:
   542)\n\t… 32 more\n”,”code”:500}}
 * [https://wordpress.org/plugins/wpsolr-search-engine/](https://wordpress.org/plugins/wpsolr-search-engine/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7457985)
 * Which Solr files version do you use ?
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7457992)
 * See
    [https://wordpress.org/support/topic/error-when-trying-to-index?replies=7](https://wordpress.org/support/topic/error-when-trying-to-index?replies=7),
   and especially [http://stackoverflow.com/questions/27058991/solr-tomcat-org-apache-solr-common-solrexception-lazy-loading-error](http://stackoverflow.com/questions/27058991/solr-tomcat-org-apache-solr-common-solrexception-lazy-loading-error)
 * > It seems you’re adding a source directory to the classpath – you’ll need to
   > add the compiled version with its dependencies to the classpath instead.
   > In the normal distribution (from the Solr homepage) this is located in contrib/
   > extraction/lib, where it also bundles the other dependencies for the extraction
   > module.
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458012)
 * I think i run 5.5.1. Ok let me try that.
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458056)
 * I have on the server in
    /opt/solr-5.5.1/contrib/extraction/lib all the .jar 
   files, does this means i have the compiled version ? And where do I add the source
   to the complied version?
 * And do i need to go trough all this guide ?
    [https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Solr+Cell+using+Apache+Tika](https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Solr+Cell+using+Apache+Tika)
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458070)
 * Here is my complete procedure, tested a few minutes ago:
 *     ```
       wget http://archive.apache.org/dist/lucene/solr/5.5.1/solr-5.5.1.tgz
       tar xvf solr-5.5.1.tgz
       solr-5.5.1/bin/solr start
       solr-5.5.1/bin/solr create -c wpsolr-5.5.1
   
       (download solr 5.xx config files from http://wpsolr.com/releases/#1.0)
       cp solrconfig.xml schema.xml solr-5.5.1/server/solr/wpsolr-5.5.1/conf/
       (reload index with solr admin UI)
       (configure a new index in wpsolr admin UI:
       Index name: wpsolr - local 5.5.1
       Solr Protocol: http
       Solr host: localhost
       Solr port: 8983
       Solr path: /solr/wpsolr-5.5.1
       )
       (index posts on wpsolr admin UI, including a pdf file)
       (search in posts, retrieve the pdf)
       ```
   
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458077)
 * Thanks, but now im getting
 * Solr HTTP error: OK (404) <html> <head> <meta http-equiv=”Content-Type” content
   =”text/html; charset=UTF-8″/> <title>Error 404 Not Found</title> </head> <body
   ><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/berotec/select.
 * I saw in a previous post in this forum i should edit my path, where do i do that,
   i looked in solrconfig.xml but dont find where.
 * One more thing, on my local environment i can access mysite:8983 but not on production,
   can i reload index without solar admin UI ?
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458078)
 * Within your Solr admin UI, select your index, and query it. It will show you 
   a full url like
 *     ```
       http://localhost:8983/solr/berotec/select?q=*%3A*&wt=json&indent=true
       ```
   
 * Is it ?
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458082)
 * i cant access my solar admin on my production site, i dont know why, it times
   out. Maybe it has some port forwarding.
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458084)
 * iptables ?
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458085)
 * I think portforwarding, but dont know much about it, anyway
    In another post 
   here, it says:
 * > I didn’t have to put in the entire path:
   >  /opt/solr/server/solr/hitlink It 
   > ended up being: /solr/hitlink
 * Where do i edit this ?
 *  Plugin Author [WPSOLR](https://wordpress.org/support/users/wpsolr/)
 * (@wpsolr)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458086)
 * In wpsolr, Solr path of your index
 *  Thread Starter [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * (@bjorngus)
 * [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458087)
 * ok, i changed back to my previous installation of solr, and now it works and 
   i dont get the java error. Even though i dont think i changed anything. Thank
   you for all your help.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Java exception on PDF import’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpsolr-search-engine_b2dbdc.svg)
 * [WPSOLR - Elasticsearch and Solr search](https://wordpress.org/plugins/wpsolr-search-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpsolr-search-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpsolr-search-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpsolr-search-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpsolr-search-engine/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [bjorngus](https://wordpress.org/support/users/bjorngus/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/java-exception-on-pdf-import/#post-7458087)
 * Status: resolved