• Post Reply Bookmark Topic Watch Topic
  • New Topic

XmlValueOutofRangeException: Invalid date value: wrong type: 11152010  RSS feed

 
Marla Arnett
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!