Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB unmarshalling date

520469Jul 7 2006 — edited Jul 14 2008
I have used JAXB to marshall a java class for a date information. The resulting XML data looks fine. It contains the date I want. However, once I'm trying to unmarshall the XML file using JAXB I cannot retrieve the date back.

For example, my object contain a startTime field that is java.util.Calendar.

if I'm doing..... object.getStartTime() I would get null in return?

Does anyone encounter this problem before? Or anyone know a solution to this? Any pointer would be highly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2008
Added on Jul 7 2006
13 comments
17,910 views