logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Ståldal <mikael.stal...@magine.com>
Subject Errors when using XMLLayout
Date Thu, 21 May 2015 17:08:03 GMT
When trying to use XMLLayout, I get this error.

Using Log4j 2.3 and these additional runtime dependecies:
"com.fasterxml.jackson.core" % "jackson-core" % "2.5.3"

"com.fasterxml.jackson.dataformat" %  "jackson-dataformat-xml" % "2.5.3"



2015-05-21 19:04:47,283 ERROR
com.fasterxml.jackson.databind.JsonMappingException: Not implemented
(through reference chain:
org.apache.logging.log4j.core.impl.Log4jLogEvent["Message"])
com.fasterxml.jackson.databind.JsonMappingException: Not implemented
(through reference chain:
org.apache.logging.log4j.core.impl.Log4jLogEvent["Message"])
        at
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210)
        at
com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177)
        at
com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:190)
        at
com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:295)
        at
com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializer.serialize(XmlBeanSerializer.java:117)
        at
com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider.serializeValue(XmlSerializerProvider.java:92)
        at
com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1052)
        at
com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:923)
        at
org.apache.logging.log4j.core.layout.AbstractJacksonLayout.toSerializable(AbstractJacksonLayout.java:54)
        at
org.apache.logging.log4j.core.layout.XmlLayout.toSerializable(XmlLayout.java:189)
        at
org.apache.logging.log4j.core.layout.AbstractJacksonLayout.toSerializable(AbstractJacksonLayout.java:27)
        at
org.apache.logging.log4j.core.layout.AbstractStringLayout.toByteArray(AbstractStringLayout.java:71)
        at
org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:108)
        at
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
        at
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:430)
        at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:409)
        at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:412)
        at
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:367)
        at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:112)
        at
org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:732)
        at
org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:700)
        at org.apache.logging.slf4j.Log4jLogger.info(Log4jLogger.java:178)


-- 
[image: MagineTV]

 *Mikael Ståldal*
Senior backend developer

 *Magine TV*
 mikael.staldal@magine.com
 Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com

 Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message