ExtractParameters in Solrnet (AbstractMethodError)

Joao Correia

I'm trying to extract pdf data with solrnet client. My code is the following:

using (MemoryStream stream = new MemoryStream((byte[])dataReader["file_stream"]))
                    {
                        var solr = ServiceLocator.Current.GetInstance<ISolrOperations<Contribution>>();
                        ExtractParameters extract = new ExtractParameters(stream, "doc1", dataReader["nome_original"] + "")
                        {
                            ExtractOnly = true,
                            ExtractFormat = ExtractFormat.Text/*,
                            StreamType = "application/pdf"*/
                        };
                        var response = solr.Extract(extract);
                        Debug.WriteLine("\n+++++++++++++++++++++++++++++++ " + response.Content);
                    }

However Im getting the error you can see below:

java.lang.RuntimeException: java.lang.AbstractMethodError

                at org.apache.solr.servlet.HttpSolrCall.sendError(HttpSolrCall.java:604)

                at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:473)

                at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:225)

                at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:183)

                at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)

                at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)

                at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)

                at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)

                at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)

                at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

                at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

                at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)

                at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

                at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)

                at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)

                at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)

                at org.eclipse.jetty.server.Server.handle(Server.java:499)

                at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)

                at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

                at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)

                at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)

                at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)

                at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.AbstractMethodError

                at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)

                at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)

                at org.apache.solr.core.SolrCore.execute(SolrCore.java:2082)

                at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:670)

                at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:458)

                ... 22 more

Basically dataReader["file_stream"] is a BLOB in the database and I want to get all the text in this file. Can anyone help me?

Thanks

Joao Correia

I already fix it. It was a bad installation of JARS.

I was adding:

<lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />

and

<lib dir="../../../dist/" regex=".*\.jar" />

As I had two JARS (apache-solr-cell-3.5.0 and solr-cell-5.5.0) solr was confused which one to choose generating the AbstractMethodError.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Highlighting in SolrNet

From Dev

SolrNet OR query

From Dev

Make a Solrnet Facet Linkeble with Solrnet?

From Dev

Simple Injector and SolrNet

From Dev

SolrNet commit error with waitFlush

From Dev

createArrayOf AbstractMethodError

From Dev

AbstractMethodError in Spring

From Dev

Asp.net MVC 4 and SolrNet programing

From Dev

Clean way to log response from debugQuery in SolrNet

From Dev

Solrnet can't get mapping to work

From Dev

SolrNet query to get records between to fields value

From Dev

Can SolrNet do exact field value matches?

From Dev

AbstractMethodError on entityManager.createQuery()

From Dev

Spring MVC AbstractMethodError error

From Dev

AbstractMethodError on resultset.getObject

From Dev

AbstractMethodError while creating JpaRepository

From Dev

or in namedQueries in Grails 2.3.8: AbstractMethodError

From Dev

AbstractMethodError thrown at runtime with Hibernate/JPA

From Dev

How to resolve "AbstractMethodError" from LambdaMetafactory

From Dev

AbstractMethodError for getValidationMode()Ljavax/persistence/ValidationMode

From Dev

How to solve AbstractMethodError in Hibernate 5?

From Dev

AbstractMethodError for getValidationMode()Ljavax/persistence/ValidationMode

From Dev

How to use boosting in solrnet while using default query?

From Dev

Solr - How to trigger the DIH from SolrNet API with C# code

From Dev

Processing 2.2.1 Video - AbstractMethodError - GStreamer / JNA mismatch?

From Dev

Maven and cxf: abstractMethodError (getConduit) with web service

From Dev

AbstractMethodError on deploying Spring 4.0 in Tomcat 6

From Dev

AbstractMethodError due to method missing on a trait (library update)

From Dev

AbstractMethodError when accessing Wicket Application (jboss server)

Related Related

  1. 1

    Highlighting in SolrNet

  2. 2

    SolrNet OR query

  3. 3

    Make a Solrnet Facet Linkeble with Solrnet?

  4. 4

    Simple Injector and SolrNet

  5. 5

    SolrNet commit error with waitFlush

  6. 6

    createArrayOf AbstractMethodError

  7. 7

    AbstractMethodError in Spring

  8. 8

    Asp.net MVC 4 and SolrNet programing

  9. 9

    Clean way to log response from debugQuery in SolrNet

  10. 10

    Solrnet can't get mapping to work

  11. 11

    SolrNet query to get records between to fields value

  12. 12

    Can SolrNet do exact field value matches?

  13. 13

    AbstractMethodError on entityManager.createQuery()

  14. 14

    Spring MVC AbstractMethodError error

  15. 15

    AbstractMethodError on resultset.getObject

  16. 16

    AbstractMethodError while creating JpaRepository

  17. 17

    or in namedQueries in Grails 2.3.8: AbstractMethodError

  18. 18

    AbstractMethodError thrown at runtime with Hibernate/JPA

  19. 19

    How to resolve "AbstractMethodError" from LambdaMetafactory

  20. 20

    AbstractMethodError for getValidationMode()Ljavax/persistence/ValidationMode

  21. 21

    How to solve AbstractMethodError in Hibernate 5?

  22. 22

    AbstractMethodError for getValidationMode()Ljavax/persistence/ValidationMode

  23. 23

    How to use boosting in solrnet while using default query?

  24. 24

    Solr - How to trigger the DIH from SolrNet API with C# code

  25. 25

    Processing 2.2.1 Video - AbstractMethodError - GStreamer / JNA mismatch?

  26. 26

    Maven and cxf: abstractMethodError (getConduit) with web service

  27. 27

    AbstractMethodError on deploying Spring 4.0 in Tomcat 6

  28. 28

    AbstractMethodError due to method missing on a trait (library update)

  29. 29

    AbstractMethodError when accessing Wicket Application (jboss server)

HotTag

Archive