Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problems with custom xsd:dateTime conversion

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I want to use custom written conversion utility to convert the date time genrated from the default implementation. So, I have written the following custom conversion class

Error

DefaultValidationEventHandler: [ERROR]: Cannot format given Object as a Date
Location: obj: com.aravind.customdatetime.impl.CustomDateTypeImpl@7ff8e19c
javax.xml.bind.ValidationException
- with linked exception:
[com.sun.xml.bind.serializer.AbortSerializationException: Cannot format given Object as a Date]




Here is the custom bindings file





However, when i try to Marsahll I am getting the following exception, I am not sure why though. I'd be very thankful if you can help me fix this issue

 
reply
    Bookmark Topic Watch Topic
  • New Topic