Workload Automation DE: log4j:ERROR Could not create an Appender
search cancel

Workload Automation DE: log4j:ERROR Could not create an Appender

book

Article ID: 221139

calendar_today

Updated On:

Products

CA Workload Automation DE CA Workload Automation DE - Scheduler (dSeries)

Issue/Introduction

We are unable to login to DE Server via the Desktop Client.

# cat errors.txt
20210805 08:32:03.832 [essential] [ERROR] main: [2021-08-05_08:32:03.832] Uncaught Exception in Thread[main,5,main]
java.lang.NullPointerException
at java.util.Collections.list(Collections.java:5293)
at com.ca.wa.core.engine.log.LogManager.<init>(LogManager.java:102)
at com.ca.wa.core.engine.log.LogManager.getInstance(LogManager.java:135)
at com.ca.wa.core.engine.bootstrap.ServerMain.logProperties(ServerMain.java:1918)
at com.ca.wa.core.engine.bootstrap.ServerMain.main(ServerMain.java:380)
 
 
log4j:ERROR Could not create an Appender. Reported error follows.
java.lang.NullPointerException
at com.ca.wa.core.engine.log.buffer.BufferFileAppender.openNewFile(BufferFileAppender.java:393)
at com.ca.wa.core.engine.log.buffer.BufferFileAppender.activateOptions(BufferFileAppender.java:372)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:295)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:436)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1004)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:778)
at com.ca.wa.core.engine.log.LogConfigurator.doConfigure(LogConfigurator.java:125)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at com.ca.wa.core.engine.log.LogId.<init>(LogId.java:413)
at com.ca.wa.core.engine.log.LogId.<clinit>(LogId.java:32)
at com.ca.wa.core.engine.log.LogUtils.Tlogmsg(LogUtils.java:610)
at com.ca.wa.core.engine.bootstrap.ServerMain.loadCommandLineProperties(ServerMain.java:710)
at com.ca.wa.core.engine.bootstrap.ServerMain.loadProperties(ServerMain.java:470)
at com.ca.wa.core.engine.bootstrap.ServerMain.main(ServerMain.java:272)
log4j:WARN No appenders could be found for logger (buffer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Environment

Release : 12.3

Component : CA WORKLOAD AUTOMATION DE (DSERIES)

Cause

Workload Automation DE Server unable to write or create new buffer log file due to ../buffer/index.xml file in Server logs directory is empty and/or corrupted.

Resolution

Steps:

1. Change directory to <DE_INSTALLDIR>/logs sub-directory

2. Rename/remove buffer sub-directory or /buffer/index.xml file

3. Restart DE Server

New buffer directory or index file is created using the server log4j configuration in <DE_INSTALLDIR>/conf/server.log4j XML file.