• Resolved bjorngus

    (@bjorngus)


    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://www.ads-software.com/plugins/wpsolr-search-engine/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author WPSolr free

    (@wpsolr)

    Which Solr files version do you use ?

    Plugin Author WPSolr free

    (@wpsolr)

    See
    https://www.ads-software.com/support/topic/error-when-trying-to-index?replies=7,
    and especially
    https://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

    (@bjorngus)

    I think i run 5.5.1. Ok let me try that.

    Thread Starter bjorngus

    (@bjorngus)

    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

    Plugin Author WPSolr free

    (@wpsolr)

    Here is my complete procedure, tested a few minutes ago:

    wget https://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 https://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

    (@bjorngus)

    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 free

    (@wpsolr)

    Within your Solr admin UI, select your index, and query it. It will show you a full url like

    https://localhost:8983/solr/berotec/select?q=*%3A*&wt=json&indent=true

    Is it ?

    Thread Starter bjorngus

    (@bjorngus)

    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 free

    (@wpsolr)

    iptables ?

    Thread Starter bjorngus

    (@bjorngus)

    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 free

    (@wpsolr)

    In wpsolr, Solr path of your index

    Thread Starter bjorngus

    (@bjorngus)

    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.