部署我的 App Engine 应用程序并执行应该返回 XML 的 POST 请求后,我收到以下错误:
org.restlet.engine.http.HttpServerAdapter commit: An exception occured writing the response entity
java.io.IOException: Couldn't write the XML representation: java.lang.NullPointerException
at org.restlet.ext.xml.DomRepresentation.write(DomRepresentation.java:275)
at org.restlet.engine.http.HttpServerCall.writeResponseBody(HttpServerCall.java:510)
在本地运行的应用程序上执行完全相同的请求不会导致任何错误。