Hi:
        I have been trying to use the log4j features in my program, but I
cannot get by this error.  I am using JDK1.4, JBoss App server 2.2 and
JBuilder5.0 on a Windows 2K platform.  My program :

public class MessagePump
{
  private static Category cat = Category.getInstance(
MessagePump.class.getName( ));

        << snip >>

  public static void main(String[] args)
  {
    try
    {
      PropertyConfigurator.configure( args[0] );
      cat.error("This is a test");

        << snip >>

    }
    catch( Exception e )
    {
      System.out.println( "Received an exception" + e.getMessage( ));
    }
  }
}

Gives me the following error and stack trace:

java.lang.NoSuchMethodError:
org.apache.log4j.spi.LoggingEvent.getThrowableStrRep()[Ljava/lang/String;
        at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:298)
        at org.apache.log4j.WriterAppender.append(WriterAppender.java:157)
        at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
        at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:56)
        at org.apache.log4j.Category.callAppenders(Category.java:258)
        at org.apache.log4j.Category.forcedLog(Category.java:454)
        at org.apache.log4j.Category.error(Category.java:367)
        at
com.octavecomm.dvb.core.csm.messagepump.MessagePump.main(MessagePump.java:32
0)
Exception in thread "main" 

Even though I get an exception, I do not enter my catch handler.  I have
used my own lcf file and one from the examples with the same results.  This
exception is coming from the cat.XXXX call.  It can be an info, debug,
etc.... with the same results.  I can get the BasicConfigurator running, but
I need more information in my logs.  ANY help would be greatly appreciated.

THANKS
Dennis

   Octave Communications Incorporated

Dennis Duggan            E-MAIL:mailto:[EMAIL PROTECTED]>
85 Northwest Blvd.          Voice:(603)459-5244
Nashua, NH               WEB:<http://www.octavecomm.com/>

   When you stretch a mind with a new idea,
      it will never shrink back to its
              original dimensions.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to