File Not Found Exception

0
Hi Mendix Community    I had a problem calling a Java action from the deployed app. The error shows that this  “MendixRuntimeException: java.io.FileNotFoundException: “File Name” (Permission denied)   The weird thing is that the Java action works fine and has no error locally, once I deployed the app and tried to call the function, the app crashed and showed an error.   Could you please help me to how can I solve the error? Thank you
asked
2 answers
0

Hi Pratima,

 

Where are you reading/writing the file, because locally you would have more permissions to access files than the Mendix app would have on a deployed environment.

 

If you need something temporary to read/write you can consider the TempPath

https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/conf/Configuration.html#getTempPath or the Resources folder (use CommunityCommons GetFileContentsFromResource to access that file).

 

Maybe you can share a bit more what you are trying to achieve and why you need that specific approach

answered
0

I also have this problem, did you solve it?

answered