Tag: 谷歌应用程序内引擎

如何组合现有的Google App引擎后端和AngularJS Web应用程序?

我有一个运行和服务Android客户端的GAE(java)后端。 我想创建一个AngularJS Web应用程序,该应用程序也将位于相同的GAE应用程序中,但我不确定如何使用我创建的AngularJS应用程序并将其添加到现有的运行GAE应用程序中。 我很感激一些指导。

将Android应用程序连接到Google Cloud Endpoints时出错:无法找到课程

我已经使用Google Cloud Endpoints构建了一个API,我正在尝试连接到它编写Android应用程序。 我按照以下教程: https://developers.google.com/appengine/docs/java/endpoints/consume_android 所以,我在我的“src”文件夹中添加了jar的内容,我将列出的库复制到lib并添加了代码。 当我尝试启动应用程序时,它崩溃了以下错误: 02-26 12:19:52.874: E/dalvikvm(17558): Could not find class ‘com.google.api.services.utenteendpoint.Utenteendpoint$Builder’, referenced from method com.example.androidgcetest.MainActivity.onCreate 02-26 12:19:53.004: E/AndroidRuntime(17558): FATAL EXCEPTION: main 02-26 12:19:53.004: E/AndroidRuntime(17558): java.lang.NoClassDefFoundError: com.google.api.services.utenteendpoint.Utenteendpoint$Builder 02-26 12:19:53.004: E/AndroidRuntime(17558): at com.example.androidgcetest.MainActivity.onCreate(MainActivity.java:22) 02-26 12:19:53.004: E/AndroidRuntime(17558): at android.app.Activity.performCreate(Activity.java:4465) 02-26 12:19:53.004: E/AndroidRuntime(17558): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) 02-26 12:19:53.004: E/AndroidRuntime(17558): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931) 02-26 12:19:53.004: E/AndroidRuntime(17558): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992) […]

AppEngine Java:API调用file.Create()花了太长时间才响应并被取消

我们在尝试将文件写入Blobstore时会遇到此exception。 它通常出现一两分钟,然后一切恢复正常。 它已在http://code.google.com/p/googleappengine/issues/detail?id=5723上报告,但已标记为已关闭。 你们经历过这样的事吗? 完整的堆栈跟踪是: com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The API call file.Create() took too long to respond and was cancelled. at java.lang.Thread.getStackTrace(Thread.java:1495) at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall(ApiProxyImpl.java:218) at com.google.apphosting.runtime.ApiProxyImpl.access$000(ApiProxyImpl.java:67) at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:163) at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java:161) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall(ApiProxyImpl.java:161) at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall(ApiProxyImpl.java:67) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:101) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:50) at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:557) at com.google.appengine.api.files.FileServiceImpl.create(FileServiceImpl.java:479) at com.google.appengine.api.files.FileServiceImpl.createNewBlobFile(FileServiceImpl.java:99) at com.google.appengine.api.files.FileServiceImpl.createNewBlobFile(FileServiceImpl.java:81) at ar.com.zupcat.lib.util.BlogstoreUtil.saveToBlogstoreImpl(BlogstoreUtil.java:69) 谢谢!

Appengine批量下载程序不下载列表属性

这与我之前的一个问题有关 ,但有新的信息。 我正在尝试配置bulkdownloader以从我的Java appengine应用程序下载数据,使得拥有对象列表转换为每个父对象内的嵌套XML路径。 我一直在使用export transform transform.child_node_from_list 。 但是,list属性实际上从未被下载并传递给该转换! 这看起来类似于在appengine数据存储区查看器中查看实体时所获得的效果 – 父实体根本不显示列表属性。 您必须通过代码访问它。 那么我的问题是:如何使用批量下载程序访问此列表属性? 如果我使用–kind=ParentEntity下载,你认为这会阻止它下载任何ChildEntity吗? (有没有办法指定“各种”或任何东西?) 在python下载配置中,模型实际上直接引用到配置文件中。 我是否需要模拟一个模仿我的JDO模型并使用该引用的python模型? 作为参考,我的每个文件的缩写版本如下: downloadconfig.yaml: transformers: – kind: ParentEntity connector: simplexml connector_options: xpath_to_nodes: /Parents/Parent style: element_centric property_map: – property: __key__ external_name: key export_transform: transform.key_id_or_name_as_string – property: name external_name: name # Type: String Stats: 30 properties of this type in this […]

您构建应用的Google App Engine SDK版本是否会影响生产应用引擎上的任何内容?

如果我使用App Engine SDK的1.2.6开发,一旦我发布到生产,我的应用程序仍然会使用生产应用程序引擎上所有库的1.2.6版本吗? 或者它会自动使用最新版本的核心应用程序引擎库吗?

在端口8761上的appengine上部署app

我正在部署一个在端口8761上运行的Java应用程序,并且在localhost上运行正常。 虽然当我推送到App Engine灵活的环境时,我收到HTTP 502服务器错误。 这是我的app.yaml : runtime: java env: flex service: eureka runtime_config: jdk: openjdk8 handlers: – url: /.* script: ignore secure: always manual_scaling: instances: 1 resources: cpu: 1 memory_gb: 2 来自gcloud的日志很好,服务器正在运行,但我的请求似乎根本没有打到应用程序。 我注意到,如果我在端口8080上运行,它可以工作。 现在,将默认端口更改为8080不是问题,但我想了解为什么我无法在8761上运行它

突然将appengine devmode任务请求拒绝到0.0.0.0

更新 :当我为我的项目禁用GWT时,这个问题就消失了! 我已经愉快地在appengine中使用任务队列好几个月了,开发模式测试在我的Mac OS X机器上很棒。 今天,一切都崩溃了。 [ERROR] Job CleanupQueue.task1 threw an unhandled Exception: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: Received exception executing http method POST against URL http://0.0.0.0:8888/tasks/cleanup: Connection to http://0.0.0.0:8888 refused at com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:381) at com.google.appengine.api.taskqueue.dev.LocalTaskQueue$UrlFetchServiceLocalTaskQueueCallback.execute(LocalTaskQueue.java:480) at com.google.appengine.api.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:77) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) [ERROR] Job (CleanupQueue.task1 threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.google.apphosting.api.ApiProxy$ApplicationException: […]

Google Datastore Querys会返回陈旧数据

我正在使用Google App Engine,当我从数据存储中删除并再次列出结果时,我会恢复过时的数据。 问题是什么? 这是我使用的代码。 public void remove(long id) { EntityManager em = EMFService.get().createEntityManager(); try { Todo todo = em.find(Todo.class, id); em.remove(todo); } finally { em.close(); } } public List getTodos(String userId) { EntityManager em = EMFService.get().createEntityManager(); Query q = em .createQuery(“select t from Todo t where t.author = :userId”); q.setParameter(“userId”, userId); List todos = […]

Google AppEngine中的复杂类层次结构(Java)

是否有可能在我的实体(JDO)中使用Java(GAE / J)在Google AppEngine中inheritance/扩展相同类的多个类。 例如我有: 内容(抽象类) 课程 然后我的课程将有: 扩展内容的video列表 书籍清单 同时 video包含标签列表 书有标签列表 课程有标签列表 是否有可能做GAE? 我做的与此类似,但有很多问题。 有这种东西的例子吗?

解决方法:如何以编程方式编辑本机Google文档?

我在这里发现很少有相当抑郁的质量保证,其中提到谷歌文档无法在Google Drive API中以编程方式修改 – 只有上传/下载选项。 我查看了类似的主题: 1) 如何以编程方式操作本机谷歌文档文件 2) 如何以编程方式在Google Docs中创建文档? 因为我想我们无法直接下载和上传原生谷歌doc格式。 有没有其他方法可以解决这个问题? 有没有人试图以编程方式触发所选文档的谷歌应用程序脚本,这可能吗? 可以用输入上的一些参数以编程方式启动谷歌应用程序脚本吗? 我只需要在原生谷歌doc中替换几段文字,但我不能使用download-> modify-> upload(例如格式word / html / pdf)流程,因为我会破坏图片,边框等的格式… (客户要求:完全谷歌集成没有专有格式) 你有什么创新的想法或技巧可以探讨吗? 我们正在尝试将Google云端硬盘用作某种非常简单的模板系统(数千个用户,数百个谷歌文档),但这似乎是一个非常错误的想法,因为在途中存在很多限制。