Hello,
What should the permissions be for the log4j output file on a Windows machine?
Here is the error I am getting:
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: cojack_log4j.log (Access is denied)
The complete stack trace is included as the attachment.
I am using log4j-1.2.16 since this version was included in a commercial Java
software product.
There is also another file included as an attachment serving as a configuration
file. Again, this file was included with the product installation.
Here is the configuration file contents:
log4j.rootLogger=DEBUG, outputfile
log4j.appender.standardconsole=org.apache.log4j.ConsoleAppender
log4j.appender.standardconsole.layout=org.apache.log4j.PatternLayout
log4j.appender.standardconsole.layout.ConversionPattern=%d [%c] %-5p - %m%n
log4j.appender.outputfile=org.apache.log4j.FileAppender
log4j.appender.outputfile.file=cojack_log4j.log
log4j.appender.outputfile.layout=org.apache.log4j.PatternLayout
log4j.appender.outputfile.layout.ConversionPattern=%d [%c@%t] %-5p - %m%n
log4j.appender.logfactor=org.apache.log4j.lf5.LF5Appender
Your assistance would be appreciated.
Regards,
William Johnston
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: cojack_log4j.log (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
at
org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:428)
at aos.cojack.util.CjLogger.initialize(Unknown Source)
at aos.cojack.CoJack.startupPlatform(Unknown Source)
at aos.cojack.configuration.JvmConfiguration.getInstance(Unknown Source)
at aos.cojack.configuration.JvmConfiguration.getProperty(Unknown Source)
at aos.cojack.jenablers.taskmanager.ExtendedPrioTManager.<init>(Unknown
Source)
at aos.cojack.base.CatMan.<init>(Unknown Source)
at affective.GeorgeAffective.createTaskManager(GeorgeAffective.java:100)
at aos.jack.jak.agent.Agent.<init>(XXXX.java:718)
at affective.GeorgeAffective.<init>(GeorgeAffective.java:22)
at Program.main(Program.java:6)
Task terminated because of uncaught exception --
aos.jack.jak.logic.LogicException: LogicException: as_double(): attempt to
access unbound variable
-- Initiated by:
EmotionEvent 3a87ad3e:0-- affective/EmotionEvent.event [SUBTASK]
-- Thrown by:
PlanFSM:EmotionPlan$__bodyFSM 5a3c08ab:0
affective/EmotionEvent.event [SUBTASK]
BDIGoalBehavior [SUBTASK]
affective/EmotionPlan.plan:37 body [10]
aos.jack.jak.logic.LogicException: LogicException: as_double(): attempt to
access unbound variable
at aos.jack.jak.logic.Unifiable.logicException(XXXX.java:30)
at aos.jack.jak.logic.Variable.as_double(XXXX.java:628)
at aos.jack.jak.logic.DoubleVariable.getValue(XXXX.java:46)
at affective.EmotionPlan$__bodyFSM.run(EmotionPlan.java:298)
at aos.jack.jak.task.Task.process(XXXX.java:533)
at aos.jack.jak.agent.Agent.oxMDrMvO(XXXX.java:1502)
at aos.jack.jak.agent.Agent.oCP0CzWO(XXXX.java:1908)
at aos.jack.jak.agent.Agent.run(XXXX.java:1868)
at aos.jack.jak.scheduler.oCWOPvOl.run(XXXX.java:139)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]