部署到Google App Engine时出错:400 Bad Request。有部署成功的兄弟不?
我的错误信息:
Compiling module com.sep24th.chen.GoogleJavaApp1
   Compiling 5 permutations
      Permutation compile succeeded
   Linking into war
      Link succeeded
   Compilation succeeded -- 19.781s
Creating staging directory
Scanning for jsp files.
Scanning files on local disk.
Initiating update.
Unable to upload:
java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id=go2fussa&version=1&
400 Bad Request
Invalid runtime specified. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:114)
at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:66)
at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:345)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:159)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:68)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:41)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:203)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:97)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/create?app_id=go2fussa&version=1&
400 Bad Request
Invalid runtime specified.

解决方案 »

  1.   

    什么原因引起的?我也很想知道?我有个疑问,上传的时候,它是怎么区别是java的还是python的?
      

  2.   

    ok,ok,看来我们没有得到java环境的许可,我刚搜到了解答。唉,等待吧!
    -------------
    When you attempt to update your application using appcfg, the server will check your account to see if you have permission to upload an app using the Java runtime. If your account does not have permissions, you will see the following error message:java.io.IOException: Error posting to URL: http://appengine.google.com/api/appversion/...
    400 Bad Request
    Invalid runtime specified.Unable to upload app: Error posting to URL: http://appengine.google.com/api/appversion/...
    400 Bad Request
    Invalid runtime specified.To request permission to upload an app which uses the Java runtime, sign up at the following URL: http://appengine.google.com/promo/java_runtime . For now, access will be limited to the first 10,000 to sign up.
      

  3.   

    java.io.IOException:   Error   posting   to   URL:   http://appengine.google.com/api/appversion/create?app_id=go2fussa&version=1& 
    400   Bad   Request 从这句话可以看出你的账号和版本信息不匹配,我想你以前上传过,可是现在上传的文件项目名和原先的不对,你改成原先上传的项目名试试,
    我就出现过这情况,改了之后就好了,,,
      

  4.   

    补充:你应该用的eclipse之类的集成开发环境上传的吧,你只要把项目名改掉,里面的文件名不用改,当然你的账号和版本要和原来的一样,,