You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/09/14 19:59:09 UTC

[jira] [Resolved] (CXF-3611) JAXBEncoderDecoder.marshallException fails if exception object contains a map

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

Daniel Kulp resolved CXF-3611.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.3
                   2.3.7
         Assignee: Daniel Kulp


Fixed the detection of maps as an array, but since JAXB doesn't really support Maps very well, this is likely to blow up in other areas.  If you need a map, I'd suggest defining a fault bean and using that in the faultInfo and providing correct mappings and such for the map (XmlTypeAdapter things).

> JAXBEncoderDecoder.marshallException fails if exception object contains a map
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3611
>                 URL: https://issues.apache.org/jira/browse/CXF-3611
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.4.1
>         Environment: Java 1.6.0 Windows/Linux
>            Reporter: Karsten Ohme
>            Assignee: Daniel Kulp
>             Fix For: 2.3.7, 2.4.3
>
>
> In the method JAXBEncoderDecoder.marshallException a Map is detected as an array. 
> Finally in the method writeArrayObject in line 414 int len = Array.getLength(objArray); an exception is thrown.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira