axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MH (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4075) AXIS2 1.4.1 does not support java.util.Date type
Date Fri, 19 Mar 2010 10:29:27 GMT

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

MH commented on AXIS2-4075:
---------------------------

I think this is the bug:

org.apache.axis2.databinding.typemapping.SimpleTypeMapper:

    public static Object makeCalendar(String source) {
        return ConverterUtil.convertToDateTime(source);
    }

    public static Object makeDate(String source) {
        return ConverterUtil.convertToDateTime(source).getTime();
    }

Method makeDate should use existing method: ConverterUtil.convertToDate instead of ConverterUtil.convertToDateTime.


> AXIS2 1.4.1 does not support java.util.Date type
> ------------------------------------------------
>
>                 Key: AXIS2-4075
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4075
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.4.1
>         Environment: windows xp sp2 + tomcat 5.5 + java 1.5 + axis2 1.4.1
>            Reporter: yong yang
>         Attachments: 1_5_1_DateService.wsdl, DateService.aar, DateService.java, DateService.wsdl,
exception.txt
>
>
> Hi, I found that the axis2 1.4.1 does not support java.util.Date type.
> 1)WSDL
>  AXIS2 1.4.1 should map java.util.Date to xs:date in the WSDL, rahter than xs:dateTime(see
the attached wsdl). 
> 2)deserialize and serialize ISO xml DATE string
> AXIS2 1.4.1 can not construct a java.util.Date object from a ISO xml date string, for
example, "2001-01-01". It threw an exception, "date string can not be less than 19 charactors".
(more detail can be found in the attached exception.txt). 

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


Mime
View raw message