Ulf Dittmer wrote:Post the relevant code sections that are involved in transforming the date from the DB data into XML, if possible with one example each of a date that gets transformed correctly, and one that gets transformed incorrectly.
Here is the code section that gets the date:
MyType myType = someType.addNewEvent();
WSDate wsDate = null;
wsDate = myDataObject.getDate();
Here is the code that builds a portion of the XML file: (This code is from a different class.)
private MyDozerBean mapper = LoadDozer.getDozerMapper();
public void buildXML()
payload.setInfo((com.folder1.folder2.folder3.sampleClass) mapper.map(dataObject, com.folder1.folder2.folder3.sampleClass.class));
This is from the dozerBeanMapping file:
<mapping map-null="false" map-empty-string="false" type="one-way">
Here are what the dates look like in my XML file:
Ulf Dittmer wrote:Have you verified that the date gets correctly transferred to the WSDate object?
I take it "MyDateTime1" should start with "2013", like "MyDateTime2"?
Just to let you know, this error has occurred twice in the last month.
I ran the program in debug and it is getting correctly transferred to the WSDate object. I do not see the error anymore.
Someone suggested to me that the error occurred in the past because there could have been a memory management issue. Do you think that this is true? If so, how would I check to see if the Java program has a problem with memory management?