Bean property 'transactionManagerBeanName' is not writable or has an invalid set

2023-11-05

[2017-02-07 11:38:48,458]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DefaultListableBeanFactory:523]-[DEBUG] -- Eagerly caching bean 'org.springframework.transaction.interceptor.TransactionInterceptor#0' to allow for resolving potential circular references
[2017-02-07 11:38:48,460]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DefaultListableBeanFactory:248]-[DEBUG] -- Returning cached instance of singleton bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0'
[2017-02-07 11:38:48,464]-[localhost-startStop-1]-[org.springframework.web.context.support.XmlWebApplicationContext:487]-[WARN] -- Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1506)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1067)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:926)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1502)
	... 22 more
[2017-02-07 11:38:48,465]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DefaultListableBeanFactory:512]-[DEBUG] -- Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2d80f9a4: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,authorizeServiceBizImpl,bankCardCheckServiceImpl,idCardCheckServiceImpl,peopleCreditServiceImpl,accountchangeMonthServiceImpl,addressCheckServiceImpl,addressesCheckServiceImpl,applyLoanCheckServiceImpl,badInfoCheckServiceImpl,beOverdueCheckServiceImpl,cheatCheckServiceImpl,creditBaseServiceImpl,creditScoreCheckServiceImpl,dishonestyCheckServiceImpl,eduLevelServiceImpl,enterpriseCreditCheckServiceImpl,executionServiceImpl,faceVerificationServiceImpl,negativeCheckServiceImpl,netLoanCheckServiceImpl,netLongCheckServiceImpl,occupationCheckServiceImpl,payConsumptionServiceImpl,selfieIdentityServiceImpl,specialListServiceImpl,taxCivComCheckServiceImpl,vehicleCreditServiceImpl,telPeriodServiceImpl,telStatusServiceImpl,telecomCreditCheckServiceImpl,telephoneCheckServiceImpl,permissionService,userServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,txAdvice,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor,bizOrderCredit91Mapper,bizOrderCreditBaiRongMapper,bizOrderCreditID5Mapper,bizOrderCreditMSXFMapper,bizOrderCreditSensetimeMapper,sysInterfaceDetailMapper,sysInterfaceItemMapper,trx91ZhengXinMapper,trxBaiRongMapper,trxChaboshiMapper,trxCheJianDingMapper,trxID5Mapper,trxMSXFMapper,trxSensetimeMapper,customerMapper,mortgageCorpMapper,mortgageCorpRoleMapper,mortgagecorpRolePermissionMapper,bizOrderMapper,orderCustomerMapper,permissionMapper,roleMapper,rolePermissionMapper,userMapper,userRoleMapper,vehicleMapper]; root of factory hierarchy
[2017-02-07 11:38:48,466]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DefaultListableBeanFactory:568]-[DEBUG] -- Retrieved dependent beans for bean '(inner bean)#20665d8c': [txAdvice]
[2017-02-07 11:38:48,470]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DisposableBeanAdapter:323]-[DEBUG] -- Invoking destroy method 'close' on bean with name 'dataSource'
[2017-02-07 11:38:48,478]-[localhost-startStop-1]-[com.alibaba.druid.pool.DruidDataSource:1385]-[INFO] -- {dataSource-1} closed
[2017-02-07 11:38:48,479]-[localhost-startStop-1]-[org.springframework.beans.factory.support.DefaultListableBeanFactory:568]-[DEBUG] -- Retrieved dependent beans for bean '(inner bean)#35a21c3': [org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0]
[2017-02-07 11:38:48,479]-[localhost-startStop-1]-[org.springframework.web.context.ContextLoader:331]-[ERROR] -- Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1506)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1067)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:926)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1502)
	... 22 more
二月 07, 2017 11:38:48 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionInterceptor#0': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1506)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'transactionManagerBeanName' of bean class [org.springframework.transaction.interceptor.TransactionInterceptor]: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1067)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:926)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1502)
	... 22 more

二月 07, 2017 11:38:48 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
二月 07, 2017 11:38:48 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/rdss-web] startup failed due to previous errors
二月 07, 2017 11:38:48 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
二月 07, 2017 11:38:48 上午 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j

 缺少spring-orm相关jar导致,在Pom.xml中添加即可。

 

<dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>${spring-version}</version>
</dependency>

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Bean property 'transactionManagerBeanName' is not writable or has an invalid set 的相关文章

随机推荐

  • MySql嵌套查询+关联查询+多表查询+对应案例+mybatis动态sql 超详细

    最近学习MyBatis框架 用到多表查询比较多 以前学的不是很好 今特意回来补上 呜呜呜 有对MySql数据库的初步使用不是很了解的朋友们 可以切换到这里噢 https blog csdn net haobo article details
  • [CMake教程] if 和 else

    目录 一 基本语法 二 基本用法 三 其他用法 3 1 逻辑运算 3 2 存在性检查 3 3 文件操作 3 4 数值比较 3 5 字符串比较 3 6 版本比较 3 7 路径比较 CMake 3 24引入 一 基本语法 if
  • 华为od机考真题-最少面试官数

    while 1 try n int input nums for in range n nums append list map int input
  • MQTT 协议入门:基础知识和快速教程

    本文是 MQTT 协议的入门指南 提供了实用的代码示例 物联网和 MQTT 的初学者可以通过本文掌握 MQTT 的基本概念 快速开启 MQTT 服务和应用的开发 什么是 MQTT MQTT Message Queuing Telemetry
  • Dell服务器通过IDRAC9收集TSR日志排查故障

    登陆IDRAC9 WEB管理界面 在菜单栏 lt 维护 gt 下选择 在联网的情况下推荐完成SupportAssist的注册 根据提示安装ISM并进行信息登记 如暂不注册 则点击取消继续 进入SupportAssist界面 点击 lt 开始
  • vue3+antv x6自定义节点样式

    前篇 vue3 ts使用antv x6 自定义节点 先大致定下节点样式 需要展示标题 输入 输出连接桩 参考样子大概是 https x6 antv antgroup com examples showcase practices class
  • 使用Pdb调试Python

    简单介绍 Python自带 Pdb库 使用 Pdb调试 Python程序还是很方便的 但是远程调试 多线程 Pdb是搞不定的 本文参考的相关文章如下 指针和字符串和字符串常量 用gdb来获取非法内存中的内容 Linux gdb调试器用法全面
  • 二维带权邮局位置(选址)问题(分别求横坐标、纵坐标的带权中位数)C++实现

    带权邮局位置问题 已知n个点p1 p2 pn及与它们相联系的权重w1 w2 wn 我们希望能找到一点p 不一定是输入点中的一个 使和式 最小 此处d a b 表示点a和点b之间的距离 找出二维带权邮局位置问题的最佳解答 其中所有的点都是 x
  • V4L2下摄像头的详细参数调整

    Linux下V4L2相关头文件所在路径为 内核源码目录 include linux videodev2 h V4L2相关API文档可查看链接https linuxtv org downloads v4l dvb apis uapi v4l
  • R语言实战之如何绘制线性回归图表(附详细代码解释,小白也可看懂~)

    R语言实战之如何绘制线性回归图表 线性回归是统计学中最简单的模型之一 此章节主要讲述如何利用R语言来绘制线性图表 尽可能用最简单的语句写出所需的图表 适合帮助没有R语言编程基础的同学写出好看的论文 下面展示一个依剂量对比药物A和药物B的响应
  • Oracle中Hint深入理解(转)

    Hint概述 基于代价的优化器是很聪明的 在绝大多数情况下它会选择正确的优化器 减轻了DBA的负担 但有时它也聪明反被聪明误 选择了很差的执行计划 使某个语句的执行变得奇慢无比 此时就需要DBA进行人为的干预 告诉优化器使用我们指定的存取路
  • vue打包到生产环境

    1 进入到项目根目录执行 npm run build 此时会自动打包在dist目录下 2 安装服务 npm install g serve 3 启动 serve dist 以上是生产环境打包的过程 npm run dev 是开发环境 npm
  • JavaWebの知识讲解(JDBC+JSP+Servlet)

    JavaWeb 一 web开发的背景知识 web 顾名思义是网页的意思 如 www baidu com web分为静态web和动态web 1 静态web 纯前端网站即使静态web 只使用html css等前端语言进行编写 静态web提供给所
  • git:在gitignore中设置不忽略的文件(夹)

    说明 用的不算多 但是想用的时候总会忘记 这里插个眼 参考 https blog csdn net CalShell article details 52670175 总结 活用
  • 微信小程序如何调用API实现数据请求-wx.request()

    前言 微信小程序不存在ajax 那么它是如何实现数据请求功能的呢 微在信中提供了API的调用wx request OBJECT 这个是很不错的 下面就讲一下如何请求数据 简单到不行 wx request 看文档时 提供了示例模板如下 wx
  • tcpdump使用详解

    1 tcpdump的语法格式 tcpdump option proto dirction type option 可选参数 proto 协议过滤器 可识别的关键词有 http tcp udp icmp ip ip6 arp rarp typ
  • 算法和数据结构项目练习6-基于Karp‐Rabin 算法的字符串搜索

    Karp Rabin String Search 项目介绍 代码实现 项目介绍 本项目实现了Karp Rabin字符串搜索算法 程序读取的txt文件包含两个字符序列 分别在不同的测试行上 第一行是目标序列T 第二行是搜索序列S 读取这两个字
  • JetBrains IDE Support Chrome插件之各种问题解决

    webstorm前端调试工具 JetBrains IDE Support Chrome插件之各种问题解决 现在网上的那些教程都是很老旧的 我看了大量的资料都没有一个能实现 故我将自己摸索了很久之后找出来的解决办法分享给大家 给大家指明方向
  • Qt5.5.1配置MSVC2010编绎器和windbg调试器

    Qt5 5 1配置MSVC2010编绎器和windbg调试器 windbg下载 windbgDebuggingToolsforWindows C 文档类资源 CSDN下载 1 安装vc 2010 express 2 设置编绎器 32位 64
  • Bean property 'transactionManagerBeanName' is not writable or has an invalid set

    2017 02 07 11 38 48 458 localhost startStop 1 org springframework beans factory support DefaultListableBeanFactory 523 D