[ http://issues.apache.org/jira/browse/AXIS2-1050?page=all ]
Deepal Jayasinghe reassigned AXIS2-1050: ---------------------------------------- Assignee: Deepal Jayasinghe > java.lang.NumberFormatException: badDate00 > ------------------------------------------ > > Key: AXIS2-1050 > URL: http://issues.apache.org/jira/browse/AXIS2-1050 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: databinding > Affects Versions: 1.0 > Reporter: takanori > Assigned To: Deepal Jayasinghe > > When I'm sending java.util.Calendar by RPCClient, I'm getting exception: > ------------------------------------------------------------------------ > java.lang.NumberFormatException: badDate00 > at > org.apache.axis2.databinding.typemapping.SimpleTypeMapper.makeCalendar(SimpleTypeMapper.java:227) > at > org.apache.axis2.databinding.typemapping.SimpleTypeMapper.getSimpleTypeObject(SimpleTypeMapper.java:97) > at > org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:216) > client code > ------------------------------------------------------------------------ > RPCServiceClient client = new RPCServiceClient(); > Calendar cal = Calendar.getInstance(); > OMElement response = client.invokeBlocking(new QName("sendCalendar"), new > Object[]{cal}); > server code > ------------------------------------------------------------------------ > public boolean sendCalendar(Calendar cal) { > return true; > } > I think that there is a problem in > org.apache.axis2.databinding.utils.BeanUtil. > Calendar object is deserialized: > java.util.GregorianCalendar[time=1155740947187,areFieldsSet=true, ???] > When Calendar(SimpleType) is deserialized, <object>.toString() is called. > I think that it must be SimpleTypeMapper.isSimpleType(<object>). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]