You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Ma...@pass-consulting.com on 2003/06/17 22:28:47 UTC

segmentation fault on linux suse 7.2 with log4j 1.2.8

Hi,

i am trying to use the log4j under linux with java 1.3.1_08. i have an
xml file for log4j configuration.


package log4j;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.xml.DOMConfigurator;

public class MyLog4j {
  static Logger logger = Logger.getLogger(MyLog4j.class);

  public MyLog4j() {
    logger.debug("what's up");
    test();
  }

  public void test() {
    try {
      logger.fatal("test [" + this.getClass().getName() + "]");
    }
    catch(Exception exp) {
      logger.fatal("error", exp);
    }
 }

  public static void main(String[] args) {
     DOMConfigurator.configure(args[0]);
    logger.info("Entering application.");
    MyLog4j myLog4j1 = new MyLog4j();
    logger.info("Exiting application.");
  }
}

by starting this class i get an segmentation fault. without the
DOMConfiguration it is running perfectly. There is no matter that is in
the xml-config file.

this example works fine under solaris and windows.

thanks + regards,
markus


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.