1

我有一个 GWT 应用程序,它广泛使用代码拆分和国际化,因此生成许多单独的文件 (1000+)。我想使用 Google Plugin for Eclipse 将我的 GWT 应用程序部署到 App Engine,但是当我尝试时,我在 Eclipse 控制台上收到以下错误:

Deploying:
    Uploading 1187 files.
     on backend null.
java.io.IOException: Error writing to server

Debugging information may be found in C:\Users\Chania\AppData\Local\Temp\appengine-deploy3688011582342735160.log

Contents of appengine-deploy3688011582342735160.log:
Unable to update:
java.io.IOException: Error writing to server
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:277)
    at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:245)
    at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:211)
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:611)
    at com.google.appengine.tools.admin.AppVersionUpload.access$300(AppVersionUpload.java:33)
    at com.google.appengine.tools.admin.AppVersionUpload$UploadBatcher.addToBatch(AppVersionUpload.java:910)
    at com.google.appengine.tools.admin.AppVersionUpload.uploadFile(AppVersionUpload.java:510)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:129)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:328)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
    at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400)
    at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.io.IOException: Error writing to server
    at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:578)
    at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:590)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1193)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
    at com.google.appengine.tools.admin.AbstractServerConnection.connect(AbstractServerConnection.java:131)
    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:275)
    ... 13 more

有没有人知道什么可能去了南方?

4

1 回答 1

2

UnzipperServlet可用于在上传所有静态文件之前对其进行压缩。因此,您无需上传数百个静态文件,而是上传单个 zip 文件。

UnzipperServlet 是专门为解决 GAE 的“文件过多”问题而创建的。

编辑:似乎文件限制已从 1000 提高到 3000 个文件。所以你可能会忽略我的“解决方案”。

于 2012-09-13T10:46:15.257 回答