lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pcodlcruz <fcocruzo...@gmail.com>
Subject RE: NullPointerException in RAMDirectory
Date Fri, 05 Aug 2011 06:46:45 GMT
Thanks Jason.

The Lucene version I am using is 3.0.1 and the exception is

java.lang.NullPointerException
	at org.apache.lucene.store.Directory.makeLock(Directory.java:106)
	at org.apache.lucene.index.IndexWriter.isLocked(IndexWriter.java:4748)
	at
com.cyp.back.biz.LuceneDocumentsBiz.isIndexLocked(LuceneDocumentsBiz.java:518)
	at com.cyp.back.biz.DocumentBiz.search(DocumentBiz.java:2056)
	at
com.cyp.back.listener.DocumentOpServlet.doPost(DocumentOpServlet.java:394)
	at
com.cyp.back.listener.DocumentOpServlet.doGet(DocumentOpServlet.java:200)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at
com.cyp.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:130)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
	at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
	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:542)
	at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


The problem is makeLock method of the Directory class.

 public Lock makeLock(String name) {
      return lockFactory.makeLock(name);
  }

lockFactory is NULL.

Thanks.

--
View this message in context: http://lucene.472066.n3.nabble.com/NullPointerException-in-RAMDirectory-tp3225250p3227818.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Mime
View raw message