Hi Christian

I am glad to help you, . . . if I can, at least I like to make you aware about 
my observations and what I have found so far.

I am on NetBeans 7.1.2 on a Vista System
$ mvn install
fails with the CoreTestSuite

looking closer at testing  ...

First, I assume that each test(-case) is self contained and hence can be run in 
any order. 
Correct me if I am wrong.

Then I like to know a bit about the testing philosophy of log4j 
i.e. - is ant or maven the main test driver?

Because I made the following observation and I do not know how log4j developers 
intend to handle this.
doing 
$ mvn -Dtest=org.apache.log4j.EnhancedPatternLayoutTestCase test
from a dos window or any other cmd window should run the defined test case but 
does not!

However when I select a test case from NB and do a test file or debug test file 
the test file gets executed
and fails or passes. 

Doing so causes a different problem:

*** Many test file operation fails because the path to test resources is set 
wrong using NB ***
*** i.e. witness/serialization/info.bin etc instead of 
tests/witness/serialization/info.bin ***
*** however this is only true if the test is selected from NetBeans, while 
executing it 
from maven, the maven-surefire-plugin has it's working directory set to "tests" 
in pom.xml, which, 
I guess, acts like a "cd tests" and makes the default for path for FileIO. 
However, NetBeans as an IDE
is absolute unhappy with that.  I got many test running test just correcting 
the paths to resources
i.e. witness to tests/witness,   input to tests/input,   output to 
tests/output, ....  and so on.
But this makes the current maven ant setup unhappy.

Maybe I miss something or do not understand how to setup NetBeans to behave on 
that aspect like maven/ant.

***

Anyway looking closer what fails - I decided to take one by one.
I select the CoreTestSuite.java and RMB down and then executed  DebugTestFile

CoreTestSuite resulted in the output attached to this e-mail as 
CoreTestSuite.txt

***

When I select the project node, then RMB down and Test to execute all test, 
the CoreTestSuit fails at SMTPAppenderTest

    [junit] Testcase: testTrigger took 0.023 sec
    [junit]     Caused an ERROR
    [junit] javax/mail/MessagingException
    [junit] java.lang.NoClassDefFoundError: javax/mail/MessagingException
    [junit]     at java.lang.Class.getDeclaredConstructors0(Native Method)
    [junit]     at 
java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    [junit]     at java.lang.Class.getConstructor0(Class.java:2699)
    [junit]     at java.lang.Class.newInstance0(Class.java:326)
    [junit]     at java.lang.Class.newInstance(Class.java:308)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:247)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:176)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:191)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:523)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:492)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:1006)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:872)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
    [junit]     at 
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:896)

    [junit]     at 
org.apache.log4j.net.SMTPAppenderTest.testTrigger(SMTPAppenderTest.java:57)

    [junit] Caused by: java.lang.ClassNotFoundException: 
javax.mail.MessagingException
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [junit]     ... 32 more

    [junit] Testcase: testIt took 1.424 sec

When I select the SMTPAppenderTest.java File and execute a single test using 
NetBeans, it failed 
with a FileNotFoundException at the DOMConfiguration Line below. (Line 57 as 
above) 
    /**
     * Tests that triggeringPolicy element will set evaluator.
     */
  public void testTrigger() {
      DOMConfigurator.configure("input/xml/smtpAppender1.xml");
      SMTPAppender appender = (SMTPAppender) 
Logger.getRootLogger().getAppender("A1");
      TriggeringEventEvaluator evaluator = appender.getEvaluator();
      assertTrue(evaluator instanceof MockTriggeringEventEvaluator);
  }

So I make the path absolute and re-run the single test, and it performs OK
    /**
     * Tests that triggeringPolicy element will set evaluator.
     */
  public void testTrigger() {
      
DOMConfigurator.configure("/E:asf/logging/log4j/tags/v1_2_17/tests/input/xml/smtpAppender1.xml");
      SMTPAppender appender = (SMTPAppender) 
Logger.getRootLogger().getAppender("A1");
      TriggeringEventEvaluator evaluator = appender.getEvaluator();
      assertTrue(evaluator instanceof MockTriggeringEventEvaluator);
  }

With configuration like that I re-run all test as said above and run into 
    [junit] Testcase: testTrigger took 0.012 sec
    [junit]     Caused an ERROR
    [junit] null
    [junit] java.lang.NullPointerException
    [junit]     at 
org.apache.log4j.net.SMTPAppenderTest.testTrigger(SMTPAppenderTest.java:60)

    [junit] Testcase: testIt took 1.419 sec
as shown above.

I do not have an explanation for that.



So far for the moment.
Any thoughts from you or any other developer is very welcome but in general in 
which direction testing 
should develop to support maven ant and IDE's like NetBeans

Josef










-----Ursprüngliche Nachricht-----
Von: Christian Grobmeier [mailto:grobme...@gmail.com] 
Gesendet: Montag, 2. Juli 2012 15:27
An: Log4J Users List
Betreff: Re: [log4j-1.2.17] build problem - Failure authenticating with NTLM 
<any realm>@bcproxyserver.ch.

Hello Josef,

On Mon, Jul 2, 2012 at 11:31 AM, Stadelmann Josef
<josef.stadelm...@axa-winterthur.ch> wrote:
> your are correct I just attempted to do a
> $ mvn install
>
> The next step will be a closer look at which test actually failes and why
> it is attempting to reach out through our bcproxyserver.ch.winterthur.com:8080
> firewall server without using http.proxyUser and http.proxyPassword properly.
>
> So I just attempted a $ mvn install

in this case, please look at the link:
http://logging.apache.org/log4j/1.2/building.html

My guess is that you are running into trouble with the DLL building.
Please search the page above for "NTEventLogAppender.dll" and check if
you have followed the instructions there.

We are glad if you would report everything you find which we have
missed - thank you!
In addition I would like to point you to log4j 2.0 which is alpha:
loggingtest.apache.org/log4j/2.x/
(temporary link)

Cheers
Christian

>
> I do not want a binary, I'll re-do it all from source and get my packages
> built for operation.
>
> Josef
>
>
> -----Ursprüngliche Nachricht-----
> Von: Christian Grobmeier [mailto:grobme...@gmail.com]
> Gesendet: Donnerstag, 28. Juni 2012 16:27
> An: Log4J Users List
> Betreff: Re: [log4j-1.2.17] build problem - Failure authenticating with NTLM 
> <any realm>@bcproxyserver.ch.
>
> Hello,
>
> On Tue, Jun 26, 2012 at 5:39 PM, Stadelmann Josef
> <josef.stadelm...@axa-winterthur.ch> wrote:
>> During
>> $ mvn build
>> of log4j-1.2.17 under NetBeans on a Vista PC I get the following.
>
> sorry, did you mean mvn package?
>
>> [ INFO] Failure authenticating with NTLM <any
>> realm>@bcproxyserver.ch.winterthur.com:8080
>
> Not sure why you are running into this and what it actually means.
> Can you please tell me what you want achieve? Maybe we can find it out
> that way round.
>
> Maybe this might help you:
> http://logging.apache.org/log4j/1.2/building.html
>
> The log4j 1.2.17 build is a bit horrible as you can see on that page.
> We are currently cleaning it up. That bein said I have heard of some
> people who had trouble with building log4j on windows machines, but
> there are also people who succeeded. If you just want to get a binary,
> why aren't you downloading the standard packages? If you tell me your
> goal, I might find some time to set up a windows box and look into it.
>
> Cheers
> Christian
>
>> Can sombody tell me what I have to enter as <any relam> as username
>> C770817 and password to make the NTLM cycle go;
>> I just need to know the proper format and where to include this
>> information into the builds system, i.e pom.xml or the like.
>>
>> Josef
>
>
>
> --
> http://www.grobmeier.de
> https://www.timeandbill.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

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

Testsuite: org.apache.log4j.CoreTestSuite
log4j:ERROR Could not read configuration file [output/badescape.properties].
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:373)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at 
org.apache.log4j.PropertyConfiguratorTest.testBadUnicodeEscape(PropertyConfiguratorTest.java:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file [output/badescape.properties].
log4j:ERROR Could not read configuration file from URL 
[file:/E:/asf/logging/log4j/tags/v1_2_17/output/urlbadescape.properties].
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:558)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:415)
        at 
org.apache.log4j.PropertyConfiguratorTest.testURLBadEscape(PropertyConfiguratorTest.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file 
[file:/E:/asf/logging/log4j/tags/v1_2_17/output/urlbadescape.properties].
log4j:ERROR Could not read configuration file [input/filter1.properties].
java.io.FileNotFoundException: input\filter1.properties (The system cannot find 
the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at 
org.apache.log4j.PropertyConfiguratorTest.testNested(PropertyConfiguratorTest.java:315)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file [input/filter1.properties].
log4j:ERROR Could not parse file [input/xml/smtpAppender1.xml].
java.io.FileNotFoundException: 
E:\asf\logging\log4j\tags\v1_2_17\input\xml\smtpAppender1.xml (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
        at 
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
        at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
        at 
org.apache.log4j.xml.DOMConfigurator$1.parse(DOMConfigurator.java:749)
        at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
        at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
        at 
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:896)
        at 
org.apache.log4j.net.SMTPAppenderTest.testTrigger(SMTPAppenderTest.java:57)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.008 CEST
?., ?.?. 03, 02:00:00.008 CEST
log4j:ERROR Unrecognized format specifier []
log4j:ERROR Empty conversion specifier starting at position 2 in conversion 
pattern.
log4j:ERROR Unrecognized format specifier []
log4j:ERROR Empty conversion specifier starting at position 6 in conversion 
pattern.
log4j:ERROR Unrecognized format specifier [bogus]
log4j:ERROR Unrecognized conversion specifier [bogus] starting at position 6 in 
conversion pattern.
Tests run: 503, Failures: 1, Errors: 20, Time elapsed: 34.676 sec

------------- Standard Output ---------------
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.000 CEST
?., ?.?. 03, 02:00:00.008 CEST
?., ?.?. 03, 02:00:00.008 CEST
------------- ---------------- ---------------
------------- Standard Error -----------------
log4j:ERROR Could not read configuration file [output/badescape.properties].
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:373)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at 
org.apache.log4j.PropertyConfiguratorTest.testBadUnicodeEscape(PropertyConfiguratorTest.java:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file [output/badescape.properties].
log4j:ERROR Could not read configuration file from URL 
[file:/E:/asf/logging/log4j/tags/v1_2_17/output/urlbadescape.properties].
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Properties.java:552)
        at java.util.Properties.load0(Properties.java:375)
        at java.util.Properties.load(Properties.java:325)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:558)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:415)
        at 
org.apache.log4j.PropertyConfiguratorTest.testURLBadEscape(PropertyConfiguratorTest.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file 
[file:/E:/asf/logging/log4j/tags/v1_2_17/output/urlbadescape.properties].
log4j:ERROR Could not read configuration file [input/filter1.properties].
java.io.FileNotFoundException: input\filter1.properties (The system cannot find 
the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
        at 
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at 
org.apache.log4j.PropertyConfiguratorTest.testNested(PropertyConfiguratorTest.java:315)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Ignoring configuration file [input/filter1.properties].
log4j:ERROR Could not parse file [input/xml/smtpAppender1.xml].
java.io.FileNotFoundException: 
E:\asf\logging\log4j\tags\v1_2_17\input\xml\smtpAppender1.xml (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at 
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
        at 
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
        at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
        at 
org.apache.log4j.xml.DOMConfigurator$1.parse(DOMConfigurator.java:749)
        at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:871)
        at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:755)
        at 
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:896)
        at 
org.apache.log4j.net.SMTPAppenderTest.testTrigger(SMTPAppenderTest.java:57)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
log4j:ERROR Unrecognized format specifier []
log4j:ERROR Empty conversion specifier starting at position 2 in conversion 
pattern.
log4j:ERROR Unrecognized format specifier []
log4j:ERROR Empty conversion specifier starting at position 6 in conversion 
pattern.
log4j:ERROR Unrecognized format specifier [bogus]
log4j:ERROR Unrecognized conversion specifier [bogus] starting at position 6 in 
conversion pattern.
------------- ---------------- ---------------
Testcase: testSerializationSimple(org.apache.log4j.spi.LoggingEventTest):       
Caused an ERROR
witness\serialization\simple.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\simple.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationSimple(LoggingEventTest.java:59)


Testcase: 
testSerializationWithException(org.apache.log4j.spi.LoggingEventTest):        
Caused an ERROR
witness\serialization\exception.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\exception.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationWithException(LoggingEventTest.java:78)


Testcase: testSerializationWithLocation(org.apache.log4j.spi.LoggingEventTest): 
Caused an ERROR
witness\serialization\location.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\location.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationWithLocation(LoggingEventTest.java:97)


Testcase: testSerializationNDC(org.apache.log4j.spi.LoggingEventTest):  Caused 
an ERROR
witness\serialization\ndc.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\ndc.bin (The system cannot 
find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationNDC(LoggingEventTest.java:116)


Testcase: testSerializationMDC(org.apache.log4j.spi.LoggingEventTest):  Caused 
an ERROR
witness\serialization\mdc.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\mdc.bin (The system cannot 
find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationMDC(LoggingEventTest.java:135)


Testcase: testDeserializationSimple(org.apache.log4j.spi.LoggingEventTest):     
Caused an ERROR
witness\serialization\simple.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\simple.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationSimple(LoggingEventTest.java:145)


Testcase: 
testDeserializationWithException(org.apache.log4j.spi.LoggingEventTest):      
Caused an ERROR
witness\serialization\exception.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\exception.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationWithException(LoggingEventTest.java:161)


Testcase: 
testDeserializationWithLocation(org.apache.log4j.spi.LoggingEventTest):       
Caused an ERROR
witness\serialization\location.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\location.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationWithLocation(LoggingEventTest.java:177)


Testcase: testSerializeINFO(org.apache.log4j.LevelTest):        Caused an ERROR
witness\serialization\info.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\info.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at org.apache.log4j.LevelTest.testSerializeINFO(LevelTest.java:48)


Testcase: testDeserializeINFO(org.apache.log4j.LevelTest):      Caused an ERROR
witness\serialization\info.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\info.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at org.apache.log4j.LevelTest.testDeserializeINFO(LevelTest.java:57)


Testcase: testSerializationSimple(org.apache.log4j.spi.LoggingEventTest):       
Caused an ERROR
witness\serialization\simple.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\simple.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationSimple(LoggingEventTest.java:59)


Testcase: 
testSerializationWithException(org.apache.log4j.spi.LoggingEventTest):        
Caused an ERROR
witness\serialization\exception.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\exception.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationWithException(LoggingEventTest.java:78)


Testcase: testSerializationWithLocation(org.apache.log4j.spi.LoggingEventTest): 
Caused an ERROR
witness\serialization\location.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\location.bin (The system 
cannot find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationWithLocation(LoggingEventTest.java:97)


Testcase: testSerializationNDC(org.apache.log4j.spi.LoggingEventTest):  Caused 
an ERROR
witness\serialization\ndc.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\ndc.bin (The system cannot 
find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationNDC(LoggingEventTest.java:116)


Testcase: testSerializationMDC(org.apache.log4j.spi.LoggingEventTest):  Caused 
an ERROR
witness\serialization\mdc.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\mdc.bin (The system cannot 
find the path specified)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at 
org.apache.log4j.util.SerializationTestHelper.assertStreamEquals(SerializationTestHelper.java:144)
        at 
org.apache.log4j.util.SerializationTestHelper.assertSerializationEquals(SerializationTestHelper.java:97)
        at 
org.apache.log4j.spi.LoggingEventTest.testSerializationMDC(LoggingEventTest.java:135)


Testcase: testDeserializationSimple(org.apache.log4j.spi.LoggingEventTest):     
Caused an ERROR
witness\serialization\simple.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\simple.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationSimple(LoggingEventTest.java:145)


Testcase: 
testDeserializationWithException(org.apache.log4j.spi.LoggingEventTest):      
Caused an ERROR
witness\serialization\exception.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\exception.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationWithException(LoggingEventTest.java:161)


Testcase: 
testDeserializationWithLocation(org.apache.log4j.spi.LoggingEventTest):       
Caused an ERROR
witness\serialization\location.bin (The system cannot find the path specified)
java.io.FileNotFoundException: witness\serialization\location.bin (The system 
cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at 
org.apache.log4j.util.SerializationTestHelper.deserializeStream(SerializationTestHelper.java:73)
        at 
org.apache.log4j.spi.LoggingEventTest.testDeserializationWithLocation(LoggingEventTest.java:177)


Testcase: testInputStream(org.apache.log4j.PropertyConfiguratorTest):   FAILED
null
junit.framework.AssertionFailedError
        at 
org.apache.log4j.PropertyConfiguratorTest.testInputStream(PropertyConfiguratorTest.java:104)


Testcase: testNested(org.apache.log4j.PropertyConfiguratorTest):        Caused 
an ERROR
null
java.lang.NullPointerException
        at 
org.apache.log4j.PropertyConfiguratorTest.validateNested(PropertyConfiguratorTest.java:119)
        at 
org.apache.log4j.PropertyConfiguratorTest.testNested(PropertyConfiguratorTest.java:316)


Testcase: testTrigger(org.apache.log4j.net.SMTPAppenderTest):   Caused an ERROR
null
java.lang.NullPointerException
        at 
org.apache.log4j.net.SMTPAppenderTest.testTrigger(SMTPAppenderTest.java:59)


Test org.apache.log4j.CoreTestSuite FAILED
test:
Deleting: 
C:\Users\C770817\AppData\Local\Temp\TEST-org.apache.log4j.CoreTestSuite.xml
BUILD SUCCESSFUL (total time: 35 seconds)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to