In our project we have faced the same issue. We noticed that on our pod the home path variable was not set and that docx4j was trying to write in /root directory where docx4j had no access to create the .docx4j folder.