You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Marco Benuzzi (JIRA)" <ji...@apache.org> on 2010/04/26 12:04:33 UTC

[jira] Created: (AXIS2-4695) error on array of xsd:date

error on array of xsd:date
--------------------------

                 Key: AXIS2-4695
                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
             Project: Axis2
          Issue Type: Bug
          Components: adb
            Reporter: Marco Benuzzi


If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.

Solution:

add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148

        } else if (Date.class.equals(baseArrayClass)) {
            Date[] array = new Date[listSize];
            for (int i = 0; i < listSize; i++) {
                Object o = objectList.get(i);
                if (o != null) {
                    if (o instanceof String){
                        array[i] = ConverterUtil.convertToDate(o.toString());
                    } else if (o instanceof Date) {
                        array[i] = (Date) o;
                    }
                }
            }
            returnArray = array;


-- 
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


[jira] Resolved: (AXIS2-4695) error on array of xsd:date

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4695.
-------------------------------------------------

    Resolution: Fixed

applied the solution with revision 940182.

> error on array of xsd:date
> --------------------------
>
>                 Key: AXIS2-4695
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: Marco Benuzzi
>
> If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.
> Solution:
> add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148
>         } else if (Date.class.equals(baseArrayClass)) {
>             Date[] array = new Date[listSize];
>             for (int i = 0; i < listSize; i++) {
>                 Object o = objectList.get(i);
>                 if (o != null) {
>                     if (o instanceof String){
>                         array[i] = ConverterUtil.convertToDate(o.toString());
>                     } else if (o instanceof Date) {
>                         array[i] = (Date) o;
>                     }
>                 }
>             }
>             returnArray = array;

-- 
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


[jira] Resolved: (AXIS2-4695) error on array of xsd:date

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4695.
-------------------------------------------------

    Resolution: Fixed

applied the solution with revision 940182.

> error on array of xsd:date
> --------------------------
>
>                 Key: AXIS2-4695
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: Marco Benuzzi
>
> If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.
> Solution:
> add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148
>         } else if (Date.class.equals(baseArrayClass)) {
>             Date[] array = new Date[listSize];
>             for (int i = 0; i < listSize; i++) {
>                 Object o = objectList.get(i);
>                 if (o != null) {
>                     if (o instanceof String){
>                         array[i] = ConverterUtil.convertToDate(o.toString());
>                     } else if (o instanceof Date) {
>                         array[i] = (Date) o;
>                     }
>                 }
>             }
>             returnArray = array;

-- 
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


[jira] Resolved: (AXIS2-4695) error on array of xsd:date

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4695.
-------------------------------------------------

    Resolution: Fixed

applied the solution with revision 940182.

> error on array of xsd:date
> --------------------------
>
>                 Key: AXIS2-4695
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: Marco Benuzzi
>
> If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.
> Solution:
> add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148
>         } else if (Date.class.equals(baseArrayClass)) {
>             Date[] array = new Date[listSize];
>             for (int i = 0; i < listSize; i++) {
>                 Object o = objectList.get(i);
>                 if (o != null) {
>                     if (o instanceof String){
>                         array[i] = ConverterUtil.convertToDate(o.toString());
>                     } else if (o instanceof Date) {
>                         array[i] = (Date) o;
>                     }
>                 }
>             }
>             returnArray = array;

-- 
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


[jira] Resolved: (AXIS2-4695) error on array of xsd:date

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4695.
-------------------------------------------------

    Resolution: Fixed

applied the solution with revision 940182.

> error on array of xsd:date
> --------------------------
>
>                 Key: AXIS2-4695
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: Marco Benuzzi
>
> If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.
> Solution:
> add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148
>         } else if (Date.class.equals(baseArrayClass)) {
>             Date[] array = new Date[listSize];
>             for (int i = 0; i < listSize; i++) {
>                 Object o = objectList.get(i);
>                 if (o != null) {
>                     if (o instanceof String){
>                         array[i] = ConverterUtil.convertToDate(o.toString());
>                     } else if (o instanceof Date) {
>                         array[i] = (Date) o;
>                     }
>                 }
>             }
>             returnArray = array;

-- 
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


[jira] Resolved: (AXIS2-4695) error on array of xsd:date

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-4695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4695.
-------------------------------------------------

    Resolution: Fixed

applied the solution with revision 940182.

> error on array of xsd:date
> --------------------------
>
>                 Key: AXIS2-4695
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4695
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>            Reporter: Marco Benuzzi
>
> If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.
> Solution:
> add the code below to class org.apache.axis2.databinding.utils.ConverterUtil.java in method public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148
>         } else if (Date.class.equals(baseArrayClass)) {
>             Date[] array = new Date[listSize];
>             for (int i = 0; i < listSize; i++) {
>                 Object o = objectList.get(i);
>                 if (o != null) {
>                     if (o instanceof String){
>                         array[i] = ConverterUtil.convertToDate(o.toString());
>                     } else if (o instanceof Date) {
>                         array[i] = (Date) o;
>                     }
>                 }
>             }
>             returnArray = array;

-- 
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