Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

couchdb-lucene over bigcouch NullPointerException #89

Open
snez opened this Issue · 2 comments

2 participants

@snez

I have a default bigcouch and default couchdb-lucene instance working together. Then I have this view in bigcouch:

{
"_id": "_design/fullname",
"_rev": "1-e6987882fac677cb7ba367b6b0d6b471",
"fulltext": {
"name": {
"index": "function(doc) { var ret=new Document(); ret.add(doc.surname); return ret }"
}
}
}

When I try to make a query like http://localhost:5984/play/_fti/_design/fullname/name?q=chris* I get an exception:

chris@Christos:~ $ couch-lucene
2010-10-27 14:47:06,955 INFO [Main] Index output goes to: /usr/local/Cellar/couchdb-lucene/0.5.3/indexes
2010-10-27 14:47:06,991 INFO [Main] Accepting connections with SelectChannelConnector@localhost:5985
2010-10-27 14:48:14,258 ERROR [log] /hello_bigcouch/_fti/_design/fullname/name
java.lang.NullPointerException
at com.github.rnewson.couchdb.lucene.couchdb.Couch.(Couch.java:40)
at com.github.rnewson.couchdb.lucene.LuceneServlet.getCouch(LuceneServlet.java:121)
at com.github.rnewson.couchdb.lucene.LuceneServlet.getIndexer(LuceneServlet.java:142)
at com.github.rnewson.couchdb.lucene.LuceneServlet.doGet(LuceneServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1162)
at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1153)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:913)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

@rnewson
Owner

Can you include the setup you used to hook couchdb-lucene to bigcouch?

@snez

Do you mean hardware or configuration?
/opt/bigcouch/etc/local.ini or
/usr/local/etc/couchdb/local.ini ?

I'm on OSX 10.6.4

Not sure if I changed my config since this error but here it is:
[cluster]
r = 1
w = 1
q = 1

[couchdb]
os_process_timeout=60000 ; increase the timeout from 5 seconds.

[external]
fti=/usr/bin/python /usr/local/Cellar/couchdb-lucene/0.5.3/tools/couchdb-external-hook.py

[httpd_db_handlers]
_fti = {couch_httpd_external, handle_external_req, <<"fti">>}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.