Providing a zip of the project so I could test it would be better. I think the source code paste has something wrong - it doesn't look like the whole class is there.
That said, my guess is the NPE is similar to one reported earlier. They were running under Eclipse and it was finding the binding for both the test implementation in the API and the real implementation in core. That is on my list of things to fix. If that doesn't seem like it fits the problem you are encountering then please provide me with a sample project that I can build and run that exhibits this behavior. Ralph On Oct 15, 2012, at 9:21 PM, Peter DePasquale wrote: > I'm trying to use Log4j2 in a research project. I did manage to get > the simplest HelloWorld program using log4j2, but I can't seem to get > past an annoying NPE in one class in the larger project. > > I've used pastebin as follows. I welcome thoughts and help on this > issue. I really need a nice logging solution to track down a few nasty > bugs that are plaguing me, and I'm finally going whole hog here and > jumping into log4j2 (or trying to) for the whole project... > > Config file: http://pastebin.com/8cFbFejE > Source code: http://pastebin.com/aTmZfZMN > Runtime output: http://pastebin.com/H9R94PFg > > I've cut all methods from the source file below the first (start) > where my initial integration attempt is located. > > The program compiles fine. For my purposes, I'm building the app as a > jar file, and have expanded all of the listed jar files from log4j2 > and included that structure (and Log4J-V2.0.xsd as well...). > > Thanks for any help/insight into the NPE problem. > > -- > Peter J. DePasquale, Ph.D. > Department of Computer Science > The College of New Jersey > (e) depasqua [at] tcnj [dot] edu > (p) 609-771-2806 > (f) 609-637-5190 > (o) Holman Hall - Room 238 > (l) Holman Hall - Room 255 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
