Re: [google-appengine] Google Translate API & Permissions

2021-05-08 Thread Eric Hardy
;>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/38511647-af55-4440-b8a9-47a2d26e1f42n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-appengine/38511647-af55-4440-b8a9-47a2d26e1f42n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-appengine+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/96693B33-8943-4948-8444-7F9ABAAAB70D%40gmail.com
>>> <https://groups.google.com/d/msgid/google-appengine/96693B33-8943-4948-8444-7F9ABAAAB70D%40gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> "A computer never does what you want... only what you tell it."
>> wesley chun :: @wescpy <http://twitter.com/wescpy> :: Software
>> Architect & Engineer
>> Developer Advocate at Google Cloud by day; at night...
>> Python training & consulting : http://CyberwebConsulting.com
>> <http://cyberwebconsulting.com/>
>> "Core Python" books : http://CorePython.com <http://corepython.com/>
>> Python blog: http://wescpy.blogspot.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/CAB6eaA6qha4NWpPqtRQvSt3v86vPwJQ02j%3D_UtFT8w5m6KnHGQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/CAB6eaA6qha4NWpPqtRQvSt3v86vPwJQ02j%3D_UtFT8w5m6KnHGQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-appengine+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-appengine/8779DD22-2BCF-4834-B50B-57BB5B8B0017%40gmail.com
>> <https://groups.google.com/d/msgid/google-appengine/8779DD22-2BCF-4834-B50B-57BB5B8B0017%40gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "A computer never does what you want... only what you tell it."
> wesley chun :: @wescpy <http://twitter.com/wescpy> :: Software
> Architect & Engineer
> Developer Advocate at Google Cloud by day; at night...
> Python training & consulting : http://CyberwebConsulting.com
> "Core Python" books : http://CorePython.com
> Python blog: http://wescpy.blogspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/CAB6eaA4DfSXvzKwK6oZPiw%3D7fq2Rvbaj6TFZ7hh7vyZL3m0Q3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-appengine/CAB6eaA4DfSXvzKwK6oZPiw%3D7fq2Rvbaj6TFZ7hh7vyZL3m0Q3Q%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
Eric Malcolm Hardy

Marketing Manager, Alien Records
098277100 | sixise...@gmail.com
10 Drury Street
<https://www.facebook.com/cloudHQ>
<https://www.linkedin.com/company/cloudhq>
<https://www.twitter.com/cloudHQ_net>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CADpqxizb6kreze-bg_X5YbHB-s73xqo4kF%2BPP3mCZvX_Aaar6Q%40mail.gmail.com.


[google-appengine] Re: Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-27 Thread Eric G
It was more a question because the documentation was unclear for 2nd 
generation standard GAE environments.  
I have no problem using an explicit credentials file - in fact I prefer 
that to the magic of default credentials, and using the GCE metadata 
service involves an extra network hop if I'm not mistaken.

On Tuesday, September 25, 2018 at 4:50:57 PM UTC-4, Stewart Reichling wrote:
>
> Hi Eric -- can you follow up with more details about your use case?
>
> On Tuesday, September 18, 2018 at 10:02:24 AM UTC-7, Eric G wrote:
>>
>> Thanks!  I think I will stick with using an explicit service account json 
>> file, but it's good to know this route works.
>>
>> On Monday, September 17, 2018 at 3:43:43 PM UTC-4, David (Google Cloud 
>> Support) wrote:
>>>
>>> Python 3.7 on App Engine standard provides the GCE metadata service, so 
>>> as an alternative, you could use Compute Engine Credentials 
>>> <https://cloud.google.com/docs/authentication/production#auth-cloud-compute-engine-python>.
>>>  
>>> I will inform our documentation team to update this document since it is 
>>> outdated and it does not include App Engine Standard Second Generation as 
>>> one of the platforms where you could use these credentials.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e46520e4-b680-422b-baec-6b983145043b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Second gen GAE Python 3.7 > Cloud SQL - MySQL

2018-09-18 Thread Eric G
No problem, thanks for your work.

On Monday, September 17, 2018 at 11:47:22 AM UTC-4, Steren Giannini wrote:
>
> Hi,
> Yes GAE second generation expose a /cloudsql socket to access Cloud SQL. 
> Sorry about the lack of docs, we are in the process of (better) documenting 
> it.
>
> Steren
> Product Manager
>
> On Sun, Sep 16, 2018 at 7:11 AM rahulrv via Google App Engine <
> google-a...@googlegroups.com > wrote:
>
>> You should be able to use any library which works with mysql or postgres 
>> to connect using the unix socket /cloudsql/
>>
>>
>> On Wednesday, September 12, 2018 at 8:00:08 AM UTC-7, Eric G wrote:
>>>
>>> Thanks for this. The second link is to the flex environment 
>>> documentation. Are you saying that App Engine standard 2nd gen uses the 
>>> same method of connecting to CloudSQL instances as flex, i.e. via the unix 
>>> socket  /cloudsql/INSTANCE_CONNECTION_NAME ?  If so, it would be 
>>> helpful to have those instructions/example on the first link (to standard 
>>> 2nd gen) as well.
>>>
>>> Personally, I would like to see an example that doesn't depend on 
>>> SQLAlchemy + Flask, otherwise people may think they have to use those. I 
>>> guess it's not hard to figure out but just some acknowledgement that you 
>>> can set your own environment variables and manually use them to connect 
>>> with pymysql or whatever adapter.
>>>
>>>
>>> On Tuesday, September 11, 2018 at 11:22:24 PM UTC-4, Olu wrote:
>>>>
>>>> There are different ways to connect to the CloudSQL instance depending 
>>>> on the location from where you are connecting. If you are connecting from 
>>>> an App Engine instance which is located in a project which is different 
>>>> from the project which the CloudSQL instance resides, you must use a 
>>>> service account to allow connection between the App Engine application and 
>>>> the Cloud SQL as described in the link 
>>>> <https://cloud.google.com/appengine/docs/standard/python3/using-cloud-sql#granting_access_to_gae_name_short>
>>>> .
>>>>
>>>> However, when connecting from your App Engine Application within the 
>>>> same project, you simply have to configure your app.yaml with the user, 
>>>> password, database, and instance connection name variables from Cloud SQL, 
>>>> See the documentation 
>>>> <https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql#setting_connection_strings_and_adding_a_library>
>>>> . 
>>>>
>>>> External applications have to connect to the Cloud SQL instances 
>>>> directly through the public IP address and the IP addresses of the 
>>>> connecting application have to be white listed in the Cloud SQL instance 
>>>> on 
>>>> the Authorization Tab of the Instance page.
>>>>
>>>>
>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com .
>> To post to this group, send email to google-a...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/469db80a-f980-4468-b56e-138eb5b6e731%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/469db80a-f980-4468-b56e-138eb5b6e731%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/89e99ac8-bb12-415c-906a-db9935671325%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-18 Thread Eric G
Thanks!  I think I will stick with using an explicit service account json 
file, but it's good to know this route works.

On Monday, September 17, 2018 at 3:43:43 PM UTC-4, David (Google Cloud 
Support) wrote:
>
> Python 3.7 on App Engine standard provides the GCE metadata service, so as 
> an alternative, you could use Compute Engine Credentials 
> .
>  
> I will inform our documentation team to update this document since it is 
> outdated and it does not include App Engine Standard Second Generation as 
> one of the platforms where you could use these credentials.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c6605154-16dd-4feb-8b7e-690b0471caf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Second gen GAE Python 3.7 > Cloud SQL - MySQL

2018-09-12 Thread Eric G
Thanks for this. The second link is to the flex environment documentation. 
Are you saying that App Engine standard 2nd gen uses the same method of 
connecting to CloudSQL instances as flex, i.e. via the unix socket  
/cloudsql/INSTANCE_CONNECTION_NAME ?  If so, it would be helpful to have 
those instructions/example on the first link (to standard 2nd gen) as well.

Personally, I would like to see an example that doesn't depend on 
SQLAlchemy + Flask, otherwise people may think they have to use those. I 
guess it's not hard to figure out but just some acknowledgement that you 
can set your own environment variables and manually use them to connect 
with pymysql or whatever adapter.


On Tuesday, September 11, 2018 at 11:22:24 PM UTC-4, Olu wrote:
>
> There are different ways to connect to the CloudSQL instance depending on 
> the location from where you are connecting. If you are connecting from an 
> App Engine instance which is located in a project which is different from 
> the project which the CloudSQL instance resides, you must use a service 
> account to allow connection between the App Engine application and the 
> Cloud SQL as described in the link 
> 
> .
>
> However, when connecting from your App Engine Application within the same 
> project, you simply have to configure your app.yaml with the user, 
> password, database, and instance connection name variables from Cloud SQL, 
> See the documentation 
> 
> . 
>
> External applications have to connect to the Cloud SQL instances directly 
> through the public IP address and the IP addresses of the connecting 
> application have to be white listed in the Cloud SQL instance on the 
> Authorization Tab of the Instance page.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ee4e12f4-14f7-4373-863e-65b9ab34435c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google auth default credentials for GAE standard 2nd Gen (Python)

2018-09-09 Thread Eric G
It appears that the google-auth default credentials 
<https://google-auth.readthedocs.io/en/latest/user-guide.html#> will not 
work for 2nd generation standard environments, at least not for Python at 
the moment, as it requires the app identity/user API.

Is there a plan for getting default app engine credentials to work in 
another way?  Or is the recommendation to set the 
GOOGLE_APPLICATION_CREDENTIALS env var to point to the service account file 
manually?

Thanks,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/ee6eb2c1-567f-4670-aa81-2c5a261727dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Back to GAE after some years

2018-08-25 Thread Eric G
Re. NDB, there is an open source library very similar to it, Python 3 
compatible:  https://github.com/Bogdanp/anom-py.  I can't say I've used it, 
but I highly respect the author's other libraries. 

It includes transparent caching, though with GAE flex or standard Python3 
you have to run your own memcache service.  
See https://cloud.google.com/appengine/docs/standard/python3/python-differences 


On Wednesday, August 22, 2018 at 9:13:58 AM UTC-4, Roberto Martino wrote:
>
> Hi
> Four years ago, I created a complete application using GAE. This 
> appication is still in use.
> I was very happy with GAE and now, getting back to GAE now, I expect the 
> same experience, but it seems that many things are changed, also the 
> documentation changed a lot.
> I'm interested in using Python 3.x
>
> I'd love if anyone can correct me if I'm wrong and answer my questions.
>
> Database
> - blobstore -> deprecated, not a problem I see the alternative
>
> - datastore -> I enjoyed very much the philosophy behind Datastore and NDB.
> has NDB been substitued by Cloud Datastore Client Libraries or can I 
> still use NDB or is there any other best practice?
>
> Android and iPhone App
>
> Push Notifications
> -I used GCM for Android  Notifications and a custom python library for 
> Apple notifications -> deprecated
>I understand that now I must use Firebase.
>Can I use Firebase only for the Push Notifications and keep using 
> Datastore for the DB?
>
> Mobile  comunication, this is an important point for me.
> -I used Google Cloud Endpoints, very nice, very useful and fast for 
> building mobile devices comunication
>Is this still the best way for mobile comunication?
>I red that it does not works with python 3.x, will it be ported shortly?
>
> Thank you in advance
> Roberto
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c0373c50-ac3f-4273-b30f-0e22c7052318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Secrets on App Engine Flex

2018-08-21 Thread Eric Hauser
The standard method of storing a secret in GCS encrypted via KMS generally 
works fine. However, the Service Account documentation for App Engine Flex 
states 
(https://cloud.google.com/appengine/docs/flexible/python/service-account):

"Do not modify the permissions of the App Engine flexible environment 
service account."

What's the recommended way to give a Flex container the ability to decrypt 
a secret if you can't grant permissions to a KMS key? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5cf74b8e-4153-4ea7-b556-e616f674eb68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: python 3.7 standard runtime release schedule?

2018-08-08 Thread Eric G
Is there a document that describes the differences between Python 3 
standard and flex?   At a quick glance at least the interface for Python 3 
standard looks very similar to flex.  Thanks.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0a25869c-685d-4260-a56b-4cec4e870fc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: python 3.7 standard runtime release schedule?

2018-08-08 Thread Eric G
Thanks! That's great news and very helpful links.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/21bf190b-ef62-4791-94d6-4f7dae8000f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] python 3.7 standard runtime release schedule?

2018-08-05 Thread Eric G
Apologies if this has already been asked, but now that python 3.7 standard 
has been announced, what is the timeframe?  Is there an alpha signup yet?

Thanks.
Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/99d7d2f5-cea4-47c9-af39-c411fc1e4992%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Framework Recommendations for AppEngine Java8 Standard

2018-02-06 Thread Eric Martineau
When we started building AppEngine Java7, the community recommendation and 
examples were centered around using Guice+Jersey.  Despite having a long 
history with SpringBoot, our company invested in Guice/Jersey 
infrastructure for AppEngine.

Since the release of java8, there are a few observations that lead us to 
wonder if Guice+Jersey is still the recommended path:

* The emergence of Spring Cloud GCP (primarily developed by Google)
* Inclusion of SpringBoot examples in getting-started-java (not seeing any 
Guice/Jersey examples)
* A Google Codelab dedicated to SpringBoot in AppEngine

Is there any formal/informal recommendation for Java8 AppEngine between 
Spring vs Guice+Jersey?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/622f9918-6ff2-4a7f-80d2-ed0132ee0686%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google Cloud Libraries for Appengine Standard

2018-02-06 Thread Eric Martineau
Java8 opened up the possibility of using google-cloud-java (grpc) libraries 
within AppEngine standard.  The newer libraries are nicer to work with from 
a development standpoint, but I'm not sure if there are any significant 
drawbacks to using them within AppEngine Standard.

Can anyone provide guidance on how to approach the inclusion of GRPC 
libraries in AppEngine Standard Java8?

Specifically, I'm thinking of two things:

- Push/pull subscriptions for PubSub
- StackDriver Logging

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a4869d0d-3b30-43c7-9ddf-fedc245e28b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: ~20ms latency between two servlets, same project, is that about right?

2017-08-29 Thread Eric Hubbard
Thanks for the great info!

I'm running standard and java8.  My latency times were much lower 24 hours
later.  I went from a chaotic..20-50ms...   down to a very stable ~12ms 24
hours later.  Maybe some  environmental things were going at at the time.
These numbers were reported by my code, and also seen by the log traces.




-Eric
http://www.google.com/profiles/eric.hubbard

On Tue, Aug 29, 2017 at 11:03 AM, 'Jordan (Cloud Platform Support)' via
Google App Engine <google-appengine@googlegroups.com> wrote:

> It really depends on if you are making calls within App Engine Standard
> <https://cloud.google.com/appengine/docs/standard/> or App Engine Flexible
> <https://cloud.google.com/appengine/docs/flexible/> as they both
> send/accept requests using different infrastructures.
>
> - The App Engine Standard URLFetch infrastructure typically adds less than
> 1 ms latency overhead to HTTP requests. For URLFetch requests to other App
> Engine Standard services, I am seeing worst case ~8ms of latency in the
> 95th percentile (meaning 95 percent of URLFetch requests are under 8ms).
> Note that we do not guarantee any specific SLA on latency.
>
> - The App Engine Flexible environment uses Compute Engine
> <https://cloud.google.com/compute/> virtual machines that are behind
> their own gateway. I am seeing ~20ms serving latency for Flex apps in the
> US at the 99th percentile (meaning 99 percent of requests are under 20ms).
>
> There are many factors in App Engine that can be slowing down your ping,
> such as instance startup time (based on your code and runtime), scaling
> settings
> <https://cloud.google.com/appengine/docs/standard/python/config/appref#scaling_elements>,
> and instance class
> <https://cloud.google.com/appengine/docs/standard/#instance_classes>.
> Also your actual coding language adds to the ping time while it
> accepts/processes/and returns the request. Therefore, to get a more
> accurate ping for only the service-to-service communication time, you
> should do it by looking at the actual time your App Engine service accepted
> the request in the Logs Viewer
> <https://console.cloud.google.com/logs/viewer>.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google App Engine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-appengine/2vx4_sdC8v0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-appengine/b0335619-c20c-4938-9994-
> 76549c75f009%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/b0335619-c20c-4938-9994-76549c75f009%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CABOXiu2Sx0P4qzyVLcRYtVvuWbF%2B%2BTs8xVCo3vPsoLKfQ_pQYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] ~20ms latency between two servlets, same project, is that about right?

2017-08-26 Thread Eric Hubbard
Playing around with splitting my project up into separate services, and 
invoking via URLFetch between them.  I'm seeing anywhere from a 20-22ms 
latency on a very basic remote side side.  I'm using Kotlin compiled down 
to java8.   (the ping servlet is in java8...)... 

So.. does ~20ms seem about right? 



val fetchOptions =FetchOptions.Builder.doNotFollowRedirects()
val instanceHostname =getInstanceHostname("default", "1", "$serverNum")
val u = URL("http://$instanceHostname/ping;)
val req = HTTPRequest(u, HTTPMethod.GET, fetchOptions)
val timer = Stopwatch.createStarted()
val fetch = urlFetchService.fetch(req)
val rc = fetch.responseCode
timer.stop()


and then this in the /ping servlet


protected void doGet(HttpServletRequest request, HttpServletResponse response) 
throws ServletException, IOException {
PrintWriter writer = response.getWriter();
writer.println("Hello there from the backend");
writer.flush();
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f4f5bbd0-8f71-4a64-9111-015b7bc6c36d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Handling API versioning issue

2017-08-02 Thread 'Eric So' via Google App Engine
Thanks. Take a look at it now.

Eric So

> On Aug 2, 2017, at 10:47 AM, 'George (Cloud Platform Support)' via Google App 
> Engine <google-appengine@googlegroups.com> wrote:
> 
> Hi Eric, 
> 
> For related versioning information you may consider checking the "Cloud 
> Endpoints API versioning features" sub-chapter of the "API life cycle 
> management" page 
> <https://cloud.google.com/endpoints/docs/lifecycle-management>. 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/wcnWOjK-k2Q/unsubscribe 
> <https://groups.google.com/d/topic/google-appengine/wcnWOjK-k2Q/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> google-appengine+unsubscr...@googlegroups.com 
> <mailto:google-appengine+unsubscr...@googlegroups.com>.
> To post to this group, send email to google-appengine@googlegroups.com 
> <mailto:google-appengine@googlegroups.com>.
> Visit this group at https://groups.google.com/group/google-appengine 
> <https://groups.google.com/group/google-appengine>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/a1e34d0b-809c-4b53-b241-0dd12c058489%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-appengine/a1e34d0b-809c-4b53-b241-0dd12c058489%40googlegroups.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/802F9DF3-9D11-43CB-BEA5-851AD2F172F8%40google.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Handling API versioning issue

2017-08-01 Thread 'Eric So' via Google App Engine
Sorry that this reply thread does not show up in my inbox. I will open a 
bug / issue to track this. 

And I found out from one developer that the application needs to setup 
different classes for different versions. We need to deploy the whole 
application with different versions in one jar or war to support multiple 
versions in one endpoint.

Eric So

On Friday, July 28, 2017 at 10:32:56 AM UTC-7, George (Cloud Platform 
Support) wrote:
>
> Hi Eric, 
>
> If you deploy the new API version to the same application version 1, 
> you'll find it under the same 1-dot-xxx address: the one you mention. 
>
> In such cases, it is more effective to open a bug / issue in the public 
> tracker <https://buganizer.corp.google.com/issues/new>. The tracker is 
> dedicated to such issue, whereas a group such as this one is meant for 
> general discussions and exchange of opinions. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3f30b516-da04-467e-a6b9-1ec506a6ce63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Handling API versioning issue

2017-07-27 Thread 'Eric So' via Google App Engine
Hi All,

I just followed the instruction from our external documentation page, 
https://cloud.google.com/endpoints/docs/frameworks/java/handling-api-versioning.

I have an API application deployed with application version = 1 with api 
version v1.0 two months ago. Today, I am trying to deploy a new API version 
v1.2 or v1.3 to the same application version. I assume the following 
endpoints should work:

1) https://1-dot-x.appspot.com/_ah/api/user/v1.0
2) https://1-dot-x.appspot.com/_ah/api/user/v1.2 or 
https://1-dot-x.appspot.com/_ah/api/user/v1.0

However, when I opened the https://1-dot-x.appspot.com/_ah/api/explorer 
in the browser, I could only find the older version we had. But not the new 
one. I tried to curl or ping the url with the new API version. It returns 
404 NOT FOUND.

I want to ask if it is possible to redeploy Java App to the same app 
version. Also, do we need to keep multiple version of source code in the 
same repo and re-deploy everything again?

Regards,
Eric So

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/06e0d214-5c81-41a8-ab22-e0b0bf7228f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Discovery Doc generation missing "format" tag for doubles

2017-02-10 Thread Eric Wasserman
Hi Alex,

See the example 
here: https://github.com/redi-wassere/google-discovery-doc-example


On Friday, February 10, 2017 at 12:21:40 PM UTC-5, Alex (Cloud Platform 
Support) wrote:
>
> Hi Eric,
>
> Prior proceeding with filing a defect request, I will need to reproduce 
> this issue. Would it be possible for you to provide a minimal working 
> example <https://en.wikipedia.org/wiki/Minimal_Working_Example> 
> demonstrating this issue? To do so, you can attach a sample of the code you 
> used to generate the discovery doc in your reply. Let me know in case you 
> would prefer to be contacted in private so to provide your reproduction.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f4b6cf07-fe93-4596-8941-94677f194a60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Discovery Doc generation missing "format" tag for doubles

2017-02-08 Thread Eric Wasserman
Thanks for the reply, Alex. I wasnt clear in my question, but I have also 
upgraded my iOS code to use the new libraries generated by the service 
generator off of the REST discovery docs. To make the library generation 
work I was forced to manually add the "format": "double" key/value to all 
double number types. Any idea why the discovery doc generation is leaving 
that pair out?

See my related question 
here: 
http://stackoverflow.com/questions/42081267/google-cloud-endpoints-rest-discovery-document-missing-format


On Wednesday, February 8, 2017 at 1:47:15 PM UTC-5, Alex (Cloud Platform 
Support) wrote:
>
> Hi Eric,
>
> As part of the Cloud Endpoints Framework 2.0, the JSON-RPC protocol, which 
> is required for legacy iOS clients and automatic kind fields features are 
> not currently available. See Currently excluded features and tools for 
> Cloud Endpoints 2.0 documentation 
> <https://cloud.google.com/appengine/docs/java/endpoints/migrating#currently_excluded_features_and_tools>
>  
> for more details. In case you require any of these features, migration to 
> Cloud Endpoints 2.0 is currently not recommended.
>
> More on the topic of RPC functionality, you may be interested in the Cloud 
> Endpoints for gRPC APIs concepts 
> <https://cloud.google.com/endpoints/docs/grpc> which would serve as the 
> new and faster method for directly calling methods on a server application 
> on a different machine. More details on how to use this new feature are 
> provided on the  Configuring a gRPC API Service guide 
> <https://cloud.google.com/endpoints/docs/grpc-service-config>. Note that 
> this is a Beta release of Google Cloud Endpoints. This feature is not 
> covered by any SLA or deprecation policy and may be subject to 
> backward-incompatible changes.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4dce1f99-886d-4260-b4b1-c7e21b1094ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Discovery Doc generation missing "format" tag for doubles

2017-02-07 Thread Eric Wasserman
I upgraded to Cloud Endpoints 2.0 recently. I never saw this issue when 
generating the now deprecated RPC doc. I believe there is an issue with 
discovery document generation, where it doesn't create the '"format": 
"double' for double fields. creditAmount below should have the format tag. 

Fixing this manually for all the similar fields fixed the errors when 
running the service generator for iOS client library generation. Has 
anybody else encountered this?

See:


"creditKickbackKash": {
 "httpMethod": "PUT",
 "id": "servUsApi.admin.creditKickbackKash",
 "parameterOrder": [
  "userId",
  "creditAmount"
 ],
 "parameters": {
  "userId": {
   "format": "int64",
   "location": "path",
   "required": true,
   "type": "string"
  },
  "creditAmount": {
   "location": "path",
   "required": true,
   "type": "number"
  }
 },
 "path": "creditKickbackKash/{userId}/{creditAmount}",
 "response": {
  "$ref": "ResultDTO"
 },
 "scopes": [
  "https://www.googleapis.com/auth/userinfo.email;
 ]
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/58ce01ae-b6b7-413d-9c5b-118c9f20a6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Can't delete property of entity, or even the entity itself (datastore)

2017-01-23 Thread Eric Irish
I've got an entity that contains a JSON array per property. One of the 
properties has become rather large: the index count is 14,697 for a total 
of 1.5MBs. I need to delete this property, or the whole entity in general, 
but it seems to be impossible. I've tried editing the property to manually 
remove much of the JSON array. I've tried deleting the property inside of 
the entity, and I'm met with a "pending deletion" message, which never goes 
through. I've tried deleting the whole entity from the admin console, but 
when I try to track the job by the ID, it errors out. Has anyone run into 
this before?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/aa8d50e7-79a4-4b03-ab26-ff38975c00af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: service account auth to Calendar API stopped working Oct 20

2016-11-03 Thread Eric G
Thanks. It seems to work now, oddly without even doing 
credentials.create_delegated (but I may be mistaken, I only tested it 
briefly in an offline context. In my GAE application, I've switched it to 
use standard 3-legged OAuth instead of service accounts).

Anyway, if credentials.create_delegated is essential for service accounts 
with DwD, I would propose making it more obvious in the documentation 
<https://developers.google.com/identity/protocols/OAuth2ServiceAccount>. I 
carefully read that page several times and missed it. The way the document 
hierarchy reads, it looks like it is on the same level as "Google App 
Engine", "Google Compute Engine", and "Other". So if you are looking for 
GAE instructions, you may think it doesn't apply to you. I would suggest 
moving that up one level in the hierarchy so you'd have:

1. Create a Credentials object from the service account's credentials and 
the scopes your application needs access to.

2. If you have delegated domain-wide access to the service account and you 
want to impersonate a user account, use thecreate_delegated method of an 
existing ServiceAccountCredentials object. 

3. Use the authorize method of the Credentials object to apply the 
necessary credential headers to all requests made by an httplib2.Http
 instance. 


I would have left this as a comment, but I don't see a way to give 
documentation feedback on that page.

Thanks again,
Eric


On Tuesday, November 1, 2016 at 11:22:12 AM UTC-4, George (Cloud Platform 
Support) wrote:
>
> Hello Eric!
>
> For your new service accounts, your code imports credentials from a stored 
> JSON file, which is one of the possible alternatives, all of which should 
> work well. 
>
> How did you grant domain-wide access to your service account, exactly? 
>
> Did you then implement the OAuth2WebServerFlow as described on the “OAuth 
> 2.0” page 
> <https://developers.google.com/api-client-library/python/guide/aaa_oauth>? 
>
>
> If you delegated domain-wide access to your service account successfully, 
> you need to use the "delegated_credentials = credentials.
> *create_delegated*('u...@example.org ')" statement to 
> impersonate a user with the service account, as indicated at the “Delegate 
> domain-wide authority” paragraph on the “Using OAuth 2.0 for Server to 
> Server Applications” page 
> <https://developers.google.com/identity/protocols/OAuth2ServiceAccount>. 
>
> I hope this helps for now. I’ll look at your code and try to reproduce the 
> bug meanwhile, waiting for your reply. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f0336a3b-878d-420a-89fb-0b36511c479a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: service account auth to Calendar API stopped working Oct 20

2016-10-29 Thread Eric G
Details below. I also opened an issue on the apps-api-issues:
https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=4870=Stars%20Opened%20ID%20Type%20Status%20Summary%20API%20Owner

I successfully switched the app to use 3-legged OAuth vs. service account 
OAuth, but still would like to get to the bottom of this, as I'd prefer to 
use service account OAuth for testing and maintenance programs that hit 
this API, and also for the benefit of others who may be having the problem.

G Suite tech support suggested after setting up DwD you may have to use 
credentials.create_delegated('some.real.u...@example.com')  -- as mentioned 
on this page 
<https://developers.google.com/identity/protocols/OAuth2ServiceAccount> (but 
without any indication that it's necessary, and very easy to miss). I have 
not tried that but will in the next day or two.


On Tuesday, October 25, 2016 at 4:33:25 PM UTC-4, George (Cloud Platform 
Support) wrote:
>
> Hello Eric!
> More detail is needed, to investigate your problem: 
> - About the client library: language, version (GData, API Client ?). 
>

- Python 2.7 App Engine runtime
- google-api-python-client==1.5.3
- oauth2client==4.0.0
 

>  
> - API scopes? 
>
https://www.googleapis.com/auth/calendar 
<https://www.googleapis.com/auth/calendar'> 

- The actual URL posted in your app call. 
>
GET 
https://www.googleapis.com/calendar/v3/calendars/ert.com_2tg0olqm8t766rjutjjc0hns8o%40group.calendar.google.com/events?orderBy=startTime=2016-10-28T00%3A00%3A00Z=nextPageToken%2Citems=true=250=json

POST 
https://www.googleapis.com/calendar/v3/calendars/ert.com_2tg0olqm8t766rjutjjc0hns8o%40group.calendar.google.com/events?alt=json
 

> - Code (HTTP Request)?
>

See issue 
<https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=4870=Stars%20Opened%20ID%20Type%20Status%20Summary%20API%20Owner>
 

>  
> - Are there other accounts affected, or just one, or few? 
>

All the service accounts we set up.
 

> - In case an account works well, email address and user? 
> - Any part of your code you deem significant.  
> - Request output.
>

GET: 

<https://lh3.googleusercontent.com/-r-HOZ91Nh1E/WBTh1yjyYEI/C-0/8u1-gn1JPaMcK_uu4edX-VYM4Dr2zSC9QCLcB/s1600/calendarapiGET.png>


POST:

<https://lh3.googleusercontent.com/-TrhzBL4xx6o/WBTh7qKBFcI/C-4/ecbgPgWSrPIrensRlvRCvk9EubNBcNVygCLcB/s1600/calendarapiPOST.png>


 

>
> - Eventual screenshots of the results, if relevant. 
> - If possible, HTTP Request and Response headers, or full HTTP logs. 
>
> Waiting for information; let me know if I may help otherwise. 
>
> On Monday, October 24, 2016 at 2:46:28 PM UTC-4, Eric G wrote:
>>
>> I have a GAE project (python 2.7 runtime) that uses the Google Calendar 
>> API v3. Up until last week, I had been using the default GAE service 
>> account to connect to the calendar API, and the service account was given 
>> read/write permission to the calendar under calendar sharing settings.
>>
>>
>> Since last Thursday Oct 20, the service account cannot write to the 
>> calendar (events.post or events.patch) -- returns a 403 Forbidden -- and 
>> reads (events.list) return 200, but no records. Checking the permissions 
>> for the account under calendar sharing, it has been changed to "See 
>> Free/Busy only".
>>
>>
>> I believe this is related to this announcement from Google about winding 
>> down OAuth 1.0 service accounts on Oct 20: 
>> https://developers.googleblog.com/2016/04/saying-goodbye-to-oauth-10-2lo.html
>>
>>
>> The recommendation seems to be to grant Domain Wide Delegation to the 
>> service account: 
>> https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority
>>
>>
>> We have followed the instructions on this page, but it doesn't work using 
>> either AppAssertionCredentials or ServiceAccountCredentials.  
>>
>> More details at this SO question:
>>
>> http://stackoverflow.com/questions/40223292/google-app-engine-auth-for-google-apis-using-service-account
>>
>> Thanks for any light you can shine on this problem.
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/58b79a43-1b53-4407-9916-01961f31537b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] service account auth to Calendar API stopped working Oct 20

2016-10-24 Thread Eric G


I have a GAE project (python 2.7 runtime) that uses the Google Calendar API 
v3. Up until last week, I had been using the default GAE service account to 
connect to the calendar API, and the service account was given read/write 
permission to the calendar under calendar sharing settings.


Since last Thursday Oct 20, the service account cannot write to the 
calendar (events.post or events.patch) -- returns a 403 Forbidden -- and 
reads (events.list) return 200, but no records. Checking the permissions 
for the account under calendar sharing, it has been changed to "See 
Free/Busy only".


I believe this is related to this announcement from Google about winding 
down OAuth 1.0 service accounts on Oct 20: 
https://developers.googleblog.com/2016/04/saying-goodbye-to-oauth-10-2lo.html


The recommendation seems to be to grant Domain Wide Delegation to the 
service account: 
https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority


We have followed the instructions on this page, but it doesn't work using 
either AppAssertionCredentials or ServiceAccountCredentials.  

More details at this SO question:
http://stackoverflow.com/questions/40223292/google-app-engine-auth-for-google-apis-using-service-account

Thanks for any light you can shine on this problem.



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/85d501e3-6cbd-4616-95cc-39392acc75b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request

2015-06-24 Thread Eric Froemling
I started seeing this too a day or so ago too (somewhere around 9-10PM EST 
monday night). For me it's not limited to deferred requests; I'm seeing 
large numbers of these failures across all my requests.  I've found I can 
keep things under control by cranking max_idle_instances way up (I usually 
leave it at zero), but I really hope this gets resolved soon.  I also 
noticed this exact same thing happening several weeks back; in that case it 
lasted started on a saturday and seemed to get resolved the following 
monday.

Anyone else seeing this or know what could be happening here?
Thanks,
-Eric

On Tuesday, June 23, 2015 at 2:01:42 AM UTC-7, PK wrote:

 For the past few days I see a lot of aborted calls with the message

 Request was aborted after waiting too long to attempt to service your 
 request”

 It comes from deferred and other queued requests, I have not seen any 
 change with interactive calls. Has anybody else noticed similar behavior? I 
 use the scheduler with the default settings. Has anything changed?

 Thanks,
 PK
 p...@gae123.com javascript:



  


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b18882aa-d5e4-4d01-8297-7479f6b2ca51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine Task Queue: googleapi: Error 500: Backend Error

2015-03-23 Thread Eric G
Hey, thanks for this Frank(s)!  Solved my problem too. I'm submitting a 
feedback request to Google's documentation on this.

One other thing I had to do was make sure my project in the URL was 
prefixed with s~, as suggested in responses to the SO question here:
http://stackoverflow.com/questions/20052778/google-app-engine-task-queue-googleapi-error-500-backend-error?rq=1

Eric

On Tuesday, August 26, 2014 at 8:47:50 PM UTC-4, Frank Ren wrote:

 Hi

 Did you solve your problem?

 I got the same problem... Just solved it by supplying to request body a 
 property, queueName, which is not documented.

 Frank, yet another :)

 On Tuesday, November 19, 2013 12:49:00 AM UTC+8, Frank Blechschmidt wrote:

 Hey :)

 I've defined a pull queue for my app engine application and want to fill 
 it from outside via the REST api. Unfortunately it doesn't work, I always 
 get an error 500: backend error. Even if I try to fill it with the api 
 explorer from thedocumentation.

 https://developers.google.com/appengine/docs/go/taskqueue/rest/tasks/insert

 It responses:

 500 Internal Server Error
 - Show headers -
 {
  error: {
   errors: [
{
 domain: global,
 reason: backendError,
 message: Backend Error
}
   ],
   code: 500,
   message: Backend Error
  }}

 Any idea how to solve it?

 Best regards Frank



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d0ef1c70-51be-4ee9-ab98-4d67e9775deb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google Code issue tracker cleanup

2014-08-07 Thread Eric Tray
Obviously getting feedback from users is not too vital to you guys 
otherwise you would'nt have ignored the Issue Tracker for 4+ years. How is 
it that no one is held accountable for this? How is this acceptable for a 
company such as Google? 

If it takes you this long just to fix the issue tracker, I can only imagine 
how long it will take for the actual issues themselves to get resolved. 
Maybe 5 years later we will actually get Servlet 3.0 support. Probably not 
though.

On Wednesday, July 9, 2014 10:48:52 AM UTC-4, Jesse Scherer (Google) wrote:

 Over the past few years we have fallen behind on updating our issue 
 tracker on Google Code. But since getting feedback from our users is vital 
 to us, we will be renewing our focus on making the tracker useful to you.

 We must work through the large number of open issues which exist today. 
 Many of the older issues issues represent popular feature requests, but 
 others were opened long ago and are no longer relevant to the person who 
 opened them or to the App Engine community.

 We wish to fix this so that developers can easily find and follow issues 
 which apply to them. So, over the next few weeks we will review open issues 
 and close those that are obsolete and merge related issues together when 
 possible.

 There is much work to do here, and in some cases we may inadvertently 
 close issues which are still relevant and important. If an issue which 
 affects you is closed and marked as obsolete or as a duplicate of another 
 issue, please comment on the issue so we can take another look.

 How you can help

 --

 1. Check for a duplicate first. If so, star that issue. We often do sorts 
 by number of stars, so if it's a common issue, lots of duplicates can cause 
 us to miss it

 2. Write a clear, concise bug report. This is a report that needs to be 
 read several times. Write very clearly reproduction steps, OS, SDK version 
 and post code if you can. If we can't understand the bug report, we will 
 close it. 

 3. Follow up. We will sometimes post questions in the bug. If we don't 
 receive a response, we will close the bug. Also - if it turns out to be 
 user error, it helps us a lot if you post your fix. This sometimes helps us 
 expose places where we can improve our documentation.

 Thank you all in advance for your support and commitment.

 -- 

 Jesse Scherer | Technical Program Manager | jsch...@google.com 
 javascript:



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: too many appengine frontend instances

2014-05-09 Thread Eric Ka Ka Ng
we are with 200 frontend instances too.. the overall performance is
very slow, and the cost becomes huge


On 9 May 2014 17:24, Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com wrote:

 The issue begun with v. 1.9.5 but now the new instaces are created with
 1.9.4 so i have about 220 instances on 1.9.5 and 110 on 1.9.4.
 On 9 May 2014 12:21, timh zutes...@gmail.com wrote:

 I am still on 1.9.4 and not seeing this.

 Is everyone experiencing this rolled over to 1.9.5 ?

 T

 On Friday, May 9, 2014 11:40:19 AM UTC+8, blackdew wrote:

 my server make too many Frontend instances

 may be it make instance per request

 from 2 hours ago

 and my last deploy was yesterday may be 24 hours ago

 so, help and give me any advice

 thanks

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/tlQPHCvP-14/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com.

 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/d/optout.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: App Engine 1.9.4 Released

2014-05-07 Thread Eric Han
thanks - the link worked just now for me. Let me know if you're still 
having troubles. The blog link is to the 1.9.3 release, hence my comment 
on this [1.9.4] and the past [1.9.3] release, please see our blog post 
[from 1.9.3 where it talks about the immediate next releases]. apologies 
if that wasn't clear.

As for Java, no updates to share about in my post. More will be coming soon 
:).

On Thursday, May 1, 2014 6:05:49 PM UTC-7, husayt wrote:

 Hi Eric, the link to blog post is wrong.
 Besides, is there anything for java version?
 thanks

 On Thursday, 1 May 2014 22:06:31 UTC+1, Eric Han wrote:

 Hi Everyone,
 We are pleased to announce the latest release of Google App Engine 1.9.4. 
 For more about the general theme on this and the past release, please see 
 our blog 
 post(http://googlecloudplatform.blogspot.com/2014/04/announcing-release-of-google-app-engine-1-9-3.html).

 Release 1.9.4 includes the following enhancements.
 Version 1.9.4 - April 30, 2014

 *Python*

- Fixed an issue with the Search API where it does not correctly parse 
 expressions that use the subtraction operator without surrounding 
 whitespaces.
- Fixed an issue with the devappserver Search API allowing searches for a 
 field with a negated value.
- Fixed an issue with the devappserver Search API not handling searches 
 for empty quotes the same way as production.
- Fixed an issue with the devappserver Search API not matching documents 
 with atom fields the same way as production.
- Fixed an issue with the devappserver Search API allowing expressions 
 that use the snippet operator over a numeric field.
- Fixed an issue with the devappserver Search API allowing sorting 
 expressions to use the snippet operator.
- Fixed an issue with the devappserver Search API not validating that 
 cursors are from a previous search.
- Fixed an issue with the devappserver Search API not parsing queries 
 that use the fuzzy search operator (~).
- Fixed an issue with the devappserver Search API not validating the 
 default value for sorting expressions on date fields.
- Fixed an issue with the devappserver memcache viewer not displaying 
 items with non-ASCII characters properly.
   - https://code.google.com/p/googleappengine/issues/detail?id=9459
- Fixed an issue with the devappserver allowing arbitrarily large file 
 uploads using HTTP POST requests. It now matches production limits of 32MB.
   - https://code.google.com/p/googleappengine/issues/detail?id=10384
- Fixed an issue with NDB deserialization looping infinitely when nested 
 value is None.
   - https://code.google.com/p/googleappengine/issues/detail?id=10758

 *PHP*

- Fixed an issue with libcurl giving a load error for Mac OS X Snow 
 Leopard clients.
   - https://code.google.com/p/googleappengine/issues/detail?id=10405
- Fixed an issue with making simultaneous mysqli connections to the same 
 CloudSQL instance causing the request to time out.


 thanks,eric hanGoogle Cloud Platform



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine 1.9.4 Released

2014-05-05 Thread Eric Han


Hi Everyone,
We are pleased to announce the latest release of Google App Engine 1.9.4. For 
more about the focus of this and the last release, please see our blog post 
(http://googlecloudplatform.blogspot.com/2014/04/announcing-release-of-google-app-engine-1-9-3.html).
 

Version 1.9.4 - April 30, 2014

*Python*


   - Fixed an issue with the Search API where it does not correctly parse 
expressions that use the subtraction operator without surrounding whitespaces.
 - Fixed an issue with the devappserver Search API allowing searches 
for a field with a negated value.
 - Fixed an issue with the devappserver Search API not handling 
searches for empty quotes the same way as production.
 - Fixed an issue with the devappserver Search API not matching 
documents with atom fields the same way as production.
 - Fixed an issue with the devappserver Search API allowing expressions 
that use the snippet operator over a numeric field.
 - Fixed an issue with the devappserver Search API allowing sorting 
expressions to use the snippet operator.
 - Fixed an issue with the devappserver Search API not validating that 
cursors are from a previous search.
 - Fixed an issue with the devappserver Search API not parsing queries 
that use the fuzzy search operator (~).
 - Fixed an issue with the devappserver Search API not validating the 
default value for sorting expressions on date fields.
 - Fixed an issue with the devappserver memcache viewer not displaying 
items with non-ASCII characters properly.
- https://code.google.com/p/googleappengine/issues/detail?id=9459
 - Fixed an issue with the devappserver allowing arbitrarily large file 
uploads using HTTP POST requests. It now matches production limits of 32MB.
- https://code.google.com/p/googleappengine/issues/detail?id=10384
 - Fixed an issue with NDB deserialization looping infinitely when 
nested value is None.
- https://code.google.com/p/googleappengine/issues/detail?id=10758
 
*PHP*


   - Fixed an issue with libcurl giving a load error for Mac OS X Snow Leopard 
clients.
- https://code.google.com/p/googleappengine/issues/detail?id=10405
 - Fixed an issue with making simultaneous mysqli connections to the 
same CloudSQL instance causing the request to time out.
  

thanks, Eric Han
Google Cloud Platform

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine 1.9.4 Released

2014-05-01 Thread Eric Han


Hi Everyone,
We are pleased to announce the latest release of Google App Engine 1.9.4. For 
more about the general theme on this and the past release, please see our blog 
post(http://googlecloudplatform.blogspot.com/2014/04/announcing-release-of-google-app-engine-1-9-3.html).

Release 1.9.4 includes the following enhancements.
Version 1.9.4 - April 30, 2014

*Python*

   - Fixed an issue with the Search API where it does not correctly parse 
expressions that use the subtraction operator without surrounding whitespaces.
   - Fixed an issue with the devappserver Search API allowing searches for a 
field with a negated value.
   - Fixed an issue with the devappserver Search API not handling searches for 
empty quotes the same way as production.
   - Fixed an issue with the devappserver Search API not matching documents 
with atom fields the same way as production.
   - Fixed an issue with the devappserver Search API allowing expressions that 
use the snippet operator over a numeric field.
   - Fixed an issue with the devappserver Search API allowing sorting 
expressions to use the snippet operator.
   - Fixed an issue with the devappserver Search API not validating that 
cursors are from a previous search.
   - Fixed an issue with the devappserver Search API not parsing queries that 
use the fuzzy search operator (~).
   - Fixed an issue with the devappserver Search API not validating the default 
value for sorting expressions on date fields.
   - Fixed an issue with the devappserver memcache viewer not displaying items 
with non-ASCII characters properly.
  - https://code.google.com/p/googleappengine/issues/detail?id=9459
   - Fixed an issue with the devappserver allowing arbitrarily large file 
uploads using HTTP POST requests. It now matches production limits of 32MB.
  - https://code.google.com/p/googleappengine/issues/detail?id=10384
   - Fixed an issue with NDB deserialization looping infinitely when nested 
value is None.
  - https://code.google.com/p/googleappengine/issues/detail?id=10758
   
*PHP*

   - Fixed an issue with libcurl giving a load error for Mac OS X Snow Leopard 
clients.
  - https://code.google.com/p/googleappengine/issues/detail?id=10405
   - Fixed an issue with making simultaneous mysqli connections to the same 
CloudSQL instance causing the request to time out.


thanks,eric hanGoogle Cloud Platform

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Snapchat

2014-01-19 Thread Eric Ng Ka Ka
What surprise you? Many better services are on GAE. What so special for 
snapchat? (Technical points of view)



 Kaan Soral kaanso...@gmail.com 於 17 Jan, 2014 7:15 am 寫道:
 
 I was surprised when I learned that Snapchat was built on App Engine 
 http://mashable.com/2014/01/12/stages-of-snapchat-comic/
 
 I've also been investing a lot on App Engine for years, it's reassuring to 
 see others do too
 
 What do you guys think?
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] Disable permissions checks in the dev server - it's causing major problems in Ubuntu

2013-12-26 Thread Eric
I'm having a major problem running my app on the dev server.  I'm using 
Thymeleaf and Spring 4.  I'm getting permission problems like this:

java.lang.IllegalAccessException: Class 
com.google.appengine.tools.development.agent.runtime.Runtime$21 can not 
access a member of class 
org.thymeleaf.spring4.requestdata.RequestDataValueProcessor4Delegate with 
modifiers public
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:105)
at 
com.google.appengine.tools.development.agent.runtime.Runtime$22.run(Runtime.java:488)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.checkAccess(Runtime.java:485)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.checkAccess(Runtime.java:479)

even though it definitely should be working.  I am told that it all works 
fine on the actual app engine (deployment) but it's not working on my 
Ubuntu desktop machine.  I'm pretty sure this is some problem in 
interaction between GAE and the Ubuntu JVM.  It's absolutely killing me. 
 It seems like the simplest solution would be to turn off all permissions 
checks on the dev server.  I've tried to do that by recompiling but I'm 
having a hard time with the guild process (I should recompile Runtime.java 
but I'm not getting the dependencies to work for that).

Any suggestions on this?  I can't over-emphasize, this is a totally fatal 
problem for anyone developing on a Linux desktop.  I'm about to pull the 
app from GAE and switch to some other service, over this one issue.  I'm 
eager to hire anyone to help me rebuild the dev server if that's possible. 
 Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Re: retrieve old logs from GAE

2013-08-17 Thread Eric Ka Ka Ng
Yes, suppose normally I can't get back the rotated logs. just wonder would
there be any special ways, coz i believe the rotated logs is not really
deleted permanently 



On 17 August 2013 11:19, Vinny P vinny...@gmail.com wrote:

 On Fri, Aug 16, 2013 at 7:58 PM, Eric Ka Ka Ng ngk...@gmail.com wrote:

 Yes. But does it mean I can immediately get the logs 2 months ago?



 If they're not currently in the App Engine logs page, no you cannot get
 past deleted logs.


 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] retrieve old logs from GAE

2013-08-16 Thread Eric Ka Ka Ng
Hi,

my app has default log setting with 1GB storage, which spanning like around
23 days.

for some special cases, i want to retrieve logs older than 23 days, like
around 2 months ago.

do anyone know, is there any methods I can do this? any channels to reach
google if would like to have this special request? coz that's quite
important to us. appreciate for any ideas or experiences. thx!

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [google-appengine] Re: retrieve old logs from GAE

2013-08-16 Thread Eric Ka Ka Ng
Hi Jason,

Yes. But does it mean I can immediately get the logs 2 months ago?

- eric


On 17 August 2013 03:41, Jason Collins jason.a.coll...@gmail.com wrote:

 Can't you just increase your log storage allocation on Application
 Settings (see: Logs Retention)?
 j


 On Friday, 16 August 2013 10:33:08 UTC-6, Eric Ka Ka Ng wrote:

 Hi,

 my app has default log setting with 1GB storage, which spanning like
 around 23 days.

 for some special cases, i want to retrieve logs older than 23 days, like
 around 2 months ago.

 do anyone know, is there any methods I can do this? any channels to reach
 google if would like to have this special request? coz that's quite
 important to us. appreciate for any ideas or experiences. thx!

 - eric

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


[google-appengine] The Users Service.

2013-08-09 Thread Eric Sepich
I have deployed:
https://developers.google.com/appengine/docs/java/gettingstarted/usingusers

I am greeted by my Gmail username when I visit the page.


package com.clock;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.*;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

@SuppressWarnings(serial)
public class ClockecsServlet extends HttpServlet {
public void doGet(HttpServletRequest req,
  HttpServletResponse resp)
throws IOException, ServletException {
SimpleDateFormat fmt = new SimpleDateFormat(-MM-dd 
hh:mm:ss.SS);
fmt.setTimeZone(new SimpleTimeZone(0, ));

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
String loginUrl = userService.createLoginURL(/);
String logoutUrl = userService.createLogoutURL(/);

req.setAttribute(user, user);
req.setAttribute(loginUrl, loginUrl);
req.setAttribute(logoutUrl, logoutUrl);
req.setAttribute(currentTime, fmt.format(new Date()));

resp.setContentType(text/html);

RequestDispatcher jsp = 
req.getRequestDispatcher(/WEB-INF/home.jsp);
jsp.forward(req, resp);
}
}

%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
html
  head
titleThe Time Is.../title
  /head
  body
c:choose
  c:when test=${user != null}
p
  Welcome, ${user.email}!
  You can a href=${logoutUrl}sign out/a.
/p
  /c:when
  c:otherwise
p
  Welcome!
  a href=${loginUrl}Sign in or register/a to customize.
/p
  /c:otherwise
/c:choose
pThe time is: ${currentTime}/p
  /body
/html


In the application above 

c:when test=${user != null}

is not evaluating to anything and I am greeted by *Welcome! Sign in or 
register*. Since I am logged into Gmail it should display *Welcome! You can 
sign out *
*
*
I am wondering if req.setAttribute(user, user); has set anything at all. 
It does not seem like it. I see what looks like a good call to User user = 
userService.getCurrentUser(); in the servlet. I don't see the problem yet. 
Does anyone know what could be wrong with the code?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Users and Google Accounts

2013-08-06 Thread Eric Sepich
package clock;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.*;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

@SuppressWarnings(serial)
public class ClockServlet extends HttpServlet {
public void doGet(HttpServletRequest req,
  HttpServletResponse resp)
throws IOException, ServletException {
SimpleDateFormat fmt = new SimpleDateFormat(-MM-dd 
hh:mm:ss.SS);
fmt.setTimeZone(new SimpleTimeZone(0, ));

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
String loginUrl = userService.createLoginURL(/);
String logoutUrl = userService.createLogoutURL(/);

req.setAttribute(user, user);
req.setAttribute(loginUrl, loginUrl);
req.setAttribute(logoutUrl, logoutUrl);
req.setAttribute(currentTime, fmt.format(new Date()));

resp.setContentType(text/html);

RequestDispatcher jsp = 
req.getRequestDispatcher(/WEB-INF/home.jsp);
jsp.forward(req, resp);
}
}


---

%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
html
  head
titleThe Time Is.../title
  /head
  body
c:choose
  c:when test=${user != null}
p
  Welcome, ${user.email}!
  You can a href=${logoutUrl}sign out/a.
/p
  /c:when
  c:otherwise
p
  Welcome!
  a href=${loginUrl}Sign in or register/a to customize.
/p
  /c:otherwise
/c:choose
pThe time is: ${currentTime}/p
  /body
/html
-

Even though I am signed in to my Google Account in Chrome I am still seeing 
Sign in or register not Welcome as I expected. When I click Sign in I am 
forwarded to a page with one text field to enter an email and a check box 
to sign in as administrator. There must be something wrong because I think 
since I am logged into gmail it should display welcome?

Thanks in advance...


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Users and Google Accounts

2013-08-06 Thread Eric Sepich
I since deployed the application to make sure that perhaps it was not some 
limitation of the eclipse development environment and I still see the 
home.jsp not recognizing the user variable even though the browser is 
logged into gmail.

On Tuesday, August 6, 2013 1:49:29 PM UTC-7, Eric Sepich wrote:

 package clock;

 import java.io.IOException;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.SimpleTimeZone;
 import javax.servlet.RequestDispatcher;
 import javax.servlet.ServletException;
 import javax.servlet.http.*;

 import com.google.appengine.api.users.User;
 import com.google.appengine.api.users.UserService;
 import com.google.appengine.api.users.UserServiceFactory;

 @SuppressWarnings(serial)
 public class ClockServlet extends HttpServlet {
 public void doGet(HttpServletRequest req,
   HttpServletResponse resp)
 throws IOException, ServletException {
 SimpleDateFormat fmt = new SimpleDateFormat(-MM-dd 
 hh:mm:ss.SS);
 fmt.setTimeZone(new SimpleTimeZone(0, ));

 UserService userService = UserServiceFactory.getUserService();
 User user = userService.getCurrentUser();
 String loginUrl = userService.createLoginURL(/);
 String logoutUrl = userService.createLogoutURL(/);

 req.setAttribute(user, user);
 req.setAttribute(loginUrl, loginUrl);
 req.setAttribute(logoutUrl, logoutUrl);
 req.setAttribute(currentTime, fmt.format(new Date()));

 resp.setContentType(text/html);
 
 RequestDispatcher jsp = 
 req.getRequestDispatcher(/WEB-INF/home.jsp);
 jsp.forward(req, resp);
 }
 }


 ---

 %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
 html
   head
 titleThe Time Is.../title
   /head
   body
 c:choose
   c:when test=${user != null}
 p
   Welcome, ${user.email}!
   You can a href=${logoutUrl}sign out/a.
 /p
   /c:when
   c:otherwise
 p
   Welcome!
   a href=${loginUrl}Sign in or register/a to customize.
 /p
   /c:otherwise
 /c:choose
 pThe time is: ${currentTime}/p
   /body
 /html

 -

 Even though I am signed in to my Google Account in Chrome I am still 
 seeing Sign in or register not Welcome as I expected. When I click Sign in 
 I am forwarded to a page with one text field to enter an email and a check 
 box to sign in as administrator. There must be something wrong because I 
 think since I am logged into gmail it should display welcome?

 Thanks in advance...




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] CodeLabEx1-starter missing jar files.

2013-08-01 Thread Eric Sepich
When I import the sample I am seeing some errors regarding missing jar 
files. Is it normal to have to add these jar files to the project manually?

The App Engine SDK JAR geronimo-jta_1.1_spec-1.1.1.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR geronimo-jpa_3.0_spec-1.1.1.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR jdo2-api-2.3-eb.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR appengine-endpoints.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR appengine-api-labs.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR jsr107cache-1.1.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR appengine-jsr107cache-1.8.2.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-appengine-1.0.10.final.jar is missing in 
the WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR appengine-api-1.0-sdk-1.8.2.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-jpa-1.1.5.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-core-1.1.5.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem

Thanks in advance for any replies...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: CodeLabEx1 in Eclipse Keplar.

2013-08-01 Thread Eric Sepich
Thank you that was most helpful.

On Wednesday, July 31, 2013 7:04:14 PM UTC-7, Eric Sepich wrote:

 There seems to be some kind of error when I import CodeLabEx1 into Eclipse 
 Keplar:


 https://lh5.googleusercontent.com/-qHMWqzQ775Y/UfnB6PTr_dI/ADc/-kJGkW6pqUw/s1600/Screenshot+%2813%29.png


 Does anyone know what might be wrong here? The output when I try to run 
 the application is as follows:







 Jul 31, 2013 5:13:35 PM 
 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
 INFO: Successfully processed 
 C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml
 Jul 31, 2013 5:13:35 PM 
 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
 SEVERE: Received exception processing 
 C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml
 com.google.apphosting.utils.config.AppEngineConfigException: 
 appengine-web.xml does not contain a threadsafe element.
 See 
 http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests
  for more information.
 You probably want to enable concurrent requests.
 at 
 com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:85)
 at 
 com.google.apphosting.utils.config.EarHelper.readWebModule(EarHelper.java:166)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager$WarModuleConfigurationHandle.readConfiguration(ApplicationConfigurationManager.java:399)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager.init(ApplicationConfigurationManager.java:146)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager.newWarConfigurationManager(ApplicationConfigurationManager.java:88)
 at 
 com.google.appengine.tools.development.DevAppServerImpl.init(DevAppServerImpl.java:137)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at 
 com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:233)
 at 
 com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:87)
 at 
 com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:380)
 at 
 com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
 at 
 com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:334)
 at 
 com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:310)

 com.google.apphosting.utils.config.AppEngineConfigException: 
 Invalid configuration
 at 
 com.google.appengine.tools.development.DevAppServerImpl.reportDeferredConfigurationException(DevAppServerImpl.java:414)
 at 
 com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
 at 
 com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:399)
 at 
 com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
 at 
 com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:334)
 at 
 com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:310)
 Caused by: 
 com.google.apphosting.utils.config.AppEngineConfigException: Invalid 
 appengine-web.xml(C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml)
  - appengine-web.xml does not contain a threadsafe element.
 See 
 http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests
  for more information.
 You probably want to enable concurrent requests.
 at 
 com.google.apphosting.utils.config.EarHelper.readWebModule(EarHelper.java:168)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager$WarModuleConfigurationHandle.readConfiguration(ApplicationConfigurationManager.java:399)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager.init(ApplicationConfigurationManager.java:146)
 at 
 com.google.appengine.tools.development.ApplicationConfigurationManager.newWarConfigurationManager(ApplicationConfigurationManager.java:88

[google-appengine] CodeLabEx1 in Eclipse Keplar.

2013-07-31 Thread Eric Sepich
There seems to be some kind of error when I import CodeLabEx1 into Eclipse 
Keplar:

https://lh5.googleusercontent.com/-qHMWqzQ775Y/UfnB6PTr_dI/ADc/-kJGkW6pqUw/s1600/Screenshot+%2813%29.png


Does anyone know what might be wrong here? The output when I try to run the 
application is as follows:







Jul 31, 2013 5:13:35 PM 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed 
C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml
Jul 31, 2013 5:13:35 PM 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
SEVERE: Received exception processing 
C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: 
appengine-web.xml does not contain a threadsafe element.
See 
http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests
 for more information.
You probably want to enable concurrent requests.
at 
com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:85)
at 
com.google.apphosting.utils.config.EarHelper.readWebModule(EarHelper.java:166)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager$WarModuleConfigurationHandle.readConfiguration(ApplicationConfigurationManager.java:399)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager.init(ApplicationConfigurationManager.java:146)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager.newWarConfigurationManager(ApplicationConfigurationManager.java:88)
at 
com.google.appengine.tools.development.DevAppServerImpl.init(DevAppServerImpl.java:137)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at 
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:233)
at 
com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer(DevAppServerFactory.java:87)
at 
com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:380)
at 
com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at 
com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:334)
at 
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:310)

com.google.apphosting.utils.config.AppEngineConfigException: 
Invalid configuration
at 
com.google.appengine.tools.development.DevAppServerImpl.reportDeferredConfigurationException(DevAppServerImpl.java:414)
at 
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:211)
at 
com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:399)
at 
com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at 
com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:334)
at 
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:310)
Caused by: 
com.google.apphosting.utils.config.AppEngineConfigException: Invalid 
appengine-web.xml(C:\Users\Eric\Desktop\CodeLabEx1-starter\CodeLabEx1-starter\war\WEB-INF/appengine-web.xml)
 - appengine-web.xml does not contain a threadsafe element.
See 
http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests
 for more information.
You probably want to enable concurrent requests.
at 
com.google.apphosting.utils.config.EarHelper.readWebModule(EarHelper.java:168)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager$WarModuleConfigurationHandle.readConfiguration(ApplicationConfigurationManager.java:399)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager.init(ApplicationConfigurationManager.java:146)
at 
com.google.appengine.tools.development.ApplicationConfigurationManager.newWarConfigurationManager(ApplicationConfigurationManager.java:88)
at 
com.google.appengine.tools.development.DevAppServerImpl.init(DevAppServerImpl.java:137)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method

Re: [google-appengine] CodeLabEx1 in Eclipse Keplar.

2013-07-31 Thread Eric Sepich
Alright so the application seem to start now however there is still a red 
ex next to WAR/WEB-INF/lib for the project.

On Wednesday, July 31, 2013 7:25:43 PM UTC-7, Vinny P wrote:

 On Wed, Jul 31, 2013 at 9:04 PM, Eric Sepich 
 ericsepic...@gmail.comjavascript:
  wrote:

 Does anyone know what might be wrong here? The output when I try to run 
 the application is as follows:

  
  
 The exception is complaining about a missing threadsafe XML element in 
 your appengine-web.xml file.
  
 To fix this, add the following line to the appengine-web.xml file in the 
 /war/WEB-INF/ folder:
  
 threadsafetrue/threadsafe
   
   
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
   
  



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] CodeLabEx1 in Eclipse Keplar.

2013-07-31 Thread Eric Sepich
Description Resource Path Location Type
The App Engine SDK JAR geronimo-jta_1.1_spec-1.1.1.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR geronimo-jpa_3.0_spec-1.1.1.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR jdo2-api-2.3-eb.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR appengine-endpoints.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR appengine-api-labs.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR jsr107cache-1.1.jar is missing in the WEB-INF/lib 
directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google App Engine 
Problem
The App Engine SDK JAR appengine-jsr107cache-1.8.2.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-appengine-1.0.10.final.jar is missing in 
the WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR appengine-api-1.0-sdk-1.8.2.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-jpa-1.1.5.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem
The App Engine SDK JAR datanucleus-core-1.1.5.jar is missing in the 
WEB-INF/lib directory lib /CodeLabEx1-starter/war/WEB-INF Unknown Google 
App Engine Problem


On Wednesday, July 31, 2013 9:24:34 PM UTC-7, Vinny P wrote:

 On Wed, Jul 31, 2013 at 9:33 PM, Eric Sepich 
 ericsepic...@gmail.comjavascript:
  wrote:

 Alright so the application seem to start now however there is still a red 
 ex next to WAR/WEB-INF/lib for the project.
  

  
  
 What is the error message from the red X?
  
 The message will show up in the Problems pane: http://imgur.com/4gSDSQE 
   
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.com
   
  



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Task queue Problem

2013-06-25 Thread Eric Ka Ka Ng
Since around 2 hours ago, the task queues in our apps seems stop
functioning. The rate of task execution is very very slow (sometimes 0,
sometimes 10 / min, sometimes normal). is there any wrong with the task
queue and could someone from Google help? our apps relies heavily on task
queue

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Deployments issues

2013-06-06 Thread Eric Shtiv
It looks like it has been fixed atleast for me

On Thursday, June 6, 2013 6:04:37 PM UTC+3, martinc wrote:

 For the last hour, Deployment messages for a python app have hanging on 
 Checking if deployment succeeded; according to the Admin Console the 
 deployments are deployed, however instance stats and logs are completely 
 missing from the deployed versions.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Python Development SDK for Windows. Log Viewing.

2013-05-28 Thread Eric Sepich
I am using the log button in the SDK's GUI panel but the log entries seem 
to be out of chronological order. Is there anything I can do about that?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Attention Java MapReduce users

2013-05-10 Thread Eric Jahn
Tom, 
The files I'm searching for in datastore viewer were finalized, and I was 
able to search for and find more recent finalized blobs using SELECT * FROM 
__BlobFileIndex__ WHERE __key__=KEY('__BlobFileIndex__', 'SoMeKeyHere');
and for still writable this works: 
SELECT * FROM __BlobFileIndex__ WHERE __key__=KEY('__BlobFileIndex__', 
'writable:SoMeKeyHere');
However, for the keys of the missing file, the query in the datastore 
viewer returns name must be under 500 bytes.  Those 500 byte keys were 
successful for accessing/writing to the original files with my AppEngine 
code before they were finalized, so why is this length a problem now?  Or 
was exceedingly long key generation part of the Files API bug?  I still 
need to access those files, since they took a lot of expensive backend time 
to generate them.  Thanks!  -Eric

On Tuesday, May 7, 2013 3:13:45 PM UTC-4, Tom Kaitchuck wrote:

 If you have the writable file name you can use the datastore viewer to 
 find the finalized file name. 
 Go into the datastore viewer and enter the gql query: SELECT * FROM 
 __BlobFileIndex__
 This will show you the mapping. Then you can narrow it down by specifying 
 the ID/Name as the writable file name.


 On Sun, May 5, 2013 at 10:00 PM, Eric Jahn er...@ejahn.net 
 javascript:wrote:

 Tom,
 This is great news.  I have one lingering problem as a result of the 
 Files API Bug.  Before the Files API fix, I had persisted the file service 
 urls whilst I had been writing to them, and then finalized them 
 successfully.  But, because of this bug I couldn't retrieve a blobstore key 
 by passing these urls to BlobKey.getKeyString().   btw, I'm not using java 
 MapReduce , just the App Engine Files API and Blobstore).  Is there a way I 
 can somehow retrieve my finalized blobstore files which aren't appearing in 
 my App Engine dashboard Blobstore viewer?  If I start with a new file, I 
 see them appear, but this is now after the Files API bug fix, I presume.  
 Thanks for any thoughts.  -Eric



 On Wednesday, May 1, 2013 5:42:53 PM UTC-4, Tom Kaitchuck wrote:

 This is something we are aware of and are working on for future releases.

 For this update we encourage you to download and deploy the new code 
 right away.

  -- 
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to google-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine?hl=en
 .

 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: Attention Java MapReduce users

2013-05-05 Thread Eric Jahn
Tom,
This is great news.  I have one lingering problem as a result of the Files 
API Bug.  Before the Files API fix, I had persisted the file service urls 
whilst I had been writing to them, and then finalized them successfully.  
But, because of this bug I couldn't retrieve a blobstore key by passing 
these urls to BlobKey.getKeyString().   btw, I'm not using java MapReduce , 
just the App Engine Files API and Blobstore).  Is there a way I can somehow 
retrieve my finalized blobstore files which aren't appearing in my App 
Engine dashboard Blobstore viewer?  If I start with a new file, I see them 
appear, but this is now after the Files API bug fix, I presume.  Thanks for 
any thoughts.  -Eric


On Wednesday, May 1, 2013 5:42:53 PM UTC-4, Tom Kaitchuck wrote:

 This is something we are aware of and are working on for future releases.

 For this update we encourage you to download and deploy the new code right 
 away.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Cant update Billing Setting

2013-05-01 Thread Eric Ka Ka Ng
One of our google app is reaching daily quota. I try to update the daily
quota, but was prompted with this error


Your application is being migrated to a new billing system. Please check
back later to view or change your billing settings. Or contact
supporthttps://support.google.com/code/go/cloud_billing if
you need immediate assistance.



Could anyone advise what I can do? I need to increase the budget and resume
the service immediately!

here is the app id
butterflybsix

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] why this happen? application migrated to a new billing system and WE CANNOT update quota to resume service

2013-05-01 Thread Eric Ka Ka Ng
One of our google app is reaching daily quota. I try to update the daily
quota, but was prompted with this error


Your application is being migrated to a new billing system. Please check
back later to view or change your billing settings. Or contact
supporthttps://support.google.com/code/go/cloud_billing if
you need immediate assistance.



Could anyone advise what I can do? we need to resume the service to our
customers asap!

here is the app id
butterflybsix

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Problems with deploying

2013-02-02 Thread Eric Ka Ka Ng
the problem lasts for half a day already, would google do sth to help and
fix? i think google should announce what's wrong with it and the service
level provided by GAE is really not satisfactory..

- eric


On 2 February 2013 20:49, Aurelian aurelian.vacar...@gmail.com wrote:

 Same problem for my app. (java).

 appid: riparautonline-hrd


 On Saturday, February 2, 2013 12:59:04 PM UTC+1, Roberto Saccon wrote:

 Yes me experiencing the same,  use the go backend (which uses the python
 uploader) and I see this:

 12:51 PM Compilation completed.
 12:51 PM Starting deployment.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 1 seconds.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 2 seconds.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 4 seconds.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 8 seconds.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 16 seconds.
 12:51 PM Checking if deployment succeeded.
 12:51 PM Will check again in 32 seconds.
 12:52 PM Checking if deployment succeeded.
 12:52 PM Will check again in 60 seconds.
 12:53 PM Checking if deployment succeeded.
 12:53 PM Will check again in 60 seconds.
 12:54 PM Checking if deployment succeeded.
 12:54 PM Will check again in 60 seconds.
 12:55 PM Checking if deployment succeeded.
 12:55 PM Will check again in 60 seconds.
 12:56 PM Checking if deployment succeeded.
 12:56 PM Will check again in 60 seconds.

 and so on, until it hungs up (Exception: Version not ready.)

 any idea wha to do ???

 On Saturday, February 2, 2013 12:27:33 PM UTC+1, Jesús Espejo wrote:

 Hello,

 Is anyone experimenting issues uploading applications to GAE? I cannot
 do it, it remains in the exponential back-off algorithm in 60 seconds
 forever... Also i have problems launching backends:

 Error: Server ErrorThe service you requested is not available yet.

 Please try again in 30 seconds.

 My app is for Python.

 Thanks in advance,

 Jesús.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [google-appengine] Re: Problems with deploying

2013-02-02 Thread Eric Ka Ka Ng
such service level is totally unacceptable.. google... it is a paid
service you know...

On 3 February 2013 02:12, Jesús Espejo jesp...@tuspistas.es wrote:

 It still continues with problems, i cannot deploy applications or even
 launch a backend... :-/

 El sábado, 2 de febrero de 2013 17:45:19 UTC, Saurabh Gupta escribió:

 Google has not acknowledged this as an issue. In fact, the system
 dashboard  
 (http://code.google.com/**status/appenginehttp://code.google.com/status/appengine)
 shows that everything is 'normal'

 This is really frustrating to have no feedback from Google on such an
 important issue.



 On Saturday, February 2, 2013 12:42:43 PM UTC-5, Michael Hermus wrote:

 Same here. Has this issue not yet been acknowledged by Google? Ack.

 On Saturday, February 2, 2013 6:27:33 AM UTC-5, Jesús Espejo wrote:

 Hello,

 Is anyone experimenting issues uploading applications to GAE? I cannot
 do it, it remains in the exponential back-off algorithm in 60 seconds
 forever... Also i have problems launching backends:

 Error: Server ErrorThe service you requested is not available yet.

 Please try again in 30 seconds.

 My app is for Python.

 Thanks in advance,

 Jesús.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] GAE access from mainland china and cloudfare

2012-05-22 Thread Eric Ka Ka Ng
before heard that there were access problem to GAE (ghs.google.com) from
mainland china.
would like to know latest status about this.

now we hv domain mapped to GAE instance and seems some users from mainland
china can access it without problems. but not sure if all users from
different part of china can access, at anytime? also, any help if going
through cloudfare?

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] GAE access from mainland china and cloudfare

2012-05-22 Thread Eric Ka Ka Ng
Thx Will for your input. so cloudfare is not going to help?

- eric




On 23 May 2012 01:16, Will vocalster@gmail.com wrote:

 GAE is still blocked in mainland China.

 The regime is constantly monitoring the network traffic and servers and
 taking actions whenever it sees fit. So I don't believe any simple method
 can claim access for 'all users' from 'all parts' at 'anytime'. If one
 server is deemed a 'threat', the whole DNS may be blocked, as is the case
 of GAE.

 Good luck,

 Will

 On Tue, May 22, 2012 at 8:02 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

 before heard that there were access problem to GAE (ghs.google.com) from
 mainland china.
 would like to know latest status about this.

 now we hv domain mapped to GAE instance and seems some users from
 mainland china can access it without problems. but not sure if all users
 from different part of china can access, at anytime? also, any help if
 going through cloudfare?

 - eric

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: GAE access from mainland china and cloudfare

2012-05-22 Thread Eric Ka Ka Ng
Thx you guys for all the suggestions (and debating ;))

Will, our site is for general public, not mission critical, so infrequent
downtime or a few minutes glitches could be acceptable. Guess from your
description it's not ideal solution but acceptable, and should apply to us
too.

Jeff, full-time SSL, according to you, should further minimize chances for
getting blocked. i think we can consider that too, thx

Brando and Damon, thx a lots for the debating and i learn a lots from it.
Damon, we want to launch a site in China and I prefer to run on GAE (just
becoz i'm more familiar with dev on GAE than like EC2 or others) If you
have any advises /settings for using CF to help us to minimize downtime /
enhance performance / increase rank on SE (or have actual figures for
downtime with GAE apps on CF in China) , please drop me an email. thx!

cheers,
eric

On 23 May 2012 07:49, Damon Billian da...@cloudflare.com wrote:

 1. I have never viewed myself as a Cloud Flare Competitor. We built a
 Product because Cloud Flare F***ED so many bloggers and local
 businesses
 that we needed something that they could use as a stop gap until they
 could
 move to infrastructure that worked. 

 Umm...your product isn't competitive?

  2. BULL CRAP
 Prove something valid? Or something that wasn't resolved?

  3. Infrequently yeah... When your site get delisted it makes you
 feel
  better that it only happens once every 100 days.
 There are tons of reasons that a site could get delisted from Google,
 using CloudFlare or not. To assume that we're the cause because they
 are on CloudFlare is flawed logic. I also explained the Google
 crawling from new IPs that could cause a temporary issue.

  I should encourage people to use Cloud Flare because it typically
 was very
  good for getting me SEO business.

 Yes, you should. Please do.

  I wouldn't Piss on a Cloud Flare
  employee if they were on fire. 
 We wouldn't even accept it.


  2. BULL CRAP
 
  3. Infrequently yeah... When your site get delisted it makes you feel
  better that it only happens once every 100 days.
 
  I may be an ass at a time. I may have taken clients that are scum of the
  earth for doing reputation management.  I wouldn't Piss on a Cloud Flare
  employee if they were on fire.   That's where CF ranks in relationship to
  Cash For Gold, Politicians, and Pet Food companies that have had major
  recalls.
 
  I should encourage people to use Cloud Flare because it typically was
 very
  good for getting me SEO business.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] exceptionally high latency, causing bad experiences and high hosting cost

2012-05-22 Thread Eric Ka Ka Ng
from around last 12 hours, we see an exceptionally high latency on some of
our gae apps. before requests on average takes 200ms-1000ms. now it can
takes 2000ms - 5000ms. I try to measure the time as local client. like make
10 requests, 1-2 times the latency is normal 1s, half of the time is like
2s-5s, sometimes it even takes 10-20s!!

as a result, it also doubles the number of instances started by GAE, and so
as the frontend cost.

does anyone observe similar problem recently, or it's only me? is it
google's infrastructure prb, or anything i can do? if it's google's
infrastructure prb, i dont think it makes sense to transform such bad user
experiences (high latency) into doubling our hosting cost

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] App down due to Quotas exceeded

2012-04-07 Thread Eric Ka Ka Ng
we got the same prb last week. after 3-4 days we get replies from google
helping to fix the issue. we lost business, customers, and repetition
during the down time.

yes, i'm sure that's an internal bug for them and many others face the
similar problem. this problem affects many apps, and many real users. I
wont expect these problems happen on a google platform which has passed the
'beta' stage, and we are paying real money to deploy serious applications
on it. Please, google, be serious to the business.

- eric


On 7 April 2012 04:03, doright doug.stodd...@gmail.com wrote:

 My app has been down for over 3 hours now.  Its a production app, with
 paying customers. At least it did have paying customers 3 hours ago...

 Okay, so I've exceeded my quotas, just increase my budgets right?  Wrong -
 it won't let me, saying:
 A charge has been issued to the billing administrator. *(You will be
 able to make changes to your budget settings again once the outstanding
 payment is processed.)* 

 So I'm stuck, it won't let me make any changes even though I have a valid
 VISA card registered, ready and waiting.  There has never been a problem
 with the card, and its still valid.

 So, I send a mail to Please contact us at
 appengine_updated_pric...@google.comappengine_updated_pric...@google.com?subject=Billing%20question%20regarding%20mybikeshopmanager
  if
 you have questions or issues regarding billing..  No answer for 3 hours
 and counting.  I raised an issue about it, still no answer.  Finally I'm
 posting here, having reached a final dead end.

 There are so many ironies here its almost funny.  I exceeded my quotas
 because I was experiencing lots of problems with high latencies and warmup
 requests taking too long.  Some of my customers had expressed concern that
 the system couldn't handle the load.
 Second irony is due to the high latencies experienced, some customers had
 started to question if Google was a noddy platform and couldn't scale.  I
 of course went to great lengths to discuss that I'd in fact chosen this
 platform due to its robustness and scalability.  And then its down for over
 3 hours due to a billing bug.

  I agree I should have anticipated the quotas actually being exceeded, but
 given that I missed that moment I would have hoped the situation would have
 been recoverable in less than 3 hours!  Beware ALL.

 If there is someone out there who can help, please tell me how I get the
 app running again ASAP.

 many thanks.

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/q3sc-jbv7PgJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Datastore Admin is not working?

2012-04-06 Thread Eric Ka Ka Ng
I have added
builins:
- datastore_admin: on

 and enabled Datastore Admin in the Application Setting Page. But when I
click the link in the admin console, it just show a blank page. Is there
any problems with the Datastore Admin? or there are some other things I
have to configure?

appid: beyond6ixdev2

- eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] [Urgent] cannot change billing settings for our app foodeasyb6

2012-03-30 Thread Eric Ka Ka Ng
I know this is mainly for development issue but I could find no way to
reach google. Hope anyone know how to fix it could provide answer, or can
help forwarding my problem to suitable personnels. Appreciate that.



We have a number of apps on GAE. One of them foodeasyb6 has exceeded
daily quota and I have tried to change the budget. However, after last time
updating, it's always stay in the status

Billing Status: Activating Billing

Billing will be enabled as soon as the new billing administrator's credit
card has been authorized and quotas have been adjusted. *(You will be able
to make changes to your budget settings again once the outstanding payment
is processed.)*

*
*

*Most my other gae app doesn't have this problem and the billing, with the
same credit card*

*
*

*I have no way to change it or activate it. Hundreds of our users are
currently affected while the system is down. Please help to fix*

*
*

*- eric*

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: java.lang.OutOfMemoryError: PermGen space

2012-01-21 Thread Eric
You appear to be encountering this problem in hosted mode.  If you are 
using a Sun (ahem I mean oracle) JVM you can use -XX:MaxPermSize to 
increase the perm gen space.

From your stack trace you also seem to be using jrebel 
(com.zeroturnaround.javarebel).  
This library may be introducing a bit of overhead in the perm gen space 
that helps you encounter this issue more easily.  Hot deploy is fun though.

HTH
- Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/fOSZhh-HhT4J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: java.lang.OutOfMemoryError: PermGen space

2012-01-21 Thread Eric
...and by hosted mode I mean the development server (not on the cloud).

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NlxGNE_JKA0J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Re: Wordpress in google app egine

2012-01-04 Thread Eric
https://github.com/xuming/micolog
you can even reuse some code base if you plan to re-write wordpress,
at least the micolog can share most of the wordpress theme, so can
even more save your brain effort.

On 1月4日, 上午3时41分, Kaan Soral kaanso...@gmail.com wrote:
 The answer for you is No, logically speaking

 Instead of using 100x brain to adapt your app to emulated PHP on GAE, just
 use 10x brain and re-write

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Running some code immediately before a Datastore put()?

2011-11-17 Thread Eric Feng
I also found Nick Johnson's (google guy) post on this to be very useful. 
 Honestly, his whole blog is useful - App Engine tips from a guy on the 
inside.

http://blog.notdot.net/2009/9/Custom-Datastore-Properties-1-DerivedProperty

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Si2ySLfz_noJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Prospective search exception (java)

2011-10-02 Thread Eric
Hi Pablo, thanks.

Eric

On Sep 30, 4:20 am, Pablo Mayrgundter p...@google.com wrote:
 Hey Eric, sorry about that!

 Here's a work-around:

 String appId = SystemProperty.applicationId.get();
 SystemProperty.applicationId.set(s~ + appId);
 // Now do the list.
 prospectiveSearchService.listTopics(, 10);
 ...
 // Set the appId back to its orig value.
 SystemProperty.applicationId.set(appId);

 We should have the fix out in the next release.

 Cheers,
 Pablo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Are key filters more efficient than ancestor queries?

2011-09-30 Thread Eric Gustavson
Hi,

In light of Google's pricing changes, I would like to re-open Blixt's 
original question, but instead of in terms of performance, I would like to 
know the answer in terms of price. This FAQ 
answerhttp://code.google.com/appengine/kb/postpreviewpricing.html#operations_charged_fordescribes
 how different datastore operations are priced.

Which is cheaper, a fetch by ancestor or via a ReferenceProperty?

Also, why should one avoid using the parent/ancestor relationship if they 
don't need transactions?

Let me know if my questions need clarifications.

Thanks!

--Eric


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/Z0qsX-PdojMJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Prospective search exception

2011-09-26 Thread Eric
Hi all, 

I've tried the new prospective search api today. It was alright to 
subscribe, unsubscribe, listSubscriptions, getSubscription. But when 
trying to list topics, below error message came out. I'm not sure 
whether it is a bug of the API or my problem. Is there anyone who 
knows something about this issue? Thanks. 

Uncaught exception from servlet 
com.google.apphosting.api.ApiProxy$ApplicationException: 
ApplicationError: 1: app s~appid does not have permission to list topics for 
app appid 
at com.google.apphosting.runtime.ApiProxyImpl 
$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:503) 
at com.google.net.rpc.RpcStub$RpcCallbackDispatcher 
$1.runInContext(RpcStub.java:1050) 
at com.google.tracing.TraceContext$TraceContextRunnable 
$1.run(TraceContext.java:455) 
at com.google.tracing.TraceContext 
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: 
335) 
at com.google.tracing.TraceContext 
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: 325) 
at com.google.tracing.TraceContext 
$TraceContextRunnable.run(TraceContext.java:453) 
at com.google.net.rpc.RpcStub 
$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1071) 
at com.google.net.rpc.RPC.internalFinish(RPC.java:2240) 
at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java: 
2339) 
at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java: 
1269) 
at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 
328) 
at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 
299) 
at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) 
at 
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 
856) 
at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 
222) 
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 116) 
at com.google.net.async.GlobalEventRegistry 
$2.runLoop(GlobalEventRegistry.java:95) 
at com.google.net.async.LoopingEventDispatcher 
$EventDispatcherThread.run(LoopingEventDispatcher.java:385) 

Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/9bqv21wki44J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[google-appengine] Does the URL Fetch service work with Wikipedia?

2011-09-26 Thread Eric Thoma
I am trying to make an application that would query Wikipedia, but when I 
try to use the URL Fetch service I run into an exception. The same code 
works for fetching both Google and Facebook. I am very inexperienced with 
Python web development and App Engine. Does anyone else run into the same 
problem with Wikipedia or can anyone confirm this?

Code Snippet

import os
import urllib2
from google.appengine.ext.webapp import template

class MainHandler(webapp.RequestHandler):
def get(self):
url = http://en.wikipedia.org/wiki/Do-support;
try:
  result = urllib2.urlopen(url)
except urllib2.URLError, e:
  result = 'ahh the sky is falling'
template_values= {
'test':result,
}
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, template_values))

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/x62nL9nPwKEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Prospective search exception (java)

2011-09-21 Thread Eric
Hi all,

I've tried the new prospective search api today. It was alright to
subscribe, unsubscribe, listSubscriptions, getSubscription. But when
trying to list topics, below error message came out. I'm not sure
whether it is a bug of the API or my problem. Is there anyone who
knows something about this issue? Thanks.

Uncaught exception from servlet
com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 1: app s~appid does not have permission to list
topics for app appid
at com.google.apphosting.runtime.ApiProxyImpl
$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:503)
at com.google.net.rpc.RpcStub$RpcCallbackDispatcher
$1.runInContext(RpcStub.java:1050)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:455)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
335)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
325)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:453)
at com.google.net.rpc.RpcStub
$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1071)
at com.google.net.rpc.RPC.internalFinish(RPC.java:2240)
at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:
2339)
at
com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:
1269)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
328)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
299)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
856)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
222)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
116)
at com.google.net.async.GlobalEventRegistry
$2.runLoop(GlobalEventRegistry.java:95)
at com.google.net.async.LoopingEventDispatcher
$EventDispatcherThread.run(LoopingEventDispatcher.java:385)

Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Keep it short: Who is forced to leave GAE?

2011-09-05 Thread Eric Jang
GAE's new policies are really tough on open-source projects, especially 
projects run by individuals who have no funds but just want to get a good 
app out there for the sake of getting a good app out there.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ANCWmBsCP8sJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: The Amazing Story Of Appengine And The Two Orders Of Magnitude

2011-09-05 Thread Eric Jang
Fantastic post. Thanks for clarifying what an instance was!

On Sep 3, 12:32 pm, stevep prosse...@gmail.com wrote:
 I had spent most of the night wondering about task queue's apparent
 inefficiencies under Scheduler, and had planned to open a topic
 related to it, but then read Joshua's post.

 THIS point made by Joshua is THE HEART of the issue:'...it's a lot
 more trouble than just having a way to say to the scheduler, run
 these when you have an idle instance with nothing better to do, or
 DO NOT spin up an instance just to handle this task...'

 As Joshua suggests, there is likely a great deal of optimization
 within an instance obtainable by elegantly utilizing TQs. Scheduler
 today, however, seems quite inelegant (and unfortunately may remain
 that way because instance optimization is markedly revenue and profit
 negative for GAE).

 At this point, I would like to suggest that GAE employ a consultant
 who is an expert with systems modeling with iThink. The current
 opaqueness and complexity of Scheduler are an ideal situation for this
 type of systems analysis.** 
 Link:http://www.iseesystems.com/softwares/Business/ithinkSoftware.aspx

 Please Google, can you give us some more help here.

 Thanks,
 stevep

 ** not at all affiliated with iThink, but have developed some
 financial analyses using iThink back in the day when I worked for HP.
 It really is a great tool for situations like this, and you guys will
 certainly find that there are some very experienced and capable
 consultants who will do great things for you without too much time
 needed from GAE personnel.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Can't Find Error Log

2011-08-12 Thread Eric Atkinson
Tried to deploy; it said see error log but I can't find out where this log 
is located even after looking through the directories, the manuals, and this 
forum.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/MQqF7JlZy_QJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Using A Java Application As Client to App Engine?

2011-07-16 Thread Eric Atkinson
For various reasons, I don't want to use a browser as my client. Why? 
Because, for example, although the Chrome browser can render my rather 
complex GWT client just fine, IE can't render it even if you install 
the Chrome Frame Plug-In, so I simply don't trust browsers as clients (too 
many uncontrollable unknowns). Consequently, instead of using a browser as 
client, I want to use a Java Application as client installed from GAE using 
JNLP (and I've got this part working on GAE after a bit trial and error on 
my part).  My question is: If I use a Java Application as client then the 
GWT (not GAE) documentation seems to be saying that I'll need to use com.
google.gwt.http.client.* to make my calls to the servleta using XML to pass 
data, and then converting the XML into JDO objects for the datastore. Does 
this sound right? I only ask because I don't want to do a lot of work trying 
this if GAE requires the client to be a browser (in which case I have to 
forgo using GAE because I hate browsers as clients).

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/tK37sl8zhngJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Java Network Launching Protocol (JNLP) Support on App Engine?

2011-07-14 Thread Eric Atkinson


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/gQ56z2mVUvsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Java Network Launching Protocol (JNLP) Support on App Engine?

2011-07-14 Thread Eric Atkinson
Forget what I said; somehow a space got added to the front of filename while 
was programming. I don't know how, but this odd error was enitirely of my 
own making -- sorry.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/gRZf_TsGBSkJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Java Network Launching Protocol (JNLP) Support on App Engine?

2011-07-14 Thread Eric Atkinson
You're right; it's my fault, I'm sorry. I don't know how a space got in 
front of my filename, but it sure drove my nuts for a while before I finally 
noticed it. As for GAE, it's fine, everything I need, well put together, and 
explained well (and explained quickly instead of in eight volumes). It's 
other app servers I've had a problem in the past, but not GAE.  Sorry. 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/NWwD8cwgIc0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] com.google.appengine.api.datastore.Key can not be found in source packages?!

2011-07-10 Thread Eric Atkinson
I get the follwing compile error -- com.google.appengine.api.datastore.Key 
can not be found in source packages. Check the inheritance chain from your 
module; it may not be inheriting a required module or a module may not be 
adding its source path entries properly -- with the below code snippet.

What's wrong with this code? Why can't the compiler 
see com.google.appengine.api.datastore.Key. I assume by inheritance chain 
it means the build path and that 
includes com.google.appengine.api.datastore.Key in the app eng SDK, so why 
am I getting the above compile error in the following code:

package com.sis.app.shared;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;


@SuppressWarnings(serial)
@PersistenceCapable
public class ModelMember implements Serializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/ORTrGSg-Cj4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: com.google.appengine.api.datastore.Key can not be found in source packages?!

2011-07-10 Thread Eric Atkinson
This answer to this -- in the Eclispe IDE -- is to uncheck build 
automatically and then hit build all, and then it can see it. Strange, 
but true.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/pENjMj0Ucj4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Multiple Instances of the Same App

2011-07-04 Thread Eric Kolotyluk
I remember reading some policy that Google prohibits people people
from basically running the same app under different registration. I
gather one reason for this is so that people don't exploit the free
nature of apps, or so that Google is not replicating essentially the
same app everywhere. What ever the reason I don't want to violate
Google's policies.

We have an app we want to develop for our customers, but we
essentially want each customer to have their own instance of the app
for quotas and billing purposes. Basically, if our customers want the
service, they would pay Google directly, rather than us figuring out
who uses what and billing our customers. It would also make it easy
for our software to automatically create the customer's app on app
engine and keep it up-to-date.

An alternative design would be to have some way to invoke a central
app, but for service operations and quota have some way to bill things
to a specific account.

Does Google have any way to do this that does not violate the
policies?

The alternative for us is setting up a separate account for each
customer on either Amazon, Microsoft, or some other cloud, and
essentially giving each customer their own VM instance. There are pros
and cons to this, as there are with using the Google PAAS, and I am
trying to figure out what our best options are.

Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Redirection problems after enabling OpenID

2011-07-04 Thread Eric Kolotyluk
Basically I have set up the following filter...

package com.kodak.intersystem.appspot.server;

import java.io.IOException;
import java.util.logging.Logger;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

public class IdentityFilterImpl implements Filter
{
private FilterConfig filterConfig;
private static final Logger log =
Logger.getLogger(IdentityFilterImpl.class.getName());

//@Override
public void destroy()
{

}

//@Override
public void doFilter(ServletRequest servletRequest, ServletResponse
servletResponse, FilterChain filterChain)
throws IOException, ServletException
{
log.info(Identity filter processed a  +
getFilterConfig().getInitParameter(logType) +  request);

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();

if (user != null)
{
log.warning(Identity filter user.getAuthDomain()= 
+ user.getAuthDomain());
log.warning(Identity filter user.getEmail())= 
+ user.getEmail());
log.warning(Identity filter user.getFederatedIdentity() = 
+ user.getFederatedIdentity());
log.warning(Identity filter user.getNickname()  = 
+ user.getNickname());
log.warning(Identity filter user.getUserId()= 
+ user.getUserId());
log.warning(Identity filter user.toString() = 
+ user.toString());
//resp.setContentType(text/plain);
//resp.getWriter().println(Hello,  +
user.getNickname());
}
else
{
log.severe(Identity filter - uknown user);
}

filterChain.doFilter(servletRequest, servletResponse);
}

//@Override
public void init(FilterConfig filterConfig) throws ServletException
{
this.filterConfig = filterConfig;
}

public FilterConfig getFilterConfig() { return filterConfig; }

}

Is it the filter that is causing the problem?

Cheers, Eric


On May 29, 11:30 pm, Bert robertbcur...@gmail.com wrote:
 Hey Eric,

 In the request handler where you're redirected to after login with
 OpenId, make sure that handler doesn't cause the redirect loop. So
 look how you're checking for logged in user before redirecting to the
 login page again.

 Cheers,
 Rob

 On May 29, 6:40 pm, Eric Kolotyluk eric.koloty...@gmail.com wrote:







  I tried clearing the cookies and restarting the browser several times,
  but that did not seem to help.

  Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Redirection problems after enabling OpenID

2011-07-04 Thread Eric Kolotyluk
I commented out the filter in the web.xml file and I have the same
problem, so it is not the filter.

Basically I am using the default GWT program when you install the
Google plug-in for Eclipse, and i just enable OpenID in the
application dashboard. Is there something else I have to do to get
OpenID to work.

Below is my web.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  !-- Filters --


!--   filter --
!-- filter-nameIdentityCheck/filter-name --
!-- filter-
classcom.kodak.intersystem.appspot.server.IdentityFilterImpl/filter-
class --
!-- init-param --
!--param-namelogType/param-name --
!--param-valuespecial/param-value --
!--/init-param --
!--   /filter --

  filter-mapping
filter-nameIdentityCheck/filter-name
url-pattern/*/url-pattern
  /filter-mapping

  !-- Servlets --

  servlet
servlet-namegreetServlet/servlet-name
servlet-
classcom.kodak.intersystem.appspot.server.GreetingServiceImpl/
servlet-class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/intersystem_webapp/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileIntersystem_webapp.html/welcome-file
welcome-fileindex.html/welcome-file
  /welcome-file-list

  security-constraint
web-resource-collection
  web-resource-nameProtected Site/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

/web-app

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Java Network Launching Protocol (JNLP) Support on App Engine?

2011-07-03 Thread Eric Atkinson
Does the Google App Engine, and related Web Server, support Java
Network Launching Protocol (JNLP)‎ for launching Java WebStart
Applications from my HTML home page?  GWT just isn't a sufficiently
sophisticated client platform, so I want to use a java application on
the front end to interact with the google app engine, but the app
engine would need to support JNLP to launch such a client. Is this
possible?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Exception to use of Key class by JDO (Can't Find Source)

2011-06-29 Thread Eric Atkinson
The app engine manual extensively discusses the use of the Key class
(import javax.jdo.annotations.Key) for datastore operations, and yet
when I try to persistent data using Key, app engine throws the
exception: Caused by: javax.jdo.JDOUserException: Field
com.sis.app.server.DataModelMember.key is declared as a reference
type (interface/Object) but no implementation classes of
javax.jdo.annotations.Key have been found. Any idea what is
happening here with this no source code exception; otherwise, I have
to create and manage my own keys which is a lot more coding during
queries and updates. Thx!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Datasource Admin Question

2011-06-27 Thread Eric Atkinson
I apologize, the problem was that I can only access the admin console
using my original gmail.com account used to register the app instead
of my app.com account created after registering the app. I was trying
to look at the admin console using the latter (app.com acct) instead
of the former (gmail.com account). Thx!

On Jun 27, 1:46 am, Robert Kluin robert.kl...@gmail.com wrote:
 Have you already registered that app id at appspot.com?  App ids can
 not contain cap letters.

 You might try logging in at:
  https://appengine.google.com/a/strategicinternationalsystems.com

 On Sat, Jun 25, 2011 at 18:09, Eric Atkinson







 eric.atkin...@strategicinternationalsystems.com wrote:
  The docs (athttp://code.google.com/appengine/docs/adminconsole/) say
  that when I gotohttps://appengine.google.com/I can access the admin
  console, and in particular, the data tab. However, when I do, I get
 https://appengine.google.com/startwhich asks me to create an
  application. However, I've already created an application called
  StategicInternationalSystems, which I created using Google Apps For
  Business (a paid service). How do I access the admin console for this
  application running on Google Apps For Business?

  --
  You received this message because you are subscribed to the Google Groups 
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Datasource Admin Question

2011-06-26 Thread Eric Atkinson
The docs (at http://code.google.com/appengine/docs/adminconsole/) say
that when I goto https://appengine.google.com/ I can access the admin
console, and in particular, the data tab. However, when I do, I get
https://appengine.google.com/start which asks me to create an
application. However, I've already created an application called
StategicInternationalSystems, which I created using Google Apps For
Business (a paid service). How do I access the admin console for this
application running on Google Apps For Business?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Redirection problems after enabling OpenID

2011-05-29 Thread Eric Kolotyluk
I tried clearing the cookies and restarting the browser several times,
but that did not seem to help.

Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Understanding Security

2011-05-24 Thread Eric Kolotyluk
OK, I finally got around to trying this. Works like a charm. Thanks for 
such a simple fix to my problem


Cheers, Eric

On 2011-05-14 10:15 AM, Erick Fleming wrote:
Actually I was wrong I on the last point.  If you use 
appengine_web.xml [1] to configure your static files as excluded 
then appengine won't move them to the static server.  Therefore, you 
can use a statandard filtering mechanism for those files.


[1] 
http://code.google.com/appengine/docs/java/config/appconfig.html#Including_and_Excluding_Files

--
You received this message because you are subscribed to the Google 
Groups Google App Engine group.

To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


--
You received this message because you are subscribed to the Google Groups Google 
App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Redirection problems after enabling OpenID

2011-05-20 Thread Eric Kolotyluk
After enabling the OpenID Federated Authentication on my app, when I
go to my app (via Firefox) I get the following

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for
this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to
accept cookies.

Chrome gives me more or less the same response, but way more verbose.

IE9 just chokes.

I've seen these kind of redirect problems before with Google Apps, and
after a while they just magically went away.

Should I just wait and try again another day, or just give up on
trying to get OpenID to work?

Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Understanding Security

2011-05-14 Thread Eric Kolotyluk

Woo-Hoo!

Thanks, I can't wait to try that, but I'm don't working for the day.

Cheers, Eric

On 2011-05-14 10:15 AM, Erick Fleming wrote:
Actually I was wrong I on the last point.  If you use 
appengine_web.xml [1] to configure your static files as excluded 
then appengine won't move them to the static server.  Therefore, you 
can use a statandard filtering mechanism for those files.


[1] 
http://code.google.com/appengine/docs/java/config/appconfig.html#Including_and_Excluding_Files

--
You received this message because you are subscribed to the Google 
Groups Google App Engine group.

To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


--
You received this message because you are subscribed to the Google Groups Google 
App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Understanding Security

2011-05-13 Thread Eric Kolotyluk
I've been playing around with security in my test app, and was hoping 
someone could confirm my understanding of things.

I have the following in my web.xml

  security-constraint
web-resource-collection
  web-resource-nameProtected Site/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

Which as far as I can tell forces everyone through the Google login no 
matter what URL they use. Is this correct?

I also have

  filter-mapping
filter-nameIdentityCheck/filter-name
url-pattern/*/url-pattern
  /filter-mapping

Which as far as I can tell only invokes the filter if a servlet is being 
invoked. It will not invoke a filter for any static content such as an HTML 
file. Is this correct?

I wanted to set up a second level of authentication to force people to 
register another identity with the site, and I thought I could do this with 
the filter by comparing their google ID with a of previously authenticated 
google IDs. That is, they would only have to go through second level 
authentication once, and then the app would automatically them through once 
they authenticated their Google ID.

But if filters only run when invoking a servlet, then static content cannot 
be protect this way because the second level of authentication will never 
get invoked.

Am I understanding this all correctly?

Is there any other mechanism I can use to implement this second level of 
authentication that does cover static content too?

Cheers, Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Understanding Security

2011-05-13 Thread Eric Kolotyluk
If I understand what you are saying, I could make every URL map to a 
servlet, and let the servlet return the specific static pages.


Or can I just put my folder of HTML into the resources section, and not 
have to write another servlet?


Cheers, Eric

On 2011-05-13 6:52 PM, Erick Fleming wrote:
You are correct.  Google stores and serves static files differently 
than Filters/Servlets/Resources.  I know of two alternatives:


1. Store your files as resources
2. Store static content in Datastore

Erick

On Fri, May 13, 2011 at 6:49 PM, Eric Kolotyluk 
eric.koloty...@gmail.com mailto:eric.koloty...@gmail.com wrote:


I've been playing around with security in my test app, and was
hoping someone could confirm my understanding of things.

I have the following in my web.xml

security-constraint
web-resource-collection
web-resource-nameProtected Site/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

Which as far as I can tell forces everyone through the Google
login no matter what URL they use. Is this correct?

I also have

filter-mapping
filter-nameIdentityCheck/filter-name
url-pattern/*/url-pattern
/filter-mapping

Which as far as I can tell only invokes the filter if a servlet is
being invoked. It will not invoke a filter for any static content
such as an HTML file. Is this correct?

I wanted to set up a second level of authentication to force
people to register another identity with the site, and I thought I
could do this with the filter by comparing their google ID with a
of previously authenticated google IDs. That is, they would only
have to go through second level authentication once, and then the
app would automatically them through once they authenticated their
Google ID.

But if filters only run when invoking a servlet, then static
content cannot be protect this way because the second level of
authentication will never get invoked.

Am I understanding this all correctly?

Is there any other mechanism I can use to implement this second
level of authentication that does cover static content too?

Cheers, Eric
-- 
You received this message because you are subscribed to the Google

Groups Google App Engine group.
To post to this group, send email to
google-appengine@googlegroups.com
mailto:google-appengine@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com
mailto:google-appengine%2bunsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.


--
You received this message because you are subscribed to the Google 
Groups Google App Engine group.

To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


--
You received this message because you are subscribed to the Google Groups Google 
App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] indexes stuck in Error state

2011-04-28 Thread Eric Ka Ka Ng
Hi Ikai,

Could you please help to remove 2 indexes in our app, which is being stuck
in the Error state? I have tried to vacuum the indexes, but always failed.
And this also prevents me to deploy new indexes too.

app id: gaewedev.appspot.com


I believe there were probably some problems when i'm trying to build that 2
indexes, as they involves entries having a high number of indexed terms
(index with list with long entries). So maybe after you help to remove the
indexes and then i try to build, the same problem could happen again. (from
my experience, if adding index to an empty data set, then populate the data
with the already built index should be ok; or when adding new item, always
add one by one) do you have tips / hints / guildeline to prevent running
into the same problem again? or could help us to re-build that 2 indexes?

Thanks in advanced.

Best Regards,
Eric Ng

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Failed to compile jsp files.

2011-04-10 Thread Eric Wu
My project works fine in local server. But when I upload my project to
GAE, there is an error: How to solve the problem

Regards

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp
\appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache\jsp
\match_jsp.java [javac] Compiling 1 source file

2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
473)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: Cannot run program javac.exe:
CreateProcess error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
--- Nested Exception ---
java.io.IOException: Cannot run program javac.exe: CreateProcess
error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
2011/4/10 下午 08:45:11 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric
\LOCALS~1\Temp\appcfg7905816927184108608.tmp\WEB-INF\classes\org\apache
\jsp\match_jsp.java
classpath=/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-labs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-stubs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-local-
runtime.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\appengine-
local-runtime-shared.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib
\shared\el-api.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\jsp

[appengine-java] unable to update app:Failed to compile jsp files

2011-04-07 Thread Eric Wu
I got problem when I deploy my project to Google App Engine. The
project works ok on localhost. When deploying, there was a error
message I post below: How to solve it?


Creating staging directory
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp
\appcfg1263523209940719896.tmp\WEB-INF\classes\org\apache\jsp
\match_jsp.java [javac] Compiling 1 source file

2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
473)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: Cannot run program javac.exe:
CreateProcess error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
--- Nested Exception ---
java.io.IOException: Cannot run program javac.exe: CreateProcess
error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
2011/4/7 下午 01:35:47 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric
\LOCALS~1\Temp\appcfg1263523209940719896.tmp\WEB-INF\classes\org\apache
\jsp\match_jsp.java
classpath=/E:/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811/
appengine-java-sdk-1.4.2/lib/impl/appengine-api-labs.jar;/E:/eclipse/
plugins/com.google.appengine.eclipse.sdkbundle.
1.4.2_1.4.2.v201102111811/appengine-java-sdk-1.4.2/lib/impl/appengine-
api-stubs.jar;/E:/eclipse/plugins/
com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811/
appengine-java-sdk-1.4.2/lib/impl/appengine-api.jar;/E:/eclipse/

[appengine-java] Failed to compile jsp files.

2011-04-07 Thread Eric Wu
I use the new version of sdk1.4.3. The problem still unsolved. here is
the error message

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile jsp files.
2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Error compiling file: C:\DOCUME~1\WuEric\LOCALS~1\Temp
\appcfg6893966832847615321.tmp\WEB-INF\classes\org\apache\jsp
\match_jsp.java [javac] Compiling 1 source file

2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Javac exception
Error running javac.exe compiler
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
473)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: Cannot run program javac.exe:
CreateProcess error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
... 8 more
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
--- Nested Exception ---
java.io.IOException: Cannot run program javac.exe: CreateProcess
error=2, ?t?Χ??
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.taskdefs.Execute
$Java13CommandLauncher.exec(Execute.java:834)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:435)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:449)
at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:
470)
at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:
47)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:
226)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Caused by: java.io.IOException: CreateProcess error=2, ?t?Χ??
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 18 more
2011/4/7 下午 04:17:10 org.apache.jasper.compiler.AntCompiler
generateClass
嚴重的: Environment: Compile: javaFileName=C:\DOCUME~1\WuEric
\LOCALS~1\Temp\appcfg6893966832847615321.tmp\WEB-INF\classes\org\apache
\jsp\match_jsp.java
classpath=/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-labs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api-stubs.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-
api.jar;/D:/java_sdk/appengine-java-sdk-1.4.3/lib/impl/appengine-local-
runtime.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\appengine-
local-runtime-shared.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib
\shared\el-api.jar;D:\java_sdk\appengine-java-sdk-1.4.3\lib\shared\jsp
\repackaged-appengine-ant-1.7.1.jar;D:\java_sdk\appengine-java-

[google-appengine] Java GAE server side ResourceBundle problem?

2011-04-01 Thread Eric Chow
Hello,

How can I use ResourceBundle in GAE?
I can use it in local but failed in the cloud.

I want to get some message resources for using in the server side
code.
Please help me.

Best regards,
Eric

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Policy on Tasteful Nudity

2011-03-23 Thread Eric BP
The program policies forbid Pornographic, obscene or excessively
profane content but oridinarily such a description would not include
nude art and other soft nudity without explicit sex.

Is nudity that would not be considered pornographic allowed?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Eric Ka Ka Ng
me 2. Have integrated the SES service within our GAE apps.  work good and
solved our problems

sure it would be more nice if GAE can provide email service at the quality
level similar to the Amazon SES one (at least would not be classified as
SPAM), so we dont need to manage both . could we make this suggestion to GAE
team?

- eric


On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

 Wow, great idea!  I have been having some delivery issues lately with
 GAE and looking for an alternative.

 I just downloaded a pythong Amazon SES library, signed up for SES, and
 put it all together and it works like a charm with GAE!

 On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
  Hi Eric,
 
  Have you looked at Amazon's Simple Email Service (SES)?
 
  http://aws.amazon.com/ses/
 
  Pretty much the same cost as sending email using GAE, except with SES you
  only get 2,000 free emails if you're sending email from an EC2 instance.
 
  I haven't used it myself but apparently they scan outgoing mail to make
 sure
  it meets ISP standards. This leads me to believe emails sent via SES
 would
  be less likely to be automatically marked as spam than on GAE, since
 SES's
  spam-sending-reputation would be lower than GAE's, due to their
  pre-filtering and rate-limiting.
 
  Nick
 
  On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:
 
   Hi Ernesto,
 
   thx for your suggestion! yes, i think it shall work.
 
   but in general if we can't ask all our users to add our email to their
   contact list (or they are not willing to do so), how can emails sent by
 us
   prevent to be regarded as spam? all our subject, body etc. are nothing
   spam-liked, and seems it's the problem of the email server that
 actually
   sends the email. anyone share similar case, or has other solution?
 
   regards,
   eric
 
   On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
 wrote:
 
   Ask the user to add the e-mail from address of your e-mails to their
   contacts list, so your e-mails would never been sent to spam again
   (for that users, at least).
 
   It's a bit hacky, but can do a great work meanwhile you find another
   solution.
 
   On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
we use mail.send_mail() to send some important messages to our users
   through
an app hosted on GAE, in which the 'from' has been set to one of a
registered admin for the app.
 
it works quite well for most users, except for some email service
   provider
(e.g. '...@yahoo.com.hk'), they would always automatically treat
 these
   emails
as spam and put them into spam box of the user's email account (if
 the
   user
has enabled the spam filtering feature, which is by default ON) .
 in
   this
case, many of our users do not aware for these important messages
 (they
would seldom look into mails in their spambox)
 
we have tried using different from, subject, body and the
 results
   are
the same. we suspect that it is the email server does matter, and
 maybe
before there were some other apps hosted on GAE sending spams to
 like '@
yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
 from
   this
email server in GAE as spam.
 
do anyone share similar experiences? or there should be other
 causes?
   any
ideas we can solve this problem? (successfully deliver the email to
 our
users using those email service without being regarded as spam) thx
 in
advanced!
 
- eric
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
--
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com

Re: [google-appengine] Re: email sent by GAE would be regarded as spam for some email services

2011-03-22 Thread Eric Ka Ka Ng
Hi Ikai,

thx for your note. with this, we could better decide on which cases we would
like to send emails through GAE and which we would like to use other
external services.

and would it be more formally stated in any documents, or any guideline for
these considerations be documented? if i'm a new GAE user, i would just use
the email service straight forwardly without these considerations and
background information.

- eric



On 23 March 2011 05:29, Ikai Lan (Google) ika...@google.com wrote:

 I actually think we are moving away from this direction. For customers
 sending large volumes of email or who require delivery guarantees, we'll be
 encouraging the use of services that are specifically designed for this
 functionality.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine



 On Tue, Mar 22, 2011 at 1:35 AM, Eric Ka Ka Ng ngk...@gmail.com wrote:

 me 2. Have integrated the SES service within our GAE apps.  work good and
 solved our problems

 sure it would be more nice if GAE can provide email service at the quality
 level similar to the Amazon SES one (at least would not be classified as
 SPAM), so we dont need to manage both . could we make this suggestion to GAE
 team?

 - eric


 On 22 March 2011 05:30, Jamie H ja...@mhztech.com wrote:

 Wow, great idea!  I have been having some delivery issues lately with
 GAE and looking for an alternative.

 I just downloaded a pythong Amazon SES library, signed up for SES, and
 put it all together and it works like a charm with GAE!

 On Mar 20, 10:31 pm, Nickolas Daskalou n...@daskalou.com wrote:
  Hi Eric,
 
  Have you looked at Amazon's Simple Email Service (SES)?
 
  http://aws.amazon.com/ses/
 
  Pretty much the same cost as sending email using GAE, except with SES
 you
  only get 2,000 free emails if you're sending email from an EC2
 instance.
 
  I haven't used it myself but apparently they scan outgoing mail to make
 sure
  it meets ISP standards. This leads me to believe emails sent via SES
 would
  be less likely to be automatically marked as spam than on GAE, since
 SES's
  spam-sending-reputation would be lower than GAE's, due to their
  pre-filtering and rate-limiting.
 
  Nick
 
  On 21 March 2011 13:51, Eric Ka Ka Ng ngk...@gmail.com wrote:
 
   Hi Ernesto,
 
   thx for your suggestion! yes, i think it shall work.
 
   but in general if we can't ask all our users to add our email to
 their
   contact list (or they are not willing to do so), how can emails sent
 by us
   prevent to be regarded as spam? all our subject, body etc. are
 nothing
   spam-liked, and seems it's the problem of the email server that
 actually
   sends the email. anyone share similar case, or has other solution?
 
   regards,
   eric
 
   On 19 March 2011 00:12, Ernesto Karim Oltra ernestoka...@gmail.com
 wrote:
 
   Ask the user to add the e-mail from address of your e-mails to their
   contacts list, so your e-mails would never been sent to spam again
   (for that users, at least).
 
   It's a bit hacky, but can do a great work meanwhile you find another
   solution.
 
   On 18 mar, 07:52, Eric Ka Ka Ng ngk...@gmail.com wrote:
we use mail.send_mail() to send some important messages to our
 users
   through
an app hosted on GAE, in which the 'from' has been set to one of a
registered admin for the app.
 
it works quite well for most users, except for some email service
   provider
(e.g. '...@yahoo.com.hk'), they would always automatically treat
 these
   emails
as spam and put them into spam box of the user's email account (if
 the
   user
has enabled the spam filtering feature, which is by default ON)
 . in
   this
case, many of our users do not aware for these important messages
 (they
would seldom look into mails in their spambox)
 
we have tried using different from, subject, body and the
 results
   are
the same. we suspect that it is the email server does matter, and
 maybe
before there were some other apps hosted on GAE sending spams to
 like '@
yahoo.com.hk', so '...@yahoo.com.hk' would regard all emails sent
 from
   this
email server in GAE as spam.
 
do anyone share similar experiences? or there should be other
 causes?
   any
ideas we can solve this problem? (successfully deliver the email
 to our
users using those email service without being regarded as spam)
 thx in
advanced!
 
- eric
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
--
   You received this message because you are subscribed to the Google
 Groups

  1   2   3   >