cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fried Hoeben (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2413) Aegis ObjectType throws NullPointerException when reading value for an xs:any without xsi:type information
Date Mon, 31 Aug 2009 15:18:32 GMT

     [ https://issues.apache.org/jira/browse/CXF-2413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Fried Hoeben updated CXF-2413:
------------------------------

    Attachment: cxf-aegis-ObjectType.patch

I believe this patch fixes the issue, at least it ensure a DatabindingException is raised,
instead of the NullPointerException....

> Aegis ObjectType throws NullPointerException when reading value for an xs:any without
xsi:type information
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-2413
>                 URL: https://issues.apache.org/jira/browse/CXF-2413
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.3
>            Reporter: Fried Hoeben
>         Attachments: cxf-aegis-ObjectType.patch
>
>
> Aegis databinding throws a NullPointerException instead of reporting that it can not
read the XML it receives.
> I believe the correct, intended, behavior is that it would throw a DatabindingException
stating the typeQName it could not unmarshall, or maybe it should even store the content of
the element it could not parse to a Java bean in an XML document.
> Caused by: java.lang.NullPointerException
> 	at org.apache.cxf.aegis.type.basic.ObjectType.readObject(ObjectType.java:104)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161)
> 	at org.apache.cxf.aegis.type.basic.ArrayType.readCollection(ArrayType.java:86)
> 	at org.apache.cxf.aegis.type.basic.ArrayType.readObject(ArrayType.java:62)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161)
> 	at org.apache.cxf.aegis.type.basic.ArrayType.readCollection(ArrayType.java:86)
> 	at org.apache.cxf.aegis.type.basic.ArrayType.readObject(ArrayType.java:62)
> 	at org.apache.cxf.aegis.type.basic.BeanType.readObject(BeanType.java:161)
> 	at org.apache.cxf.aegis.AegisXMLStreamDataReader.read(AegisXMLStreamDataReader.java:82)
> 	at org.apache.cxf.aegis.databinding.XMLStreamDataReader.read(XMLStreamDataReader.java:61)
> 	... 57 more

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


Mime
View raw message