Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing method Docslice? #1

Open
OkkeKlein opened this issue Jun 21, 2019 · 3 comments
Open

Missing method Docslice? #1

OkkeKlein opened this issue Jun 21, 2019 · 3 comments
Assignees

Comments

@OkkeKlein
Copy link

OkkeKlein commented Jun 21, 2019

Solr 6.6.6 throws following exception

Caused by: org.apache.solr.common.SolrException: org.apache.solr.search.DocSlice.(II[I[FJF)V
at org.apache.solr.core.SolrCore.(SolrCore.java:977)
at org.apache.solr.core.SolrCore.(SolrCore.java:830)
at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:950)
... 7 more
Caused by: java.lang.NoSuchMethodError: org.apache.solr.search.DocSlice.(II[I[FJF)V
at io.sease.crh.CompositeRequestHandler.(CompositeRequestHandler.java:68)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:539)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:486)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:753)
at org.apache.solr.core.PluginBag.createPlugin(PluginBag.java:133)
at org.apache.solr.core.PluginBag.init(PluginBag.java:269)
at org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:130)
at org.apache.solr.core.SolrCore.(SolrCore.java:935)
... 9 more

@agazzarini agazzarini self-assigned this Jun 21, 2019
@agazzarini
Copy link
Member

Hi @OkkeKlein I just

  • cloned the repository
  • changed the solr.version in pom.xml
  • mvn clean install

and everything is working. Could you please expand a bit about how you're using this handler?

My shoot in the dark is one of the following:

  • you followed the README using the version 1.0 (which has been compiled using Solr 7.1.0) on a Solr 6.6.6. At first thought I'm not sure why it shouldn't work
  • you cloned and built the repository without changing the solr.version in the pom.xml

Let me know, I'm happy to help.

@OkkeKlein
Copy link
Author

OkkeKlein commented Jun 23, 2019

OK. It seems to work now. (missing method exception is gone) At least when I put it in solrconfig.xml.

if I try to include it from another file it goes wrong:

<xi:include href="solrconfig_autocomplete.xml" xmlns:xi="http://www.w3.org/2001/XInclude">
xi:fallback</xi:fallback>
</xi:include>

Thank you and feel free to close the issue.

@OkkeKlein
Copy link
Author

Back on this issue. I am trying to create a jar for Solr 8.7.0. But on mvn install I get

[ERROR] /E:/Workspace/files/Java/composite-request-handler-master/src/main/java/io/sease/crh/CompositeRequestHandler.java:[67,54] constructor DocSlice in class org.apache.solr.search.DocSlice cannot be applied to given types;
required: int,int,int[],float[],long,float,org.apache.lucene.search.TotalHits.Relation
found: int,int,int[],float[],int,float
reason: actual and formal argument lists differ in length

Thanks for any help you can provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants