Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 应用程序引擎<;线程安全>;元素丢失错误_Xml_Google App Engine_Error Handling_Thread Safety - Fatal编程技术网

Xml 应用程序引擎<;线程安全>;元素丢失错误

Xml 应用程序引擎<;线程安全>;元素丢失错误,xml,google-app-engine,error-handling,thread-safety,Xml,Google App Engine,Error Handling,Thread Safety,所以我有一个错误,很多人都有: appengine-web.xml does not contain a <threadsafe> element. appengine-web.xml不包含元素。 但解决方案总是只需添加 <threadsafe>true</threadsafe> true 到appengine-web.xml文件。这是我的appengine-web.xml文件: <?xml version="1.0" encoding="utf

所以我有一个错误,很多人都有:

appengine-web.xml does not contain a <threadsafe> element.
appengine-web.xml不包含元素。
但解决方案总是只需添加

<threadsafe>true</threadsafe>
true
到appengine-web.xml文件。这是我的appengine-web.xml文件:

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <application>dummy</application>
  <version>1</version>
  <threadsafe>true</threadsafe>
  <!-- Configure java.util.logging -->
  <system-properties>
    <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
  </system-properties>
</appengine-web-app>

笨蛋
1.
真的
但我仍然得到一个错误,没有找到线程安全元素?

我认为
true
应该是appengine-web.xml中的第一个条目

以下是我的无错误xml:

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <!--<async-session-persistence enabled="true"/>-->
    <threadsafe>true</threadsafe>
    <application>dummy</application>

    <version>443</version>
    <sessions-enabled>true</sessions-enabled>
    <inbound-services>
        <service>mail</service>
        <service>xmpp_message</service>
    </inbound-services>
    <system-properties>
      <property name="com.google.gdata.DisableCookieHandler" value="true"/>
    </system-properties>
</appengine-web-app>

真的
笨蛋
443
真的
邮件
xmpp_消息

感谢您的建议,但我无法确认这是解决方案。尽管我在删除并重新输入了几次“虚拟”部分后,还是成功地让它工作了。我的XML文件现在看起来和问题中的一样,但不再抛出错误。这将是一个谜。。。