From time to time you have different deliveries executed via startdelivery script that fail with an error like this : log\com.indy.engine.%port.scheduler.log (Accès refusé)
                at Method)
                at org.apache.log4j.FileAppender.setFile(
                at org.apache.log4j.RollingFileAppender.setFile(
                at org.apache.log4j.FileAppender.activateOptions(
                at org.apache.log4j.config.PropertySetter.activate(
                at org.apache.log4j.xml.DOMConfigurator.parseAppender(
                at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(
                at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(
                at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(
                at org.apache.log4j.xml.DOMConfigurator.parseCategory(
                at org.apache.log4j.xml.DOMConfigurator.parse(
                at org.apache.log4j.xml.DOMConfigurator.doConfigure(
                at org.apache.log4j.xml.DOMConfigurator.doConfigure(
                at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
                at org.apache.log4j.LogManager.(
                at org.apache.log4j.Logger.getLogger(
                at com.indy.engine.Global.InitRessources(SourceFile:269)
                at com.indy.engine.StartDelivery.main(SourceFile:294)
com.indy.engine.common.exceptions.EngineExceptionI: Exception in getLstParametersInRepository
                at com.indy.engine.Global.InitRessources(SourceFile:366)
                at com.indy.engine.StartDelivery.main(SourceFile:294)
Caused by: java.lang.NullPointerException
                at com.indy.engine.Global.getFileAppenderNewFileName(SourceFile:1494)
                at com.indy.engine.Global.InitRessources(SourceFile:334)
                ... 1 more 


This can happen when there are multiple deliveries executed at the same time via startdelivery script.

To workaround this issue you have to modify the file log4j.xml that you will find in stambiaRuntime/properties folder.

You will need to remove %port mask from all the log file names (make sure to make a copy of the original file in case you need to reverse the changes), for example :

Before :
<param name="file" value="log/com.indy.engine.%port.scheduler.log"/>
After :
<param name="file" value="log/"/>

After this is done for all the file names in the log4j.xml, save the file and restart your runtime.

In the log folder of your runtime you should see that runtime is now writing to the new files without the runtime's port number in the name.