You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/21 16:46:25 UTC
[jira] [Commented] (KARAF-4429) JaxB marshalling failure due to
endorsed java.lang.Exception
[ https://issues.apache.org/jira/browse/KARAF-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15204474#comment-15204474 ]
ASF GitHub Bot commented on KARAF-4429:
---------------------------------------
GitHub user cristcost opened a pull request:
https://github.com/apache/karaf/pull/166
Fix to KARAF-4429
This pull request is a proposal to fix KARAF-4429,
see http://karaf.922171.n3.nabble.com/Problems-due-to-the-endorsed-java-lang-Exception-td4045861.html for discussion about the issue.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cristcost/karaf fix-karaf-4429
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/166.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #166
----
commit cf1dbaa714f763ce8ee5de9801c4f43fd2fddb22
Author: cristcost <cr...@gmail.com>
Date: 2016-03-21T14:26:54Z
Fix to KARAF-4429
----
> 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
>
> The endorsed java.lang.Exception, which expose the public method
> My problem is due to the fact that this class has a public property,
> public Class[] getClassContext() {
> return classContext;
> }
> is the reason of the failure of JaxB marshalling as it seen as property (the method signature has the form of a getter) and default behavior of JaxB is to marshal properties.
> As a result, any exception marshalled inside Karaf create an incompatible XML because it includes a list of <classContext> tags corresponding to this property.
> 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)