JIRA bug with a sample to recreate the problem please.
-- dims
On 11/16/06, javaDev <[EMAIL PROTECTED]> wrote:
There is an problem in org.apache.axis2.databinding.utils.BeanUtil in method :
220: deserialize(Class beanClass,
OMElement beanElement,
ObjectSupplier objectSupplier,
String arrayLocalName)
During deserialization of :
<myCase xmlns="http://services.my/xsd">
<arg0 xmlns="">
<baseDO xmlns:xsi=".." xmlns="http://datatypes.my/xsd" xsi:nil="true"/>
<extensionDO xmlns:xsi=".." xmlns="http://datatypes.my/xsd" xsi:nil="true"/>
.......
Elements baseDO and extensionDO refers to abstract class. Due to nil attribute
it shoud left NULL. Indeed I see that the nill attribute is parsed correctly
(directly at the method entry, line 227):
beanElement.localName: "baseDO"
beanElement.attributes[0]:
{http://www.w3.org/2001/XMLSchema-instance}nil=true
This should imply that no further actions required and the null should be
returned as deserialized value. But this does not happen and in
261: beanObj = objectSupplier.getObject(beanClass);
the InstantiationException is thrown since it can't instantiate abstarct class.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]