Error on my part. I assume destination is something like /mylogfile.txt (ie at root of filesystem). In which case it has no parent file but I wasnt guarding against that. Fixed in CVS.
On Fri, 3 Aug 2001 14:09, Eung-ju Park wrote: > FileTarget logTarget = new FileTarget( new File( destination ), false, new > AvalonFormatter() ); > > occur below exception. I use current cvs version of logkit. What's wrong? > > java.lang.NullPointerException > at org.apache.log.output.io.FileTarget.openFile(FileTarget.java:85) > at org.apache.log.output.io.FileTarget.<init>(FileTarget.java:45) > at > org.zact.idk.datasource.DataSourceFactory.createLogger(DataSourceFactory.ja >v a:96) > at > org.zact.idk.datasource.DataSourceFactory.getInstance(DataSourceFactory.jav >a > > :65) > > at > org.zact.idk.datasource.DataSourceFactory.getDataSource(DataSourceFactory.j >a va:40) > at > org.zact.idk.datasource.test.DataSourceTest.testDataSource(DataSourceTest.j >a va:29) > at java.lang.reflect.Method.invoke(Native Method) > at junit.framework.TestCase.runTest(TestCase.java:166) > at junit.framework.TestCase.runBare(TestCase.java:140) > 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:131) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestDecorator.run(TestDecorator.java:28) > at junit.extensions.RepeatedTest.run(RepeatedTest.java:25) > at > com.clarkware.junitperf.ThreadedTest$TestRunner.run(ThreadedTest.java:77) > at java.lang.Thread.run(Thread.java:484) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
