• 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

XmlValueOutofRangeException: Invalid date value: wrong type: 11152010

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am new to java and I working on an application that has the following logic:
public class MapperImpl implements Mapper {

public ProposalDocument map(CaseData caseData) {
TypeQuoteData quoteData = caseData.getQuoteInfo();
proposalDocument.getProposal().setEffectiveDate(quoteData.getQuoteEffDate().toString());

it appears that the quoteData.getQuoteEffectiveDate() is a calendar type but the setEffectiveDate method needs to pass a string. Everytime I run my app I get this XmlValueOutOfRangeException: Invalid date value: wrong type: 11152010

how do I fix this? I have been searching over the Internet for hours but nothing really makes sense.

Thanks for your help.
Marla
 
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if setEffectiveDate requires a string and getQuoteEffDate is returning a date then you need to convert the date to a string that setEffectiveDate can use. It appears that the toString method is giving you 11152010 for November 15, 2010.
 
reply
    Bookmark Topic Watch Topic
  • New Topic