Login  Register

Caught Exception while retrieving executable temp base directory

classic Classic list List threaded Threaded
22 messages Options Options
Embed post
Permalink
12
MQL
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Caught Exception while retrieving executable temp base directory

MQL
1 post
This question was posed a while back, but we also just ran into this error.  Posting what our issue was in case someone else is searching on this in the future.

We got this error because Java's getSubTempDir() was trying to find a temp directory that it could run executable files from.  It wanted to use c:\users\<user>\appdata\local\temp.  It was creating a batch file and trying to run it from that folder as a test.  The test .bat was unsuccessful in running because our our Group Policy was set to allow executables to run from c:\users\<user>\appdata\local\temp, but script files such as .bat files were not allowed to run from that folder (setup via Group Policy App Locker settings).  Updating our Group Policy App Locker settings to allow script files to be run from c:\users\*\appdata\local\temp\* fixed the issue for us.

So, if you get this error, maybe make sure that there aren't any restrictions running .exe's and .bat's from c:\users\<user>\appdata\local\temp.  getSubTempDir() was also wanting to create a sub folder off c:\users\<user>\appdata\local\temp.  That wasn't a problem for us, but something else to maybe check if you run into this.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Caught Exception while retrieving executable temp base directory

gouessej
Administrator
6039 posts
Thank you for the feedback, this is typically what we should mention in the wiki.
Julien Gouesse | Personal blog | Website
12