简体   繁体   English

这个queue.xml有什么问题

[英]What mght be wrong with this queue.xml

I'm working on an appengine project in which I created a Task Queue "refresh" as defined below. 我正在开发一个appengine项目,在其中创建了如下定义的“刷新”任务队列。

<?xml version="1.0" encoding="UTF-8"?>
<queue-entries>
  <queue>
    <name>refresh</name>
    <rate>1/s</rate>
    <retry-parameters>
      <task-retry-limit>5</task-retry-limit>
      <task-age-limit>2</task-age-limit>
    </retry-parameters>
  </queue>
</queue-entries>

Upon deployment, I get the following error and don't know why as this definition is almost exactly the same with what is on https://developers.google.com/appengine/docs/java/config/queue 部署后,我收到以下错误,并且不知道为什么,因为此定义与https://developers.google.com/appengine/docs/java/config/queue上的定义几乎完全相同

An internal error occurred during: "Deploying xProject to Google". XML error validatin _xProject_path_\\war\\WEB-INF\\queue.xml against C:\\Users\\Oladeji\\.eclipse\\org.eclipse.platform_3.7.0_248562372\\plugins\\com.google.appengine.eclipse.sdkbundle_1.7.3\\appengine-java-sdk-1.7.3\\docs\\queue.xsd

Kindly help. 请帮助。

It doesn't pass validation over the queue.xsd. 它不会通过queue.xsd进行验证。

Which means the structure of the queue.xml doesn't match the structure described in the queue.xsd 这意味着queue.xml的结构与queue.xsd中描述的结构不匹配

Most likely the description you see on a web site and your actual queue.xsd are different. 您在网站上看到的描述很可能与实际的queue.xsd不同。

Please, show your actual queue.xsd. 请显示您的实际 queue.xsd。


I found queue.xsd that is the same as what you have in your local path. 我发现queue.xsd与本地路径中的相同。 It puts limitation on ([0-9]+(.?[0-9]*([eE][-+]?[0-9]+)?)?)([smhd]) on 'task-age-limit. 它对(task-age)的([0-9] +(。?[0-9] *([eE] [-+]?[0-9] +)?)?)([smhd])施加限制-限制。

In your case if you add s,m,h or d it will validate. 如果您添加s,m,h或d,它将生效。

For example: 2s instead of 2 in task-age-limit tag. 例如:task-age-limit标签中用2s代替2。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM