axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "takanori (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-1050) java.lang.NumberFormatException: badDate00
Date Sun, 20 Aug 2006 14:03:13 GMT
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


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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message