我有一个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
有没有人知道南方会发生什么?
答案 0 :(得分:2)
UnzipperServlet可用于在上传所有静态文件之前对其进行压缩。因此,不要上传数百个静态文件,而是上传一个zip文件。
UnzipperServlet专门用于处理GAE中的“太多文件”问题。
编辑:似乎文件限制已从1000个文件提升到3000个文件。所以你可能会忽略我的“解决方案”。