You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nicholas Daley (JIRA)" <ji...@apache.org> on 2008/12/04 13:31:45 UTC

[jira] Created: (AXIS2-4165) Properties of type List are getting turned into lists of OMElements when it is deserialised for the service

Properties of type List are getting turned into lists of OMElements when it is deserialised for the service
-----------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4165
                 URL: https://issues.apache.org/jira/browse/AXIS2-4165
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: 1.4.1
            Reporter: Nicholas Daley


I'm passing a bean to my service which has a property of type List.  When the service receives it, instead of being a List of the type that the client sent, it has been turned into a List of type OMElementImpl.

It looks like the problem is either with SimpleTypeMapper.getArrayList(...) which creates the list for the deserialising code; or where it is called in BeanUtil.deserialize(...)

See line 442 at 
http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?annotate=711389&pathrev=711389


Just looking at the code, I noticed an unrelated issue (which I haven't tested).  I think it might also be broken for cases where a property is a Collection, but not a List - e.g. if the property expected a Set, I think it would still try to put an ArrayList into it.

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


[jira] Resolved: (AXIS2-4165) Properties of type List are getting turned into lists of OMElements when it is deserialised for the service

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

Deepal Jayasinghe resolved AXIS2-4165.
--------------------------------------

    Resolution: Fixed

This problem is due to the fact that Axis2 does not have Generic support, and there is a separate JIRA for that. So I am closing this, and once we fixed that you will get what you want.

Thank you!
Deepal

> Properties of type List are getting turned into lists of OMElements when it is deserialised for the service
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4165
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4165
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.4.1
>            Reporter: Nicholas Daley
>
> I'm passing a bean to my service which has a property of type List.  When the service receives it, instead of being a List of the type that the client sent, it has been turned into a List of type OMElementImpl.
> It looks like the problem is either with SimpleTypeMapper.getArrayList(...) which creates the list for the deserialising code; or where it is called in BeanUtil.deserialize(...)
> See line 442 at 
> http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?annotate=711389&pathrev=711389
> Just looking at the code, I noticed an unrelated issue (which I haven't tested).  I think it might also be broken for cases where a property is a Collection, but not a List - e.g. if the property expected a Set, I think it would still try to put an ArrayList into it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.