cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Stopp (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding
Date Mon, 29 Mar 2010 14:07:28 GMT

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

Bryan Stopp updated CXF-2739:
-----------------------------

    Attachment: XMLBeanTypeInfo.java.patch
                cxf-binding-bug.zip

> NPE When Mapping two xsd:dates in same object with Aegis Databinding
> --------------------------------------------------------------------
>
>                 Key: CXF-2739
>                 URL: https://issues.apache.org/jira/browse/CXF-2739
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.5, 2.2.1, 2.2.2, 2.1.6, 2.2.3, 2.1.7, 2.2.4, 2.1.8, 2.2.5, 2.1.9,
2.2.6, 2.2.7
>            Reporter: Bryan Stopp
>         Attachments: cxf-binding-bug.zip, XMLBeanTypeInfo.java.patch
>
>
> When you use an Aegis mapping file to map multiple properties of an object to an xsd:date
using the DateType class, an NPE occurs. This actually occurs due to the .equals() method
of the Type class. The equals() is checking the schema and the typeClass attributes, however
due to the manner in which XmlBeanTypeInfo is generating the Type, it never sets the typeClass
attribute, and therefore an NPE occurs.
> I erroneously identified this a the fix for CXF-2728, however it turns out this isn't
the case. I applied the patch to v2.1.5 locally and tested it, and it still occured. This
tag is where type attribute of the ageis mapping file is actually being used for the first
time.
> I have attached a JUnit test case  (Eclipse/Maven project) as well as a patch. I made
an assumption, which is hopefully valid.
> -B

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