: I'm seeing this stack trace when I try to view a specific document, e.g. : /admin/luke?id=1 but luke appears to be working correctly when I just
FWIW: I was able to reproduce this using the example setup (i picked a doc id at random) suspecting it was a bug in docFreq when using multiple segments, i tried optimizing and still got an NPE, but then my entire computer crashed (unrelated) before i could look any deeper. I have to go out now, but i'll try to dig into this more when i get back ... given where it happens in the code, it seems like a potentially serious lucene bug (either that: or LukeRequestHandler is doing something it really shouldn't be, but i can't imagine how it could trigger an NPE that deep in the lucene code) : view /admin/luke. Does this look familiar to anyone? Our sysadmin just : upgraded us to the 1.4 release, I'm not sure if this occurred before : that. : : Thanks, : Jake : : 1. java.lang.NullPointerException : 2. at org.apache.lucene.index.TermBuffer.set(TermBuffer.java:95) : 3. at org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:158) : 4. at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:232) : 5. at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:179) : 6. at org.apache.lucene.index.SegmentReader.docFreq(SegmentReader.java:975) : 7. at org.apache.lucene.index.DirectoryReader.docFreq(DirectoryReader.java:627) : 8. at org.apache.solr.search.SolrIndexReader.docFreq(SolrIndexReader.java:308) : 9. at org.apache.solr.handler.admin.LukeRequestHandler.getDocumentFieldsInfo(LukeRequestHandler.java:248) : 10. at org.apache.solr.handler.admin.LukeRequestHandler.handleRequestBody(LukeRequestHandler.java:124) : 11. at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) : 12. at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) : 13. at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) : 14. at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) : 15. at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:76) : 16. at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:158) : 17. at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) : 18. at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:241) : 19. at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:435) : 20. at com.caucho.server.port.TcpConnection.run(TcpConnection.java:586) : 21. at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:690) : 22. at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:612) : 23. at java.lang.Thread.run(Thread.java:619) : 24. : 25. Date: Fri, 13 Nov 2009 02:19:54 GMT : 26. Server: Apache/2.2.3 (Red Hat) : 27. Cache-Control: no-cache, no-store : 28. Pragma: no-cache : 29. Expires: Sat, 01 Jan 2000 01:00:00 GMT : 30. Content-Type: text/html; charset=UTF-8 : 31. Vary: Accept-Encoding,User-Agent : 32. Content-Encoding: gzip : 33. Content-Length: 1066 : 34. Connection: close : 35. : -Hoss