avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: NPE at FileTarget...
Date Fri, 03 Aug 2001 04:18:26 GMT
You will want to use the last released version of LogKit until
Peter gets done with his adjustments to LogKit

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.jav
> a:96)
>  at
> org.zact.idk.datasource.DataSourceFactory.getInstance(DataSourceFactory.java
> :65)
>  at
> org.zact.idk.datasource.DataSourceFactory.getDataSource(DataSourceFactory.ja
> va:40)
>  at
> org.zact.idk.datasource.test.DataSourceTest.testDataSource(DataSourceTest.ja
> 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: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message