Cannot receive DateTime field contain in milosecond part more than three digits
-------------------------------------------------------------------------------
Key: AXIS2-2717
URL: https://issues.apache.org/jira/browse/AXIS2-2717
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Affects Versions: 1.2, nightly
Environment: All
Reporter: Wlodzimierz Dutkiewicz
When client, generated as adb, receive DateTime contain in milisecond part more
than three digits (for example: 2007-05-25T12:52:21.000000000+02:00) Axis2
return Exception: Unparseable date: "2007-05-25T12:52:21.000000000GMT+02:00".
This happends, because in source code
adb/src/org/apache/axis2/databinding/utils/ConverterUtils.java class
SimpleDateFormat in any places is created using three digits in format string
(f.e. "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").
I suggest lenghten miliseconds format string to nine digits (f.e.
"yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS'Z'").
This change was tested by me and I didn't notice any problems.
Best regards
WD
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]