[英]Error creating bean with name - Grails 2.3.8
Grails 2.3.8 error searchable plugin 6.9 - Error creating bean with name grails.plugin.searchable.SearchableController
Grails 2.3.8错误可搜索插件grails.plugin.searchable.SearchableController
创建名称为grails.plugin.searchable.SearchableController
bean时grails.plugin.searchable.SearchableController
Error 2016-07-26 09:53:18,826 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'grails.plugin.searchable.SearchableController': Initialization of bean failed; 错误2016-07-26 09:53:18,826 [localhost-startStop-1]错误context.GrailsContextLoader-初始化应用程序时出错:创建名称为'grails.plugin.searchable.SearchableController'的bean时出错:bean的初始化失败; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchableService': Initialization of bean failed; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:创建名称为“ searchableService”的bean时出错:初始化bean失败; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass': FactoryBean threw exception on object creation; 嵌套的异常是org.springframework.beans.factory.BeanCreationException:创建名称为'compass'的bean时出错:FactoryBean在对象创建时抛出了异常; nested exception is org.compass.core.mapping.MappingException: No converter defined for type [org.bson.types.ObjectId] 嵌套的异常是org.compass.core.mapping.MappingException:没有为类型[org.bson.types.ObjectId]定义的转换器
The error occurs at runtime and I can't fixed it 该错误在运行时发生,我无法修复
My guess is that you have a searchable property of type org.bson.types.ObjectId
. 我的猜测是您具有org.bson.types.ObjectId
类型的可搜索属性。 This is not a type that the searchable plugin natively knows how to index, so you have to define a converter for it. 这不是可搜索插件本身知道如何编制索引的类型,因此您必须为其定义转换器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.