You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bryan Stopp (JIRA)" <ji...@apache.org> on 2010/03/29 16:05:27 UTC

[jira] Created: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding

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.2.7, 2.2.6, 2.1.9, 2.2.5, 2.1.8, 2.2.4, 2.1.7, 2.2.3, 2.1.6, 2.2.2, 2.2.1, 2.1.5
            Reporter: Bryan Stopp


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.


[jira] Updated: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding

Posted by "Bryan Stopp (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Assigned: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding

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

Daniel Kulp reassigned CXF-2739:
--------------------------------

    Assignee: Daniel Kulp

> 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
>            Assignee: Daniel Kulp
>         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.


[jira] Resolved: (CXF-2739) NPE When Mapping two xsd:dates in same object with Aegis Databinding

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

Daniel Kulp resolved CXF-2739.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.8

> 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
>            Assignee: Daniel Kulp
>             Fix For: 2.2.8
>
>         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.