cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2413) Aegis ObjectType throws NullPointerException when reading value for an xs:any without xsi:type information
Date Tue, 08 Sep 2009 18:43:57 GMT

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

Benson Margulies resolved CXF-2413.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3

r812621. Patch adapted and applied.



> 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
>            Assignee: Benson Margulies
>             Fix For: 2.3
>
>         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