[google-appengine] Re: Why TTFB on Google Cloud Run/App depends significantly on domain?

2020-06-09 Thread Andy S.
H, interesting - after several months TTFB is reduced significantly to 
about 80ms for top level domains on Google Cloud Run. This is what I was 
hoping for. Thank you!

On Thursday, September 26, 2019 at 7:07:26 PM UTC+2, George (Cloud Platform 
Support) wrote:
>
> Hello Andy, 
>>
>>
> There are architectural reasons for increased TTFB in some regions. Where 
> do you run your services, in which regions? This is a known issue, and 
> Developers are actively working towards a fix. 
>

-- 
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/d605993e-a8e7-40a1-af79-992e3feccfe9o%40googlegroups.com.


[google-appengine] Created vs. Active - manual_scaling instances

2019-11-14 Thread Andy Whittle
Hi

We've been seeing a repeat issue since we started using GAE, which is so 
infrequent that we've not ever dedicated much time to looking at it, until 
now.

Very infrequently (maybe once every couple of weeks), users are receiving 
the following message when attempting to load pages:

"Error: Server Error. The server encountered an error and could not 
complete your request. Please try again in 30 seconds."

Approx 30 seconds later, everything returns to normal and requests go 
through successfully.  Side note; we get this same message when we "gcloud 
app deploy -v [CURRENT_SERVING_VERSION]".

We've found that at the same time this error appears, our GAE dashboard > 
'Instances' graph for the service/version shows that the 'Active' instance 
count goes from 0 to 1.  It then drops down to 0 again within 2 to 5 
minutes.  On the same graph, the "Created" instance count is always 1.

The graph shows that the Active instance count does bounce up to 1 briefly 
several times per day, although I assume users don't experience (or don't 
report) the error due to their sporadic nature of use.

We can't find anything in the GCP docs that details the difference between 
a 'Created' and 'Active' instance, nor can we find anything that explains 
why the 'Active' instance count changes on a manual scaling app.

To the contrary, 
https://cloud.google.com/appengine/docs/standard/php7/how-instances-are-managed 
suggests 
that manual_scaling versions use "resident instances" which "remain in 
memory and state is preserved across requests" and "Manual scaling uses 
resident instances that continuously run the specified number of instances 
irrespective of the load level".

NB:  we do not have any /_ah/start or /_ah/stop requests at any time other 
than when the instance is manually stopped/started by us (which is nowhere 
near the time the instance count changes to 'Active').

Is anybody able to explain this behavior for us, please?  We need to 
prevent it, as its currently a minor inconvenience, but some users are 
starting to get aggravated.

app.yaml =

runtime: php72
env: standard
instance_class: B2
manual_scaling:
  instances: 1

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6a60d31f-b1ed-45d7-be65-da27400149a6%40googlegroups.com.


[google-appengine] Why TTFB on Google Cloud Run/App depends significantly on domain?

2019-09-23 Thread Andy S


I have several top level domains pointing (DNS A record) to one service on 
Google Cloud Run/App (I've deployed the same service to both cloud products 
(Run/App) in order to test performance).


If I visit service though top level domains I have quite long TTFB, but if 
I visit service by "internal" Google Cloud domain like: 
myapp-123456.appspot.com (Google Cloud App) myapp-123456.a.run.app (Google 
Cloud Run) I have quite small TTFB, *why?*


TTFB on Google Cloud App domain is about 40ms and for top level domain 
pointing to the same instance of service about 80ms.

TTFB on Google Cloud Run domain is about 50ms and for top level domain 
pointing to the same instance of service about 320ms.


TTFB on Google Cloud App is about 50% of time for top level domain. TTFB on 
Google Cloud Run is about 16% of time for top level domain. *Why?*


TTFB 300ms for every request is absurd! In 300ms I could have DOM content 
loaded on private server.


Technical details: 

My top level domains are registered by different registrars. Difference is 
the same for AnyCast DNS (OVH) and standard DNS. Difference exist also for 
http and https pages. I've tested it manually and by scripts 
(chrome-har-capturer) houndrends times with headless google and on firefox. 
I was using median time value for, not average. There is no point of 
publishing here my domains because I'm testing different settings 
constantly.


Sample screens:

Google Cloud Run, Google Domain 

Google Cloud Run, Top Level Domain 

Virtual Private Server, Top Level Domain 


-- 
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/e5465cc7-aee2-433c-9e56-70e594c3a897%40googlegroups.com.


[google-appengine] Re: Service missing from Stackdriver Error Reporting after change to PHP 7.2

2019-09-06 Thread Andy Whittle
Bump.   :)

-- 
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/6b93a74f-62f1-4c17-bad3-7c4e6d1c048a%40googlegroups.com.


[google-appengine] Service missing from Stackdriver Error Reporting after change to PHP 7.2

2019-09-03 Thread Andy Whittle
Hi

We have two GAE Standard env services within a project.  The PHP 5.5 
service is fine, but the 'default' instance has disappeared from 
Stackdriver Error Reporting after switching the runtime to PHP 7.2 (we 
think... we're not definite on the point it disappeared).

I've worked through https://cloud.google.com/error-reporting/docs/setup/php 
and added everything except ...

auto_prepend_file='/project-dir/vendor/google/cloud-error-reporting/src/prepend.php'


... as I gave up trying to figure out what /project-dir/ was after a few 
attempts.

Is anybody able to provide some pointers, please?  We've got a 500 in QA 
which we can't replicate in our local env and are fumbling in the dark with 
no error reporting on the GAE instance.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9e6390f7-dc02-41d7-ad41-b140d6b36eab%40googlegroups.com.


[google-appengine] Re: Active PHP 7.2 sessions lost after gcloud app deploy

2019-09-03 Thread Andy Whittle
Brent - do you have a copy of the getting-started/sessions doc you can 
share, please, as I can't see it posted publicly yet?

Cheers

On Thursday, August 22, 2019 at 6:39:36 PM UTC+1, Brent Shaffer wrote:
>
> You can also use Firestore for sessions, which I've serendipitously just 
> added 
> to the client library 
> <https://github.com/googleapis/google-cloud-php/pull/2258>. I think this 
> is the best way because 
>
>1. There is a free tier
>2. It's very simple to set up compared to a MySQL instance (no need to 
>set up a database/username/password).
>3. It's more "serverless" e.g. you don't configure instances.
>
> I have a "getting started" tutorial for using sessions w/ App Engine and 
> Firestore. It'll be at */php/getting-started/sessions*, so we can add it 
> to the appengine navigation. Check out the code here 
> <https://github.com/GoogleCloudPlatform/getting-started-php/pull/209>.
>
> - Brent
>
> On Wednesday, August 21, 2019 at 10:47:38 AM UTC-7, Jason Collins wrote:
>>
>> In GAE Std, for php72, the default session store is configured. This 
>> default is `session.save_handler=files` which uses /tmp to store session 
>> files.
>>
>> In GAE Std, each instance has its own /tmp and the /tmp is empty on any 
>> cold start. So this is not really a viable option for session storage 
>> (e.g., different requests from the same user may land on different 
>> instances, and thus different sessions).
>>
>> You can use php.ini to configure an alternative (e.g., MySQL on Cloud 
>> SQL, or Cloud Memorystore), but you need to do some set up work (e.g., 
>> create a Cloud SQL instance, configure access).
>>
>> We need to have better documentation about this; I will create an 
>> internal bug to have some created.
>>
>>
>>
>> On Wednesday, 21 August 2019 02:10:53 UTC-7, Andy Whittle wrote:
>>>
>>> Hi Jason,
>>>
>>> We're using whichever method GAE Standard env provides to store sessions.
>>>
>>> On Tuesday, August 20, 2019 at 2:40:24 AM UTC+1, Jason Collins wrote:
>>>>
>>>> How are you storing your sessions? Is it the /tmp folder default, or 
>>>> have you used something like MySQL (Cloud SQL) to store sessions?
>>>>
>>>>
>>>>

-- 
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/5f1bd3bd-5098-4e70-9b62-965ad468ec79%40googlegroups.com.


[google-appengine] Re: Active PHP 7.2 sessions lost after gcloud app deploy

2019-09-03 Thread Andy Whittle
Thanks Jason / Brent,

We've already got a Cloud SQL instance, so not much of a support overhead 
for us to add a session storage DB.

In regards to security *and* performance, do you have any comments or 
advice re. Cloud SQL vs. Cloud Memorystore vs Firestore, please?  I'm 
unsure which would be the best method on balance.

-- 
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/85c3ed93-07ad-4915-8cc2-4c0b8b26cdca%40googlegroups.com.


[google-appengine] Re: Active PHP 7.2 sessions lost after gcloud app deploy

2019-08-21 Thread Andy Whittle
Hi Jason,

We're using whichever method GAE Standard env provides to store sessions.

On Tuesday, August 20, 2019 at 2:40:24 AM UTC+1, Jason Collins wrote:
>
> How are you storing your sessions? Is it the /tmp folder default, or have 
> you used something like MySQL (Cloud SQL) to store sessions?
>
>
>

-- 
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/e2ab0aaa-3ac4-435f-b754-c51e26ed3e9c%40googlegroups.com.


[google-appengine] Re: Active PHP 7.2 sessions lost after gcloud app deploy

2019-08-19 Thread Andy Whittle
Thanks, George. We already increment the version deployed each time, but this 
still occurs.

Can you tell me where I'm going wrong in the deployment process, please?

Example:

- Current version with 100% traffic is named "v123" with active users.
- gcloud app deploy -v v124
- Traffic is automatically sent to v124, at which point the users are kicked 
out.

Is there a step I'm missing, please? 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/26f2145f-bf95-4bf4-8b2f-a7fd04c16df4%40googlegroups.com.


[google-appengine] Active PHP 7.2 sessions lost after gcloud app deploy

2019-08-16 Thread Andy Whittle
Hi

We switched to GAE PHP 7.2 runtime a couple of months ago.

I can't say for definite, but I'm fairly sure that on the PHP 5.5 runtime, 
active user sessions continued running without hitch when we deployed a new 
version of our app.

Since we switched to PHP 7.2, users are getting kicked out of the app the 
moment 'gcloud app deploy' has completed.

Does anybody know how we can prevent this from happening, please, as we're 
getting complaints from the users who are logged into the QA version each 
time we have to push a small hotfix, which can sometimes be several times 
per day.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/642768be-0aa9-4031-b9f9-5fdef87d6dce%40googlegroups.com.


[google-appengine] Dev env outputting HTML to console on error

2018-11-17 Thread Andy Whittle
Does anybody know how to stop the dev environment outputting the page's 
HTML to the console on error?

Aside from it being incredibly and frustratingly slow - so a large page can 
take 30 seconds to finish displaying the HTML, during which time I can't do 
anything but watch - it also writes the HTML after the app error, so I have 
to scroll up 50 screens worth of HTML to see an error message and stack 
trace.

This is useless behaviour, so surely there's a way of stopping it?  FYI - 
I've read the Google doc detailing all of the switches and tried the 
following, but there doesn't appear to be anything that blocks this 
pointless output:

--log_level=warning --dev_appserver_log_level=critical

Thanks!

Windows 10 x64
App Engine Standard 
PHP 5.5

-- 
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/bd8b27f6-11d1-433c-9c90-d59b11607c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] ERROR: (gcloud.app.deploy) Error Response: [4] Timed out waiting for the flex deployment to become network provisioned.

2018-03-06 Thread Zakaria Andy
I have a problem when I deployed my java application on app-enigine using 
google cloud sdk. When I take a long time to wait deployment process, I get 
error message which indicate was my deployment is failure. Below the error 
message, please help me solve the problem, thank you

[INFO] ERROR: (gcloud.app.deploy) Error Response: [4] Timed out waiting for 
the flex deployment to become network provisioned.
[ERROR] Error: gcloud app command with exit code : 1
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 27:33 min
[INFO] Finished at: 2018-03-06T19:16:02+07:00
[INFO] Final Memory: 26M/238M
[INFO] 

[ERROR] Failed to execute goal 
com.google.appengine:gcloud-maven-plugin:2.0.9.133.v20161104:deploy 
(default-cli) on project kofera-builder-adwords-worker: Error: gcloud app 
command exit code is: 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


-- 
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/a61c1614-c9ff-4733-a06b-a86a924775df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] I've been getting app engine service disruption when connecting to cloud sql

2018-01-31 Thread Andy Tseng
So this month we have been getting app engine service disruption, when 
connecting App Engine to CloudSQL using socket. We keep getting PHP 
Warning: mysqli::mysqli(): Error while reading greeting packet, and 
interestingly, this error occurs out of no where, without changing any 
codes nor redeploying anything. This error usually happens around 10:30am 
to 11am UTC+8 (Taipei Time Zone) on random days and today the service 
disruption has been going on for at least half an hour, without changing 
any code, which is insane. Our region is us-central. When connecting to 
CloudSQL via IP address seems fine. I was wondering if anybody else is 
receiving this problem as well and if there is a way to fix it?

-- 
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/fd920323-28ec-407c-b600-f442ee4bd09b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Disaster Recovery(App Engine) - Multi Region

2017-07-26 Thread andy
Hi Yannick,

Thank you so much for the response.

The links you have shared is more to do with Compute (as u have already 
mention).

Our mandate is to  deploy the application in "App Engine" (we can use a 
combination of standard & flex), and it should be resistant to regional 
failures (should be able to run from another region if there is an outage).

If I deploy the front-end service using "Flex" environment and the back-end 
services in "Standard", and create a copy of the same in another region 
using another project -  
1. Would I be able to do a load balancing between the two flex servers ?
2. Would I be able to do a fail-over to Flex server in alternate region 
using Cloud DNS ?

Also is there a way to backup the entire App engine service deployed in 
region "A" and copy it to another region "B" ?

Kindly let me know the possibility of the above 3 options.


Thanks

Andy

On Wednesday, July 26, 2017 at 2:19:33 AM UTC+5:30, Yannick (Cloud Platform 
Support) wrote:
>
> Hello Andy,
>
> App Engine is a regional service 
> <https://cloud.google.com/appengine/docs/locations> and while it is 
> replicated to all zones of a region to reduce potential downtime, it cannot 
> span to more than a region. The recommended way to deploy your application 
> to several regions is to use one region per project, but there is no good 
> way to load balance between those projects if you use App Engine Standard.
>
> This means that the real answer to accomplish what you want to do is to 
> use Compute Engine, or at the very least App Engine Flexible. Compute 
> Engine gives you more liberty to create instances in any region of the 
> world and to load balance between them however you like.
>
> Read more on this subject in these articles:
>
>- Building Scalable and Resilient Web Applications on Google Cloud 
>Platform 
><https://cloud.google.com/solutions/scalable-and-resilient-apps>
>- Designing Robust Systems 
><https://cloud.google.com/compute/docs/tutorials/robustsystems>
>
> I hope this helps.
>
> On Tuesday, July 25, 2017 at 9:12:51 AM UTC-4, andy wrote:
>>
>> Hi ,
>>
>> I am planning to deploy an Enterprise Grade Application in Google App 
>> Engine. With both Standard & Flex environment.
>>
>> How do I ensure the DR in case a region goes down.
>>
>> Example : I deploy my application in AppEngine "N.Virginia" region & if 
>> there is an outage in the region , how to do I serve the requests from 
>> another region ?
>> Could anyone explain on how do I setup a DR site for AppEngine 
>> Applications.
>>
>

-- 
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/df12a590-f943-4a8d-be3f-d00119bb6b33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Disaster Recovery(App Engine) - Multi Region

2017-07-25 Thread andy
Hi ,

I am planning to deploy an Enterprise Grade Application in Google App 
Engine. With both Standard & Flex environment.

How do I ensure the DR in case a region goes down.

Example : I deploy my application in AppEngine "N.Virginia" region & if 
there is an outage in the region , how to do I serve the requests from 
another region ?
Could anyone explain on how do I setup a DR site for AppEngine Applications.

-- 
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/05a317c9-f57d-4948-8ecb-55e9403158dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Disaster Recovery (App Engine) - Multi Region

2017-07-25 Thread andy
Hi ,

I am planning to deploy an Enterprise Grade Application in Google App 
Engine using both Standard & Flex environment.

How do I ensure the DR in case a region goes down.

Example : I deploy my application in AppEngine "N.Virginia" region & there 
is an outage in the region , how to do I serve the requests from another 
region ?
Could anyone explain on how do I setup a DR site in another region for 
AppEngine Applications, Also if there is an automated way to switch over to 
the other region when there is a disruption/outage.


Thanks in Advance.

sincerely
Andy

-- 
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/581af52d-c131-4fe9-b434-426f71fe1d5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Does anyone else also run into high latency problem connecting to Cloud Sql?

2016-12-29 Thread Andy Tseng
Hey Nick,

So Adam (also from Cloud Platform Support) was able to reproduce the 
problem. It seems like it has something to do with the location of the 
project. My whole project is located at asia-northeast1 so it probably has 
something to do with that location not being able to run socket connection 
fast enough. If you also have any updates, please let me know. Thank you!

On Thursday, December 29, 2016 at 10:53:37 AM UTC+8, Nick (Cloud Platform 
Support) wrote:
>
> Hey Andy,
>
> Thanks for that information. I'm currently working on reproducing the 
> behaviour, although I'm not seeing it so far. It may be related to the App 
> Engine app's location. Are you sure your app's instances are in 
> asia-northeast1? 
>
> Also, this is speculation and I'll have to confirm, but perhaps there's 
> something odd happening with the resolution of the SQL instances' location 
> / routing of packets when using the unix socket (which is of course an 
> abstraction rather than a mere socket to a db process running on the local 
> "machine") while the more direct IP route is avoiding that. 
>
> I'll get back to you as soon as I can with more clarity on this. In the 
> meantime, it's good to know the IP workaround is efficient.
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Friday, December 23, 2016 at 3:11:43 AM UTC-5, Andy Tseng wrote:
>>
>> Hey Nick, 
>>
>> Sorry for the late reply, both my CloudSQL and App Engine are in the same 
>> project, which is located in northeast-asia. I am connecting through PHP 
>> using mysqli, and I've tried PDO and I am getting the same result. 
>> Interestingly, when I connect through host:port, I am getting a lot lower 
>> latency. I have whitelisted 0.0.0.0/0 for IP and using host:port 
>> connection and I am getting a pretty low latency (I know it's not secure). 
>> Which is weird, because unix socket should be a lot faster. Here is my code 
>> for both type of connection:
>>
>> YAML :
>>
>> MYSQL_DSN: /cloudsql/projectname:asia-northeast1:instancename 
>> MYSQL_USER: user
>> MYSQL_PASSWORD: password
>> MYSQL_DATABASE: dbname
>>
>>
>> Using socket:
>>
>>
>> $servername = getenv('MYSQL_DSN');
>> $username = getenv('MYSQL_USER');
>> $password = getenv('MYSQL_PASSWORD');
>> $dbname = getenv('MYSQL_DATABASE');
>> $connection = new mysqli(null, $username, $password, $dbname, null, 
>> $servername);
>>
>>
>> Using host:port  :
>>
>> $servername = "ip.address:port";
>> $username = getenv('MYSQL_USER');
>> $password = getenv('MYSQL_PASSWORD');
>> $dbname = getenv('MYSQL_DATABASE');
>> $connection = new mysqli($servername, $username, $password, $dbname);
>>
>>
>> Please let me know if you can tell what's wrong! Thank you very much.
>>
>> On Wednesday, December 21, 2016 at 5:39:43 AM UTC+8, Nick (Cloud Platform 
>> Support) wrote:
>>>
>>> Hey Andy,
>>>
>>> Let us know if you can get some of those details to us. We'd be happy to 
>>> take a look into further investigating a possible cause.
>>>
>>> Cheers,
>>>
>>> Nick
>>> Cloud Platform Community Support
>>>
>>> On Wednesday, December 14, 2016 at 8:47:06 AM UTC-5, Andy Tseng wrote:
>>>>
>>>> So I am connecting to Second Gen Cloud SQL from my App Engine, and both 
>>>> of them are in the same project. However, the latency is really high, up 
>>>> to 
>>>> 1.3 seconds. So I was wondering if anyone else is also running into this 
>>>> problem. Everything works fine, but it's just the high latency and the 
>>>> same 
>>>> structure at AWS has a much shorter latency, so I was wondering why.
>>>>
>>>

-- 
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/f8db9348-ac9d-476b-8ec8-6246e134ff0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Does anyone else also run into high latency problem connecting to Cloud Sql?

2016-12-26 Thread Andy Tseng
Thank you very much Adam, please let me know if there is any updates! :)

On Monday, December 26, 2016 at 7:04:50 AM UTC+8, Adam (Cloud Platform 
Support) wrote:
>
> Hi Andy,
>
> I've been able to reproduce this myself as well and an issue has been 
> filed on the googlecloudsql issue tracker 
> <https://code.google.com/p/googlecloudsql/issues/detail?id=197> by 
> another user, which we'll update once we have more info.
>
> On Friday, December 23, 2016 at 3:15:18 AM UTC-5, Andy Tseng wrote:
>>
>> Hey Les Vogel,
>>
>> Please see my reply, I am using php and my GAE and CloudSQL are both in 
>> the same project, so that shouldn't be the reason! If you have any idea, 
>> please let me know! 
>>
>> Thanks
>>
>> On Thursday, December 15, 2016 at 4:34:13 AM UTC+8, Les Vogel wrote:
>>>
>>> It should be only 1ms longer 
>>> <https://cloud.google.com/appengine/docs/java/cloud-sql/#Setting_up> 
>>> than 1st gen.  Are you sure that your deploy region for GAE Standard and 
>>> your region for your 2nd get instance.  If not, that could add latency.
>>>
>>> On Wed, Dec 14, 2016 at 2:17 AM, Andy Tseng <andyt...@gmail.com> wrote:
>>>
>>>> So I am connecting to Second Gen Cloud SQL from my App Engine, and both 
>>>> of them are in the same project. However, the latency is really high, up 
>>>> to 
>>>> 1.3 seconds. So I was wondering if anyone else is also running into this 
>>>> problem. Everything works fine, but it's just the high latency and the 
>>>> same 
>>>> structure at AWS has a much shorter latency, so I was wondering why.
>>>>
>>>> -- 
>>>> 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/35a830ee-b9bf-458d-bfc0-73fd31d0dcf1%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-appengine/35a830ee-b9bf-458d-bfc0-73fd31d0dcf1%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>>
>>>
>>> *  •  **Les Vogel*
>>> *  •  *Cloud Developer Relations
>>> *  •  *le...@google.com
>>> *  •  *+1-408-676-7023 
>>>
>>>
>>>

-- 
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/bd65f491-2993-4330-ae66-ae84582ea21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Does anyone else also run into high latency problem connecting to Cloud Sql?

2016-12-23 Thread Andy Tseng
Hey Les Vogel,

Please see my reply, I am using php and my GAE and CloudSQL are both in the 
same project, so that shouldn't be the reason! If you have any idea, please 
let me know! 

Thanks

On Thursday, December 15, 2016 at 4:34:13 AM UTC+8, Les Vogel wrote:
>
> It should be only 1ms longer 
> <https://cloud.google.com/appengine/docs/java/cloud-sql/#Setting_up> than 
> 1st gen.  Are you sure that your deploy region for GAE Standard and your 
> region for your 2nd get instance.  If not, that could add latency.
>
> On Wed, Dec 14, 2016 at 2:17 AM, Andy Tseng <andyt...@gmail.com 
> > wrote:
>
>> So I am connecting to Second Gen Cloud SQL from my App Engine, and both 
>> of them are in the same project. However, the latency is really high, up to 
>> 1.3 seconds. So I was wondering if anyone else is also running into this 
>> problem. Everything works fine, but it's just the high latency and the same 
>> structure at AWS has a much shorter latency, so I was wondering why.
>>
>> -- 
>> 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/35a830ee-b9bf-458d-bfc0-73fd31d0dcf1%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/35a830ee-b9bf-458d-bfc0-73fd31d0dcf1%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
>
> *  •  **Les Vogel*
> *  •  *Cloud Developer Relations
> *  •  *le...@google.com 
> *  •  *+1-408-676-7023 
>
>
>

-- 
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/bab05293-cb78-459c-9465-d164e46a89db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Does anyone else also run into high latency problem connecting to Cloud Sql?

2016-12-23 Thread Andy Tseng
Hey Nick, 

Sorry for the late reply, both my CloudSQL and App Engine are in the same 
project, which is located in northeast-asia. I am connecting through PHP 
using mysqli, and I've tried PDO and I am getting the same result. 
Interestingly, when I connect through host:port, I am getting a lot lower 
latency. I have whitelisted 0.0.0.0/0 for IP and using host:port connection 
and I am getting a pretty low latency (I know it's not secure). Which is 
weird, because unix socket should be a lot faster. Here is my code for both 
type of connection:

YAML :

MYSQL_DSN: /cloudsql/projectname:asia-northeast1:instancename 
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: dbname


Using socket:


$servername = getenv('MYSQL_DSN');
$username = getenv('MYSQL_USER');
$password = getenv('MYSQL_PASSWORD');
$dbname = getenv('MYSQL_DATABASE');
$connection = new mysqli(null, $username, $password, $dbname, null, 
$servername);


Using host:port  :

$servername = "ip.address:port";
$username = getenv('MYSQL_USER');
$password = getenv('MYSQL_PASSWORD');
$dbname = getenv('MYSQL_DATABASE');
$connection = new mysqli($servername, $username, $password, $dbname);


Please let me know if you can tell what's wrong! Thank you very much.

On Wednesday, December 21, 2016 at 5:39:43 AM UTC+8, Nick (Cloud Platform 
Support) wrote:
>
> Hey Andy,
>
> Let us know if you can get some of those details to us. We'd be happy to 
> take a look into further investigating a possible cause.
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Wednesday, December 14, 2016 at 8:47:06 AM UTC-5, Andy Tseng wrote:
>>
>> So I am connecting to Second Gen Cloud SQL from my App Engine, and both 
>> of them are in the same project. However, the latency is really high, up to 
>> 1.3 seconds. So I was wondering if anyone else is also running into this 
>> problem. Everything works fine, but it's just the high latency and the same 
>> structure at AWS has a much shorter latency, so I was wondering why.
>>
>

-- 
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/4e20bbff-b488-479a-b3b7-c85b43fff77d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Does anyone else also run into high latency problem connecting to Cloud Sql?

2016-12-14 Thread Andy Tseng
So I am connecting to Second Gen Cloud SQL from my App Engine, and both of 
them are in the same project. However, the latency is really high, up to 
1.3 seconds. So I was wondering if anyone else is also running into this 
problem. Everything works fine, but it's just the high latency and the same 
structure at AWS has a much shorter latency, so I was wondering why.

-- 
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/35a830ee-b9bf-458d-bfc0-73fd31d0dcf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Datastore read costs for nil entities

2016-07-26 Thread Andy Haskell
I am working on optimizing datastore calls, and saw that the cost of 
datastore read calls is 6 cents per 100,000 entities worth of reads. If I 
do a datastore.Get call for an entity that isn't in the datastore, does 
that count as a datastore read, or is it only considered a datastore read 
if the entity is actually in the datastore?

-- 
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/253fb25a-7294-47d0-9a27-27e6966a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine Inbound Integration

2014-07-08 Thread Andy
Hi,

I am developing an Application on app engine using Java, and I have a Java 
app that is sitting on Tomcat on an in-house server.  The Tomcat Java app 
needs to make web services call to app on GAE, and this Tomcat Java App 
needs to authenticate, is it that I could use Service Account for Tomcat 
Java App to connect to GAE in terms of authentication?

Thanks,

Andy

-- 
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] GAE Blobstore file-like API deprecation timeline (py 2.7 runtime) [XPOST from StackOverflow]

2013-08-06 Thread Andy
Hi Chris,
I thought production API's were available for the greater of 1 year or 2015 
per the prior deprecation policy:
 
http://googleappengine.blogspot.com/2012/04/app-engine-and-googles-new-deprecation.html

Can you confirm that is still the case?

It would be really nice to keep the blobstore around.  Focusing on 
deprecating APIs instead of new product features can be a real pain.  We're 
still trying to migrate off M/S but cannot yet due to a bug in the 
migration tool related to the number of namespaces.

Thanks,
Andy



On Tuesday, July 30, 2013 8:17:21 PM UTC-4, Chris Ramsdale wrote:

 while there's currently no defined date for decommissioning this API, we 
 are committed to supporting it throughout the remainder of the year (2013). 
  please don't hesitate to reach out to me directly 
 (cram...@google.comjavascript:), 
 if you have further questions (this thread is fine as well).

 -- Chris

 Product Manager, Google App Engine


 On Mon, Jul 29, 2013 at 6:37 AM, rdodev ami...@gmail.com javascript:wrote:


 http://stackoverflow.com/questions/17903025/gae-blobstore-file-like-api-deprecation-timeline-py-2-7-runtime

 This is a question for the App Engine team.

 Last week we realized that the App Engine team had marked the file-like 
 API for writing and reading to the blobstore as being deprecated and likely 
 to be removed in the future. We have quite a bit of infrastructure relying 
 on that API that now we need to port to the alternative they suggest 
 (Google Cloud Storage) and this is not a trivial effort (especially 
 considering our current backlog). So the question is: how soon will this 
 file-like API be unavailable? It's fairly important for us to know as 
 depending on the answer, we might shuffle our backlog to prioritize the 
 porting of using the Blobstore to GCS.

 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-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.
 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.




Re: [google-appengine] GAE Blobstore file-like API deprecation timeline (py 2.7 runtime) [XPOST from StackOverflow]

2013-08-06 Thread Andy
Where do you see that? 

If you look at the current services and features it's not listed 
experimental:
https://developers.google.com/appengine/features/

If you look at the release notes it was never mentioned as experimental 
even when released with other new APIs that were marked experimental:
http://googleappengine.blogspot.com/2011/03/announcing-app-engine-143-release_30.html
https://code.google.com/p/googleappengine/wiki/SdkReleaseNotes






On Tuesday, August 6, 2013 5:48:56 PM UTC-4, rdodev wrote:

 Andy,

 The file-like API for blob store is not covered by that deprecation policy 
 because it was never in production to begin with. It was provided as 
 experimental. It sucks and it hit us really hard, but we also understand 
 their decision and we already have the migration to GCS in our backlog. 

 On Tuesday, August 6, 2013 5:09:01 PM UTC-4, Andy wrote:

 Hi Chris,
 I thought production API's were available for the greater of 1 year or 
 2015 per the prior deprecation policy:
  

 http://googleappengine.blogspot.com/2012/04/app-engine-and-googles-new-deprecation.html

 Can you confirm that is still the case?

 It would be really nice to keep the blobstore around.  Focusing on 
 deprecating APIs instead of new product features can be a real pain.  We're 
 still trying to migrate off M/S but cannot yet due to a bug in the 
 migration tool related to the number of namespaces.

 Thanks,
 Andy



 On Tuesday, July 30, 2013 8:17:21 PM UTC-4, Chris Ramsdale wrote:

 while there's currently no defined date for decommissioning this API, we 
 are committed to supporting it throughout the remainder of the year (2013). 
  please don't hesitate to reach out to me directly (cram...@google.com), 
 if you have further questions (this thread is fine as well).

 -- Chris

 Product Manager, Google App Engine


 On Mon, Jul 29, 2013 at 6:37 AM, rdodev ami...@gmail.com wrote:


 http://stackoverflow.com/questions/17903025/gae-blobstore-file-like-api-deprecation-timeline-py-2-7-runtime

 This is a question for the App Engine team.

 Last week we realized that the App Engine team had marked the file-like 
 API for writing and reading to the blobstore as being deprecated and 
 likely 
 to be removed in the future. We have quite a bit of infrastructure relying 
 on that API that now we need to port to the alternative they suggest 
 (Google Cloud Storage) and this is not a trivial effort (especially 
 considering our current backlog). So the question is: how soon will this 
 file-like API be unavailable? It's fairly important for us to know as 
 depending on the answer, we might shuffle our backlog to prioritize the 
 porting of using the Blobstore to GCS.

 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-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@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] Re: gae urlfetch down

2013-07-27 Thread Andy Warner


Looks like it started at exactly 4pm Pacific. I have requests moments before 
that were fine and everything after is throwing a name error for 
InvalidURLError, so it is not just fetches failing, urlfetch is missing 
libraries in webapp2.


except InvalidURLError:

NameError: global name 'InvalidURLError' is not defined


On Saturday, July 27, 2013 4:06:27 PM UTC-7, Adam Sah wrote:

 ouch!

 adam



-- 
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: TaskQueue Elevated again today

2013-04-01 Thread Andy Waddell
I am seeing tasks sit in queues for a long time, seems like 60 seconds, 
before the execute.  I don't have any options that would be delaying them, 
my intent is for them to execute more or less immediately.  This is new 
behavior I have been seeing for the last few days and seems to correlate 
with the Elevated status.

I've been working the code surrounding this recently to, so it took me a 
while to realize that there might be something going on out of my control.  

Anyone else seeing similar symtoms?

On Wednesday, March 27, 2013 1:04:18 AM UTC-7, Moises Belchin wrote:

 Hi again,

 Can anyone tell us what's happening again?

 Thanks and regards.
 Moisés Belchín.

 [image: Imágenes integradas 1]
  

-- 
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: Delayed execution of tasks in 1.7.6.

2013-04-01 Thread Andy Waddell
Me Three

On Wednesday, March 27, 2013 10:08:53 AM UTC-7, notreadbyhumans wrote:

 I've noticed that since updating a live app to 1.7.6 new tasks are sitting 
 in named task queues for up to a couple of minutes before executing. The 
 queues are empty (no executing tasks) and have ample execution rates (20/s) 
 and bucket sizes (30), and tasks can be manually run.

 Has anyone else experienced similar issues?


-- 
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: TaskQueue Elevated again today

2013-04-01 Thread Andy Waddell
Same here.. seeing tasks stay in queue for a long time (60 seconds) before 
executing.  Nothing else going on.

On Wednesday, March 27, 2013 1:04:18 AM UTC-7, Moises Belchin wrote:

 Hi again,

 Can anyone tell us what's happening again?

 Thanks and regards.
 Moisés Belchín.

 [image: Imágenes integradas 1]
  

-- 
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] Delayed execution of tasks in 1.7.6.

2013-04-01 Thread Andy Waddell
Yes.  Me too

-- 
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: Delayed execution of tasks in 1.7.6.

2013-04-01 Thread Andy Waddell
I'm seeing the same thing.  Everything now working as expected.  

On Thursday, March 28, 2013 2:51:54 AM UTC-7, notreadbyhumans wrote:

 Oddly I've just run the same tests a day later and responsiveness is back 
 to where I would expect it i.e. queues with large rates and buckets clear 
 before you have a chance to reload the console page.

 Hopefully the App Engine team are tracking this as - instance resources 
 allowing - we need to be able to rely on rapid task execution.

 On Thursday, March 28, 2013 5:11:25 AM UTC, stevep wrote:

 Yes. Very noticeable in some situations where an instance absolutely has 
 tons of cpu cycles going to waste and yet taskqueue crickets are heard 
 chirping. Why??? Having pondered this, unpredictable TQ starts is a very, 
 very old source of complaints. One must be resigned to it I guess.

 On Wednesday, March 27, 2013 10:08:53 AM UTC-7, notreadbyhumans wrote:

 I've noticed that since updating a live app to 1.7.6 new tasks are 
 sitting in named task queues for up to a couple of minutes before 
 executing. The queues are empty (no executing tasks) and have ample 
 execution rates (20/s) and bucket sizes (30), and tasks can be manually run.

 Has anyone else experienced similar issues?



-- 
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] Partial Outage?

2013-01-03 Thread andy
App worked until 1:50 PM PST. Since then all requests are answered with 
500 Error: Server Error

No requests show up in the log at all. 
New deploys work by fail at verification stage (just time out)

Uploaded same app to a different test app and there it works (but of course 
no data). Also in the console /datastore/admin  also return the  500 Error: 
Server Error

What can this be? How to troubleshoot further as the log does not give any 
information?

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/-/53W7hgD7ftUJ.
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] Partial Outage?

2013-01-03 Thread andy
yonja-media

On Thursday, January 3, 2013 3:59:53 PM UTC-8, Takashi Matsuo (Google) 
wrote:


 Hi Andy,

 Can you tell me your app-id?


 On Thu, Jan 3, 2013 at 3:50 PM, andy oest...@gmail.com javascript:wrote:

 App worked until 1:50 PM PST. Since then all requests are answered with 
 500 Error: Server Error

 No requests show up in the log at all. 
 New deploys work by fail at verification stage (just time out)

 Uploaded same app to a different test app and there it works (but of 
 course no data). Also in the console /datastore/admin  also return the 
  500 Error: Server Error

 What can this be? How to troubleshoot further as the log does not give 
 any information?

 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/-/53W7hgD7ftUJ.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 google-appengi...@googlegroups.com javascript:.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.




 -- 
 Takashi Matsuo | Developers Advocate | tma...@google.com javascript:
  

-- 
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/-/5sk1ktx8nmMJ.
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] Partial Outage?

2013-01-03 Thread andy
When is the maintenance period over?
Any action required once maintenance is done?

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/-/qKjhQKeRP84J.
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] Partial Outage?

2013-01-03 Thread andy
Ok maintenance will start  at 5pm (in 7 minutes) and last 2 hours

Will the problem be fixed at that same time? Or you can't start to fix 
until after maintenance?

Please give a heads up when the apps should be re-tested.

-- 
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/-/wu40Pr5azBkJ.
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: Outage?

2013-01-03 Thread andy
check your apps, ours is working again (without any action)

-- 
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/-/Yn1fiVBvWSgJ.
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] Google app engine and lock-in

2012-12-06 Thread Andy Stevko
Glad to see another alternative to appengine lock in.

Is there a grid that shows the GAE components supported/partially
supported/non-supported by Cape Dwarf?
I see that there is a Channel API sub-tree that says 'Initial @Category
support.https://github.com/capedwarf/capedwarf-blue/commit/e5597abe21fc14c0371d5537cde95d59289857f8
without much meat behind it.


On Thu, Dec 6, 2012 at 10:30 AM, Randy Shoup rsh...@google.com wrote:

 From the App Engine side, we're excited to see these several open source
 implementations of the App Engine APIs.  Keep up the great work.  Can't
 wait to see what's next.

 Take care,
 -- Randy

 Randy Shoup
 Director, Google App Engine


 On Wednesday, December 5, 2012 2:41:49 AM UTC-8, Ales Justin wrote:

 As promised, and a bit of pr ...
 * 
 http://in.relation.to/**Bloggers/FirstCapeDwarfReleasehttp://in.relation.to/Bloggers/FirstCapeDwarfRelease

 -Ales

 On Nov 23, 2012, at 11:54 PM, Ales Justin ales@gmail.com wrote:

 Sounds interesting... Any idea about the costs ?


 Deployment and setup wise there are no costs, as it's all open source,
 hence you can build and maintain it yourself. Not that I suggest that --
 we make our $ out of support. :-)

 But obviously if you need any serious environment, you'll need some
 hardware.

 But a note of warning, this is a new project, hence not yet around at all
 - just about to do initial release,
 and we definitely welcome community participation.

 Otoh, we take big pride in testing things, and we do try to think
 scalable all the time.
 Things are implemented to run in a cluster / cloud, while we admit there
 are some design issues we need to re-evaluate.

 I'll push some announcement blog on Monday,
 with more detailed instructions and binaries on how to use things.

 I suggest you give it a spin and let us know.

 -Ales

 On Thursday, November 22, 2012 9:12:44 PM UTC+1, Ales Justin wrote:

 Wrt lock-in, at JBoss/RedHat we're working on this new project:
 * http://www.jboss.org/**capedwarf http://www.jboss.org/capedwarf

 I'm just about to do initial Beta1 release in the next few days.
 Perhaps give it a spin and let us know any feedback.

 -Ales

 On Wednesday, November 21, 2012 5:26:11 AM UTC+1, Emmanuel Mayssat wrote:

 I am aware of AppScale
 http://appscale.cs.ucsb.edu/

 But is the backend (database) of google app engine also supported?
 If so which one is it?
 (AppScale support memcachedb, cassandra, mysql, mongodb, and a few
 others)
 http://www.youtube.com/watch?**v=ebnh3D79xUshttp://www.youtube.com/watch?v=ebnh3D79xUs

 Regards,
 E


 --
 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/-/**vA0Fwjx-qN8Jhttps://groups.google.com/d/msg/google-appengine/-/vA0Fwjx-qN8J
 .
 To post to this group, send email to google-a...@googlegroups.**com.
 To unsubscribe from this group, send email to google-appengi...@**
 googlegroups.com.

 For more options, visit this group at http://groups.google.com/**
 group/google-appengine?hl=enhttp://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 view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine/-/DOZ7H7Q8WYgJ.

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
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: Some dynamic flexibility in selecting the type of instances would be really useful

2012-11-28 Thread Andy
Hi Emanuele,
We had the exact same need for f1 frontend and larger instances for some 
tasks.  We solved it using larger backends combined with task queues.  When 
you enqueue you can provide the target which would be used to run the task 
or you can configure a task queue to only run on a specific target.  If you 
have tasks generated from a backend you can enqueue back onto a frontend 
using the constant: taskqueue.DEFAULT_APP_VERSION.  

We cut our instance costs by 50% with this approach (f2 - f1).  There were 
issues getting it to work on the dev server (naming issue) but it's pretty 
simple on app engine.

Andy


On Tuesday, November 27, 2012 6:10:30 PM UTC-5, Emanuele Ziglioli wrote:

 Hi everyone,

 have been following this group for months but can't recall reading 
 anything related to this: currently the instance size is one big knob while 
 it'd be useful to be able to select a different instance size at runtime. 
 Our web site is perfectly served by F1 instances but it runs out of memory 
 of some task queues when iterating over a large number of instances. For 
 that reason only we have to run F2 instances at higher costs.
 The type of work we run in task queues really suits MapReduce but the java 
 version has been broken for us for many months now.
 Would it be difficult to add a parameter when posting to a task queue to 
 request for a larger instance?
 I don't really want to use backends given their bad rep.

 Similarly, giving people more choice with regards to what instances to 
 start and when could perhaps solve a large set of problems that people have 
 been complaining about.
 If you can't modify the scheduler to suit all possible needs (I can 
 understand it's an impossible goal), just give the ability to write our own 
 schedulers. At the end of the day we pay for what we use and the that usage 
 is capped by the daily budget anyway.

 Does it make sense?

 Emanuele



-- 
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/-/alzI5S7IqHUJ.
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: Some dynamic flexibility in selecting the type of instances would be really useful

2012-11-28 Thread Andy
Pdknsk, that's all dynamic backends are: named configurable versions.  When 
we do a deploy we now do it to the new version as well as the backend 
version.  

On Wednesday, November 28, 2012 12:53:50 PM UTC-5, pdknsk wrote:

 If you don't want to use backends, you could use named versions, if 
 Google allowed to configure per version. 

 https://code.google.com/p/googleappengine/issues/detail?id=6547 


-- 
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/-/Xhl4E6t5h9gJ.
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: Some dynamic flexibility in selecting the type of instances would be really useful

2012-11-28 Thread Andy
Setting the instances option in the backends.yaml allows it to scale up 
that value.  15m penalty is well worth it because 99% of our traffic fits 
in an F1 but we had to run F2s previously to allow the 1% of the tasks to 
succeed.  As a result our costs are roughly half as much.  

On Wednesday, November 28, 2012 1:19:36 PM UTC-5, pdknsk wrote:

 Well, not exactly, because dynamic backends don't scale and have 15m 
 cost penalty. 


-- 
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/-/ZBcsY5jvN0EJ.
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: Some dynamic flexibility in selecting the type of instances would be really useful

2012-11-28 Thread Andy
You use one backend instance to cater for larger memory speed requirements. 
 Depending on throughput requirements you can configure the instances 
property to run more than one instance in that higher class.

Step 1.  Configure backends.yaml

backends:
- name: medium
  class: B2
  instances: 1
  options: dynamic

Step 2. Enqueue a task with target (using the python defer library in this 
example):

defer(doSomethingBigger, _queue='some-queue-for-big-stuff', 
_target='medium')

Step 3. Profit

On Wednesday, November 28, 2012 3:30:51 PM UTC-5, Emanuele Ziglioli wrote:

 Thank you for the suggestion,

 I'm not sure if I understand, which one these two:
 1. You use one backend instance to cater for larger memory/speed 
 requirements
 2. You use one backend instance to spin multiple F1 and/or F2 task queues 
 because backends allow you to


 On Thursday, 29 November 2012 08:45:16 UTC+13, Andy wrote:

 Setting the instances option in the backends.yaml allows it to scale up 
 that value.  15m penalty is well worth it because 99% of our traffic fits 
 in an F1 but we had to run F2s previously to allow the 1% of the tasks to 
 succeed.  As a result our costs are roughly half as much.  





-- 
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/-/uGOolhR5ChYJ.
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] Looking for an App Engine Developer

2012-09-27 Thread Andy Weir


It's for a rather cool mobile/desktop gaming project. 

Skillset 'Must haves' are:

-Python
-Google App Engine
-datastore

Should have:

-Node.js
-cloud deployment experience

Please get in touch if you're interested...

Thanks

Andy

-- 
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/-/J29tOzZENGYJ.
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: APP DOWN: App suddenly no longer starts, no code changes

2012-09-13 Thread Andy Stevko
re: communication
Perhaps the app engine team can learn from the pain  suffering customers
endured with another vendor's service outage rather than bleeding us all
over again.
http://blog.rightscale.com/2011/04/25/amazon-ec2-outage-summary-and-lessons-learned/


the biggest failure in this event was Amazon’s communication, or rather
lack thereof. The status updates were far too vague to be of much use and
there was no background information whatsoever.  


On Thu, Sep 13, 2012 at 5:28 AM, Richard Watson richard.wat...@gmail.comwrote:

 Christina wrote:

  *We have resolved the first issue by fixing the underlying bug.*

 I think one good option for longer-term stability is one we've identified
 before - we need a stable release channel where Google won't alter the
 environment until it's thoroughly tested, meaning deployed to those who
 aren't on stable and run without error for a week/month.

 Also, if I were you at some point I'd start to deploy on weekends (which I
 assume are quieter, and fewer businesses are affected by downtime).  I
 understand you don't want to have the whole full-stack engineering team in
 on weekends, but deploying in the middle of the week is insane.  Have some
 on-call, pay them more, just don't think adding one more test will fix this
 permanently.  Not sure when GAE is important enough to Google to make this
 work, but doing anything less just raises the chance that you're taking
 businesses offline.

 Any chance you could tell us when you're about to alter the stack, similar
 to how you warn about the M/S downtime?  That way we can be around and
 pre-warn our own customers, just in case.

 One class of problem that won't go away easily are non-GAE changes.  For
 example, someone in a far-flung corner of Google deciding that they must
 block Cloudflare-like requests for all Google properties. No idea how to
 fix that.

 Richard

 --
 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/-/aeVysGiNoVEJ.

 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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

-- 
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: iOS - Verifying authentication, Reading a Cookie and...

2012-07-24 Thread Andy
Did you ever get this sorted out? I am in the same position, I have my 
cookie, but I don't know how to send it to app engine, nor do I know what 
to do with it once it's there.

On Saturday, June 16, 2012 2:54:25 PM UTC-4, Mike wrote:

 Hi, I am building an iOS app that communicates with GAE (java) backend.

 After authenticating in a WebView, I am able to see the cookie data: 
 (example, slightly obfuscated)

 **
 *
 2012-06-16 10:00:13.784 FooApp[6342:12203] NSHTTPCookie version:0 name:
 ACSID value:
 0iU6sgFWaAaYLymPddSzdhgVsBDlX5at3YBKPReysywriSbl16DohKteJWrLdc8GZEJFm0Ppgrb1jC4Ns7S9JgIV3UkSZrsLjNbNtsbvG8A2g4B24Xa_RFJZvohpFHYBZ2mmVL82YXM_mQ6Q1Q_xEicwebd4FAp2mVV6AQ5AsAgHjC_xJjk3q_rR7XLQVfsPEru4E27qk3WfsdPqky-IqSbfUXvNgRmgkde9QWishsoG62JVyFSMVmp9XPoHxTpspzXOe-OB5TkyNBL3FtI14_XDtzR3yAZXCKJcO6mLG_7qbF_eCYfdYksJuWxVmM1G6yq9LldZmDyVJvW-zVqJMlwHnDJE5sRdQCtxjr74bc2bkehKYgen88tu6V_5iiZUcoZyQpTAeb2poBpCzMo2ejpcp9MELIG23ZsfXXCIn1bTmgNBr2PlRPGvsYWxADf77x3CJ989QoNTNujqnxpEDmBAWbkoxYOUjRwNbekYjGyZkW-cNZ_RDA3PaNFhSYlwBUD9IVFKuQRZTajnq-SsCAUc-xcaNCHHhkexpiresDate
 :2012-06-30 13:57:59 + created:2012-06-16 13:58:01 + 
 (3.61548e+08)sessionOnly
 :FALSE domain:foo.appspot.com path:/ isSecure:FALSE
 *
 *
 *

 My 1st question is: what key value should I check against to prove a 
 user authenticated properly? Is the mere existence of an **
 *
 ACSID 
 *

 value enough to verify?*
 *


 Secondly, How would I get the email address the person logged in with to 
 authenticate?

 Thanks for you time,

 Mike


-- 
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/-/JkvSVy-10BAJ.
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] App Engine for Business

2012-06-18 Thread Andy
Hi,

I have used my cell phone to activate for my personal gmail account's App 
Engine.  Recently I need to activate for my business account but I don't 
have a second phone number.  How can I verify my business account?   I have 
filled out the sms waiting list, do I have to put my phone number in there?

Thanks,

Andy Leung
Cast Before

-- 
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/-/EER4H7NwzesJ.
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 error in production...

2011-08-12 Thread Andy Burke
I seem to get the following error intermittently:

app s~XXX cannot access app dev~XXX data


I am getting it right now after a recent deploy.  My application is running
on the High Replication store.  I have always used the App Engine Launcher
to do my deploys, have not used the command line.

It's super, super frustrating.  No idea why this is happening or what
recourse I could possibly take to fix it.  I have tried re-deploying to no
avail.

Any help or guidance would be appreciated.

andy

-- 
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] about GAE java Eclipse plugin

2011-05-19 Thread Andy Fang
试一下Eclipse 3.5

On Wed, May 18, 2011 at 4:47 PM, 王磊 xqsxqsxqs2...@gmail.com wrote:

  Hi All: I use Eclipse 3.6 and install SDK1.5.0
 after install the plugin

 If I build a java Bean (just like Entry point class) it will show me
  java.lang.NoClassDefFoundError:
 com/google/appengine/tools/enhancer/Enhance Caused by:
 java.lang.ClassNotFoundException:
 com.google.appengine.tools.enhancer.Enhance  at
 java.net.URLClassLoader$1.run(URLClassLoader.java:202)  at
 java.security.AccessController.doPrivileged(Native Method)  at
 java.net.URLClassLoader.findClass(URLClassLoader.java:190)  at
 java.lang.ClassLoader.loadClass(ClassLoader.java:306)  at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)  at
 java.lang.ClassLoader.loadClass(ClassLoader.java:247) Exception in thread
 main

 I try jdk6 and jdk 7  The result is same!
 I am so sorry that I am poor in English.
 Please help me



  --
 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.



[appengine-java] Re: Best Practice for Java Datastore API

2011-04-23 Thread Andy
Thanks Didier!  Totally forgot that I could read the source from Objectify!!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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: Best Practice for Java Datastore API

2011-04-23 Thread Andy
Well after studying the source, I guess I will just use 3rd party lib like 
Objectify because creating one takes too much time and effort to cover all 
GAE datastore API's ground.

Thanks all for the advice!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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] Best Practice for Java Datastore API

2011-04-21 Thread Andy
Hi,

I am trying to get away from JDO and now into Low Level API.  I find that 
the Low Level API is much more flexible except one thing.  I have a 
challenge on enforcing or checking data type for each entity property.  So 
if I don't want to hard code the data type or using reflection, how do I do 
that?  e.g. creationDate is a Date type when saving it as a property of an 
entity but where should I define it as a Date type so I don't have to cast 
every single type?

Thanks,

Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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: Best Practice for Java Datastore API

2011-04-21 Thread Andy
Thanks both of you.  I would like to know the best practice of system design 
when using low level api.  Like where should I store the property type 
information?  I could simply use a Map to store the schema for each entity 
but then a property sometimes has more than just the type but also 
formatting, default and all other attributes.  So wondering if anyone has 
successful example of using low level API?

thanks again.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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] Getting Error org.datanucleus.sco.backed.List while paasing the parent object form server to chile side

2011-03-05 Thread andy


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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: Getting error when passing the object to client side please help me..

2011-03-05 Thread andy
hey, thanks.
 i did that with DTO class. means every time if i want send the result i 
should have to use DTO class objects??

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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] Getting error while sending the object to client form server, please help me

2011-03-05 Thread andy
here is my code;
Employee:(Parent)
@PersistenceCapable(
identityType = IdentityType.APPLICATION,detachable=true)
public class Employee implements Serializable {
private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String id;


@Persistent
private String ename;

@Persistent
private String designation;
*@Persistent(mappedBy=parentEmployee,defaultFetchGroup=true)
private ListLeave leaves;
*
*@Persistent
@Embedded
private EmployeeManager employeeManager;
*
}


Leaves:(Child)\
@PersistenceCapable(identityType = 
IdentityType.APPLICATION,detachable=true)
public class Leave implements Serializable{

private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String leaveid;

@Persistent
private String reason;

@Persistent
private String status;

*/...@OneToMany(fetch=FetchType.EAGER)public Employee 
parentEmployee;
*


}

when i store the data it works fine even when i can retrieve the data at 
server side and sending through the string it works fine but when i m trying 
to send the object of Employee it gives the error like *Type 
'org.datanucleus.sco.backed.List'*


[WARN] Meta-data warning for parentemp.client.Employee.leaves: The datastore 
does not support joins and therefore cannot honor requests to place related 
objects in the default fetch group.  The field will be fetched lazily on 
first access.  You can modify this warning by setting the 
datanucleus.appengine.ignorableMetaDataBehavior property in your config.  A 
value of NONE will silence the warning.  A value of ERROR will turn the 
warning into an exception.
[ERROR] javax.servlet.ServletContext log: Exception while dispatching 
incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: 
java.lang.reflect.InvocationTargetException
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:764)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:727)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:616)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
at 
com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467)
at 
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at 

[appengine-java] Getting error when passing the object to client side please help me..

2011-03-03 Thread andy
My code here:
Employee Class:
@PersistenceCapable(identityType = 
IdentityType.APPLICATION,detachable=true)
public class Employee implements Serializable {
private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String id;
@Persistent
private String ename;

@Persistent
private String designation;
@Persistent(mappedBy=parentEmployee,defaultFetchGroup=true)
private ListLeave leaves;

@Persistent
@Embedded
private EmployeeManager employeeManager;
}

Leave Class:
@PersistenceCapable(identityType = 
IdentityType.APPLICATION,detachable=true)
public class Leave implements Serializable{

private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String leaveid;

@Persistent
private String reason;

@Persistent
private String status;

//@OneToMany(fetch=FetchType.EAGER)
public Employee parentEmployee;
}

EmployeeManager:

@PersistenceCapable
@EmbeddedOnly
public class EmployeeManager implements Serializable {
private static final long serialVersionUID = 1L;

@Persistent
public String managerId;
}

when i covert the result into String and then send to client then it is 
accepting but when i am sending object it giving me error like:
 Type 'org.datanucleus.store.appengine.query.StreamingQueryResult' was not 
included in the set of types which can be serialized by this 
SerializationPolicy or its Class object could not be loaded. For security 
purposes, this type will not be serialized.: instance = 
[parentemp.client.Employee@1988799, parentemp.client.Employee@ee738e, 
parentemp.client.Employee@e48ee2]

What should i do...???

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
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: How to fetch the parent and child data in one to many relation based on child properties

2011-03-02 Thread andy
I have Employee and Leave Transactions Details entities in one to many
relation when i execute a query against Employee(parent) i am getting
the result of employee and its responding leave transaction but if i
need the information based on child properties (like 'Status' if
Status is Applied ) then only retrieve the specific properties
(rather than all details) of employee and leave transaction details.
what you have suggested is right but using that i only get the
child information but i want to include the parent also.
one more can include more than one entity in query, like joining two
tables/entity

On Mar 3, 5:08 am, Robert Kluin robert.kl...@gmail.com wrote:
 Hey Andy,
   One way would be to include information from the parent on the child
 entities, then you'll only have to query against the child entities.
 There may be other ways too, depending on exactly what you're doing.
 If you include your model definitions and some details about the
 queries someone can probably give more details.

 Robert

 On Wed, Mar 2, 2011 at 06:29, andy andy.anand1...@gmail.com wrote:
  I have created the one to many relation for Employee(parent) and his
  leave transaction details(child).
  I can give a query based on parent properties but i m not getting how
  to fetch data based leave details?
  Means i wants to fetch the data which satisfies the both conditions of
  parent field and child field. can it b 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 
  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] wants to pass the object to client side

2011-03-02 Thread andy
I want to pass the object the of employee to client side can it
possible? i am getting some error.
here is my code

Employee Class:
@PersistenceCapable(identityType =
IdentityType.APPLICATION,detachable=true)
public class Employee implements Serializable {
private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String id;
@Persistent
private String ename;

@Persistent
private String designation;

@Persistent(mappedBy=parentEmployee,defaultFetchGroup=true)
private ListLeave leaves;

@Persistent
@Embedded
private EmployeeManager employeeManager;
}
Leave class:
@PersistenceCapable(identityType =
IdentityType.APPLICATION,detachable=true)
public class Leave implements Serializable{

private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String leaveid;

@Persistent
private String reason;

@Persistent
private String status;

//@OneToMany(fetch=FetchType.EAGER)
public Employee parentEmployee;
}
but i m=am getting the all information at server side

-- 
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] How to fetch the parent and child data in one to many relation based on child properties

2011-03-02 Thread andy
I have created the one to many relation for Employee(parent) and his
leave transaction details(child).
I can give a query based on parent properties but i m not getting how
to fetch data based leave details?
Means i wants to fetch the data which satisfies the both conditions of
parent field and child field. can it b 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.



[appengine-java] What Is It's possible for two entities to have values of different types for the same property

2011-01-05 Thread Andy
I found the sentence in subject line in the following page:

http://code.google.com/appengine/docs/java/datastore/entities.html

It doesn't elaborate more how to achieve that in Java at all, no sample 
code, no explanation, no nothing.

We learned the way of creating entity schema for all same kind of entities, 
so if age is integer for entity Person, how do you have the same property 
storing age as String

Please enlighten me!!!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: Datastore Backup and Restore (for Java)

2011-01-05 Thread Andy
It is possible.  Use KeyFactory's static method keytostring() to convert 
all your keys to string value.  Since String values are portable on any 
platform, you can do that easily.  Hope this help.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: What Is It's possible for two entities to have values of different types for the same property

2011-01-05 Thread Andy
Thanks for your quick reply.

I actually thought about it again and read it again, it's not just about 
updating schema, but the GAE documentation is all about the low level API, 
not JDO nor JPA.  I am using JDO now so I thought that it is talking about 
JDO but it's not.

So here's what I found in case someone wants to know too.  You create class 
and pre-define all properties and their types.  Therefore, you will only 
store different types of values for the same property when you update the 
schema if you are using JDO or JPA.

However, if you are using low level API, you create entity with following 
line:

Entity entity = new Entity(Employee);
entity.setProperty(age, 5);
datatstore.put(entity);

...

and then you store the same type of entity but with a String age:

Entity entity = new Entity(Employee);
entity.setProperty(age, 10);
datatstore.put(entity);
..

So though they have the same kind (which is the same as having one Employee 
Class in JDO/JPA), you can store age as integer and String or any other GAE 
type.

I hope I understood correctly and helpful to others.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Basic Text Search Not Working

2011-01-03 Thread Andy Haaf
I followed the instructions at:

http://googlecode.blogspot.com/2010/05/google-app-engine-basic-text-search.html

but search is only working for exact matches in the column, not partial 
strings. Here is my code:

   String querystring = request.getParameter(querystring);

querystring = ( querystring != null ? querystring.toLowerCase() : 
).trim();

PersistenceManager pm = PMF.get().getPersistenceManager();

Query q = pm.newQuery(Item.class);

q.setFilter(shortDesc = :1  shortDesc  :2);

ListItem items = (ListItem) q.execute(querystring, (querystring + 
\ufffd));


What am I missing?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] App calling another secured App

2011-01-01 Thread Andy
Thanks for your reply.

I am not very familiar with shared keyed encryption method, do you have a 
link to the resource you can share?

Besides, I think it is beyond encryption, it requires some kind of 
authentication also right?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] App calling another secured App

2011-01-01 Thread Andy
Hi,

I think I will leverage XMPP as system exchange channel, I will try some 
experiments and hopefully that's working.

Thanks,

Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: Entity relationship designing - best practice

2010-12-31 Thread Andy
I have the same question but this is leading to much bigger
relationship model.

As students, they may not have many exams, but I am working on an app
for financial institute so a banking client has more than 100,000,000
transactions for different account.  Therefore, should I group all
transactions into the same entity group of one account or should I
still leave it separate and let an account object contain 100,000,000
keys?

Thanks in advance

WillSpecht wrote:
 http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html

 this is a pretty good discussion on building apps that have lots of
 child objects.  I also think you are prematurely optimizing.  How many
 exams is a user going to have? 100, 200? This is still a tiny number
 and if you went with RB's method or the one in the link I posted, you
 have to run a separate query each time, which has its own costs.  I
 think either way is fine until you start having users that have
 thousands of exams.

 On Dec 21, 3:05 am, Richard Berger richardlan...@gmail.com wrote:
  Har_Shan:
 
  I have been thinking about this topic also (but sadly, am not much of
  an expert).  I am using Objectify as a layer on top of the Datastore.
  Their website has a lot of good information on structuring data in the
  Datastore - 
  seehttp://code.google.com/p/objectify-appengine/wiki/Concepts?tm=6
  ).
 
  There is also a good post on the various ways of handling 1 to many
  relationships using Objectify.  What appeared to be something that
  would work in your situation (which is like my situation) is what I
  think of as the database approach.  What I mean by that is, if you
  had a 1 to many relationship, how would you model that in a database?
  Specifically if 1 User can have Many Exams, you would have...
 
  User table
  * userId
  * Other user fields
 
  Exam table
  * examId
  * userId
  * Other exam fields
 
  So, turning this into GWT/Objectify, it would be
 
  public class User  {
    @Id private Long id;
    // Other user fields
 
  }
 
  public class Exam{
    @Id private Long id;
    private KeyUser userKey;
    // Other exam fields
 
  }
 
  The way to find all the exams for a particular user (represented by
  this) is:
    Objectify ofy = ObjectifyService.begin();
    KeyUser userKey = new KeyUser(User.class, this.id);
    ListExam result = ofy.query(Exam.class).filter(userKey,
  userKey).list();
 
  This is explained (much better than I could do) 
  at:http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjec...
 
  This may not solve all (or any) of your use cases, but it has worked
  for me in my admittedly very limited usage.
  Also check 
  out:http://groups.google.com/group/objectify-appengine/browse_frm/thread/...
 
  Enjoy,
  RB
 
  On Dec 19, 12:17 am, Matej matej.crepin...@gmail.com wrote:
 
   I am not expert in dataStore this is just what I would do:
   Add new entity with fields:
   ID OrderID UserID ExamID PageID QuestionID AnswerID
 
   Yes it is a lot of redundant data, but simple.
   When user starts new Exam, all data are created with AnswerID set to
   general answer unAnswer. After that you just update AnswerID.
 
   What are obstacle in design like this?
 
   Best, M

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] App calling another secured App

2010-12-31 Thread Andy
Hi,

I am trying to build 2 apps.  App 1 is calling App 2 through URL Fetch but 
App 2's URL is secured so when APP 1 is fetching something from APP 2, it 
requires authentication, both apps belong to the same gmail account though. 
 How do I do that?  Do I use URL Fetch with GET and submit login to APP 2? 
 Any idea?

Thanks,

Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [google-appengine] Re: Channel API CPU usage

2010-12-12 Thread Andy Kim
 Better docs on Channel API quota use are coming, but the reason the
 CPU charge is so high is that the CreateChannel charges up-front for 2
 hours of connect time by clients. It is true that if you have the same
 user connecting repeatedly for a short time but spread out over
 periods of time longer than two hours (obviously degenerate case would
 be connecting for a couple of minutes every two hours and one second),
 the charge will be high. One thing I'm looking at is the ability to
 create a token that expires after an application-specified period, if
 your application's usage patterns warrant it.
 
 Note that you can store the token for re-use in eg. a cookie so you
 don't need to regenerate it more frequently than every two hours.
 
 Sending a message doesn't charge any CPU time at all (since the
 connection's already established), just outbound bandwidth.

It being the first version, I was hoping that it took so much CPU time because 
it had room for improvements. Does this mean that it's unlikely for the CPU 
costs of setting up a channel to come down?

-- 
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-appeng...@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] Channel API CPU usage

2010-12-11 Thread Andy Kim
Assuming that a channel setup costs 2.77 seconds, having just 10,000 active 
users setup 4 channels per day would cost $92.30 per month. That's not counting 
any CPU costs for actually sending messages.

At that rate, I can't really use the channel API as much as I'd like and I have 
to look at alternatives such as Beacon now that I know how cool this technology 
is.

Here's to hoping that the GAE team can bring down the cost of setting up a 
channel by at least a factor of 10.

- Andy Kim



On Dec 10, 2010, at 7:53 PM, Tom Wu wrote:

 Hi Andy,
 
 Here is 2770ms. Compare to using the beaconn + urllib, the channel api really 
 cost a lot. 
 
 1E3.gif1E3.gif
 Tom Wu
 
 
 2010/12/11 Andy Kim andyki...@gmail.com
 The new Channel API is awesome and it opens up many possibilities on what I 
 can do with GAE. I have noticed however, that creating a channel takes about 
 2800 ms of API CPU time. Is everyone else seeing similar times or am I doing 
 something wrong here?
 
 -- 
 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-appeng...@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-appeng...@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-appeng...@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] Channel API CPU usage

2010-12-10 Thread Andy Kim
The new Channel API is awesome and it opens up many possibilities on
what I can do with GAE. I have noticed however, that creating a channel
takes about 2800 ms of API CPU time. Is everyone else seeing similar
times or am I doing something wrong here?

-- 
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-appeng...@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] Blobstore Code Works On Dev Server, Not Production

2010-12-07 Thread Andy Haaf
My blobstore code works just great in the dev server (running on Mac)
but I receive an error when uploading to production. I receive an
Error: HTTP method GET is not supported by this URLeven though the
sample refers to post. As I said, works fine in Dev. Please help!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Blobstore Code Works On Dev Server, Not Production

2010-12-07 Thread Andy Haaf
So, I did that, but now I am receiving the following error:


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font:
13.0px Courier New}
java.lang.IllegalStateException: Must be called from a blob upload
callback request




Plus, I needed to change my .jsp form code to a get versus a post
which is not what the sample recommended. And once again, this was
working fine on the dev server. Why is production different?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Where Do I Store Memcache Cache Reference?

2010-12-03 Thread Andy
According to the docs, creating memcache for an app is easy but where
do I store the Cache reference returned by the CacheFactory? Do I
store it in ServletContext as an attribute? or any other technique?


thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Logging info missing

2010-12-02 Thread Andy
So, whenever I am able to access the admin panel while it's not
erroring, I'm trying to view the request logs.

But all the logging info is missing - debugs, infos, errors, all gone.

I also get a 500 error when trying to download the request logs.

-- 
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-appeng...@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: appengine.google.com returns 500 error

2010-12-01 Thread Andy Kim
I'm having the same problem as well. Both my apps and its dashboard are
returning 500 error. I haven't changed anything with the app in a about
a week or so.

-- 
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-appeng...@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: [appengine-java] Compare Unowned Key

2010-11-02 Thread Andy
Hello,


I store a KEY in a child object as foreign key kind of thing, then when
I query the child, I use query with following:

Query query = pm.newQuery(PField.class, pobject
== +KeyFactory.keyToString(object));


Where PField is the child class, pobject is the KEY foreign key, but
when I execute this, it always returns all PField instances, did I do
anything wrong?


Thanks,


Andy 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Compare Unowned Key

2010-11-02 Thread Andy
Got it!!!


http://gae-java-persistence.blogspot.com/2010/01/querying-with-key-parameters.html



Thanks Max Ross, the blogger.


Basically I have to use the following syntax instead of regular String
builder:

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; min-height:
15.0px} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;
color: #492df6} span.s1 {color: #971365} span.s2 {color: #00}
span.Apple-tab-span {white-space:pre}



Query query = pm.newQuery(PField.class,

pobject == :p);

ListPField results = (ListPField)query.execute(object);

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Compare Unowned Key

2010-11-01 Thread Andy Leung
Because the key is an unowned foreign key.

Sent from my iPhone

On 2010-11-01, at 6:22 PM, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:

If you're searching by key, why not use KeyFactory and get the object
director by key instead? It'll run faster.

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



On Sun, Oct 31, 2010 at 8:38 PM, Andy hksduhk...@gmail.com wrote:

 I created unowned key in child objects for query.  When I try to query by
 the key, I tried the following because I read the GQL statement:

 where product = KEY('+KeyFactory.keyToString(product)+'));


 But it complains:


 SEVERE: Portion of expression could not be parsed: product =
 KEY('aghiYXRoY2FydHINCxIHUHJvZHVjdBgMDA')


 Please anybody?


 Thanks

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


 --
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Compare Unowned Key

2010-10-31 Thread Andy
I created unowned key in child objects for query. When I try to query
by the key, I tried the following because I read the GQL statement:


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco} span.s1
{color: #492df6}
where product = KEY('+KeyFactory.keyToString(product)+'));




But it complains:




p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco;
color: #ff1b19}

SEVERE: Portion of expression could not be parsed: product =
KEY('aghiYXRoY2FydHINCxIHUHJvZHVjdBgMDA')




Please anybody?




Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Is there a way to turn off Task Queue timeouts?

2010-10-12 Thread andy stevko
I really want to be able to debug step through a Task Queue initiated task
and have it not time out.

 http method POST against URL http://0.0.0.0:8080/task/simple timed out.

Also - have you noticed that the dev server does retry tasks that throw
errors?
This is contrary to the docs - the development server does not retry tasks.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] what is sharding?

2010-10-11 Thread andy stevko
This is a bit of a stretch for this forum.

Perhaps this explanation will help you understand the database design term.
http://stackoverflow.com/questions/992988/what-is-sharding-and-why-is-it-important



On Mon, Oct 11, 2010 at 4:30 AM, sagar misal sagar1982mi...@gmail.comwrote:

 can  anyone please make me understand what is this sharding and how to
 implement it in java?

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] OneToOne relationship with java.lang.Long ids

2010-10-11 Thread andy stevko
The ID for the owned child User instances has to be a Key or String type
because the it contains both the reference to the parent(s) and the unique
id of the object.  A Long alone will not contain enough information to
navigate the object model to it. I usually stick with String ids for all my
types.

You can create/encode/decode Keys easily using the KeyFactory.



On Mon, Oct 11, 2010 at 8:03 PM, Rick Curtis curti...@gmail.com wrote:

 Hello all! I am new to GAE and have a pretty simple domain model that I'm
 trying to persist. I am creating an Event(with a generated ID) and a
 User(with a pre-defined ID) which is hosting the event. This is a one to one
 relationship owned by the Event(@See below for code snippets).

 Upon commiting the transaction, I'm getting an exception which states
 Error in meta-data for User._id: Cannot have a java.lang.Long primary key
 and be a child object (owning field is Event._host). I did some searching
 and came across this[1] post which suggested that I need to change my key
 from a java.lang.Long to a com.google.appengine.api.datastore.Key.

 Since The App Engine Java SDK includes an implementation of JPA 1.0 for
 the App Engine datastore[2]... I don't really need to use these internal
 GAE classes to describe this mapping do I? Maybe I'm being a bit naive here,
 but I have a hard time believing that this requirement/limitation is due to
 the underlying database not being a relational database.

 Hopefully someone can shed some light on my findings.

 Thanks,
 Rick

 @Entity
 public class Event {
 @Id
 @GeneratedValue(strategy=GenerationType.IDENTITY)
 Long _id;

 @OneToOne
 User _host;
 ...
 }


 @Entity
 public class User {
 @Id
 Long _id;
 ...
 }

 [1] http://code.google.com/p/datanucleus-appengine/issues/detail?id=26
 [2]http://code.google.com/appengine/docs/java/datastore/usingjpa.html

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


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Task queue with HTTP POST not working.

2010-10-10 Thread andy stevko
Does your servlet respond to POST requests?
On Oct 10, 2010 10:28 AM, apple apple...@gmail.com wrote:
 I followed the codes in GAE document to make a simple task queue:

 Queue queue = QueueFactory.getDefaultQueue();
 queue.add(TaskOptions.Builder.method(TaskOptions.Method.GET).url(/
 security));

 This works perfectly.

 However, if I changed method to HTTP POST:

 Queue queue = QueueFactory.getDefaultQueue();

 queue.add(TaskOptions.Builder.method(TaskOptions.Method.POST).url(/
 security));

 The task is not executed.

 What's wrong in my code?

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


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: Web Hook - Asynchronous - Where is my response?

2010-10-07 Thread Andy
Sorry I don't quite understand your answer, what do you mean
by DataStore Operation?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: Many to many relation ship

2010-10-07 Thread Andy
Hi Hadf,


This is how I did it. Basically in RDBMS, it has a running thread that
does the cascaded update/delete and so there is an option for you to
tell the RDBMS to do that automatically for you or not.


In GDataStore, it doesn't have such automation. Instead, you have to
retrieve the associated Key, and delete the associated object. You may
think this is manual process by yourself but it is considerably very
quick since Key is all cached in Google, and if you try to find the Key
(even at root Entity Group), it will return you the associated Object
in lightning short period of time, and then you can perform Update or
Delete yourself.


Having such cascade update/delete automation is good except that you
don't have much control where manual gives you full power to control
the flow such as retrieving external information from web services just
right before you do the cascade update.


Syntax wise, you can use the following if you are using Java:

Employee e = pm.getObjectById(Employee.class, k);

k is the Key object. Assuming you put this key onto web, make sure you
use keyToString and stringToKey methods to encode/decode the key before
you store/retrieve the Key.


hope this helps,


Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Re: Web Hook - Asynchronous - Where is my response?

2010-10-07 Thread Andy Leung
gotcha, thank you.

On Thu, Oct 7, 2010 at 10:37 AM, John Patterson jdpatter...@gmail.comwrote:

 There is no public API for checking the status of tasks.  A task is really
 nothing more than a normal http request which is monitored by GAE to retry
 it if it fails.  The real brains is in the task queue which is simply a
 queue of URL's that app engine will fire off at a given rate and retry
 failed requests.

 The only public method to check tasks (http requests) in this queue is the
 console webpage.  Its up to you to monitor your tasks yourself by storing
 some kind of status data in memcache or the datastore.


 On 7 Oct 2010, at 20:13, Andy wrote:

  Sorry I don't quite understand your answer, what do you mean by DataStore
 Operation?

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


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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Many to many relation ship

2010-10-06 Thread andy stevko
Not sure why the datastore needs to know that a Car is associated with a
particular User.
There is no easy way for the datastore to handle cascading deletes in a
M-to-M relationship w/o reference counting.
Also setting the Fetch policy to load children with the parent load is not
an option due to them being in separate entity groups.

Regardless, you can use
 
*getObjectByIdhttp://db.apache.org/jdo/api23/apidocs/javax/jdo/PersistenceManager.html#getObjectById%28java.lang.Class,%20java.lang.Object%29
*(java.lang.ClassT cls, java.lang.Object key)

to verify the Key is referencing a particular class and an object exists.


On Wed, Oct 6, 2010 at 2:15 PM, hadf hadrien.for...@gmail.com wrote:

 Hello,

 I read that many to many relation ship must resolved by using sets of
 Key.
 But what I don't understand is how do I specify the type the Key is
 referencing.
 I mean that if I have a many to many relation ship between Car and
 User, how jpa or jdo knows that Car is associated to User ?

 public class Car {
@OneToMany
private SetKey users; //this relation ship is untyped
 }

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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] Web Hook - Asynchronous - Where is my response?

2010-10-06 Thread Andy
Hi,


I have read the Task API for many times and am still confused about the
web hook. If web hook is asynchronous, where do I get the signal (like
Future) that my task is completed and where do I get the response of
the web hook request?


Thanks,


Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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: Web Hook - Asynchronous - Where is my response?

2010-10-06 Thread Andy
Thanks for your quick reply Robert.


So is there a way to check the task status by task ID or some sort?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Datastore, Java, JSP, JSON, AJAX, Web Page. Is it going to work?

2010-10-06 Thread andy stevko
Hi  x_maras,

re: using email as a primary key
http://code.google.com/appengine/docs/java/users/overview.html
The User object exposes a unique user ID that is guaranteed to be stable for
the lifetime of the user's account, even if the email address is changed.
You can use this value in a datastore entity key or property value.

re: Datastore, Java, JSP, JSON, AJAX, Web Page
Writing a RESTful service that can respond to AJAX requests with JSON
payloads is very much a mainstream way to do things on app-engine.
Be careful to keep the processing response times really short. The max
response time is 30 seconds, the sweet spot is to average about 1 second
response time.

Happy Coding,
--Stevko


On Wed, Oct 6, 2010 at 4:34 PM, x_maras dinost...@gmail.com wrote:

 Hi,

 I am new to GAE and I want to make a web application page on it.
 I was used to work with PHP for web applications but lately I am
 struggling to get in the thinking of a GAE web application.

 After reading tutorials and trying to do different things I came up
 with a thinking how I want my project to be and how to make the
 communication through the different layers. I will explain you my
 thinking and I would like to tell me if am I in the right way and if I
 am not I would like someone to put back into it.

 e.g.

 I thought to have a user @persistent class for storing the information
 of a user, such as name, email(as a primary key), registration date
 etc... (I will use the User class for logging in, but I want to keep
 some data also for every user)

 Then I need to create a java (dao) class that reads and inserts data
 to the datastore tables-objects. I thought to create a different one
 for each @persistent class

 Then Java files that execute the  functions from the DAO classes and
 give information to the jsp files which through JSON give information
 to the Ajax functions in the HTML page (which I was thinking also to
 be the welcome-file in my web.xml)

 So here comes the questions. Is something like this right? Is it going
 to work? And if not what do you propose me to do.

 Any links or examples are very very welcome.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [google-appengine] Re: Prerelease SDK 1.3.8 is out!

2010-10-06 Thread andy stevko
One issue with the download code option is how it works in the context of an
app store.
If I license an application thru a store, can I then download the code,
modify it, and redeploy?
Also - if I have sensitive information (like Authorize.net keys) coded into
my application, the information was basically inaccessible prior to this
feature.


On Wed, Oct 6, 2010 at 2:48 PM, djidjadji djidja...@gmail.com wrote:

 Not a good choice because the one that pays the bill is not the one
 that writes the source code.
 I'm not paying for the storage requirement and bandwidth of my client
 who has bought a use right of my software.

 I'm an advocate of NO Download allowed.

 But in case it will be allowed make it OFF by default. You MUST turn
 it ON in your app.yaml. This way the behavior is compatible with
 previous versions. And there is no action needed by the people who
 don't want it. There is always a gap between the time you roll it out
 and you announce the availability of a new release on the production
 servers. During this time it would be possible to download the source
 code if you tried regularly.
 And I could be away at the moment of the announcement and leave a door
 wide open for quite some time.

 2010/10/6 alf alberto@gmail.com:
  +1 only can download code administrator who pay bill

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@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: Request was aborted after waiting too long to attempt to service your request.

2010-10-05 Thread andy stevko
Hello Sahid,
You might want to read/star this issue
http://code.google.com/p/googleappengine/issues/detail?id=2396q=waiting%20too%20longcolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component
--Stevko

On Tue, Oct 5, 2010 at 10:26 AM, sahid sahid.ferdja...@gmail.com wrote:

 up

 On Oct 4, 10:51 am, sahid sahid.ferdja...@gmail.com wrote:
  Hello,
 
  I have see my warning log and i have a multiple of
 
  
  Request was aborted after waiting too long to attempt to service your
  request.
  This may happen sporadically when the App Engine serving cluster is
  under unexpectedly high or uneven load.
  If you see this message frequently, please contact the App Engine
  team.
  
 
  This exception comes from different paths.
  So i contact the App Engin team...
 
  APPID: devel-inchallah
 
  Cordialy,
  Sahid

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@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: [appengine-java] is there any proper way to create shortcut(s) for the current window object in gwt

2010-10-03 Thread andy stevko
 google-appengine-java google-appengine-java@googlegroups.com is probably
the wrong group to ask this question.
http://groups.google.com/group/google-web-toolkit is a better community for
GWT questions.

Also - did your Widget has focus when you used the keyboard?

On Sun, Oct 3, 2010 at 2:30 AM, wingdings dush...@gmail.com wrote:

 just for like CTRL+1 or CTRL+2 .. how do i assigns shortcuts ?

 something like this i did but it aint executing , also am i doing it
 right ?
 mayday mayday !

 public class quotation implements KeyboardListener
 {

 public static Widget getSomeWidget()
 {

 return new Widget;
 }
 @Override
public void onKeyDown(Widget sender, char keyCode, int modifiers) {
// TODO Auto-generated method stub

}

@Override
public void onKeyPress(Widget sender, char keyCode, int modifiers) {
if(KeyboardListener.KEY_CTRL == keyCode)
{

}

}

@Override
public void onKeyUp(Widget sender, char keyCode, int modifiers) {
// TODO Auto-generated method stub

}
 }

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Simplest key query

2010-10-02 Thread andy stevko
Hi Paul,

FWIW, Here is a slightly edited version of my JDO query by id.
Perhaps it can help you get over this bump.

@SuppressWarnings(unchecked)
public Account lookupAccountById( PersistenceManager pm, Long accountId) {
logger.fine(looking up account id= + accountId );
// look up
Query q1 = pm.newQuery(Account.class, id == accountId);
q1.declareParameters(Long accountId);
ListAccount accounts = (ListAccount) q1.execute(accountId);
if (accounts == null || accounts.isEmpty()) {
logger.warning(Account Id =  + accountId +  not found.);
return null;
}
return (accounts.get(0));
}





On Fri, Oct 1, 2010 at 4:13 PM, Paul pgronkiew...@gmail.com wrote:

 Hi,

 I must admit that my db knowledge is very lacking, thus I need some
 help with making a simple query. I know I am just missing smth obvious
 and easy.

 Anyway, what I need is just a boolean method to check if enity
 exists.

 I am using Guice too, for binding all stuff.

 I know that the query syntax is SELECT * FROM entity WHERE __key__ =
 KEY('entity', 'key name')

 My class for DB queries looks like that [yeah, from gae-wicket
 template]:

 public abstract class JdoQueriesT
 {
private final ClassT clazz;
private final ProviderPersistenceManager pmProvider;

protected JdoQueries(ClassT clazz, ProviderPersistenceManager
 pmProvider)
{
this.clazz = clazz;
this.pmProvider = pmProvider;
}

protected Query newQuery()
{
return pmProvider.get().newQuery(clazz);
}

@SuppressWarnings(unchecked)
protected CollectionT toCollection(Object queryResult)
{
return (CollectionT) queryResult;
}

protected ListT toList(Object queryResult)
{
return new ArrayListT(toCollection(queryResult));
}
 }


 I know I should create public interface for query I need, then create
 a class extending JdoQueries and implementing my interface, but it's
 just theory and I cannot write that final part :)

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Re: Creating Folder/Directory at Runtime

2010-10-01 Thread andy stevko
I don't see how this could work without updating the deployed image.

What I mean is that if one deployed instance was able to create the
directory or alter any of the files in the deployed image, none of these
changes are replicated to other deployed instances.

Perhaps you can script the file system changes you desire and have them
pushed out as a deployed new version? You may be able to do that using an
automated change/build/test/deploy tool like Cruise.


On Fri, Oct 1, 2010 at 3:53 AM, jr ramirez.j...@gmail.com wrote:

 Thank you for the quick response. However it is said that files in WAR
 are accessible to the application via the filesystem. Does that mean
 that I can create a directory at runtime in the /war directory? Or the
 statement means another thing? I wish to create a directory at runtime
 so I can create a domain. For example, if I have www.webpage.com, I
 will create a domain new_domain. I will then have
 www.webpage.com/new_domain/
 if I can create this directory at runtime. Thanks again!

 On Oct 1, 11:00 am, andy stevko andy.ste...@gmail.com wrote:
  No - all local disk write access is not permitted.
 
  http://code.google.com/appengine/docs/java/runtime.html
  The Filesystem
 
  A Java application cannot use any classes used to write to the
 filesystem,
  such as java.io.FileWriter. An application can read its own files from
 the
  filesystem using classes such as java.io.FileReader. An application can
 also
  access its own files as resources, such as with Class.getResource() or
  ServletContext.getResource().
 
  Only files that are considered resource files are accessible to the
  application via the filesystem. By default, all files in the WAR are
  resource files. You can exclude files from this set using the
  appengine-web.xml
 http://code.google.com/appengine/docs/java/config/appconfig.html
   file.
 
  On Thu, Sep 30, 2010 at 6:52 PM, Norberto Ramirez II 
 ramirez.j...@gmail.com
 
 
 
 
 
 
 
   wrote:
   Hi!
 
   Is creating a folder at runtime allowed? I was trying to create a
 folder
   but I'm getting the following error.
   *java.security.AccessControlException: access denied
   (java.io.FilePermission \testfolder write)*
 
   Thank you!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [google-appengine] Two important startup questions about Google Development

2010-10-01 Thread andy stevko
re 1) app engine provides high level and low level access to a object
database called Big Table. There are many other access solutions but, unless
you host your own, none of them are oracle/mysql .

re 2) app engine has a crontab solution as well as a task queue.


On Fri, Oct 1, 2010 at 5:50 AM, Pedro Ferreira pedro...@gmail.com wrote:

 Hi there,

 I'm starting developing apps for Google Apps. It's great!

 I have 2 important startup questions:

 1) Is there a Google Database ? I need to know if I have to connect
 to an external database for storing data, or Google has a native
 solution

 2) I need to perform a scheduled task for maintenance of my
 application data, for example, run a script. Does Google have a native
 solution for this? Or I have to use external tools to achieve this
 goal ?

 Thanks!

 Pedro Ferreira

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@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] Two important startup questions about Google Development

2010-10-01 Thread andy stevko
Sure Pedro,
I'm not sure which flavor of you desire. Most of my bookmarks are for the
java variety.

The app engine docs are pretty comprehensive although they are sometimes
overwhelming with details.
http://code.google.com/appengine/docs/

Using the Datastore
http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html

I've read here that many people find using Objectify a much easier interface
than JDO  JPA
http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjectify

This describes using cron too...
http://code.google.com/appengine/docs/java/config/cron.html

You can also search these community forums for answers to your questions.
http://code.google.com/appengine/community.html

--Andy Stevko

On Fri, Oct 1, 2010 at 11:08 AM, Pedro Ferreira pedro...@gmail.com wrote:

 Hi andy, thanks for the quick answer.

 Do you have any links that supports that? any documentation about this Big
 Table and Crontab?

 Thanks!

 2010/10/1 andy stevko andy.ste...@gmail.com

 re 1) app engine provides high level and low level access to a object
 database called Big Table. There are many other access solutions but, unless
 you host your own, none of them are oracle/mysql .

 re 2) app engine has a crontab solution as well as a task queue.


 On Fri, Oct 1, 2010 at 5:50 AM, Pedro Ferreira pedro...@gmail.comwrote:

 Hi there,

 I'm starting developing apps for Google Apps. It's great!

 I have 2 important startup questions:

 1) Is there a Google Database ? I need to know if I have to connect
 to an external database for storing data, or Google has a native
 solution

 2) I need to perform a scheduled task for maintenance of my
 application data, for example, run a script. Does Google have a native
 solution for this? Or I have to use external tools to achieve this
 goal ?

 Thanks!

 Pedro Ferreira

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@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] generate PDF in appengine

2010-10-01 Thread andy stevko
Hi David,
I asked that very same question on stackoverflow a while back.
http://stackoverflow.com/questions/1765238/java-pdf-library-that-works-on-gae

--Andy Stevko

On Fri, Oct 1, 2010 at 2:50 PM, David Toledo dtole...@gmail.com wrote:

 Hi All

 Exist some way from generate pdf in appengine. I've reviewed JasperReports
 and other API no are compatible at the moment. ??

 Regards
 David

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-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-appeng...@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: [appengine-java] Problem with persist a child class

2010-09-30 Thread andy stevko
My only thought is that you should clean your project and have datanucleus
rebuild the persistent classes entirely.


On Wed, Sep 29, 2010 at 2:34 PM, lisandrodc lisandr...@gmail.com wrote:

 Hi andy! I have tried delete my local_db and the problem persist.
 The exception is in the next code, in the call of the build method
 RegFechaUsuario:

 ControladorFecha cF = new ControladorFecha();
System.out.println(nombre  +
 nuevaFecha.getNombre());
System.out.println(fecha ini  +
 fechaOriginal.getFechaIni());
System.out.println(fecha fin  +
 fechaOriginal.getFechaFin());
System.out.println(idUsuario  + idUsuario);
System.out.println(idFecha  +
 fechaOriginal.getId().getId());
System.out.println(partidos  +
 nuevaFecha.getPartidos());
 /*Here print in console:
 na fecha 4
 us id 7
 nombre f1
 fecha ini Fri Jan 01 00:00:00 UTC 2010
 fecha fin Fri Jan 01 00:00:00 UTC 2010
 idUsuario 7
 idFecha 4
 partidos [model.part...@973678]*/
RegFechaUsuario regFechaUsuario = new

 RegFechaUsuario(nuevaFecha.getNombre(),fechaOriginal.getFechaIni(),fechaOriginal.getFechaFin(),idUsuario,fechaOriginal.getId().getId(),nuevaFecha.getPartidos());
cF.crearRegFechaUsuario(regFechaUsuario);

 .

 The code of method:

 public void crearRegFechaUsuario(RegFechaUsuario regFechaUsuario) {

Transaction tx = pm.currentTransaction();
try {
tx.begin();
//here is exception
pm.makePersistentAll(regFechaUsuario);
tx.commit();
} finally {
// pm.close();
if (tx.isActive()) {
tx.rollback();
}
}

}

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



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Creating Folder/Directory at Runtime

2010-09-30 Thread andy stevko
No - all local disk write access is not permitted.

http://code.google.com/appengine/docs/java/runtime.html
The Filesystem

A Java application cannot use any classes used to write to the filesystem,
such as java.io.FileWriter. An application can read its own files from the
filesystem using classes such as java.io.FileReader. An application can also
access its own files as resources, such as with Class.getResource() or
ServletContext.getResource().

Only files that are considered resource files are accessible to the
application via the filesystem. By default, all files in the WAR are
resource files. You can exclude files from this set using the
appengine-web.xmlhttp://code.google.com/appengine/docs/java/config/appconfig.html
 file.


On Thu, Sep 30, 2010 at 6:52 PM, Norberto Ramirez II ramirez.j...@gmail.com
 wrote:

 Hi!

 Is creating a folder at runtime allowed? I was trying to create a folder
 but I'm getting the following error.
 *java.security.AccessControlException: access denied
 (java.io.FilePermission \testfolder write)*

 Thank you!

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


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@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.



Re: [appengine-java] Re: Not Able To Move To The Cloud

2010-09-29 Thread andy stevko
Dave is correct the application tag must match the app id.
The version is best incremented from deployment to deployment as well.
This is easily maintained using the eclipse project properties google
appengine tab.

Your web xml url pattern is the problem.
Try using a absolute uri rather than a relative uri as the regular
expression decodes to.
url-pattern/jwigapp/url-pattern


On Wed, Sep 29, 2010 at 8:15 AM, David C. Hicks dhi...@i-hicks.org wrote:

  Someone hopefully will correct me if I'm wrong about these...

 I believe that the application name in appengine.xml must match the name
 of the application as it is defined on Google.  So, if you're trying to
 upload to an application named guestbook, then you need to change it to be
 guestbook in appengine.xml.

 Also, make sure that you have defined it correctly in the Project setup in
 Eclipse.  Right-click on the Project, select Properties, then look for the
 Google section.  There is a place to define the application name in there,
 as well.

 Dave


 On 09/29/2010 10:56 AM, turncom wrote:

 My application id is jwigapp.  The application is the example,
 Guestbook, from the AppEngine website, for Java. No state secrets
 there.

 So, here is my appengine-web.xml

 appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
applicationjwigapp/application
version2/version

!-- Configure java.util.logging --
system-properties
property name=java.util.logging.config.file
 value=WEB-INF/
 logging.properties/
/system-properties

 /appengine-web-app


 Now, this morning I got an idea. Maybe I should change my web.xml to
 reflect my jwigapp name. So here is what it looks like now (in part):

servlet
servlet-nameguestbook/servlet-name
servlet-classguestbook.GuestbookServlet/servlet-class
/servlet
servlet-mapping
servlet-nameguestbook/servlet-name
url-patternjwigapp/url-pattern
/servlet-mapping

 I did this thinking perhaps that would help. It works on my computer.
 But here is the error message I get when I try to upload it using the
 Google Plugin:

 Creating staging directory
 Scanning for jsp files.
 Compiling jsp files.
 Scanning files on local disk.
 Initiating update.
 java.io.IOException: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=jwigappversion=2;
 400 Bad Request
 Error when loading application configuration:
 Unable to assign value 'jwigapp' to attribute 'url':
 Value 'jwigapp' for key url does not match expression '^(?!\^)/|\.|(\
 (.).*(?!\$).$'


 I am guessing that expression is a regular expression, which I don't
 know how to understand.

 I have a feeling the answer is very simple, and that I am looking
 right at it, and just miss it.

 I have a presentation tomorrow and I would like to show it off.

 Gr.



 On Sep 28, 7:28 pm, David C. Hicksdhi...@i-hicks.org  wrote:

   It sounds like the application id you've given to your local
 application isn't the same as the application you created on AppEngine.
  You might want to verify that you're uploading to an application that is
 valid.

 Dave

 On 09/28/2010 07:35 PM, turncom wrote:





  I am using Eclipse (I'm a newbie with Eclipse) and Java (which
 I know).
 The app I created (the standard Guestbook) works on my laptop. When I
 attempt to upload it using the Google Plugin (and on the command line,
 too, for that matter) I get this message:
 Unable to update app: Error posting to URL:
 https://appengine.google.com/api/appversion/create?app_id=jwigappver.
 ..
 
 https://appengine.google.com/api/appversion/create?app_id=jwigappver..
 .
 400 Bad Request
 Error when loading application configuration:
 Unable to assign value 'guestbook' to attribute 'url':
 Value 'guestbook' for key url does not match expression
 '^(?!\^)/|\.|(\(.).*(?!\$).$'
 So..what am I doing wrong? Is there something I am missing in
 configuring Eclipse? I've been banging my head on this for two days. I
 will do a presentation on Thursday, and I would love to show this off.
 --
 You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 

  1   2   3   4   >