• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Those are the largest trousers in the world! Especially when next to this ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic