Page 1 of 1

java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Thu Mar 17, 2022 3:05 pm
by apafalcao18
Hello guys,

Has anyone had the problem below?

java.io.IOException: Object: Cannot open file Model/FESCyclingModel.osim. It may not exist or you do not have permission to read it. Thrown at Object.cpp:105 in Object(). at org.opensim.modeling.opensimSimulationJNI.new_Model__SWIG_1(Native Method) at org.opensim.modeling.Model.<init>(Model.java:821)

Re: java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Thu Mar 17, 2022 3:49 pm
by tkuchida
The exception is thrown from line 105 of object.cpp: https://github.com/opensim-org/opensim- ... t.cpp#L102. The file cannot be read. Perhaps the file does not exist, it resides on a directory to which OpenSim does not have access (e.g., in Program Files if you are using a Windows machine), or the file is locked by another program (sharing violation).

Re: java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Sun Mar 27, 2022 6:11 pm
by apafalcao18
Thanks Thomas, I'll check. :D

Re: java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Mon Apr 11, 2022 2:40 pm
by apafalcao18
Hi Thomas,

I already reinstalled Opensim following the tutorial (https://simtk-confluence.stanford.edu:8 ... ith+Matlab).

I did the installation in public folders, the simulation files are in Windows public folders, however, the error persists, do you have any idea what it could be?

I've had this problem for days and I can't solve it.

Note: I have already reinstalled Windows and Matlab =/

Thank you in advance for your attention.

Re: java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Mon Apr 11, 2022 3:12 pm
by tkuchida
Some things you might want to try to narrow down the issue: Does the model open in the GUI and are any warnings or errors displayed? Do other models open in Matlab or do all models fail to open?

Re: java.io.IOException (It may not exist or you do not have permission to read it)

Posted: Sat Apr 16, 2022 7:12 am
by apafalcao18
Hello John,

Thanks for your feedback once again! :D

I managed to find the error, it was in the Matlab Path, it was finding ambiguity in the functions it was using for the simulations, after correcting the Path problems it returned to work normally.

Thank you!