通过Hibernate搜索,我们在我的应用程序中创建了一个搜索引擎。这里的应用程序运行在两个不同的 JBoss 中,并使用两个不同的文件夹来存储索引数据。两个文件夹和两个 JBoss 在不同的系统中运行。但有些时候显示出类型错误。请给我任何解决方案。
16:45:58,184错误 [org.hibernate.search.exception.impl.LogErrorHandler](Hibernate 搜索:索引更新队列处理器的索引 in.issac.wisebank.systemadmin.customermanagement.entiry.WbSaCustomermaster-1) HSEARCH000058:发生异常 org.apache.lucene.store.LockObtainFailedException:Lock获取定时 out:NativeFSLock@/Folder_Path/write.lock主要失败:实体 in.issac.wisebank.systemadmin.customermanagement.entiry.WbSaCustomermaster Id 49621工作类型org.hibernate.search.backend.UpdateLuceneWork: org.apache.lucene.store.LockObtainFailedException:Lock获取定时 出: NativeFSLock@/home/ccblcbs/wisebankenterprise/globalsearch/index12/in.issac.wisebank.systemadmin.customermanagement.entiry.WbSaCustomermaster/write.lock 在org.apache.lucene.store.Lock.obtain(Lock.java:84) [lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40] at org.apache.lucene.index.IndexWriter。(IndexWriter.java:1098) [lucene-core-3.6.2.jar:3.6.2 1423725 - rmuir - 2012-12-18 19:45:40] at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.createNewIndexWriter(IndexWriterHolder.java:146) [hibernate-search-engine-4.4.4.Final.jar:4.4.4.Final] at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.getIndexWriter(IndexWriterHolder.java:113) [hibernate-search-engine-4.4.4.Final.jar:4.4.4.Final] at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.getIndexWriter(AbstractWorkspaceImpl.java:117) [hibernate-search-engine-4.4.4.Final.jar:4.4.4.Final] at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:101) [hibernate-search-engine-4.4.4.Final.jar:4.4.4.Final] at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67) [hibernate-search-engine-4.4.4.Final.jar:4.4.4.Final] at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_24] at java.util.concurrent.FutureTask中$ Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor中的$ Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24] at java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24] 16:45:58,187错误 [org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask] (Hibernate Search:索引更新队列处理器的索引 in.issac.wisebank.systemadmin.customermanagement.entiry.WbSaCustomermaster-1) HSEARCH000072:由于之前的原因无法打开IndexWriter 错误:跳过操作,同步索引ouf!
答案 0 :(得分:0)
这是由Windows引起的,你应该读一下LOCKING STRATEGY。
答案 1 :(得分:0)
这个版本的Hibernate Search非常古老;这个问题偶尔会发生,但已经解决了。你需要更新。