FileNotFoundException when running runRemote.bat
Hi guys,
I am facing this exception whenever I run the runRemote.bat file.
Exception in thread "main" java.lang.RuntimeException:
java.io.FileNotFoundException: C:\Users\Yao
Wee\Desktop\marketrunner-1.2.1\MarketRunner\eclipse\MyStrategies\src\com\marketrunner\strategies\advanced
(Access is denied)
at com.algodeal.marketrunner.runner.StrategyRemoteRunner.sendStrategyToBackTestServer(StrategyRemoteRunner.java:48)
at com.algodeal.MainStrategyRunner.runRemote(MainStrategyRunner.java:74)
at com.algodeal.MainStrategyRunner.mainNonStatic(MainStrategyRunner.java:172)
at com.algodeal.MainStrategyRunner.modularMain(MainStrategyRunner.java:159)
at com.algodeal.MainStrategyRunner.main(MainStrategyRunner.java:145)
Caused by: java.io.FileNotFoundException: C:\Users\Yao
Wee\Desktop\marketrunner-1.2.1\MarketRunner\eclipse\MyStrategies\src\com\marketrunner\strategies\advanced
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.springframework.core.io.FileSystemResource.getInputStream(FileSystemResource.java:110)
at com.algodeal.util.io.ResourceUtils.zip(ResourceUtils.java:56)
at com.algodeal.marketrunner.runner.StrategyRemoteRunner.createStrategyZipFile(StrategyRemoteRunner.java:109)
at com.algodeal.marketrunner.runner.StrategyRemoteRunner.sendStrategyToBackTestServer(StrategyRemoteRunner.java:33)
... 4 more
Seems that for certain files or folders access is denied. I'm
running Windows 7 x86 with marketrunner 1.2.1
Really not sure what's the root of the problem. Hope I can get some
help
Regards,
Yao
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Eric on 04 Jun, 2010 09:06 AM
Hi Yao,
Hm... where do you run the script from and with what parameters?
Also, you say that fails it for certain files. Does that mean that it works with others? Which ones?
Also, it might come from a lock placed on the file by your text editor or Java IDE. Try closing all the applications that might be accessing the file and run the script again.
What IDE/text editor are you using?
Let me know how it goes,
Eric
3 Posted by ywng85 on 04 Jun, 2010 02:11 PM
Hi Eric,
I've managed to resolve the issue. Seems like the firewall settings for windows 7 is causing the problem.
Thanks so much for your help!
Regards,
Yao
Mathieu closed this discussion on 07 Jun, 2010 08:41 AM.