I’m using Axis2 1.5.2 to pass Dates between client/server. But when using java.util.Date Axis2 throws this error:
date string can not be less than 19 characters.
Anyone knows a workaround or how to fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like a bug in Axis2. My guess is that the expectation of
DateTimeis what is causing that error versus it is nowDate. It appears that some have been able to switch to aCalendartype which cured their issue.When inter-operating between a .NET client and an Axis2 WS, type differencing surfaced so we would opt for primitive types, in this instance we used a long to hold the milliseconds, then converted it to a .NET DateTime representation. You could always switch to using a long/milliseconds and bypass the type all together.