`

Failed to check if index is compound; nested excep

    博客分类:
  • J2EE
阅读更多
正在重建索引...
错误Failed to check if index is compound; nested exception is java.io.IOException: Lock obtain timed out: Lock@D:\Tomcat 6.0\temp\lucene-dd060d33087287190699cf3f47a115fc-commit.lock

org.compass.core.engine.SearchEngineException: Failed to check if index is compound; nested exception is java.io.IOException: Lock obtain timed out: Lock@D:\Tomcat 6.0\temp\lucene-dd060d33087287190699cf3f47a115fc-commit.lock
java.io.IOException: Lock obtain timed out: Lock@D:\Tomcat 6.0\temp\lucene-dd060d33087287190699cf3f47a115fc-commit.lock
	at org.apache.lucene.store.Lock.obtain(Lock.java:56)
	at org.apache.lucene.store.Lock$With.run(Lock.java:98)
	at org.apache.lucene.index.LuceneUtils.isCompound(LuceneUtils.java:211)
	at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.isIndexCompound(DefaultLuceneSearchEngineIndexManager.java:422)
	at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.verifyIndex(DefaultLuceneSearchEngineIndexManager.java:90)
	at org.compass.core.impl.DefaultCompass$TransactionalSearchEngineIndexManager$2.doInCompass(DefaultCompass.java:293)
	at org.compass.core.CompassTemplate.execute(CompassTemplate.java:134)
	at org.compass.core.CompassTemplate.execute(CompassTemplate.java:117)
	at org.compass.core.impl.DefaultCompass$TransactionalSearchEngineIndexManager.verifyIndex(DefaultCompass.java:291)
	at org.compass.core.lucene.engine.manager.ScheduledLuceneSearchEngineIndexManager.verifyIndex(ScheduledLuceneSearchEngineIndexManager.java:98)
	at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:147)
	at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:102)
	at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:95)
	at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:191)
	at org.mypackage.service.imp.SearchServiceImp.(SearchServiceImp.java:70)
	at cn.allobject.struts.action.RebuildSearchIndexAction.index_list_of_books(RebuildSearchIndexAction.java:96)
	at cn.allobject.struts.action.RebuildSearchIndexAction.execute(RebuildSearchIndexAction.java:73)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at cn.java1995.filter.GZipFilter.doFilter(GZipFilter.java:41)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at cn.allobject.servlet.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:34)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
	at java.lang.Thread.run(Unknown Source)




最近网站出现了这个问题,,,好郁闷。这是LUCENE的问题。
自己不怎么懂啊。。。只得GOOGLE下啦!
引用
出现以上异常主要有两种原因:
1.系统正在写索引未完成之前,应用程序关闭
解决方法:删除提示的lock文件后重启应用(最好在应用中捕捉到,自动删除)
2.系统中有多个线程或程序在抢用索引
解决方法:增加或改善等待队列机制作,或者出现此错误时先解锁


哎。。。怎么会出现这个问题。。。。看来没希望了。如果要解决这个问题又得叫空间提供商重启服务,那边又会是一堆废话。。。

嘿嘿,自己写个JSP页面,删除了那文件试下了。哈。。。删好,果然,成功了。网站搜索又能使用。哎。。得学习下LUCENE啊。。。不能只知道WHAT不知道HOW啊。
分享到:
评论
1 楼 qixingzi123 2011-09-06  
遇到同样的问题了。麻烦您了。帮忙解决下。你那个JSP怎么写的看看。怎么删除那个文件啊。急。

相关推荐

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    SegmentMerger.rar_After Method_Compound File

    The SegmentMerger class combines two or more Segments, represented by an IndexReader ({@link #add}, ... If the compoundFile flag is set, then the segments will be merged into a compound file for Linux.

    The-Compound-Effect-By-darren-Hardy.pdf

    This powerful, practical book, based on years of proven and profi table experience, shows ... The Compound Effect is a treasure chest of ideas for achieving greater success than you ever thought possible

    compound-file-viewer-src.zip_Compound File_OpenMCDF_复合文件查看

    复合文件结构查看工具的代码,内含复合文件格式定义。

    Unity插件Compound colider generator

    可以用于复杂碰撞边缘的生成,更加精确。

    DELPHI7托盘图标控件,230(好用).zip

    the index to the next icon that will display when cycling. Finally, I fixed a bug that caused the taskbar icon not to display itself when MinimizeToTray was true. Thanks to Lorenz Graf for ...

    compound words

    compound words

    Soft compound

    Soft compound

    tuning-hadoop-on-dell-poweredge-servers

    The Hadoop market is predicted to grow at a compound annual growth rate over the next several years. Several good tools and guides describe how to deploy Hadoop clusters, but very little ...

    复合文档豪华版,支持复杂路径解析,多流打开 compound file

    复合文档豪华版,支持复杂路径解析,多流打开的compound file,安全高效地检索复合文档中的流。支持路径名打开,如绝对路径 \Video\Data\Video.mp4 相对路径 ..\GUID\GUID.txt 当前路径 .\GUID.txt

    XML Processing with Perl, Python, and PHP (2002).pdf

    extracted compound addresses and telephone numbers, and tidied up the results to put into a new version of the database. Access to the database was through a Sun-based Unix system, and the PCs and ...

    C Programming

    - **Making Multiple Decisions**: Explanation of how the `switch` statement works and when it's appropriate to use it instead of nested `if` statements. #### Strings The document explains strings, ...

    The compound Poisson risk model with random gains and periodic dividend strategy

    具有随机收入和周期分红策略的复合泊松风险模型,王乾乾,刘朝林,本文对具有随机收入和周期分红策略的复合泊松风险模型进行了研究。通常,在分红决策时间序列中,保险公司通过分析盈余水平来决定红�

    32Compound Option V3.xls

    32Compound Option V3.xls

    project.html

    there is huge potential and demand in China market.Obviously, set up a pet hospital is a good choice to provide service to the people who owns pets and a friendly business to pets. So, this report is...

    compound-eureka:复合测试网的Eureka配置

    cd ~ /compound-eureka # back to this directory yarn link @compound-finance/eureka 这将大大简化在Alpha开发过程中提取更新的过程。 本地部署 要将化合物测试网应用于开发,请在本地启动ganache,然后运行: ...

    A compound-hunting approach to reveal the amidohydrolase-dependent

    一种天然产物挖掘方法在阐明吡咯酰胺类化合物生物合成机理中的应用,郝春霖,虞沂,天然产物生物合成中,发酵液中的一些重要中间体或者结构类似物往往因为含量低、结构不明确等因素而普遍被忽略,这将给目标化合物

    dc.zip_Compound motor_WORKING

    **直流复合电机(DC Compound Motor)的工作原理与类型** 直流复合电机是直流电机的一种,它结合了串励和并励两种励磁方式的特点,从而在性能上具备了更广泛的应用范围。这种电机的设计旨在优化扭矩特性,提升启动...

    compound-sort-helpers_2.9.2-1.0.0.zip

    标题中的"compound-sort-helpers_2.9.2-1.0.0.zip"提示我们这是一个软件库或框架的更新版本,可能包含了用于复合排序辅助功能的代码。这个版本号"2.9.2-1.0.0"表明这可能是软件的一个维护更新或者重大升级。通常,...

Global site tag (gtag.js) - Google Analytics