In relation to this error you are getting -> writetofile service which is throwing the error com.wm.app.b2b.server.ServiceException: IOException in CommonServices.utilities.fileIO:writeFile Too many open files
Reason can be:
- Once a file has been created and opened for manipulation, please make sure to close it when done.
** This is also true in Java IO - first open the file to work on and then save and close after.
If you are sure that the file has been closed after manipulation,
- Do you have a loop or recursive calls in your codes? Or it could be that this service is called/referenced repeatedly by other service/s?
** You can put some debugLogs in between calls to your writeToFile for you to see how many times the code is executed.
If the above doesnt help, kindly provide me with a more detailed information.
- By executing your codes, what exactly needs to happen?
- If you can give the code fragment that’s throwing the Exception and the actual writeToFile related codes, it can give me a clue to better understand what’s going on.
Hope this helps.