• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring mvc application Initialization of bean failed because of Failed to convert property value of

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting bean creation exception in Spring mvc application Initialization of bean failed because of Failed to convert property value of type 'com.sun.proxy.$Proxy991
Below is the hierarchy


contextConfigLocation in web.xml



Bean definition in xml


Getting below exceptions :



Any help ?
 
Master Rancher
Posts: 4663
49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's complaining about something in nhAuditRouterProcessor.
Can you show us the definition for that one?
 
Praveen Pujar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave, Please find below java snippet and xml definition



Bean declaration :

 
Dave Tolls
Master Rancher
Posts: 4663
49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So that's the thing it's trying to set:

by passing in an auditMessageSender, which is class MessageSenderImpl implements AuditMessageSender.

So, what does the class NhAuditHookMessageSenderImpl look like, as that doesn't seem to be immediately related to your MessageSenderImpl class?
 
Praveen Pujar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was my bad Dave. It was typo - Actually MessageSenderImpl is nothing but NhAuditHookMessageSenderImpl which implements AuditMessageSender.
in my project there is no class - MessageSenderImpl . intended class was NhAuditHookMessageSenderImpl.

 
Bartender
Posts: 1944
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
You may find this stackoverflow thread helpful: https://stackoverflow.com/questions/51389640/org-springframework-beans-conversionnotsupportedexceptionfailed-to-convert-valu

Do you have <mvc:annotation-driven/>  in your configuration xml file?
 
Dave Tolls
Master Rancher
Posts: 4663
49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So does it work now?
 
Praveen Pujar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately <mvc:annotation-driven /> tag did not help. Still getting same exceptions in logs
 
Praveen Pujar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, finally i am able to resolve the issue using below tag in my xml.
<tx:annotation-driven proxy-target-class="true"
transaction-manager="transactionManager" />
I refereed below post :
https://www.journaldev.com/2603/spring-transaction-management-jdbc-example

XMLNS and XSD details are :



Thank you both for your help..! Cheers..!
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic