1

I've been using the aws-mturk-clt toolset for awhile. I recently came back to my project, which had been working, but now when I attempt to submit HITs using the loadHITs.sh command I receive this error:

[-1,-1] cvc-elt.1: Cannot find the declaration of element 'ExternalQuestion'

As far as I can tell, nothing has changed in my project code and directory structure from when it used to work. The XML schema is referenced in external_hit.question:

<?xml version="1.0"?>
<!-- Note the inclusion of the $urls variable which is defined as a field 
in the input file.  Apache Velocity is the template engine that is used to 
perform the merging of variables into template files.  You can learn more 
about Velocity's capabilities at http://velocity.apache.org. -->
<ExternalQuestion xmlns="https://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2006-07-14/ExternalQuestion.xsd">
    <ExternalURL>http://XXX.XXX.XXX.XXX/webpage.jsp</ExternalURL>
    <FrameHeight>600</FrameHeight>
</ExternalQuestion>

I checked the schema url, and the schema still exists and appears to be properly defined.

Let me know any further information required. Thanks!

4

1 回答 1

2

问题是我使用 https 来引用架构,因为之前执行了全局搜索替换。当我恢复到 http 时,问题消失了:

<ExternalQuestion xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2006-07-14/ExternalQuestion.xsd">
于 2013-04-22T07:27:54.860 回答