[06-10-7 15:27:37:188 CST] 115d2eb8 RequestProces W org.apache.struts.action.RequestProcessor Unhandled Exception thrown: class org.springframework.beans.factory.BeanCreationException
[06-10-7 15:27:37:672 CST] 115d2eb8 WebGroup E SRVE0026E: [Servlet 错误]-[Error creating bean with name '/allQueryAction' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)]:org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/allQueryAction' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
Caused by: PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.legend.qryTemplate.service.impl.TemplateManagerImpl$$EnhancerByCGLIB$$5cca3fd4] to required type [com.legend.qryTemplate.service.TemplateManager] for property 'templateManager'; nested exception is java.lang.IllegalArgumentException: No matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: No matching editors or conversion strategy found
at org.springframework.beans.PropertyTypeConverter.convertIfNecessary(PropertyTypeConverter.java:209)
at org.springframework.beans.PropertyTypeConverter.convertIfNecessary(PropertyTypeConverter.java:108)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:723)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:575)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:68)
问题找了很久最终,仔细看输出的日志,最终找到了问题.在action-servlet.xml中的"/allQueryAction"所注入的BEAN没有实现相关的接口.
分享到:
相关推荐
错误五:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping' 错误原因:...
Error creating bean with name 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0' defined in ServletContext resource [/WEB-INF/springMVC-servlet.xml]: Initialization of bean failed;...
hsweb 企业后台管理基础框架业务功能现在:权限管理: 权限资源-角色-用户.配置管理: kv结构,自定义配置.可通过此功能配置数据字典.脚本管理: 动态脚本,支持javascript,groovy,java动态编译执行....
在Java开发领域,SSH(Struts、Spring、Hibernate)是一个非常经典的MVC(Model-View-Controller)架构的框架组合,常用于构建企业级的Web应用程序。随着技术的发展,JDK版本也在不断更新,从JDK 1.7升级到JDK 1.8时...
FusionMaps 是一款专业的数据可视化工具,主要用于创建交互式的地图图表。它将复杂的数据转换为易于理解的地理信息图形,广泛应用于商业智能、数据分析和报告等领域。`FusionMaps_Enterprise.rar` 可能是该软件的...
在本项目中,"spring-security-oauth-test.rar"是一个压缩包,它包含了使用SpringCloud、Spring Security和OAuth2.0实现的权限认证解决方案。这个项目旨在演示如何在微服务架构中构建安全的API访问控制,同时利用...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean failed; nested exception is org....
2013-08-12 14:33:37.672:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in URL [file:/E:/cloudwave-core/src/main/...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in ServletContext resource [/WEB-INF/spring/tbm_web_shiro.xml]: Cannot resolve reference to...
对于Hibernate,错误`org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource`可能是因为缺少JTA(Java Transaction API)的支持,例如找...
15:53:53,359 ERROR [common] 获取默认数据源 Error creating bean with name 'dataSource' defined in resource loaded through InputStream: Initialization of bean failed; nested exception is javax.naming....
Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method ...
Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/...
一、关于错误“Error creating bean with name '*' defined in file [*.xml]” 这个错误通常表示Spring在尝试实例化一个Bean时遇到了问题,可能的原因包括但不限于: 1. **配置文件错误**:检查XML配置文件中Bean...
问题 3: Error creating bean with name 'entityManagerFactory' defined in class path resource 这个问题比较普遍,解决方法是: 1. 清理 .m2 仓库的 Hibernate 库。 2. 重新 Reimport pom 文件。 3. 检查 ...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean ...
在开发Java Web应用程序时,我们经常使用MyBatis-Plus(MyBatis的扩展)和PageHelper这两个优秀的数据访问框架来简化数据库操作和实现分页功能。然而,当这两个库同时存在于同一个项目中时,可能会出现依赖冲突的...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
### 错误一:`Error creating bean with name 'helloServiceImpl' defined in classpath resource [spring-service.xml]: Error setting property values; nested exception is org.springframework.beans....