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

Plugin config page no longer works: Undefined "cat" field error #26

Closed
ksclarke opened this issue Apr 21, 2012 · 2 comments
Closed

Plugin config page no longer works: Undefined "cat" field error #26

ksclarke opened this issue Apr 21, 2012 · 2 comments
Assignees
Labels
Milestone

Comments

@ksclarke
Copy link

I did a pull to the latest 'develop' version (and am using Omeka 1.5.1). I deleted my Solr data directory and did an uninstall and reinstall of the SolrSearch plugin. When I do the reinstall I try to configure the plugin on the settings/configure page (using localhost, port 8983, /solr/, 20, Occurrences, and 25 (as configuration values)). When I try to save the settings, I do not get anything in the errors.log but I get a displayed error: "Invalid Solr server host, port, or core."

When I look at the Solr logs I see an undefined "cat" field error:

21:24:14.325 [qtp2134042896-30 - /solr/admin/ping] INFO org.apache.solr.core.SolrCore - [] webapp=null path=null params={start=3&q=solr&qt=dismax&fq=id:[+TO+]&fq=cat:[+TO+]} status=400 QTime=30
21:24:14.326 [qtp2134042896-30 - /solr/admin/ping] ERROR o.a.solr.servlet.SolrDispatchFilter - org.apache.jasper.JasperException: org.apache.solr.common.SolrException: undefined field cat
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:437)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:488)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:271)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:98)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:275)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:679)

Clicking on index doesn't work either. On another machine where I just installed the latest git changes but didn't wipe the index or uninstall/reinstall the index is still there and can be queried. Changes to the configure/settings page, though, also gives the same error message.

I look in the solrconfig.xml file and I see the ping query is: qt=dismax&q=solr&start=3&fq=id:[* TO ]&fq=cat:[ TO *]

So, I removed the &fq=cat:[* TO *] part of the ping query and then everything worked fine. So I'm guessing the ping just started to be used to give a better error page. Users I think though would need to delete that part of the ping query or make sure that the field is created in Solr so they don't get this error.

@waynegraham
Copy link

Looks like this is a remnant from the older default solrconfig.xml that shipped in Solr 1.4.x. Need to take a look at the new defaults and yank out the stuff that is for the example app.

@ksclarke
Copy link
Author

Maybe make a note of it, too, in documentation since I'm not using the example solr app but a barebones one I had around from another project (so it's out there in the wild and folks may do what I did and stumble on the problem).

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

No branches or pull requests

2 participants