我正在尝试设置Amazon Turk命令行工具。我遵循了所有必需的步骤(即,将系统变量JAVA_HOME
添加到C:\Program Files (x86)\Java\jre7
,并将属性文件URL从http更改为https)。但是,当我尝试运行任何命令时,我收到以下错误。有没有人对如何解决这个问题有任何建议?谢谢!
C:\aws-mturk-clt-1.3.1\bin>getbalance
An error occurred: Invalid configuration for port
java.lang.RuntimeException: Invalid configuration for port
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.<init>(Requester
ServiceRaw.java:240)
at com.amazonaws.mturk.service.axis.RequesterService.<init>(RequesterSer
vice.java:241)
at com.amazonaws.mturk.cmd.AbstractCmd.initService(AbstractCmd.java:119)
at com.amazonaws.mturk.cmd.AbstractCmd.run(AbstractCmd.java:143)
at com.amazonaws.mturk.cmd.GetBalance.main(GetBalance.java:28)
Caused by: java.lang.IllegalStateException: Invalid configuration for locator
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.getPort(Requeste
rServiceRaw.java:269)
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.<init>(Requester
ServiceRaw.java:230)
... 4 more
Caused by: javax.xml.rpc.ServiceException: java.net.MalformedURLException: no pr
otocol: service_url=https://mechanicalturk.amazonaws.com/?Service=AWSMechanicalT
urkRequester
at com.amazonaws.mturk.requester.AWSMechanicalTurkRequesterLocator.getAW
SMechanicalTurkRequesterPort(Unknown Source)
at com.amazonaws.mturk.service.axis.RequesterServiceRaw.getPort(Requeste
rServiceRaw.java:263)
... 5 more
C:\aws-mturk-clt-1.3.1\bin>
答案 0 :(得分:0)
当我没有提供AccessKeyId
和SecretAccessKey
时,出现了类似的错误。尝试填写它们。