logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordán E Moisés <jordan.moi...@kennen-consulting.com>
Subject RE: Why RollingFileAppender do not work by size on WebLogic 10.3.3 with Log4J 1.2.16 and jdk 1.6.0_33?
Date Tue, 03 Feb 2015 23:25:36 GMT
Remko:

	I tried, but I have a problem with XMLLayout for RollingFile; I see that there is an issue reported ([jira] [Commented] (LOG4J2-739) XMLLayout no out put, and Error). Is there any solution for this?


-------------------------------
JDK:
-------------------------------

1.6.0_33

-------------------------------
LIB:
-------------------------------

lib\disruptor-3.3.0.jar
lib\jackson-annotations-2.4.2.jar
lib\jackson-core-2.4.2.jar
lib\jackson-databind-2.4.2.jar
lib\jackson-dataformat-xml-2.4.2.jar
lib\jackson-module-jaxb-annotations-2.4.2.jar
lib\log4j-api-2.1.jar
lib\log4j-core-2.1.jar
lib\stax2-api-3.1.4.jar

-------------------------------
log4j2.xml:
-------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug">
	<Appenders>
		<Console name="CONSOLE" target="SYSTEM_OUT">
			<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
		</Console>
		<File name="TEMP" fileName="c:/a/z/temp.log">
			<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
		</File>
		<RollingFile name="RollingFile" fileName="c:/a/z/OBPMConnectorWebService.log"
			filePattern="c:/a/z/$${date:yyyy-MM}/OBPMConnectorWebService-%d{MM-dd-yyyy}-%i.log.gz"
			append="true" bufferedIO="true" bufferSize="4096" immediateFlush="false" >
			<PatternLayout  pattern="[%d{dd/MMM/yyyy HH:mm:ss:SSS}] %-5p %c -> %m%n"/>
			<Policies>
				<OnStartupTriggeringPolicy />
				<SizeBasedTriggeringPolicy size="2 MB" />
				<TimeBasedTriggeringPolicy />
			</Policies>
			<DefaultRolloverStrategy max="20"/>
		</RollingFile>
		<RollingFile name="XMLRollingFile" fileName="c:/a/z/OBPMConnectorWebService.xml"
			filePattern="c:/a/z/$${date:yyyy-MM}/OBPMConnectorWebService-%d{MM-dd-yyyy}-%i.xml.gz"
			append="true" bufferedIO="true" bufferSize="4096" immediateFlush="false" >
			<XMLLayout/>
			<Policies>
				<OnStartupTriggeringPolicy />
				<SizeBasedTriggeringPolicy size="2 MB" />
				<TimeBasedTriggeringPolicy />
			</Policies>
			<DefaultRolloverStrategy max="100"/>
		</RollingFile>	
		<Async name="ASYNC">
			<AppenderRef ref="XMLRollingFile"/>
			<AppenderRef ref="RollingFile" level="warn"/>
			<AppenderRef ref="TEMP"/>
			<AppenderRef ref="CONSOLE" level="all"/>
		</Async>
	</Appenders>
	<Loggers>
		<Root level="debug">
			<AppenderRef ref="ASYNC"/>
		</Root>
	</Loggers>
</Configuration>


-------------------------------
JAVA CODE (Main.java)
-------------------------------

/**
 * 
 */
package com.kennen.prueba;

import java.util.Properties;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.ThreadContext;


/**
 * @author jordan
 *
 */
public class Main {
	private static Logger logger = LogManager.getLogger(Main.class.getName());

	/**
	 * 
	 */
	public Main() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		Properties props = System.getProperties();
		props.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
		
		// TODO Auto-generated method stub
		logger.debug("Antes del while. . . . . ");
		long cont = 0l;

		ThreadContext.push("Hola");
		
		while(true && cont < 10000) {
			logger.debug("????");
			logger.info("En el while antes del sleep. . . . . ");
			Thread.sleep(10);
			logger.warn("Despues del sleep. . . . . ");
			cont++;
		}

        if (ThreadContext.getDepth() != 0) {
        	ThreadContext.pop();
        }
		logger.debug("Despues del while. . . . . ");

	}

}


--------------------------------------------------------------
Console output & exceptions until I kill the app:
--------------------------------------------------------------

2015-02-03 20:07:58,749 DEBUG Starting configuration XmlConfiguration[location=C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml]
2015-02-03 20:07:58,750 DEBUG PluginManager 'Core' found 69 plugins
2015-02-03 20:07:58,750 DEBUG PluginManager 'Level' found 0 plugins
2015-02-03 20:07:58,753 DEBUG PluginManager 'Lookup' found 10 plugins
2015-02-03 20:07:58,757 DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout]. Searching for builder factory method...
2015-02-03 20:07:58,759 DEBUG Found builder factory method [newBuilder]: public static org.apache.logging.log4j.core.layout.PatternLayout$Builder org.apache.logging.log4j.core.layout.PatternLayout.newBuilder().
2015-02-03 20:07:58,767 DEBUG TypeConverterRegistry initializing.
2015-02-03 20:07:58,768 DEBUG PluginManager 'TypeConverter' found 21 plugins
2015-02-03 20:07:58,782 DEBUG Calling build() on class class org.apache.logging.log4j.core.layout.PatternLayout$Builder for element PatternLayout with params(pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml), null, charset="null", alwaysWriteExceptions="null", noConsoleNoAnsi="null", header="null", footer="null")
2015-02-03 20:07:58,782 DEBUG PluginManager 'Converter' found 33 plugins
2015-02-03 20:07:58,783 DEBUG Built Plugin[name=layout] OK from builder factory method.
2015-02-03 20:07:58,783 DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.ConsoleAppender]. Searching for builder factory method...
2015-02-03 20:07:58,784 DEBUG Not in a ServletContext environment, thus not loading WebLookup plugin.
2015-02-03 20:07:58,785 DEBUG PluginManager 'Converter' found 33 plugins
2015-02-03 20:07:58,786 DEBUG Jansi is not installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream
2015-02-03 20:07:58,786 DEBUG Found builder factory method [newBuilder]: public static org.apache.logging.log4j.core.appender.ConsoleAppender$Builder org.apache.logging.log4j.core.appender.ConsoleAppender.newBuilder().
2015-02-03 20:07:58,791 DEBUG No PluginVisitorStrategy found on annotation [interface org.apache.logging.log4j.core.config.plugins.validation.constraints.Required]. Ignoring.
2015-02-03 20:07:58,791 DEBUG Encountered type [org.apache.logging.log4j.core.layout.PatternLayout] which can only be checked for null.
2015-02-03 20:07:58,793 DEBUG No PluginVisitorStrategy found on annotation [interface org.apache.logging.log4j.core.config.plugins.validation.constraints.Required]. Ignoring.
2015-02-03 20:07:58,793 DEBUG Encountered type [org.apache.logging.log4j.core.appender.ConsoleAppender$Target] which can only be checked for null.
2015-02-03 20:07:58,794 DEBUG No PluginVisitorStrategy found on annotation [interface org.apache.logging.log4j.core.config.plugins.validation.constraints.Required]. Ignoring.
2015-02-03 20:07:58,794 DEBUG Calling build() on class class org.apache.logging.log4j.core.appender.ConsoleAppender$Builder for element Console with params(PatternLayout(%d %-5p [%t] %C{2} (%F:%L) - %m%n), null, target="SYSTEM_OUT", name="CONSOLE", follow="null", ignoreExceptions="null")
2015-02-03 20:07:58,795 DEBUG Jansi is not installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream
2015-02-03 20:07:58,795 DEBUG Built Plugin[name=appender] OK from builder factory method.
2015-02-03 20:07:58,795 DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout]. Searching for builder factory method...
2015-02-03 20:07:58,796 DEBUG Found builder factory method [newBuilder]: public static org.apache.logging.log4j.core.layout.PatternLayout$Builder org.apache.logging.log4j.core.layout.PatternLayout.newBuilder().
2015-02-03 20:07:58,798 DEBUG Calling build() on class class org.apache.logging.log4j.core.layout.PatternLayout$Builder for element PatternLayout with params(pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml), null, charset="null", alwaysWriteExceptions="null", noConsoleNoAnsi="null", header="null", footer="null")
2015-02-03 20:07:58,798 DEBUG Built Plugin[name=layout] OK from builder factory method.
2015-02-03 20:07:58,799 DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.FileAppender]. Searching for builder factory method...
2015-02-03 20:07:58,801 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.FileAppender. Going to try finding a factory method instead.
2015-02-03 20:07:58,801 DEBUG Still building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.FileAppender]. Searching for factory method...
2015-02-03 20:07:58,802 DEBUG Found factory method [createAppender]: public static org.apache.logging.log4j.core.appender.FileAppender org.apache.logging.log4j.core.appender.FileAppender.createAppender(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.Layout,org.apache.logging.log4j.core.Filter,java.lang.String,java.lang.String,org.apache.logging.log4j.core.config.Configuration).
2015-02-03 20:07:58,809 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.FileAppender for element File with params(fileName="c:/a/z/temp.log", append="null", locking="null", name="TEMP", immediateFlush="null", ignoreExceptions="null", bufferedIo="null", bufferSize="null", PatternLayout(%d %-5p [%t] %C{2} (%F:%L) - %m%n), null, advertise="null", advertiseUri="null", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml))
2015-02-03 20:07:58,811 DEBUG Starting FileManager c:/a/z/temp.log
2015-02-03 20:07:58,811 DEBUG Built Plugin[name=appender] OK from factory method.
2015-02-03 20:07:58,811 DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.PatternLayout]. Searching for builder factory method...
2015-02-03 20:07:58,811 DEBUG Found builder factory method [newBuilder]: public static org.apache.logging.log4j.core.layout.PatternLayout$Builder org.apache.logging.log4j.core.layout.PatternLayout.newBuilder().
2015-02-03 20:07:58,812 DEBUG Calling build() on class class org.apache.logging.log4j.core.layout.PatternLayout$Builder for element PatternLayout with params(pattern="[%d{dd/MMM/yyyy HH:mm:ss:SSS}] %-5p %c -> %m%n", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml), null, charset="null", alwaysWriteExceptions="null", noConsoleNoAnsi="null", header="null", footer="null")
2015-02-03 20:07:58,813 DEBUG Built Plugin[name=layout] OK from builder factory method.
2015-02-03 20:07:58,813 DEBUG Building Plugin[name=OnStartupTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,814 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,814 DEBUG Still building Plugin[name=OnStartupTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,815 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy.createPolicy().
2015-02-03 20:07:58,815 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy for element OnStartupTriggeringPolicy 
2015-02-03 20:07:58,816 DEBUG Built Plugin[name=OnStartupTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,816 DEBUG Building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,817 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,817 DEBUG Still building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,817 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy.createPolicy(java.lang.String).
2015-02-03 20:07:58,817 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy for element SizeBasedTriggeringPolicy with params(size="2 MB")
2015-02-03 20:07:58,819 DEBUG Built Plugin[name=SizeBasedTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,819 DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,819 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,819 DEBUG Still building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,820 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy.createPolicy(java.lang.String,java.lang.String).
2015-02-03 20:07:58,820 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy for element TimeBasedTriggeringPolicy with params(interval="null", modulate="null")
2015-02-03 20:07:58,820 DEBUG Built Plugin[name=TimeBasedTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,821 DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,821 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,821 DEBUG Still building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,821 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy.createPolicy(org.apache.logging.log4j.core.appender.rolling.TriggeringPolicy[]).
2015-02-03 20:07:58,822 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy for element Policies with params(={OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=2097152), TimeBasedTriggeringPolicy})
2015-02-03 20:07:58,822 DEBUG Built Plugin[name=Policies] OK from factory method.
2015-02-03 20:07:58,822 DEBUG Building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy]. Searching for builder factory method...
2015-02-03 20:07:58,823 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy. Going to try finding a factory method instead.
2015-02-03 20:07:58,824 DEBUG Still building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy]. Searching for factory method...
2015-02-03 20:07:58,824 DEBUG Found factory method [createStrategy]: public static org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy.createStrategy(java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.config.Configuration).
2015-02-03 20:07:58,826 DEBUG Calling createStrategy on class org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy for element DefaultRolloverStrategy with params(max="20", min="null", fileIndex="null", compressionLevel="null", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml))
2015-02-03 20:07:58,826 DEBUG Built Plugin[name=DefaultRolloverStrategy] OK from factory method.
2015-02-03 20:07:58,826 DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender]. Searching for builder factory method...
2015-02-03 20:07:58,827 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.RollingFileAppender. Going to try finding a factory method instead.
2015-02-03 20:07:58,827 DEBUG Still building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender]. Searching for factory method...
2015-02-03 20:07:58,827 DEBUG Found factory method [createAppender]: public static org.apache.logging.log4j.core.appender.RollingFileAppender org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.appender.rolling.TriggeringPolicy,org.apache.logging.log4j.core.appender.rolling.RolloverStrategy,org.apache.logging.log4j.core.Layout,org.apache.logging.log4j.core.Filter,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.config.Configuration).
2015-02-03 20:07:58,829 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile with params(fileName="c:/a/z/OBPMConnectorWebService.log", filePattern="c:/a/z/${date:yyyy-MM}/OBPMConnectorWebService-%d{MM-dd-yyyy}-%i.log.gz", append="true", name="RollingFile", bufferedIO="true", bufferSize="4096", immediateFlush="false", Policies(CompositeTriggeringPolicy{OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=2097152), TimeBasedTriggeringPolicy}), DefaultRolloverStrategy(DefaultRolloverStrategy(min=1, max=20)), PatternLayout([%d{dd/MMM/yyyy HH:mm:ss:SSS}] %-5p %c -> %m%n), null, ignoreExceptions="null", advertise="null", advertiseURI="null", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml))
2015-02-03 20:07:58,831 DEBUG Starting RollingFileManager c:/a/z/OBPMConnectorWebService.log
2015-02-03 20:07:58,832 DEBUG PluginManager 'FileConverter' found 2 plugins
2015-02-03 20:07:58,834 DEBUG Built Plugin[name=appender] OK from factory method.
2015-02-03 20:07:58,834 DEBUG Building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.XmlLayout]. Searching for builder factory method...
2015-02-03 20:07:58,835 DEBUG No builder factory method found in class org.apache.logging.log4j.core.layout.XmlLayout. Going to try finding a factory method instead.
2015-02-03 20:07:58,835 DEBUG Still building Plugin[name=layout, class=org.apache.logging.log4j.core.layout.XmlLayout]. Searching for factory method...
2015-02-03 20:07:58,836 DEBUG Found factory method [createLayout]: public static org.apache.logging.log4j.core.layout.XmlLayout org.apache.logging.log4j.core.layout.XmlLayout.createLayout(boolean,boolean,boolean,boolean,java.nio.charset.Charset).
2015-02-03 20:07:58,836 DEBUG Calling createLayout on class org.apache.logging.log4j.core.layout.XmlLayout for element XMLLayout with params(locationInfo="false", properties="false", complete="false", compact="false", charset="UTF-8")
2015-02-03 20:07:58,989 DEBUG Built Plugin[name=layout] OK from factory method.
2015-02-03 20:07:58,990 DEBUG Building Plugin[name=OnStartupTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,990 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,990 DEBUG Still building Plugin[name=OnStartupTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,991 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy.createPolicy().
2015-02-03 20:07:58,991 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.OnStartupTriggeringPolicy for element OnStartupTriggeringPolicy 
2015-02-03 20:07:58,991 DEBUG Built Plugin[name=OnStartupTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,991 DEBUG Building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,992 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,992 DEBUG Still building Plugin[name=SizeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,992 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy.createPolicy(java.lang.String).
2015-02-03 20:07:58,992 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy for element SizeBasedTriggeringPolicy with params(size="2 MB")
2015-02-03 20:07:58,993 DEBUG Built Plugin[name=SizeBasedTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,993 DEBUG Building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,993 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,993 DEBUG Still building Plugin[name=TimeBasedTriggeringPolicy, class=org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,994 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy.createPolicy(java.lang.String,java.lang.String).
2015-02-03 20:07:58,994 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.TimeBasedTriggeringPolicy for element TimeBasedTriggeringPolicy with params(interval="null", modulate="null")
2015-02-03 20:07:58,994 DEBUG Built Plugin[name=TimeBasedTriggeringPolicy] OK from factory method.
2015-02-03 20:07:58,995 DEBUG Building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy]. Searching for builder factory method...
2015-02-03 20:07:58,995 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy. Going to try finding a factory method instead.
2015-02-03 20:07:58,995 DEBUG Still building Plugin[name=Policies, class=org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy]. Searching for factory method...
2015-02-03 20:07:58,996 DEBUG Found factory method [createPolicy]: public static org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy.createPolicy(org.apache.logging.log4j.core.appender.rolling.TriggeringPolicy[]).
2015-02-03 20:07:58,996 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy for element Policies with params(={OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=2097152), TimeBasedTriggeringPolicy})
2015-02-03 20:07:58,996 DEBUG Built Plugin[name=Policies] OK from factory method.
2015-02-03 20:07:58,996 DEBUG Building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy]. Searching for builder factory method...
2015-02-03 20:07:58,997 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy. Going to try finding a factory method instead.
2015-02-03 20:07:58,997 DEBUG Still building Plugin[name=DefaultRolloverStrategy, class=org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy]. Searching for factory method...
2015-02-03 20:07:58,997 DEBUG Found factory method [createStrategy]: public static org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy.createStrategy(java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.config.Configuration).
2015-02-03 20:07:58,998 DEBUG Calling createStrategy on class org.apache.logging.log4j.core.appender.rolling.DefaultRolloverStrategy for element DefaultRolloverStrategy with params(max="100", min="null", fileIndex="null", compressionLevel="null", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml))
2015-02-03 20:07:58,998 DEBUG Built Plugin[name=DefaultRolloverStrategy] OK from factory method.
2015-02-03 20:07:58,998 DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender]. Searching for builder factory method...
2015-02-03 20:07:58,998 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.RollingFileAppender. Going to try finding a factory method instead.
2015-02-03 20:07:58,998 DEBUG Still building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.RollingFileAppender]. Searching for factory method...
2015-02-03 20:07:58,999 DEBUG Found factory method [createAppender]: public static org.apache.logging.log4j.core.appender.RollingFileAppender org.apache.logging.log4j.core.appender.RollingFileAppender.createAppender(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.appender.rolling.TriggeringPolicy,org.apache.logging.log4j.core.appender.rolling.RolloverStrategy,org.apache.logging.log4j.core.Layout,org.apache.logging.log4j.core.Filter,java.lang.String,java.lang.String,java.lang.String,org.apache.logging.log4j.core.config.Configuration).
2015-02-03 20:07:59,001 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile with params(fileName="c:/a/z/OBPMConnectorWebService.xml", filePattern="c:/a/z/${date:yyyy-MM}/OBPMConnectorWebService-%d{MM-dd-yyyy}-%i.xml.gz", append="true", name="XMLRollingFile", bufferedIO="true", bufferSize="4096", immediateFlush="false", Policies(CompositeTriggeringPolicy{OnStartupTriggeringPolicy, SizeBasedTriggeringPolicy(size=2097152), TimeBasedTriggeringPolicy}), DefaultRolloverStrategy(DefaultRolloverStrategy(min=1, max=100)), XMLLayout(org.apache.logging.log4j.core.layout.XmlLayout@579d75ee), null, ignoreExceptions="null", advertise="null", advertiseURI="null", Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml))
2015-02-03 20:07:59,002 DEBUG Starting RollingFileManager c:/a/z/OBPMConnectorWebService.xml
2015-02-03 20:07:59,002 DEBUG PluginManager 'FileConverter' found 2 plugins
2015-02-03 20:07:59,003 DEBUG Built Plugin[name=appender] OK from factory method.
2015-02-03 20:07:59,003 DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for builder factory method...
2015-02-03 20:07:59,003 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppenderRef. Going to try finding a factory method instead.
2015-02-03 20:07:59,004 DEBUG Still building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for factory method...
2015-02-03 20:07:59,004 DEBUG Found factory method [createAppenderRef]: public static org.apache.logging.log4j.core.config.AppenderRef org.apache.logging.log4j.core.config.AppenderRef.createAppenderRef(java.lang.String,org.apache.logging.log4j.Level,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,005 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.AppenderRef for element AppenderRef with params(ref="XMLRollingFile", level="null", null)
2015-02-03 20:07:59,005 DEBUG Built Plugin[name=AppenderRef] OK from factory method.
2015-02-03 20:07:59,005 DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for builder factory method...
2015-02-03 20:07:59,006 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppenderRef. Going to try finding a factory method instead.
2015-02-03 20:07:59,006 DEBUG Still building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for factory method...
2015-02-03 20:07:59,006 DEBUG Found factory method [createAppenderRef]: public static org.apache.logging.log4j.core.config.AppenderRef org.apache.logging.log4j.core.config.AppenderRef.createAppenderRef(java.lang.String,org.apache.logging.log4j.Level,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,007 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.AppenderRef for element AppenderRef with params(ref="RollingFile", level="WARN", null)
2015-02-03 20:07:59,007 DEBUG Built Plugin[name=AppenderRef] OK from factory method.
2015-02-03 20:07:59,008 DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for builder factory method...
2015-02-03 20:07:59,008 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppenderRef. Going to try finding a factory method instead.
2015-02-03 20:07:59,008 DEBUG Still building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for factory method...
2015-02-03 20:07:59,009 DEBUG Found factory method [createAppenderRef]: public static org.apache.logging.log4j.core.config.AppenderRef org.apache.logging.log4j.core.config.AppenderRef.createAppenderRef(java.lang.String,org.apache.logging.log4j.Level,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,009 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.AppenderRef for element AppenderRef with params(ref="TEMP", level="null", null)
2015-02-03 20:07:59,009 DEBUG Built Plugin[name=AppenderRef] OK from factory method.
2015-02-03 20:07:59,010 DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for builder factory method...
2015-02-03 20:07:59,010 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppenderRef. Going to try finding a factory method instead.
2015-02-03 20:07:59,010 DEBUG Still building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for factory method...
2015-02-03 20:07:59,010 DEBUG Found factory method [createAppenderRef]: public static org.apache.logging.log4j.core.config.AppenderRef org.apache.logging.log4j.core.config.AppenderRef.createAppenderRef(java.lang.String,org.apache.logging.log4j.Level,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,011 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.AppenderRef for element AppenderRef with params(ref="CONSOLE", level="ALL", null)
2015-02-03 20:07:59,011 DEBUG Built Plugin[name=AppenderRef] OK from factory method.
2015-02-03 20:07:59,011 DEBUG Building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.AsyncAppender]. Searching for builder factory method...
2015-02-03 20:07:59,012 DEBUG No builder factory method found in class org.apache.logging.log4j.core.appender.AsyncAppender. Going to try finding a factory method instead.
2015-02-03 20:07:59,012 DEBUG Still building Plugin[name=appender, class=org.apache.logging.log4j.core.appender.AsyncAppender]. Searching for factory method...
2015-02-03 20:07:59,012 DEBUG Found factory method [createAppender]: public static org.apache.logging.log4j.core.appender.AsyncAppender org.apache.logging.log4j.core.appender.AsyncAppender.createAppender(org.apache.logging.log4j.core.config.AppenderRef[],java.lang.String,boolean,int,java.lang.String,boolean,org.apache.logging.log4j.core.Filter,org.apache.logging.log4j.core.config.Configuration,boolean).
2015-02-03 20:07:59,015 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.AsyncAppender for element Async with params(={XMLRollingFile, RollingFile, TEMP, CONSOLE}, errorRef="null", blocking="true", bufferSize="128", name="ASYNC", includeLocation="false", null, Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml), ignoreExceptions="true")
2015-02-03 20:07:59,016 DEBUG Built Plugin[name=appender] OK from factory method.
2015-02-03 20:07:59,016 DEBUG Building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin]. Searching for builder factory method...
2015-02-03 20:07:59,016 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppendersPlugin. Going to try finding a factory method instead.
2015-02-03 20:07:59,016 DEBUG Still building Plugin[name=appenders, class=org.apache.logging.log4j.core.config.AppendersPlugin]. Searching for factory method...
2015-02-03 20:07:59,017 DEBUG Found factory method [createAppenders]: public static java.util.concurrent.ConcurrentMap org.apache.logging.log4j.core.config.AppendersPlugin.createAppenders(org.apache.logging.log4j.core.Appender[]).
2015-02-03 20:07:59,017 DEBUG Calling createAppenders on class org.apache.logging.log4j.core.config.AppendersPlugin for element Appenders with params(={CONSOLE, TEMP, RollingFile, XMLRollingFile, ASYNC})
2015-02-03 20:07:59,017 DEBUG Built Plugin[name=appenders] OK from factory method.
2015-02-03 20:07:59,017 DEBUG Building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for builder factory method...
2015-02-03 20:07:59,018 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.AppenderRef. Going to try finding a factory method instead.
2015-02-03 20:07:59,018 DEBUG Still building Plugin[name=AppenderRef, class=org.apache.logging.log4j.core.config.AppenderRef]. Searching for factory method...
2015-02-03 20:07:59,018 DEBUG Found factory method [createAppenderRef]: public static org.apache.logging.log4j.core.config.AppenderRef org.apache.logging.log4j.core.config.AppenderRef.createAppenderRef(java.lang.String,org.apache.logging.log4j.Level,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,018 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.AppenderRef for element AppenderRef with params(ref="ASYNC", level="null", null)
2015-02-03 20:07:59,019 DEBUG Built Plugin[name=AppenderRef] OK from factory method.
2015-02-03 20:07:59,019 DEBUG Building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger]. Searching for builder factory method...
2015-02-03 20:07:59,019 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.LoggerConfig$RootLogger. Going to try finding a factory method instead.
2015-02-03 20:07:59,019 DEBUG Still building Plugin[name=root, class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger]. Searching for factory method...
2015-02-03 20:07:59,019 DEBUG Found factory method [createLogger]: public static org.apache.logging.log4j.core.config.LoggerConfig org.apache.logging.log4j.core.config.LoggerConfig$RootLogger.createLogger(java.lang.String,org.apache.logging.log4j.Level,java.lang.String,org.apache.logging.log4j.core.config.AppenderRef[],org.apache.logging.log4j.core.config.Property[],org.apache.logging.log4j.core.config.Configuration,org.apache.logging.log4j.core.Filter).
2015-02-03 20:07:59,020 DEBUG Calling createLogger on class org.apache.logging.log4j.core.config.LoggerConfig$RootLogger for element Root with params(additivity="null", level="DEBUG", includeLocation="null", ={ASYNC}, ={}, Configuration(C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml), null)
2015-02-03 20:07:59,021 DEBUG Built Plugin[name=root] OK from factory method.
2015-02-03 20:07:59,021 DEBUG Building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin]. Searching for builder factory method...
2015-02-03 20:07:59,021 DEBUG No builder factory method found in class org.apache.logging.log4j.core.config.LoggersPlugin. Going to try finding a factory method instead.
2015-02-03 20:07:59,021 DEBUG Still building Plugin[name=loggers, class=org.apache.logging.log4j.core.config.LoggersPlugin]. Searching for factory method...
2015-02-03 20:07:59,022 DEBUG Found factory method [createLoggers]: public static org.apache.logging.log4j.core.config.Loggers org.apache.logging.log4j.core.config.LoggersPlugin.createLoggers(org.apache.logging.log4j.core.config.LoggerConfig[]).
2015-02-03 20:07:59,022 DEBUG Calling createLoggers on class org.apache.logging.log4j.core.config.LoggersPlugin for element Loggers with params(={root})
2015-02-03 20:07:59,022 DEBUG Built Plugin[name=loggers] OK from factory method.
2015-02-03 20:07:59,024 DEBUG Started configuration XmlConfiguration[location=C:\Users\jordan\workspace-eclipse-jee-juno-mediator\Log4j2Java\bin\log4j2.xml] OK.
2015-02-03 20:07:59,024 DEBUG Stopped org.apache.logging.log4j.core.config.DefaultConfiguration@635aed76 OK
2015-02-03 20:07:59,072 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4
2015-02-03 20:07:59,075 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=StatusLogger
2015-02-03 20:07:59,076 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=ContextSelector
2015-02-03 20:07:59,077 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=Loggers,name=
2015-02-03 20:07:59,079 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=Appenders,name=CONSOLE
2015-02-03 20:07:59,079 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=Appenders,name=RollingFile
2015-02-03 20:07:59,080 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=Appenders,name=TEMP
2015-02-03 20:07:59,080 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=Appenders,name=XMLRollingFile
2015-02-03 20:07:59,081 DEBUG Registering MBean org.apache.logging.log4j2:type=sun.misc.Launcher$AppClassLoader@4aad3ba4,component=AsyncAppenders,name=ASYNC
2015-02-03 20:07:59,082 DEBUG Reconfiguration complete for context[name=sun.misc.Launcher$AppClassLoader@4aad3ba4] at null (org.apache.logging.log4j.core.LoggerContext@7aa89d02) with optional ClassLoader: null
2015-02-03 20:07:59,083 DEBUG Shutdown hook enabled. Registering a new one.
2015-02-03 20:07:59,084 DEBUG LoggerContext[name=sun.misc.Launcher$AppClassLoader@4aad3ba4, org.apache.logging.log4j.core.LoggerContext@8542548] started OK.
2015-02-03 20:07:59,089 DEBUG Using default SystemClock for timestamps
2015-02-03 20:07:59,116 DEBUG DefaultRolloverStrategy.purgeAscending deleting c:\a\z\2015-02\OBPMConnectorWebService-02-03-2015-1.xml at low index 1: all slots full.
2015-02-03 20:07:59,119 DEBUG RollingFileManager executing synchronous FileRenameAction[c:\a\z\OBPMConnectorWebService.xml to c:\a\z\2015-02\OBPMConnectorWebService-02-03-2015-1.xml, renameEmptyFiles=false]
2015-02-03 20:07:59,240 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:187)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:255)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializer.serialize(XmlBeanSerializer.java:115)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider.serializeValue(XmlSerializerProvider.java:92)
	at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
	at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:676)
	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:67)
	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:108)
	at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:88)
	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.callAppenders(AsyncAppender.java:290)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:241)
Caused by: java.lang.UnsupportedOperationException: Not implemented
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:380)
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:373)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter$Lf2SpacesIndenter.writeIndentation(DefaultXmlPrettyPrinter.java:498)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.writeLeafElement(DefaultXmlPrettyPrinter.java:271)
	at com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.writeString(ToXmlGenerator.java:489)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:42)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:33)
	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)
	at com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAsField(SimpleBeanPropertyFilter.java:177)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:244)
	... 13 more

2015-02-03 20:07:59,094 DEBUG [main] ? (:) - Antes del while. . . . . 
2015-02-03 20:07:59,282 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:187)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:255)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializer.serialize(XmlBeanSerializer.java:115)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider.serializeValue(XmlSerializerProvider.java:92)
	at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
	at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:676)
	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:67)
	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:108)
	at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:88)
	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.callAppenders(AsyncAppender.java:290)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:241)
Caused by: java.lang.UnsupportedOperationException: Not implemented
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:380)
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:373)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter$Lf2SpacesIndenter.writeIndentation(DefaultXmlPrettyPrinter.java:498)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.writeLeafElement(DefaultXmlPrettyPrinter.java:271)
	at com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.writeString(ToXmlGenerator.java:489)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:42)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:33)
	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)
	at com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAsField(SimpleBeanPropertyFilter.java:177)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:244)
	... 13 more

2015-02-03 20:07:59,095 DEBUG [main] ? (:) - ????
2015-02-03 20:07:59,288 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:187)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:255)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializer.serialize(XmlBeanSerializer.java:115)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider.serializeValue(XmlSerializerProvider.java:92)
	at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
	at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:676)
	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:67)
	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:108)
	at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:88)
	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.callAppenders(AsyncAppender.java:290)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:241)
Caused by: java.lang.UnsupportedOperationException: Not implemented
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:380)
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:373)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter$Lf2SpacesIndenter.writeIndentation(DefaultXmlPrettyPrinter.java:498)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.writeLeafElement(DefaultXmlPrettyPrinter.java:271)
	at com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.writeString(ToXmlGenerator.java:489)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:42)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:33)
	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)
	at com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAsField(SimpleBeanPropertyFilter.java:177)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:244)
	... 13 more

2015-02-03 20:07:59,095 INFO  [main] ? (:) - En el while antes del sleep. . . . . 
2015-02-03 20:07:59,291 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:187)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:255)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializer.serialize(XmlBeanSerializer.java:115)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlSerializerProvider.serializeValue(XmlSerializerProvider.java:92)
	at com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:800)
	at com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:676)
	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:67)
	at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:108)
	at org.apache.logging.log4j.core.appender.RollingFileAppender.append(RollingFileAppender.java:88)
	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:99)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.callAppenders(AsyncAppender.java:290)
	at org.apache.logging.log4j.core.appender.AsyncAppender$AsyncThread.run(AsyncAppender.java:241)
Caused by: java.lang.UnsupportedOperationException: Not implemented
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:380)
	at org.codehaus.stax2.ri.Stax2WriterAdapter.writeRaw(Stax2WriterAdapter.java:373)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter$Lf2SpacesIndenter.writeIndentation(DefaultXmlPrettyPrinter.java:498)
	at com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter.writeLeafElement(DefaultXmlPrettyPrinter.java:271)
	at com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.writeString(ToXmlGenerator.java:489)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:42)
	at org.apache.logging.log4j.core.jackson.MessageSerializer.serialize(MessageSerializer.java:33)
	at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:505)
	at com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter.serializeAsField(SimpleBeanPropertyFilter.java:177)
	at com.fasterxml.jackson.dataformat.xml.ser.XmlBeanSerializerBase.serializeFieldsFiltered(XmlBeanSerializerBase.java:244)
	... 13 more

2015-02-03 20:07:59,299 DEBUG DefaultRolloverStrategy.purgeAscending deleting c:\a\z\2015-02\OBPMConnectorWebService-02-03-2015-1.log at low index 1: all slots full.
2015-02-03 20:07:59,301 DEBUG RollingFileManager executing synchronous FileRenameAction[c:\a\z\OBPMConnectorWebService.log to c:\a\z\2015-02\OBPMConnectorWebService-02-03-2015-1.log, renameEmptyFiles=false]


Regards


Jordán Eduardo Moisés

Av Belgrano 768 - piso 5 depto I
C.P: C1092AAU
Buenos Aires - Argentina 
Teléfono: (54 11) 5256-4060
Móvil: (54 9 11) 5751-1359
Web: www.kennen-consulting.com


-----Mensaje original-----
De: Remko Popma [mailto:remko.popma@gmail.com] 
Enviado el: lunes, 02 de febrero de 2015 08:41 p.m.
Para: Log4J Users List
Asunto: Re: Why RollingFileAppender do not work by size on WebLogic 10.3.3 with Log4J 1.2.16 and jdk 1.6.0_33?

Hi Jordan, 

Currently all our efforts are focussed on log4j2. We are not actively supporting log4j-1.2 anymore. 
Would it be possible for you to upgrade?

Best regards,
Remko

Sent from my iPhone

> On 2015/02/03, at 7:43, Jordán E Moisés <jordan.moises@kennen-consulting.com> wrote:
> 
> Why RollingFileAppender do not work by size on WebLogic 10.3.3 with Log4J 1.2.16 and jdk 1.6.0_33 ?
>  
> PROBLEM
> The file grows over the limit set by configuration. It only creates a new one when the WebLogic is restarted.
>  
> DATA
> My "log4j.properties" is place at WEBAPP.war:\WEB-INF\classes My 
> "log4j-1.2.16.jar" is place at WEBAPP.war:\WEB-INF\lib
>  
> This is my 1st version of "log4j.properties"
> # Root logger option
> log4j.rootLogger=DEBUG, XMLRA, CA, RA
>  
> # Direct log messages to a log file
> log4j.appender.RA=org.apache.log4j.RollingFileAppender
> log4j.appender.RA.layout=org.apache.log4j.PatternLayout
> log4j.appender.RA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n 
> log4j.appender.RA.File=c:\\Oracle\\Middleware\\user_projects\\domains\
> \bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.log
> log4j.appender.RA.append=true
> log4j.appender.RA.MaxFileSize=2MB
> log4j.appender.RA.MaxBackupIndex=10
> log4j.appender.RA.BufferedIO=true
> log4j.appender.RA.ImmediateFlush=false
> log4j.appender.RA.BufferSize=4096
> log4j.appender.RA.Threshold=warn
>  
> # Direct log messages to stdout
> log4j.appender.CA=org.apache.log4j.ConsoleAppender
> log4j.appender.CA.layout=org.apache.log4j.PatternLayout
> log4j.appender.CA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n log4j.appender.CA.Target=System.out
> log4j.appender.cA.Threshold=all
>  
> # Direct log messages to a log xml
> log4j.appender.XMLRA=org.apache.log4j.RollingFileAppender
> log4j.appender.XMLRA.layout=org.apache.log4j.xml.XMLLayout
> log4j.appender.XMLRA.File=c:\\Oracle\\Middleware\\user_projects\\domai
> ns\\bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.xml
> log4j.appender.XMLRA.append=true
> log4j.appender.XMLRA.MaxFileSize=20MB
> log4j.appender.XMLRA.MaxBackupIndex=100
> log4j.appender.XMLRA.BufferedIO=true
> log4j.appender.XMLRA.ImmediateFlush=false
> log4j.appender.XMLRA.BufferSize=4096
>  
> This is my 2nd version of "log4j.properties" (I found some examples on 
> the Internet and I applied the changes without a solution) # Root 
> logger option log4j.rootLogger=DEBUG, XMLRA, CA, RA
>  
> # Direct log messages to a log file
> log4j.appender.RA=org.apache.log4j.RollingFileAppender
> log4j.appender.RA.layout=org.apache.log4j.PatternLayout
> log4j.appender.RA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n 
> log4j.appender.RA.File=c:\\Oracle\\Middleware\\user_projects\\domains\
> \bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.log
> log4j.appender.RA.append=true
> log4j.appender.RA.rollingPolicy=org.apache.log4j.rolling.FixedWindowRo
> llingPolicy log4j.appender.RA.rollingPolicy.maxIndex=10
> log4j.appender.RA.triggeringPolicy=org.apache.log4j.rolling.SizeBasedT
> riggeringPolicy
> log4j.appender.RA.triggeringPolicy.MaxFileSize=2048
> log4j.appender.RA.BufferedIO=true
> log4j.appender.RA.ImmediateFlush=false
> log4j.appender.RA.BufferSize=4096
> log4j.appender.RA.Threshold=warn
>  
> # Direct log messages to stdout
> log4j.appender.CA=org.apache.log4j.ConsoleAppender
> log4j.appender.CA.layout=org.apache.log4j.PatternLayout
> log4j.appender.CA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n log4j.appender.CA.Target=System.out
> log4j.appender.cA.Threshold=all
>  
> # Direct log messages to a log xml
> log4j.appender.XMLRA=org.apache.log4j.RollingFileAppender
> log4j.appender.XMLRA.layout=org.apache.log4j.xml.XMLLayout
> log4j.appender.XMLRA.File=c:\\Oracle\\Middleware\\user_projects\\domai
> ns\\bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.xml
> log4j.appender.XMLRA.append=true
> log4j.appender.XMLRA.rollingPolicy=org.apache.log4j.rolling.FixedWindo
> wRollingPolicy log4j.appender.XMLRA.rollingPolicy.maxIndex=100
> log4j.appender.XMLRA.triggeringPolicy=org.apache.log4j.rolling.SizeBas
> edTriggeringPolicy 
> log4j.appender.XMLRA.triggeringPolicy.MaxFileSize=20480
> log4j.appender.XMLRA.BufferedIO=true
> log4j.appender.XMLRA.ImmediateFlush=false
> log4j.appender.XMLRA.BufferSize=4096
>  
> This is my 3rd version of "log4j.properties" (I set the suffix of unit 
> of size without a solution) # Root logger option 
> log4j.rootLogger=DEBUG, XMLRA, CA, RA
>  
> # Direct log messages to a log file
> log4j.appender.RA=org.apache.log4j.RollingFileAppender
> log4j.appender.RA.layout=org.apache.log4j.PatternLayout
> log4j.appender.RA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n 
> log4j.appender.RA.File=c:\\Oracle\\Middleware\\user_projects\\domains\
> \bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.log
> log4j.appender.RA.append=true
> log4j.appender.RA.rollingPolicy=org.apache.log4j.rolling.FixedWindowRo
> llingPolicy log4j.appender.RA.rollingPolicy.maxIndex=10
> log4j.appender.RA.triggeringPolicy=org.apache.log4j.rolling.SizeBasedT
> riggeringPolicy log4j.appender.RA.triggeringPolicy.MaxFileSize=2MB
> log4j.appender.RA.BufferedIO=true
> log4j.appender.RA.ImmediateFlush=false
> log4j.appender.RA.BufferSize=4096
> log4j.appender.RA.Threshold=warn
>  
> # Direct log messages to stdout
> log4j.appender.CA=org.apache.log4j.ConsoleAppender
> log4j.appender.CA.layout=org.apache.log4j.PatternLayout
> log4j.appender.CA.layout.ConversionPattern=[%d{dd/MMM/yyyy 
> HH:mm:ss:SSS}] %-5p %c -> %m%n log4j.appender.CA.Target=System.out
> log4j.appender.cA.Threshold=all
>  
> # Direct log messages to a log xml
> log4j.appender.XMLRA=org.apache.log4j.RollingFileAppender
> log4j.appender.XMLRA.layout=org.apache.log4j.xml.XMLLayout
> log4j.appender.XMLRA.File=c:\\Oracle\\Middleware\\user_projects\\domai
> ns\\bpm\\servers\\BPMServer\\logs\\OBPMConnectorWebService.xml
> log4j.appender.XMLRA.append=true
> log4j.appender.XMLRA.rollingPolicy=org.apache.log4j.rolling.FixedWindo
> wRollingPolicy log4j.appender.XMLRA.rollingPolicy.maxIndex=100
> log4j.appender.XMLRA.triggeringPolicy=org.apache.log4j.rolling.SizeBas
> edTriggeringPolicy 
> log4j.appender.XMLRA.triggeringPolicy.MaxFileSize=20MB
> log4j.appender.XMLRA.BufferedIO=true
> log4j.appender.XMLRA.ImmediateFlush=false
> log4j.appender.XMLRA.BufferSize=4096
>  
> ----------------------------------------------------------------------
> -----
>  
> Before using "log4j.properties" I set all this properties by code Both 
> the coded version as with the 1st "log4j.properties" file version, works fine outside WebLogic. I mean it worked with an application launched from the OS console.
>  
>  
> I 'm using a wrong version of Log4J? I have to use the "log4j.xml" file instead for a Web application?
> May be I have to change the roll over by time?
>  
> Please I need some help and I have no response at Oracle WebLogic 
> Forum
>  
> Regards
> Jordán
>  
>  
> Jordán Eduardo Moisés
> 
> Av Belgrano 768 - piso 5 depto I
> C.P: C1092AAU
> Buenos Aires - Argentina
> Teléfono: (54 11) 5256-4060
> Móvil: (54 9 11) 5751-1359
> Web: www.kennen-consulting.com
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message