`

compass 集成spring ibitas 建索引时报错 谁能帮我看下

 
阅读更多

[DEBUG] 2011-09-27 00:28:15 :Refreshing cache for sub index [publishquesbean]
   begin compass index ...
[DEBUG] 2011-09-27 00:28:15 :Using connection [c:/wancg/compassindex][gpsindex]
   [DEBUG] 2011-09-27 00:28:15 :Using alias property [alias]
   [DEBUG] 2011-09-27 00:28:15 :Using extended alias property [extendedAlias]
   [DEBUG] 2011-09-27 00:28:15 :Using default all property [zzz-all]
   [DEBUG] 2011-09-27 00:28:15 :Using all property term vector [no]
   [DEBUG] 2011-09-27 00:28:15 :All property boost support is [true]
   [DEBUG] 2011-09-27 00:28:15 :Using default search property [zzz-all]
   [DEBUG] 2011-09-27 00:28:15 :Using transaction lock timeout [10000ms]
   [DEBUG] 2011-09-27 00:28:15 :Using lock poll interval [100ms]
   [DEBUG] 2011-09-27 00:28:15 :Using cache invalidation interval [5000ms]
   [DEBUG] 2011-09-27 00:28:15 :Wait for cahce invalidation on index operatrion is set to [false]
   [DEBUG] 2011-09-27 00:28:15 :Setting *static* Lucene BooleanQuery maxClauseCount to [1024]
   [INFO ] 2011-09-27 00:28:15 :Building analyzer [default]
   [DEBUG] 2011-09-27 00:28:15 :Analyzer [default] uses Lucene analyzer [org.wltea.analyzer.lucene.IKAnalyzer]
   [DEBUG] 2011-09-27 00:28:15 :Using compound format [true]
   [DEBUG] 2011-09-27 00:28:15 :Support concurrent operations [true] and concurrent commits [true]
   [DEBUG] 2011-09-27 00:28:15 :Tracking open index writers
   [INFO ] 2011-09-27 00:28:15 :Building highlighter [default]
   [DEBUG] 2011-09-27 00:28:15 :Highlighter [default] uses formatter [simple]
   [DEBUG] 2011-09-27 00:28:15 :Highlighter [default] uses pre [<font color="red"> <b>] and post [</b> </font>]
   [DEBUG] 2011-09-27 00:28:15 :Highlighter [default] uses encoder [default]
   [DEBUG] 2011-09-27 00:28:15 :Using optimizer [org.compass.core.lucene.engine.optimizer.DefaultLuceneSearchEngineOptimizer@1badade]
   [DEBUG] 2011-09-27 00:28:15 :No default query parser found (under groupd [default]), registering a default one
   [DEBUG] 2011-09-27 00:28:15 :Query Parser configured with allowLeadingWildcard [true] and allowConstantScorePrefixQuery [true]
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor will wait for [10000ms] if backlog is full
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor blocking batch size is [5] with timeout of [100ms]
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor non blocking batch size is [5]
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor process before close is set to [true]
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor will use [5] concrrent threads to process transactions
   [DEBUG] 2011-09-27 00:28:15 :Async Transaction Processor uses [UID] based hashing for concurrent processing
   [DEBUG] 2011-09-27 00:28:15 :Starting Async polling transaction processor
   [DEBUG] 2011-09-27 00:28:15 :Using transaction factory [org.compass.spring.transaction.SpringSyncTransactionFactory@77602d]
   [DEBUG] 2011-09-27 00:28:15 :Using first level cache [org.compass.core.cache.first.NullFirstLevelCache]
   [DEBUG] 2011-09-27 00:28:15 :Registering shutdown hook [21718026]
   [DEBUG] 2011-09-27 00:28:15 :Trying to obtain write locks
   [DEBUG] 2011-09-27 00:28:15 :Obtained write locks
   [DEBUG] 2011-09-27 00:28:15 :Calling callback first step
   [DEBUG] 2011-09-27 00:28:15 :Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
   [DEBUG] 2011-09-27 00:28:15 :Creating new JDBC DriverManager Connection to [jdbc:mysql://localhost/hmily?characterEncoding=utf-8]
   [DEBUG] 2011-09-27 00:28:16 :Acquired Connection [com.mysql.jdbc.JDBC4Connection@14fd7fb] for JDBC transaction
   [DEBUG] 2011-09-27 00:28:16 :Switching JDBC Connection [com.mysql.jdbc.JDBC4Connection@14fd7fb] to manual commit
   [DEBUG] 2011-09-27 00:28:16 :Bound value [org.springframework.jdbc.datasource.ConnectionHolder@1923700] for key [org.springframework.jdbc.datasource.DriverManagerDataSource@a3db4b] to thread [Compass Gps Index [pool-4-thread-1]]
   [DEBUG] 2011-09-27 00:28:16 :Initializing transaction synchronization
   [DEBUG] 2011-09-27 00:28:16 :Beginning new Spring transaction, and a new compass transaction on thread [Compass Gps Index [pool-4-thread-1]]
   [WARN ] 2011-09-27 00:28:16 :{ibitas}: Failed to close sqlMap session, ignoring
   java.lang.NullPointerException
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.endTransaction(SqlMapExecutorDelegate.java:734)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.endTransaction(SqlMapSessionImpl.java:176)
    at org.compass.gps.device.ibatis.SqlMapClientGpsDevice$SqlMapIndexer.performIndex(SqlMapClientGpsDevice.java:212)
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104)
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29)
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133)
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147)
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
[DEBUG] 2011-09-27 00:28:16 :Rolling back Spring transaction controlled by compass on thread [Compass Gps Index [pool-4-thread-1]]
   [DEBUG] 2011-09-27 00:28:16 :Triggering beforeCompletion synchronization
   [DEBUG] 2011-09-27 00:28:16 :Initiating transaction rollback
   [DEBUG] 2011-09-27 00:28:16 :Rolling back JDBC transaction on Connection [com.mysql.jdbc.JDBC4Connection@14fd7fb]
   [DEBUG] 2011-09-27 00:28:16 :Triggering afterCompletion synchronization
   [DEBUG] 2011-09-27 00:28:16 :Rolling back compass transaction using Spring synchronization afterCompletion on thread [Compass Gps Index [pool-4-thread-1]]
   [DEBUG] 2011-09-27 00:28:16 :Clearing transaction synchronization
   [DEBUG] 2011-09-27 00:28:16 :Removed value [org.springframework.jdbc.datasource.ConnectionHolder@1923700] for key [org.springframework.jdbc.datasource.DriverManagerDataSource@a3db4b] from thread [Compass Gps Index [pool-4-thread-1]]
   [DEBUG] 2011-09-27 00:28:16 :Releasing JDBC Connection [com.mysql.jdbc.JDBC4Connection@14fd7fb] after transaction
   [DEBUG] 2011-09-27 00:28:16 :Returning JDBC Connection to DataSource
   Exception in thread "Compass Indexer" org.compass.gps.CompassGpsException: Failed to index, execution exception; nested exception is java.util.concurrent.ExecutionException: java.lang.NullPointerException
java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
    at java.util.concurrent.FutureTask.get(FutureTask.java:83)
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor.performIndex(ConcurrentParallelIndexExecutor.java:122)
    at org.compass.gps.device.support.parallel.AbstractParallelGpsDevice.index(AbstractParallelGpsDevice.java:119)
    at org.compass.gps.impl.DefaultReplaceIndexCallback.buildIndexIfNeeded(DefaultReplaceIndexCallback.java:42)
    at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager$ReplaceIndexOperationCallback.firstStep(DefaultLuceneSearchEngineIndexManager.java:281)
    at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.doOperate(DefaultLuceneSearchEngineIndexManager.java:218)
    at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.doReplaceIndex(DefaultLuceneSearchEngineIndexManager.java:266)
    at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.replaceIndex(DefaultLuceneSearchEngineIndexManager.java:261)
    at org.compass.gps.impl.SingleCompassGps.doIndex(SingleCompassGps.java:118)
    at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java:154)
    at org.compass.gps.impl.AbstractCompassGps.index(AbstractCompassGps.java:128)
    at com.hmily.server.compass.index.IndexBuilder$1.run(IndexBuilder.java:36)
Caused by: java.lang.NullPointerException
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.startTransaction(SqlMapExecutorDelegate.java:684)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.startTransaction(SqlMapSessionImpl.java:164)
    at org.compass.gps.device.ibatis.SqlMapClientGpsDevice$SqlMapIndexer.performIndex(SqlMapClientGpsDevice.java:199)
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104)
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29)
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133)
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147)
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

0
1
分享到:
评论

相关推荐

    基于Compass2.2与Spring 结合建立索引的实例

    ### 基于Compass2.2与Spring结合建立索引的实例 #### 一、Compass简介 Compass是一个开源的.NET和Java框架,它为应用程序提供了完整的文本搜索功能。该框架支持多种搜索引擎(如Elasticsearch, Solr等),使得开发...

    整合compass2.0 spring hibernate示例源程序

    标题 "整合compass2.0 spring hibernate示例源程序" 提供了我们即将探讨的核心内容,即一个结合了Compass 2.0、Spring和Hibernate的集成示例。这个项目旨在展示如何在Java应用程序中有效地利用这三个强大的开源框架...

    COMPASS+spring构建自己的搜索引擎.pdf

    标题提及的"COMPASS+spring构建自己的搜索引擎"是关于如何使用Compass搜索引擎框架与Spring框架集成,构建一个自定义的全文搜索引擎。Compass是一个开源的搜索引擎库,它提供了与ORM框架(如Hibernate)的集成,使得...

    compass索引插件demo

    4. **事务管理**:由于Compass可以与Spring集成,所以它可以利用Spring的事务管理,确保索引更新与数据操作在同一事务中完成,保证数据一致性。 **集成步骤** 1. **引入依赖**:在项目中添加Compass和SSH框架的...

    Spring ,JPA,Compass使用注解开发的博客站内搜索

    标题 "Spring ,JPA,Compass使用注解开发的博客站内搜索" 涉及的是在Java开发环境中,利用Spring框架、Java Persistence API (JPA) 和 Compass搜索引擎来实现一个博客系统的站内搜索功能。这是一项关键的技术,因为...

    compass_hibernate_spring.zip

    在本示例中,"compass_hibernate_spring.zip"包含了一个具体的整合实例,让我们一起看看它是如何工作的。 首先,我们需要在项目中引入Compass、Hibernate和Spring的相关依赖。这通常通过Maven或Gradle等构建工具来...

    Lucene+compass+spring+jdbc+庖丁的一个例子

    标题中的“Lucene+compass+spring+jdbc+庖丁的一个例子”揭示了这是一个关于整合多个技术来构建一个搜索系统的示例。在这个系统中,我们有以下几个关键组件: 1. **Lucene**: Apache Lucene 是一个高性能、全文本...

    STRUTS SPRING COMPASS 实例

    这个实例"STRUTS SPRING COMPASS"将这四个组件集成在一起,构建了一个完整的Java企业级应用解决方案。 首先,让我们详细了解一下这些框架的核心概念: 1. **STRUTS**:Struts是一个基于MVC设计模式的Java Web框架...

    compass_hibernate_spring2.zip

    标签“compass_hibernate_spring2.zip”进一步强调了这是针对 Compass 和 Hibernate 在 Spring 环境下的第二次迭代或者升级版,可能解决了之前版本的一些问题,或者增加了新的特性。 压缩包内的文件“compass_...

    compass_hibernate_spring3.zip

    标题“compass_hibernate_spring3.zip”提示我们这个压缩包可能包含了关于 Compass、Hibernate 和 Spring 3 框架的整合教程或者示例代码。Compass 是一个全文搜索引擎库,它为 Java 应用提供了类似 Google 的搜索...

    JAVA 全文搜索 struts2+spring+hibernte+compass整合记录

    在本项目中,"JAVA 全文搜索 struts2+spring+hibernate+compass整合记录" 是一个关于如何在Java环境下集成四个关键组件来实现全文搜索引擎的实践教程。Struts2是一个流行的MVC框架,Spring是核心的依赖注入框架,...

    compass-2.2.0+hibernate-3.2+struts-2.1.8.1+spring-framework-2.5.4

    标题 "compass-2.2.0+hibernate-3.2+struts-2.1.8.1+spring-framework-2.5.4" 指的是一个集成开发环境,它结合了四个关键的技术组件:Compass、Hibernate、Struts 2 和 Spring Framework,这些都是Java Web开发中的...

    struts2+spring2.5+hibernate3.26+compass2.1搜索引擎简单实现(无jar包)

    Struts2、Spring、Hibernate和Compass是Java Web开发中常用的四大框架,它们各自负责不同的职责,协同工作可以构建高效、灵活的企业级应用。这里我们主要讨论如何将这些技术结合在一起,实现一个简单的搜索引擎功能...

    struts2 hibernate spring compass全文检索

    Struts2、Hibernate、Spring 和 Compass 是Java Web开发中四个重要的框架和技术,它们共同构建了一个强大的企业级应用架构。在本项目中,开发者利用SSH2(即Struts2、Hibernate和Spring的组合)作为基础框架,并引入...

    Compass原理深入学习笔记

    3. Compass Spring:整合Spring框架,便于在Spring应用中使用Compass。 Compass中的重要概念: - Compass相当于Hibernate的SessionFactory,负责创建和管理索引。 - CompassSession类似Hibernate的Session,管理...

    ssh+compass实现站内搜索分页.rar

    通过以上步骤,你可以在SSH框架下成功集成Compass实现站内搜索分页。这一过程涉及到Java Web开发的多个层面,包括MVC架构、数据库操作、全文检索以及用户体验设计。熟练掌握这些技能将有助于构建高效且功能丰富的Web...

    Compass与Struts2SpringHibernate的整合示例

    2. 配置Compass:在Spring配置文件中定义Compass的bean,包括设置数据源、索引路径、搜索引擎类型等。 3. 配置Hibernate:在Hibernate的配置中,开启二级缓存并指定使用Compass作为缓存提供者。 4. 映射实体类:在...

    compass完整可用项目

    【compass完整可用项目】是一个基于特定技术栈的软件开发项目,该项目的核心是Compass库,一个与Lucene紧密集成的全文搜索引擎工具。Compass提供了一种简单的方式来在Java应用程序中集成全文搜索功能,使得开发者...

Global site tag (gtag.js) - Google Analytics