• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CastorMarshaller in Spring WS

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I am trying to use Castor in Spring WS.
I have configured my beans as shown below:


I am using Castor1.3.1 and Spring WS 1.5.8.
But when I start my server, I see an IllegalStateException which says:

Caused by: org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'org.springframework.oxm.castor.CastorMarshaller' to required type 'org.springframework.oxm.AbstractMarshaller' for property 'marshaller'; nested exception is java.lang.IllegalStateException

: Cannot convert value of type [org.springframework.oxm.castor.CastorMarshaller] to required type [org.springframework.oxm.AbstractMarshaller] for property 'marshaller': no matching editors or conversion strategy found

at org.springframework.beans.BeanWrapperImpl.convertI fNecessary(BeanWrapperImpl.java:462)

at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:499)

at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:493)

at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1363)

at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1322)

at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1076)

at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)

... 53 more

Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.springframework.oxm.castor.CastorMarshaller] to required type [org.springframework.oxm.AbstractMarshaller] for property 'marshaller': no matching editors or conversion strategy found

at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)

at org.springframework.beans.BeanWrapperImpl.convertI fNecessary(BeanWrapperImpl.java:447)

... 59 more


I have tried googling this issue but could not find any proper solution. Any solution/idea/comment would be very much welcome.

Thanks,
Samrat
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic