Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

Amazon Mechanical Turk Command Line Tools Cannot Find mturk.properties

There was a problem reading your properties file from mturk.properties
The exception was java.io.FileNotFoundException: mturk.properties (No such file or directory)
Exception in thread "main" java.lang.RuntimeException: Cannot load configuration properties file from mturk.properties
at com.amazonaws.mturk.util.PropertiesClientConfig.(PropertiesClientConfig.java:99)
at com.amazonaws.mturk.util.PropertiesClientConfig.(PropertiesClientConfig.java:72)
at com.amazonaws.mturk.cmd.AbstractCmd.(AbstractCmd.java:61)
at com.amazonaws.mturk.cmd.GetBalance.(GetBalance.java:24)
at com.amazonaws.mturk.cmd.GetBalance.main(GetBalance.java:27)
Caused by: java.io.FileNotFoundException: mturk.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:138)
at com.amazonaws.mturk.util.PropertiesClientConfig.(PropertiesClientConfig.java:95)
... 4 more

How to fix it in linux...

Prakash
Tue, 12 Oct 2010 08:50:13 +0000

First of all, have you determined the location of the "mturk.properties" file yet? It reports that it can't find that file.

Chieh Cheng
Tue, 12 Oct 2010 16:52:38 +0000

Hi...Chieh Cheng

it'll be works fine in linux and window through command line but there is a problem with when it'll run through browser.
that time above exception will be raised.

------------------
PHP
------------------

<?php
$ssMturkCmdPath = sfConfig::get("sf_lib_dir");
$ssCommand = $ssMturkCmdPath."/aws-mturk-clt-1.3.0/bin/./getBalance.sh";
$oOutput = shell_exec($ssCommand." 2>&1"); //system call
print "<pre>">
print_r($oOutput); //show output
exit;
?>

after run this code in browser it gives above exception.

any idea behind this issue...

Prakash
Wed, 13 Oct 2010 05:43:45 +0000

I suspect that your environment variable is set-up correctly in your terminal. However, PHP executes under a different environment and the environment is not set-up correctly there. Output your environment variables in your terminal. Then output them in PHP. Compare the two.

Chieh Cheng
Wed, 13 Oct 2010 19:57:28 +0000

hey Chieh Cheng

you are right there is a issue of set environement variable.

thanks buddy...

Prakash
Fri, 15 Oct 2010 07:00:59 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 2 + 7?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

30 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.