`
hgq0011
  • 浏览: 557462 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Error creating bean with name

阅读更多
[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&#59; 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没有实现相关的接口.
分享到:
评论

相关推荐

    关于springboot我出过的那些错误.docx

    错误五:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping' 错误原因:...

    org.springframework.web.servlet-3.0.1.RELEASE-A.jar

    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.zip

    hsweb 企业后台管理基础框架业务功能现在:权限管理: 权限资源-角色-用户.配置管理: kv结构,自定义配置.可通过此功能配置数据字典.脚本管理: 动态脚本,支持javascript,groovy,java动态编译执行....

    Jdk1.8搭建SSh框架所需Jar包

    在Java开发领域,SSH(Struts、Spring、Hibernate)是一个非常经典的MVC(Model-View-Controller)架构的框架组合,常用于构建企业级的Web应用程序。随着技术的发展,JDK版本也在不断更新,从JDK 1.7升级到JDK 1.8时...

    FusionMaps_Enterprise.rar

    FusionMaps 是一款专业的数据可视化工具,主要用于创建交互式的地图图表。它将复杂的数据转换为易于理解的地理信息图形,广泛应用于商业智能、数据分析和报告等领域。`FusionMaps_Enterprise.rar` 可能是该软件的...

    spring-security-oauth-test.rar

    在本项目中,"spring-security-oauth-test.rar"是一个压缩包,它包含了使用SpringCloud、Spring Security和OAuth2.0实现的权限认证解决方案。这个项目旨在演示如何在微服务架构中构建安全的API访问控制,同时利用...

    springAOP demo 带错误解决文档

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean failed; nested exception is org....

    asm5.0.jar

    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/...

    在学习中发现的一些ssh-error

    对于Hibernate,错误`org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in resource`可能是因为缺少JTA(Java Transaction API)的支持,例如找...

    Maven解决jar冲突调试步骤

    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...

    java工程错误信息解析和总结

    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....

    基于springboot+mybatis实现的外卖订餐系统源码+项目说明(毕设).zip

    Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method ...

    SSH整合项目中容易出现的错误

    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/...

    SSH错误集中分析.

    一、关于错误“Error creating bean with name '*' defined in file [*.xml]” 这个错误通常表示Spring在尝试实例化一个Bean时遇到了问题,可能的原因包括但不限于: 1. **配置文件错误**:检查XML配置文件中Bean...

    spring data jpa 连接mysql8.x的一些问题梳理总结.docx

    问题 3: Error creating bean with name 'entityManagerFactory' defined in class path resource 这个问题比较普遍,解决方法是: 1. 清理 .m2 仓库的 Hibernate 库。 2. 重新 Reimport pom 文件。 3. 检查 ...

    hibernate错误解决方案

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean ...

    maven下mybatis-plus和pagehelp冲突问题的解决方法

    在开发Java Web应用程序时,我们经常使用MyBatis-Plus(MyBatis的扩展)和PageHelper这两个优秀的数据访问框架来简化数据库操作和实现分页功能。然而,当这两个库同时存在于同一个项目中时,可能会出现依赖冲突的...

    解决SpringDataJPA报错:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null w

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...

    spring常见错误

    ### 错误一:`Error creating bean with name 'helloServiceImpl' defined in classpath resource [spring-service.xml]: Error setting property values; nested exception is org.springframework.beans....

Global site tag (gtag.js) - Google Analytics