You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Laxmilal Menaria <lm...@chambal.com> on 2007/05/24 14:12:33 UTC

Exception while Application run on CD/DVD

Hello everyone,

I am using Log4j for logging in my products. This is working fine on my hard
drive, all logging are works. But if copied my application on CD/DVD then
log4j gives exception, I want if log4j die then Application should works.

I am getting the following exception while running on CD/DVD;

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: Logs\MyInfo.log (Access is denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at org.apache.log4j.r.a(Unknown Source)
        at org.apache.log4j.r.f(Unknown Source)
        at org.apache.log4j.s.f(Unknown Source)
        at myapplication.a<init>(Unknown Source)
        at myapplication.main(Unknown Source)

Please suggest me..
-- 
Thanks,
Laxmilal menaria

http://www.minalyzer.com/
http://www.chambal.com/

Re: Exception while Application run on CD/DVD

Posted by James Stauffer <st...@gmail.com>.
Your config is probably setup to write a file to the CD which is read-only.

On 5/24/07, Laxmilal Menaria <lm...@chambal.com> wrote:
> Hello everyone,
>
> I am using Log4j for logging in my products. This is working fine on my hard
> drive, all logging are works. But if copied my application on CD/DVD then
> log4j gives exception, I want if log4j die then Application should works.
>
> I am getting the following exception while running on CD/DVD;
>
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: Logs\MyInfo.log (Access is denied)
>         at java.io.FileOutputStream.openAppend(Native Method)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at java.io.FileOutputStream.<init>(Unknown Source)
>         at org.apache.log4j.r.a(Unknown Source)
>         at org.apache.log4j.r.f(Unknown Source)
>         at org.apache.log4j.s.f(Unknown Source)
>         at myapplication.a<init>(Unknown Source)
>         at myapplication.main(Unknown Source)
>
> Please suggest me..
> --
> Thanks,
> Laxmilal menaria
>
> http://www.minalyzer.com/
> http://www.chambal.com/
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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