谷歌App Engine的样本Android应用程序,抛出异常 [英] Google app Engine's sample android app, throwing exceptions

查看:154
本文介绍了谷歌App Engine的样本Android应用程序,抛出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的GAE样品Android应用正在没事,直到昨天!

我没有尽到客户端应用程序进行任何更改,除非Consts.java加了我的项目ID。

现在每次我尝试插入(我的意思是发送短信)以下的例外是罚球时间

  9月6日至6日:42:59.905:I / CloudBackend(1905年):错误:
9月6日至6日:42:59.905:I / CloudBackend(1905年):com.google.api.client.googleapis.json.GoogleJsonResponseException:404未找​​到
9月6日至6日:42:59.905:I / CloudBackend(1905年):未找到
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:38)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:314)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.http.Htt prequest.execute(HTT prequest.java:1060)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:412)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:345)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:463)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.cloud.backend.android.CloudBackend.insert(CloudBackend.java:111)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.cloud.backend.android.CloudBackendAsync.access $ 0(CloudBackendAsync.java:1)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.cloud.backend.android.CloudBackendAsync $ 1.callBackend(CloudBackendAsync.java:87)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.cloud.backend.android.CloudBackendAsync $ 1.callBackend(CloudBackendAsync.java:1)
9月6日至6日:42:59.905:I / CloudBackend(1905年):在com.google.cloud.backend.android.CloudBackendAsync $ BackendCaller.run(CloudBackendAsync.java:428)


解决方案

我找到答案了这一点。

好像没有在应用程序引擎,重新部署它还是如此,也很难忘记,使最新的部署情况下,应用程序引擎控制台默认每次当你的应用程序由您生成自身的一个新版本时的错误。
按照以下步骤设置成默认:


  1. 转到 AppEngine上的控制台

  2. 打开项目

  3. 在左侧,打开首页 - >版本

  4. 单击旁边的单选按钮,充分利用最新版本的默认设置。

就这样,我希望

My GAE sample android app was working all right till yesterday!

I did not do any changes to the client app except in Consts.java added my project ID.

Now every time i try to insert (i mean send message) following exceptions are throw

06-06 09:42:59.905: I/CloudBackend(1905): error: 
06-06 09:42:59.905: I/CloudBackend(1905):    com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
06-06 09:42:59.905: I/CloudBackend(1905): Not Found
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:111)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:38)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:314)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1060)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:412)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:345)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:463)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.cloud.backend.android.CloudBackend.insert(CloudBackend.java:111)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.cloud.backend.android.CloudBackendAsync.access$0(CloudBackendAsync.java:1)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.cloud.backend.android.CloudBackendAsync$1.callBackend(CloudBackendAsync.java:87)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.cloud.backend.android.CloudBackendAsync$1.callBackend(CloudBackendAsync.java:1)
06-06 09:42:59.905: I/CloudBackend(1905):   at com.google.cloud.backend.android.CloudBackendAsync$BackendCaller.run(CloudBackendAsync.java:428)

解决方案

I found answer for this.

It seems like there is a bug in app engine that every time when your app generates a new version of itself by you redeploying it or so, it forgets to make the latest deployment as default under app engine console. Follow the steps to make it default:

  1. go to appengine console
  2. Open your project
  3. On the left hand side, open up Main -> Versions
  4. Make the most latest version as default by clicking the radio button beside it.

That's it I hope

这篇关于谷歌App Engine的样本Android应用程序,抛出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆