Java Exception: Error while write to file:java.lang.SecurityException: Directory Creation Failed (6 3,49)
Are facing a posting issue with the Process Scheduler Posting and getting the following error:
Java Exception: Error while write to file:java.lang.SecurityException: Directory Creation Failed (63,49)
The error is obvious but unfortunately, it does not provide hint regarding the root cause of the issue and you may waste a lot of time, so hoepfully, this post would be able to help and save you time!
Personally, I faced this issue in a non-production environment after refresh from production. All the processes will go to Success – Not Posted and the logs will display a similar message.
How to Resolve Java Exception: Error while write to file:java.lang.SecurityException: Directory Creation Failed (6 3,49)
The error obviously is security related – process scheduler user is unable to create a directory in the Report Repository.
So, the first thing you may want to check is whether the user under which the PeopleSoft Process Scheduler runs – whether or not it has write privileges on the Report Repository location.
Secondly, pay attention to the location where the reports are getting posted to. To do this, you need to look at two places.
- Have a look at configuration.properties file of your PIA domain. If you have specified a path in configuration.properties file, it will show up against the variable ReportRepositoryPath. When you install PIA, you provide the Report Repository location and that is what shows up in the configuration.properties file.
- However, the location provided in configuration.properties file is used only if the location in Web Profile is blank. So, make sure that the location mentioned in the Web Profile is correct and PeopleSoft Process Scheduler user can write to that directory. In my case, there was a typo in the location mentioned in the web profile!