[ 
https://issues.apache.org/jira/browse/AXIS2-4544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018249#comment-13018249
 ] 

Petr Kadlec commented on AXIS2-4544:
------------------------------------

For some reason this bug fix, although fixed in subversion, is not included in 
any binary distribution until now.
Anyone else noticed that? Are more bug fixes affected?

> java.util.Date type parameters break ws execution
> -------------------------------------------------
>
>                 Key: AXIS2-4544
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4544
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.5.1
>         Environment: Apache Tomcat/6.0.20
>            Reporter: Mike
>
> There is a problem in Date type parameter processing. Just deploy a pojo with 
> the following method:
> public Date testDate(Date date) {
>       return date;
> }
> and then invoke the ws with the following request:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:q0="http://test"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <soapenv:Body>
> <q0:testDate>
> <q0:date>2009-11-18</q0:date>
> </q0:testDate>
> </soapenv:Body>
> </soapenv:Envelope>
> and you get an error.
> In order to fix this problem, you have to change the line 313 in class 
> org.apache.axis2.databinding.typemapping.SimpleTypeMapper from
> return ConverterUtil.convertToDateTime(source).getTime();
> to
> return ConverterUtil.convertToDate(source);

--
This message is automatically generated by JIRA.
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]

Reply via email to