[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    log4j:ERROR Attempted to append to closed appender named [B3A]
From:       Pradeep.Ravle () misys ! com
Date:       2003-02-26 11:33:16
[Download RAW message or body]

Hi,

I am getting the following error when using log4j

log4j:ERROR Attempted to append to closed appender named [B3A]


This is happening when two process are simultaneously trying to log into
the system.
There is only one logger class for these process. The code for called
logger is
          try {
               PropertyConfigurator.configure(configFileResource);
          } catch (NullPointerException ne) {
               System.out.println("Logger.property file missed. - " +
INTERNAL_ERROR);
               throw new B3Exception(INTERNAL_ERROR);
          }

          getLogger(logObj.ClassName);

          B3Appender ap = null;

          try {
               ap = (B3Appender) logger.getAllAppenders().nextElement();

          } catch (NoSuchElementException e) {
               logger = Logger.getRootLogger();
               try {
                    ap = (B3Appender) logger.getAllAppenders().nextElement
();
               } catch (NoSuchElementException e1) {
                    System.out.println(
                         "Logger.property file Root Logger entry missed - "
+ INTERNAL_ERROR);
                    throw new B3Exception(INTERNAL_ERROR);
               }

Can you suggest possible remedy for this problem.



----------------------------------------------------------------------------------------------------------------
 Misys International Financial Systems Pvt Ltd
9th Floor Innovator Building
International Tech Park
Whitefield Road
Bangalore - 560 066 India

T  + 91 (0) 80 841 0666
F  + 91 (0) 80 841 0695

www.misys.com

This email message is intended for the named recipient only. It may be privileged \
and/or confidential. If you are not the intended named recipient of this email then \
you should not copy it or use it for any purpose, nor disclose its contents to any \
other person. You should contact Misys International Financial Systems at the address \
given above so that we can take appropriate action at no cost to yourself.

Misys International Financial Systems Pvt. Ltd. is part of Misys International \
Banking Systems (Misys-IBS) a member of the Misys Group of Companies.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic