google-app-engine

Grails - Class “org.grails.tomcat.TomcatLoader” was not found in the CLASSPATH

放肆的年华 提交于 2020-01-04 05:33:10
问题 grails run-app from within Eclipse is currently giving me the exception below for my Google App Engine/Grails test application: Enhancing JDO classes [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes [enhance] Jan 24, 2010 5:11:42 AM org.datanucleus.metadata.MetaDataManager loadClasses [enhance] SEVERE: Class "org.grails.tomcat.TomcatLoader" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. [enhance] org.datanucleus.exceptions

Can I use urlfetch with self signed certifications over ssl

半世苍凉 提交于 2020-01-04 05:25:09
问题 I want my app engine service to speak with a separate service that I manage. I want to be able to install my self signed certificate on both ends. Is it possible to have app engine speak to this instance over SSL? 回答1: Yes. App Engine doesn't currently verify certificates for SSL sites over urlfetch, so it will accept self-signed certificates just fine. 来源: https://stackoverflow.com/questions/4939701/can-i-use-urlfetch-with-self-signed-certifications-over-ssl

Best way to get distinct values

China☆狼群 提交于 2020-01-04 05:13:04
问题 I'm using Google-Appengine-NDB. And I'm tried to get distinct values from database but it's not working. Now my code is: query_set = cls.query().order(cls.ls) # Getting ordered queries. set_of_field = set([data.field for data in query_set]) # And using this loop for differ.` But the loop is taking too long time (over 12 sec). Please help me, how can I speed up, or how to get distinct values from ndb? 回答1: Try the distinct query, if your field is indexed you can use this: https://developers

How is ndb.StringProperty equals a python string?

喜夏-厌秋 提交于 2020-01-04 05:06:23
问题 I have this ndb Model class class foo(ndb.Model): abc = ndb.StringProperty() Now when I used abc like this: if foo.abc == "a": print "I'm in!" It gets into the if block and prints I'm in! How's this possible? I also tried printing foo.abc , it returned StringProperty('abc') 回答1: You have to instantiate an instance of class to use properties properly. class Foo(ndb.Model): abc = ndb.StringProperty() foo = Foo() foo.abc = 'some val' print foo.abc # prints 'some val' print foo.abc == 'a' #

Domain restricted authentication on Google App Engine

痞子三分冷 提交于 2020-01-04 04:55:23
问题 I've recently deployed a GAE application (namely http://www.stashboard.org/) in order to help manage my company's application pool. In order not to publish the pool's status tout everyone (customers, other companies...) i wish to allow access only to those who log in with their corporate account (ie : user@mycompany.com). The domain "mycompany.com" is not managed by google. When I set the Authentication Type to "Google Apps domain" i can no longer log in to the app, and i get a Error 500

TaskQueue failing to do HTTP call - Missing mandatory headers?

可紊 提交于 2020-01-04 04:43:04
问题 Error is in this code: public String getVersion() { String result = null; int index = this.getRequest().getProtocol().indexOf(47); if (index != -1) { result = this.getRequest().getProtocol().substring(index + 1); } return result; } Error is "Couldn't find the mandatory "Host" HTTP header.": 10:34:29,889 INFO [org.restlet] (Thread-6 (HornetQ-client-global-threads-1773619305)) Couldn't find the mandatory "Host" HTTP header. 10:34:29,910 WARNING [org.restlet.Component.Server] (Thread-6 (HornetQ

Load remote XML from Google App Engine for PHP

…衆ロ難τιáo~ 提交于 2020-01-04 04:34:10
问题 I want to load a remote and dynamic XML file from a third party server into my GAE-PHP application: $itemId = 5; $uri = "http://www.myserver.com/getInfoItem.php?itemId={$itemId}&format=xml"; I have tried to load the XML information using the simplexml_load_file function: if ($xmlItem = simplexml_load_file($uri)) { // Code dealing with the XML info } But that leads always to this error: PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "..." So, I have changed

java.lang.NoClassDefFoundError on using spring security on google app engine

依然范特西╮ 提交于 2020-01-04 04:28:23
问题 I am using Spring Core framework version 4.1.6.RELEASE and Spring Security version 4.0.0.RELEASE in my google app. But when I try to run it in local appservere I see following log org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: java.lang.reflect.Parameter is a restricted class. Please see the Google App Engine developer's guide

Traffic Splitting By IP Address on Google App Engine

柔情痞子 提交于 2020-01-04 04:25:07
问题 I'd like to direct traffic to different versions of Google App Engine code based on a set list of known IP Addresses. For example, if an incoming request is from an IP Address on a given list, then traffic is directed to version 1. If not, then version 2. Is there a way to do this from the admin console or deployment configuration? The end goal is to grant access to extra features when the site is accessed from an approved IP Address. If I can't do this from the admin console, then I plan to

Ever see duplicate IDs when using Google App Engine and ndb?

爷,独闯天下 提交于 2020-01-04 04:25:06
问题 class Entries(ndb.Model): description = ndb.StringProperty() seqid = ndb.IntegerProperty() link = ndb.StringProperty() group = ndb.StringProperty() timestamp = ndb.StringProperty() referrals = ndb.StringProperty(repeated=True) The two entries in the picture are created by two different users. The user is the parent of the Entry. I get a duplicate ID on production but not on local. Also, it's always this same id number (but it is certainly not hard coded anywhere) As the parent is the user, i