You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Stefan Berger (Jira)" <ji...@apache.org> on 2021/05/04 13:46:00 UTC
[jira] [Updated] (CXF-8536) Incorrect log message "Could not create
a NamespaceMapper compatible with Marshaller class
com.sun.xml.bind.v2.runtime.MarshallerImpl"
[ https://issues.apache.org/jira/browse/CXF-8536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Berger updated CXF-8536:
-------------------------------
Description:
On every outgoing SOAP message, the following message is logged:
{code:java}
Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl
{code}
This is produced by [https://github.com/apache/cxf/blob/25a6feb377e7b969091e64de8ae5817224d846b4/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java#L78]
The code is missing an
{code:java}
if (class == null) {
{code}
around it, because the log message should not be logged if a class was found.
See PR https://github.com/apache/cxf/pull/791 for a fix.
was:
On every outgoing SOAP message, the following message is logged:
{code:java}
Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl
{code}
This is produced by [https://github.com/apache/cxf/blob/25a6feb377e7b969091e64de8ae5817224d846b4/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java#L78]
The code is missing an
{code:java}
if (class == null) {
{code}
around it, because the log message should not be logged if a class was found.
> Incorrect log message "Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl"
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CXF-8536
> URL: https://issues.apache.org/jira/browse/CXF-8536
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.4.3
> Reporter: Stefan Berger
> Priority: Minor
>
> On every outgoing SOAP message, the following message is logged:
> {code:java}
> Could not create a NamespaceMapper compatible with Marshaller class com.sun.xml.bind.v2.runtime.MarshallerImpl
> {code}
> This is produced by [https://github.com/apache/cxf/blob/25a6feb377e7b969091e64de8ae5817224d846b4/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java#L78]
> The code is missing an
> {code:java}
> if (class == null) {
> {code}
> around it, because the log message should not be logged if a class was found.
>
> See PR https://github.com/apache/cxf/pull/791 for a fix.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)