You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Cristiano Costantini (JIRA)" <ji...@apache.org> on 2016/03/21 15:20:25 UTC
[jira] [Created] (KARAF-4429) JaxB marshalling failure due to
endorsed java.lang.Exception
Cristiano Costantini created KARAF-4429:
-------------------------------------------
Summary: 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: 4.0.4, 2.4.4, 3.0.5, 2.4.0
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)