• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dave, Please find below java snippet and xml definition



Bean declaration :

 
Dave Tolls
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2266
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Rancher
Posts: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So does it work now?
 
Praveen Pujar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic