This discussion is archived
4 Replies Latest reply: Oct 17, 2011 2:33 PM by 881648 RSS

Issue is de-serializing string containing Date value where time is > 14:00

881648 Newbie
Currently Being Moderated
All,

I am trying to de-serialize an xml file using JAXB Unmarshaller class containing the following node

<dateofsubmission>2011-10-03-14:01</dateofsubmission>

The property and getter and setter defined for the above field are

private Date Dateofsubmission = null;

public Date getDateofsubmission()
     {
     return Dateofsubmission;
     }
     public void setDateofsubmission(Date Dateofsubmission)
     {
     this.Dateofsubmission = Dateofsubmission;
     }

when JAXB unmarshalls, I am getting 'null' for the property when the time is greter than 14:00.
For example if the xml is <dateofsubmission>2011-10-03-14:00</dateofsubmission> and everything works fine.


I was wondering what it takes to make it working for all the times.


Thanks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points