使用spring+hibernate集成compass的一个错误!

请参考http://www.springside.org.cn/docs/reference/Compass1.htm上面的文章做的时候,遇到如下的问题:
java 代码
  1. java.lang.NoSuchMethodError: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;Lorg/apache/lucene/document/Field$Store;Lorg/apache/lucene/document/Field$Index;)V  
于是从google上进行查询,在网页上:http://jira.atlassian.com/browse/BAM-506看到如下的提示:
java 代码
 
  1. Jari,  
  2.   
  3. We've rewritten quite a bit of code around the building area for 0.8. We're going to be releasing 0.8 sometime today or tomorrow morning.  
  4.   
  5. It'd be great if you could give that a try and let us know if the problem is still there. If it is, please attach your atlassian-bamboo.log file and we'll try to track down the problem further.  
  6.   
  7. Cheers,  
  8.   
  9. Mark C  
还有:
java 代码
 
  1. Jari,  
  2.   
  3. Thanks for the extra info. We might try to detect the version of Lucene to make sure things are working correctly.  
  4.   
  5.     otherwise it will block the build queue indefinitely  
  6.   
  7. Do the queues still block indefinitely? The expected behaviour for 0.8 should be that the build is marked as failed (since it threw an unexpected exception) but the queues should not be blocked (as in you should be able to run new builds).  
  8.   
  9. As you alluded to, failure during the indexing phase should probably not be treated as a build failure (but should still log). It does, however, mean that certain stats and graphs may be corrupted.  
  10.   
  11. Cheers,  
  12.   
  13. Mark C  
  14. [ Show » ]  
  15. Mark Chaimungkalanont [Atlassian] - 12/Dec/06 05:18 PM Jari, Thanks for the extra info. We might try to detect the version of Lucene to make sure things are working correctly.  
  16.   
  17.     otherwise it will block the build queue indefinitely  
  18.   
  19. Do the queues still block indefinitely? The expected behaviour for 0.8 should be that the build is marked as failed (since it threw an unexpected exception) but the queues should not be blocked (as in you should be able to run new builds). As you alluded to, failure during the indexing phase should probably not be treated as a build failure (but should still log). It does, however, mean that certain stats and graphs may be corrupted. Cheers, Mark C  
才知道自己发布的应用当上的版本有冲突,其实就是lucene-core包的问题。
我使用的开发环境是spring 1.2和hiberante3.1,可能hiberante当中自己带lucene-core-1.4.3吧,所以导致这个错误,折腾了我一天,做技术就是这样,把自己搞的精疲力尽时才发现这是一个多么小的错误。
希望大家共勉.

你可能感兴趣的:(java,apache,spring,Hibernate,Lucene)