天天看點

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.luc[email protected]]

   [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[email protected]]

   [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 [[email protected]] for JDBC transaction

   [DEBUG] 2011-09-27 00:28:16 :Switching JDBC Connection [[email protected]] to manual commit

   [DEBUG] 2011-09-27 00:28:16 :Bound value [[email protected]] for key [org.springframework.jdbc.datasource.DriverManagerDa[email protected]] 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 [[email protected]]

   [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 [[email protected]] for key [org.springframework.jdbc.datasource.DriverManagerData[email protected]] from thread [Compass Gps Index [pool-4-thread-1]]

   [DEBUG] 2011-09-27 00:28:16 :Releasing JDBC Connection [[email protected]] 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)