karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4429) JaxB marshalling failure due to endorsed java.lang.Exception
Date Thu, 31 Mar 2016 07:58:25 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219541#comment-15219541
] 

ASF subversion and git services commented on KARAF-4429:
--------------------------------------------------------

Commit 07cb6c11176b5d590b50c55ea6d1d650e3efdc73 in karaf's branch refs/heads/master from [~cristcost]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=07cb6c1 ]

[KARAF-4429] Fix the Exception class causing issues with jaxb

> JaxB marshalling failure due to endorsed java.lang.Exception 
> -------------------------------------------------------------
>
>                 Key: KARAF-4429
>                 URL: https://issues.apache.org/jira/browse/KARAF-4429
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-core
>    Affects Versions: 2.4.0, 3.0.5, 2.4.4, 4.0.4
>            Reporter: Cristiano Costantini
>            Assignee: Guillaume Nodet
>
> The endorsed java.lang.Exception, which expose the public method
> {code:java}
> public Class[] getClassContext() {
>     return classContext;
> }
> {code}
> is the reason of the failure of JaxB marshalling in certain use-cases (for example, when
it is used for SOAP Fault by CXF). This is due to the method being seen as property (the method
signature has the form of a "getter") and the default behavior of JaxB is to marshal properties.
> As a result, any exception marshalled inside Karaf create an invalid XML which includes
a list of <classContext> tags corresponding to this property, and clients outside of
Karaf fail to unmarshall it. 
> The issue has been discussed on the Karaf Dev mailing list, see full discussion here:
> http://karaf.922171.n3.nabble.com/Problems-due-to-the-endorsed-java-lang-Exception-td4045861.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message