[google-appengine] Re: Is the Memcache Service deprecated? (2nd generation runtime migration question)

2019-10-25 Thread Ken Bailey
Ah, I see; that comment on the issue tracker was exactly the type of 
information I was looking for. Seems pretty explicit. Thanks for you help!

On Friday, October 25, 2019 at 12:23:19 PM UTC-4, Yasser Karout wrote:
>
> For flexible environments, a memcache service will be available at some 
> point as mentioned in the doc you linked.
>
> For standard environments, using Cloud Memorystore (via VPC Connect) is 
> the only supported cache path for 2nd Generation runtimes as mentioned here 
> by the App Engine Team [1].
>
> [1] https://issuetracker.google.com/113127309
>

-- 
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/d1e00816-24c8-4186-a68a-9d19dd19dd41%40googlegroups.com.


[google-appengine] Is the Memcache Service deprecated? (2nd generation runtime migration question)

2019-10-25 Thread Ken Bailey
I've been working on an app using the Java 8 Standard runtime, but have 
recently looked at migrating to the new Java 11 runtime. I peeked at the 
differences between the two (
https://cloud.google.com/appengine/docs/standard/java11/java-differences) 
to get an understanding of what such a migration would entail, but I'm 
confused by some of the suggested migration paths, in particular regarding 
Memcache. 

The recommended path on that page is to create a Memorystore instance and 
connect App Engine to it. Is this solution meant to replace the concept of 
the Memcache Service entirely, or is it meant as more of a workaround until 
the Memcache Service is ported or otherwise made available in the 2nd 
generation runtimes? I haven't been able to discern a clear answer about 
this. Some of the documentation/answers I've seen suggest that the Memcache 
Service will be ported, for example:

"The Memcache service is currently not available for the App Engine 
flexible environment. An alpha version of the memcache service will be 
available shortly.(from 
https://cloud.google.com/appengine/docs/flexible/java/migrating - I know 
it's talking about flex, but it does suggest that work is being done to 
port the Memcache Service in some capacity)

But, the Java 11 doc linked above makes no mention of this. Additionally, 
this page (https://cloud.google.com/appengine/docs/standard/runtimes) 
suggests that the 1st gen runtimes aren't planning on being deprecated any 
time soon, but it doesn't make a ton of sense to me to continuing 
developing a new app against the 1st gen runtimes if they are about to 
enter what is essentially maintenance mode. But, the Memorystore migration 
path seems to defeat the point of App Engine's free tier - I'd be going 
from the free cache to having to pay ~$36/month, regardless of the app's 
usage (I obtained that figure from the pricing calculator using 
Memorystore's smallest cache size of 1 GB).

Could I get some guidance, one way or the other?

-- 
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/b6719e5f-2d12-4c45-bcb0-7a021dae1d27%40googlegroups.com.


[google-appengine] Re: About bc.googleusercontent.com domain

2016-08-08 Thread Ken Walker
How many maximum IPs can be assigned to single instance of compute engine 
since we have been receiving requests from more than 60 such IPs (i.e. 
bc.googleusercontent.com hosts) and all those requests are from single user.

- Ken

On Monday, August 8, 2016 at 5:27:23 AM UTC+5:30, Adam (Cloud Platform 
Support) wrote:
>
> Traffic from 'bc.googleusercontent.com' is originating from Compute 
> Engine. The 'bc' subdomain of 'googleusercontent.com' is used for public 
> hostnames of Compute Engine instances which have an external IP address. 
> For example, if an instance has IP of 12.34.56.78, the public hostname 
> would be '78.56.34.12.bc.googleusercontent.com'.
>
> On Friday, August 5, 2016 at 1:24:25 AM UTC-4, Ken Walker wrote:
>>
>> Hello,
>>
>> We are receiving many requests to our server from 
>> bc.googleusercontent.com and user agent doesn't include APP Engine 
>> information so please clear my couple of doubts that as mention like below
>>
>> 1) Is that app engine IP or compute engine IP ?
>> 2) what does "bc" mean in bc.googleusercontent.com ?
>>
>> Thanks in advance!
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/755b5e99-67ac-432c-af18-357e59b8e36d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] About bc.googleusercontent.com domain

2016-08-04 Thread Ken Walker
Hello,

We are receiving many requests to our server from bc.googleusercontent.com 
and user agent doesn't include APP Engine information so please clear my 
couple of doubts that as mention like below

1) Is that app engine IP or compute engine IP ?
2) what does "bc" mean in bc.googleusercontent.com ?

Thanks in advance!

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


[google-appengine] Re: GAE app : Warning: file_get_contents(): Unknown status code

2016-08-02 Thread Ken Walker
we got response code  : 999 

On Wednesday, August 3, 2016 at 11:21:32 AM UTC+5:30, Ken Walker wrote:
>
> Thank you for your replay
>
> As we have faced that with linkedin public profile url, please check it 
> below
> --
> $url ='https://www.linkedin.com/in/amitgupta007'
> $opts = array('http'=>array(
> 'method'=>"GET",
> 'header'=>"Accept-language: en\r\n" .
> "Accept-Encoding: gzip, deflate, br\r\n",
> 'user_agent'=>"User-Agent: my agent\r\n" // i.e. An 
> iPad 
> )
> );
>
> $context = stream_context_create($opts);
> $content = file_get_contents($url ,false,$context);
> -
>
> Thanks in advance!
>
> On Tuesday, August 2, 2016 at 11:28:34 PM UTC+5:30, Nicholas (Google Cloud 
> Support) wrote:
>>
>> Thanks for sharing this finding here.  I cannot yet reproduce this 
>> warning with the code sample provided above.  This 
>> <https://gist.github.com/ngelinas/3e2973ec0c9236996dc6c80a5d6f6769> is 
>> the original code I used.  The test file used was a 32KB text file of 
>> Lorem Ipsum.
>>
>> I get the complete file when testing this.  Using Stackdriver Trace, one 
>> can inspect the underlying URL Fetch call made to Cloud Storage.
>>
>>- What response status code do you get with that underlying URL Fetch 
>>call?
>>    - How large is the file being fetched?  I suspect this may affect the 
>>response code if Cloud Storage responds with a 206 splitting the file.
>>
>>
>> On Friday, July 29, 2016 at 7:20:11 AM UTC-4, Ken Walker wrote:
>>>
>>> Hello,
>>>
>>> Why we are getting this warning + we are not getting full content from 
>>> the file by GAE app so, can you please check and correct me, please check 
>>> below code that we are using with GAE app
>>>
>>> -
>>> $opts = array('http'=>array(
>>> 'method'=>"GET",
>>> 'header'=>"Accept-language: en\r\n" .
>>> "Accept-Encoding: gzip, deflate, br\r\n",
>>> 'user_agent'=>"User-Agent: my agent\r\n" // i.e. An 
>>> iPad 
>>> )
>>> );
>>>
>>> $context = stream_context_create($opts);
>>> $content = file_get_contents($url ,false,$context);
>>> -
>>>
>>> Thanks in advance!
>>> - Ken Walker
>>>
>>

-- 
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/10a008cd-ca5a-4402-9370-ef1bc2ae637c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: GAE app : Warning: file_get_contents(): Unknown status code

2016-08-02 Thread Ken Walker
Thank you for your replay

As we have faced that with linkedin public profile url, please check it 
below
--
$url ='https://www.linkedin.com/in/amitgupta007'
$opts = array('http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Accept-Encoding: gzip, deflate, br\r\n",
'user_agent'=>"User-Agent: my agent\r\n" // i.e. An 
iPad 
)
);

$context = stream_context_create($opts);
$content = file_get_contents($url ,false,$context);
-

Thanks in advance!

On Tuesday, August 2, 2016 at 11:28:34 PM UTC+5:30, Nicholas (Google Cloud 
Support) wrote:
>
> Thanks for sharing this finding here.  I cannot yet reproduce this warning 
> with the code sample provided above.  This 
> <https://gist.github.com/ngelinas/3e2973ec0c9236996dc6c80a5d6f6769> is 
> the original code I used.  The test file used was a 32KB text file of 
> Lorem Ipsum.
>
> I get the complete file when testing this.  Using Stackdriver Trace, one 
> can inspect the underlying URL Fetch call made to Cloud Storage.
>
>- What response status code do you get with that underlying URL Fetch 
>call?
>- How large is the file being fetched?  I suspect this may affect the 
>response code if Cloud Storage responds with a 206 splitting the file.
>
>
> On Friday, July 29, 2016 at 7:20:11 AM UTC-4, Ken Walker wrote:
>>
>> Hello,
>>
>> Why we are getting this warning + we are not getting full content from 
>> the file by GAE app so, can you please check and correct me, please check 
>> below code that we are using with GAE app
>>
>> -
>> $opts = array('http'=>array(
>> 'method'=>"GET",
>> 'header'=>"Accept-language: en\r\n" .
>> "Accept-Encoding: gzip, deflate, br\r\n",
>> 'user_agent'=>"User-Agent: my agent\r\n" // i.e. An 
>> iPad 
>> )
>> );
>>
>> $context = stream_context_create($opts);
>> $content = file_get_contents($url ,false,$context);
>> -
>>
>> Thanks in advance!
>> - Ken Walker
>>
>

-- 
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/73efe19c-683b-4d16-b9dc-92dc5918abca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] GAE app : Warning: file_get_contents(): Unknown status code

2016-07-29 Thread Ken Walker
Hello,

Why we are getting this warning + we are not getting full content from the 
file by GAE app so, can you please check and correct me, please check below 
code that we are using with GAE app

-
$opts = array('http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Accept-Encoding: gzip, deflate, br\r\n",
'user_agent'=>"User-Agent: my agent\r\n" // i.e. An 
iPad 
)
);

$context = stream_context_create($opts);
$content = file_get_contents($url ,false,$context);
-----

Thanks in advance!
- Ken Walker

-- 
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/5f271d52-b113-45df-8558-523adcbf584b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] All app engine projects timing out when deploying

2016-06-29 Thread Ken Liu
Getting errors on all my projects today, error 13, however, have tested 
code and all apps run locally, just not deploying properly

Anyone else encountering this?

-- 
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/49acc6fd-84e1-4c1c-84ba-2112010df995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: NodeJS issues. Multiple instances spun up but also have multiple versions of app running!

2016-04-07 Thread Ken Liu
Fantastic - that worked perfectly :)

Thanks

On Thursday, 7 April 2016 21:08:02 UTC+1, Jeff Deskins wrote:
>
> To limit to one instance for the version, add the following to app.yaml 
> file:
>
> manual_scaling:
>   instances: 1
>
>
>
> The multiple versions are by design.  That allows you to do A/B testing or 
> preview the new version before directing all traffic to it.  After you 
> deploy and set the new version to be promoted as default, previous versions 
> can be deleted.  Sometimes you may want to keep previous version running in 
> the event you need to quickly rollback.
>
> Jeff
>
>
> On Thursday, April 7, 2016 at 12:06:03 PM UTC-5, Ken Liu wrote:
>>
>> Hi,
>>
>> I'm using app engine to run a nodejs app and so far so good except
>>
>> two VMs are running but it also appears two versions of the app are 
>> running too!
>>
>> Any suggestions on how to restrict this to one VM or find out why 
>> multiple versions of the app are running?
>>
>

-- 
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/2c23bc09-4aa7-4b6d-ba30-0b97243adcc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] NodeJS issues. Multiple instances spun up but also have multiple versions of app running!

2016-04-07 Thread Ken Liu
Hi,

I'm using app engine to run a nodejs app and so far so good except

two VMs are running but it also appears two versions of the app are running 
too!

Any suggestions on how to restrict this to one VM or find out why multiple 
versions of the app are running?

-- 
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/f986b4b9-f83d-475e-b6c1-637a2df92e84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Google Dev Console doesn’t show SSL Certificates

2016-01-15 Thread Ken Bowen
Nick,

My mistake.  I /thought/ I was logged into the right account, but wasn’t.  I 
see everything now. Sorry for the noise.

Ken


On Jan 15, 2016, at 10:34 AM, Nick (Cloud Platform Support) <pay...@google.com> 
wrote:

> Did you perhaps use a different account than the one you're currently using?
> 
> On Thursday, January 14, 2016 at 12:48:44 PM UTC-5, Ken Bowen wrote:
> I uploaded a number of subdomain certificates in November, and the list of 
> all was displayed at that time.  Now none of them show (at Settings > SSL 
> Certificates):
> 
>No certificates have been uploaded
> 
> However, they all appear to be in place: When one goes to the subdomain, the 
> connection is https,  and requesting information about the certificate shows 
> the expected certificate.  What’s happening??
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/QdqLloiNjvM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/c232386d-36e7-4af1-9792-a6023e7e7d12%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

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


[google-appengine] Google Dev Console doesn’t show SSL Certificates

2016-01-14 Thread Ken Bowen
I uploaded a number of subdomain certificates in November, and the list of 
all was displayed at that time.  Now none of them show (at Settings > SSL 
Certificates):

   No certificates have been uploaded

However, they all appear to be in place: When one goes to the subdomain, 
the connection is https,  and requesting information about the certificate 
shows the expected certificate.  What’s happening??

-- 
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/a4d49a6a-0f67-4bf4-ba22-e123db8c1705%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Beehive/Weblogic jar file not available

2015-08-25 Thread Ken Bowen
Nick - Followup:  Based on advice from the DWR community, I solved the 
problem this way:
Opened the dwr.2.0.10.jar, and performed:
a) Opened org/directwebremoting/dwr.xml and removed
   creator id=pageflow 
class=org.directwebremoting.beehive.PageFlowCreator”/
b) Removed org/directwebremoting/beehive/PageFlowCreator.class
Closed the jar.  Everything works as it should after re-deployment.
It remains a mystery as to why this error didn't appear prior to July.  
Thanks,
Ken

On Saturday, August 1, 2015 at 1:12:59 PM UTC-6, Ken Bowen wrote:

 I've been using DWR 2.0.(6..10) (Direct Web Remoting) with two Appengine 
 java projects for a number of years, with no problems.  About 2015-07-18, 
 when production Appengine switched from using SDK 1.9.23 to SDK 1.9.24,  I 
 began getting the following exception each time one of my projects starts:

 org.directwebremoting.util.CommonsLoggingOutput error: Failed to load 
 'pageflow' (org.directwebremoting.beehive.PageFlowCreator)
 java.lang.reflect.InvocationTargetException
 at 
 com.google.appengine.runtime.Request.process-eaa0bc63bfae4257(Request.java)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 ..
 Caused by: java.lang.ClassNotFoundException: Beehive/Weblogic jar file not 
 available.
 at 
 org.directwebremoting.beehive.PageFlowCreator.init(PageFlowCreator.java:58)
 .

 Neither of my projects had any code changes around that time.  Was the 
 Beehive/Weblogic jar available in GAE before SDK 1.9.24?  Can anyone give 
 me any pointers about this?
 Thanks in advance,
 Ken Bowen


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


[google-appengine] Re: Beehive/Weblogic jar file not available

2015-08-03 Thread Ken Bowen
Hi Nick,

That's what's strange.   I've been using dwr_2.0.6/7 for a number of years, 
and there's never been any *bee*.jar or *weblogic*.jar in my lib dir. To my 
memory, there were no other dependencies downloaded with dwr.Yet prior 
to  2015-07-18,  I've never seen this exception, and the dwr jar in my 
projects didn't change then.  In fact, my jar list didn't change at all 
before or immediately after  2015-07-18. (Later I checked moving up to 
dwr_2.0.10, but that still produces this exception).  That's why I wondered 
whether the Beehive/Weblogic jar could have been supplied by GAE earlier.   
It all seems very odd.  I'm going to contact the DWR guys and see what they 
say.
Thanks,
Ken

On Monday, August 3, 2015 at 1:32:45 PM UTC-6, Nick (Cloud Platform 
Support) wrote:

 Hi Ken,

 It sounds as though this is a specific third-party technology unrelated to 
 Google, and I can't find it documented anywhere that this would be 
 available on the platform. It sounds as though your app itself would have 
 had to bundle this dependency when it was uploaded. Do you still have 
 access to the project source? Is the Beehive/Weblogic jar included in 
 your project's lib/ folder? 

 Regards,

 Nick

 On Saturday, August 1, 2015 at 3:12:59 PM UTC-4, Ken Bowen wrote:

 I've been using DWR 2.0.(6..10) (Direct Web Remoting) with two Appengine 
 java projects for a number of years, with no problems.  About 2015-07-18, 
 when production Appengine switched from using SDK 1.9.23 to SDK 1.9.24,  I 
 began getting the following exception each time one of my projects starts:

 org.directwebremoting.util.CommonsLoggingOutput error: Failed to load 
 'pageflow' (org.directwebremoting.beehive.PageFlowCreator)
 java.lang.reflect.InvocationTargetException
 at 
 com.google.appengine.runtime.Request.process-eaa0bc63bfae4257(Request.java)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 ..
 Caused by: java.lang.ClassNotFoundException: Beehive/Weblogic jar file 
 not available.
 at 
 org.directwebremoting.beehive.PageFlowCreator.init(PageFlowCreator.java:58)
 .

 Neither of my projects had any code changes around that time.  Was the 
 Beehive/Weblogic jar available in GAE before SDK 1.9.24?  Can anyone give 
 me any pointers about this?
 Thanks in advance,
 Ken Bowen



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


[google-appengine] Beehive/Weblogic jar file not available

2015-08-01 Thread Ken Bowen
I've been using DWR 2.0.(6..10) (Direct Web Remoting) with two Appengine 
java projects for a number of years, with no problems.  About 2015-07-18, 
when production Appengine switched from using SDK 1.9.23 to SDK 1.9.24,  I 
began getting the following exception each time one of my projects starts:

org.directwebremoting.util.CommonsLoggingOutput error: Failed to load 
'pageflow' (org.directwebremoting.beehive.PageFlowCreator)
java.lang.reflect.InvocationTargetException
at 
com.google.appengine.runtime.Request.process-eaa0bc63bfae4257(Request.java)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
..
Caused by: java.lang.ClassNotFoundException: Beehive/Weblogic jar file not 
available.
at 
org.directwebremoting.beehive.PageFlowCreator.init(PageFlowCreator.java:58)
.

Neither of my projects had any code changes around that time.  Was the 
Beehive/Weblogic jar available in GAE before SDK 1.9.24?  Can anyone give 
me any pointers about this?
Thanks in advance,
Ken Bowen

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


[google-appengine] Re: Versioning issue with appengine-java-sdk-1.9.24 and Eclipse

2015-07-28 Thread Ken Bowen
Ah sorry, forgot that emailing a reply to Patrice wouldn't get posted here.

I'm confused by:

   As a side note, this really just affects the version counter, not the 
content of the SDK in any way

Are you saying that when I downloaded appengine-java-sdk-1.9.24.zip and it 
identified itself inside Eclipse as 1.9.22, that I had /really/ gotten 
1.9.4??

--Ken

On Tuesday, July 28, 2015 at 1:54:34 PM UTC-6, Patrice (Cloud Platform 
Support) wrote:

 So to keep the public thread updated (in case someone stumbles) Ken 
 confirms to using those downloads.

 


 I've therefore created an issue tracker about this (link here 
 https://code.google.com/p/googleappengine/issues/detail?id=12181) and 
 as you can see, we are aware of the issue, it is now being tracked, and we 
 will be working on fixing this soon. 

 As a side note, this really just affects the version counter, not the 
 content of the SDK in any way

 Cheers!


 On Monday, July 27, 2015 at 11:24:55 AM UTC-4, Patrice (Cloud Platform 
 Support) wrote:

 Hi Ken,

 Normally we suggest, to get the latest version, to use the downloads 
 link. It's peculiar that this is happening. Just to be 100% sure everything 
 was done the proper way (before I go and reproduce this to send it up), I 
 assume you followed these instructions 
 https://developers.google.com/eclipse/docs/install-eclipse-4.4 (or 
 something equivalent?) when installing your plugin?

 Cheers

 On Friday, July 24, 2015 at 11:51:31 PM UTC-4, Ken Bowen wrote:

 I downloaded  appengine-java-sdk-1.9.24.zip from 
 https://cloud.google.com/appengine/downloads,  unzipped it, and Added 
 it to the SDKs in my Eclipse plugin.  But when that was done, the Version 
 for it only showed as  1.9.22 (previously I had  appengine-java-sdk-1.9.20 
 installed).   Then in Eclipse, I used Help  Check for Updates, but that 
 only showed as available:  Google App Engine Java SDK 1.9.22.   However, my 
 logs on GAE are showing app_engine_release=1.9.24 being used.  How can 
 I get app_engine_release=1.9.24 as the SDK in my Eclipse plugin?
 Thanks in advance,  
 Ken Bowen



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


[google-appengine] Re: Versioning issue with appengine-java-sdk-1.9.24 and Eclipse

2015-07-28 Thread Ken Bowen
.. /really/ gotten 1.9.24??

On Tuesday, July 28, 2015 at 3:48:48 PM UTC-6, Ken Bowen wrote:

 Ah sorry, forgot that emailing a reply to Patrice wouldn't get posted here.

 I'm confused by:

As a side note, this really just affects the version counter, not the 
 content of the SDK in any way

 Are you saying that when I downloaded appengine-java-sdk-1.9.24.zip and 
 it identified itself inside Eclipse as 1.9.22, that I had /really/ gotten 
 1.9.4??

 --Ken

 On Tuesday, July 28, 2015 at 1:54:34 PM UTC-6, Patrice (Cloud Platform 
 Support) wrote:

 So to keep the public thread updated (in case someone stumbles) Ken 
 confirms to using those downloads.

  


 I've therefore created an issue tracker about this (link here 
 https://code.google.com/p/googleappengine/issues/detail?id=12181) and 
 as you can see, we are aware of the issue, it is now being tracked, and we 
 will be working on fixing this soon. 

 As a side note, this really just affects the version counter, not the 
 content of the SDK in any way

 Cheers!


 On Monday, July 27, 2015 at 11:24:55 AM UTC-4, Patrice (Cloud Platform 
 Support) wrote:

 Hi Ken,

 Normally we suggest, to get the latest version, to use the downloads 
 link. It's peculiar that this is happening. Just to be 100% sure everything 
 was done the proper way (before I go and reproduce this to send it up), I 
 assume you followed these instructions 
 https://developers.google.com/eclipse/docs/install-eclipse-4.4 (or 
 something equivalent?) when installing your plugin?

 Cheers

 On Friday, July 24, 2015 at 11:51:31 PM UTC-4, Ken Bowen wrote:

 I downloaded  appengine-java-sdk-1.9.24.zip from 
 https://cloud.google.com/appengine/downloads,  unzipped it, and Added 
 it to the SDKs in my Eclipse plugin.  But when that was done, the Version 
 for it only showed as  1.9.22 (previously I had  appengine-java-sdk-1.9.20 
 installed).   Then in Eclipse, I used Help  Check for Updates, but that 
 only showed as available:  Google App Engine Java SDK 1.9.22.   However, 
 my 
 logs on GAE are showing app_engine_release=1.9.24 being used.  How can 
 I get app_engine_release=1.9.24 as the SDK in my Eclipse plugin?
 Thanks in advance,  
 Ken Bowen



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9a8fe8f2-beb4-48d6-839f-fe6a182ab96a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Versioning issue with appengine-java-sdk-1.9.24 and Eclipse

2015-07-24 Thread Ken Bowen
I downloaded  appengine-java-sdk-1.9.24.zip from 
https://cloud.google.com/appengine/downloads,  unzipped it, and Added it to 
the SDKs in my Eclipse plugin.  But when that was done, the Version for it 
only showed as  1.9.22 (previously I had  appengine-java-sdk-1.9.20 
installed).   Then in Eclipse, I used Help  Check for Updates, but that 
only showed as available:  Google App Engine Java SDK 1.9.22.   However, my 
logs on GAE are showing app_engine_release=1.9.24 being used.  How can I 
get app_engine_release=1.9.24 as the SDK in my Eclipse plugin?
Thanks in advance,  
Ken Bowen

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


Re: [google-appengine] Problem running a cron job

2015-06-30 Thread Ken Bowen
Patrice,

Thanks,

Ken
On Jun 30, 2015, at 7:52 AM, Patrice (Cloud Platform Support) 
pvoutsi...@google.com wrote:

 Hi Ken!
 
 If you want to call that method and log the time when you call this? yes 
 definitely, this is what you want, and then you just hit that servlet 
 whenever you want that logged.
 
 Cheers!
 
 On Monday, June 29, 2015 at 6:56:06 PM UTC-4, Ken Bowen wrote:
 Hey Patrice, 
 
 It’s my mistake. All I really wanted to do was execute the java method 
 public static void crontest1(){ 
 final DateTimeFormatter fmt = 
 Constants.YMDHMS_DATETIME_FORMATTER; 
 String now = fmt.print(System.currentTimeMillis()); 
 logger.warn(## crontest1() :  + 
 now);   
 } 
 
 The jsp/js was just going to be a stepping stone to this, but now I 
 understand the fact that cron isn’t going to execute that jsp “headless”. 
 
 o am I correct that the right way to do this is to write a simple servlet, 
 something like this: 
 
 public class CronTest1Servlet extends LoggedHttpServlet { 
 private static Logger logger = 
 Logger.getLogger(CronTest1Servlet.class.getName()); 
 @Override 
 public void doGet(HttpServletRequest request, 
 HttpServletResponse response) throws ServletException, IOException 
 { final DateTimeFormatter fmt = 
 DateTimeFormat.forPattern(-MM-dd HH:mm:ss z); 
 String now = fmt.print(System.currentTimeMillis()); 
 logger.warn(## CronTest1Servlet 
 :  + now); } 
 } 
 
 Thanks much, 
 —Ken 
 
 On Jun 29, 2015, at 11:41 AM, Patrice (Cloud Platform Support) 
 pvoutsi...@google.com wrote: 
 
  Hey Ken, 
  
  I'm a bit unclear on your issue, so if you could clarify, it would be 
  helpful. 
  
  You have a cronJob on the /admin/cron/crontest1 URL that creates a js and 
  displays it. When you hit the url yourself, it goes through... but when the 
  job autoruns, it fails... right? 
  
  If this is the behavior you're experiencing, I'd say it's to be expected... 
  how would a scheduled cron job running on the backend display anything? 
  
  Let me know if I'm the one not understanding your issue properly here. 
  
  Cheers! 
  
  On Monday, June 29, 2015 at 12:02:20 AM UTC-4, Ken Bowen wrote: 
  
  I have a simple test cron job which does not succeed in running on GAE.  
  The target url runs correctly when invoked from a browser (when I’m logged 
  in as admin),  but cron is not successfully running the job.  The GAE Cron 
  Jobs page shows: 
  
 /admin/cron/crontest1every 2 hours (America/New_York) 
 Initial simple test   2015/06/28 23:18:03 2 secs late 
  Failed 
  
  Here’s the cron.xml: 
  ?xml version=1.0 encoding=UTF-8? 
  cronentries 
  cron 
 descriptionInitial simple test/description 
 timezoneAmerica/New_York/timezone 
 url/admin/cron/crontest1//url 
 scheduleevery 2 hours/schedule 
  /cron 
  /cronentries 
  
  In web.xml, the url-pattern/admin/*/url-pattern gets the   
  security-constraint: 
  auth-constraint 
  role-nameadmin/role-name 
 /auth-constraint 
  
  The target url /admin/cron/crontest1/ assembles a very simple jsp page 
  equivalent to: 
  head 
 script type='text/javascript' 
  src='/admin/cron/crontest1/crontest1.js'/script 
 script 
  $(document).ready(function() { 
  crontest1init(); 
  }); 
 /script 
  /head 
  body 
  h1CronTest1/h1   
  /body 
  
  where crontest1.js is just: 
  
  function crontest1init() 
  { 
  AdminIntf.crontest1(); 
  } 
  
  And AdminIntf.crontest1() is just a DWR (Direct Web Remoting) call to this: 
  
  public static void crontest1(){ 
 final DateTimeFormatter fmt = 
  Constants.YMDHMS_DATETIME_FORMATTER; 
 String now = fmt.print(System.currentTimeMillis()); 
 logger.warn(## crontest1() :  + now); 
  } 
  
  When I am logged in as admin and issue the url 
  
  http://[my.project].appspot.com/admin/cron/crontest1/ 
  
  the result is a page showing 
  
  CronTest1 
  
  and the logs show: 
  
  ……/dwr/call/plaincall/AdminIntf.crontest1.dwr 200 …blah,blah 
  I 2015-06-28 21:10:18.026 org.directwebremoting.util.CommonsLoggingOutput 
  info: Exec: AdminIntf.crontest1() 
  W 2015-06-28 21:10:18.064 com.strongbrain.admin.AdminIntf crontest1: 
  ## crontest1() : 2015-06-29 03:10:18 UTC 
  
  The url action returns 200, but, as noted at top, cron doesn’t successfully 
  run this.  Clearly I’m missing something essential, but I can’t see what. 
  Any help will definitely be appreciated. 
  Thanks in advance, 
  Ken Bowen 
  
  
  -- 
  You received this message because you are subscribed to a topic in the 
  Google Groups Google App Engine group. 
  To unsubscribe from this topic, visit 
  https

Re: [google-appengine] Problem running a cron job

2015-06-29 Thread Ken Bowen
Hey Patrice,

It’s my mistake. All I really wanted to do was execute the java method
public static void crontest1(){ 
final DateTimeFormatter fmt = 
Constants.YMDHMS_DATETIME_FORMATTER; 
String now = fmt.print(System.currentTimeMillis()); 
logger.warn(## crontest1() :  + now); 
 
}

The jsp/js was just going to be a stepping stone to this, but now I understand 
the fact that cron isn’t going to execute that jsp “headless”.

o am I correct that the right way to do this is to write a simple servlet, 
something like this:

public class CronTest1Servlet extends LoggedHttpServlet { 
private static Logger logger = 
Logger.getLogger(CronTest1Servlet.class.getName()); 
@Override 
public void doGet(HttpServletRequest request, 
HttpServletResponse response) throws ServletException, IOException 
{   final DateTimeFormatter fmt = 
DateTimeFormat.forPattern(-MM-dd HH:mm:ss z); 
String now = fmt.print(System.currentTimeMillis()); 
logger.warn(## CronTest1Servlet 
:  + now); } 
} 

Thanks much,
—Ken

On Jun 29, 2015, at 11:41 AM, Patrice (Cloud Platform Support) 
pvoutsi...@google.com wrote:

 Hey Ken,
 
 I'm a bit unclear on your issue, so if you could clarify, it would be helpful.
 
 You have a cronJob on the /admin/cron/crontest1 URL that creates a js and 
 displays it. When you hit the url yourself, it goes through... but when the 
 job autoruns, it fails... right?
 
 If this is the behavior you're experiencing, I'd say it's to be expected... 
 how would a scheduled cron job running on the backend display anything?
 
 Let me know if I'm the one not understanding your issue properly here.
 
 Cheers!
 
 On Monday, June 29, 2015 at 12:02:20 AM UTC-4, Ken Bowen wrote:
 
 I have a simple test cron job which does not succeed in running on GAE.  The 
 target url runs correctly when invoked from a browser (when I’m logged in as 
 admin),  but cron is not successfully running the job.  The GAE Cron Jobs 
 page shows:
 
/admin/cron/crontest1every 2 hours (America/New_York) 
Initial simple test   2015/06/28 23:18:03 2 secs late 
 Failed
 
 Here’s the cron.xml:
 ?xml version=1.0 encoding=UTF-8?
 cronentries
 cron
descriptionInitial simple test/description
timezoneAmerica/New_York/timezone
url/admin/cron/crontest1//url
scheduleevery 2 hours/schedule
 /cron
 /cronentries
 
 In web.xml, the url-pattern/admin/*/url-pattern gets the   
 security-constraint:
   auth-constraint
 role-nameadmin/role-name
/auth-constraint
 
 The target url /admin/cron/crontest1/ assembles a very simple jsp page 
 equivalent to:
 head
script type='text/javascript' 
 src='/admin/cron/crontest1/crontest1.js'/script
script
   $(document).ready(function() {
   crontest1init();
   });
/script
 /head
 body 
 h1CronTest1/h1  
 /body 
 
 where crontest1.js is just:
 
 function crontest1init()
 {
   AdminIntf.crontest1();
 }
 
 And AdminIntf.crontest1() is just a DWR (Direct Web Remoting) call to this:
 
 public static void crontest1(){
   final DateTimeFormatter fmt = Constants.YMDHMS_DATETIME_FORMATTER;
String now = fmt.print(System.currentTimeMillis());
logger.warn(## crontest1() :  + now);
 }
 
 When I am logged in as admin and issue the url
 
 http://[my.project].appspot.com/admin/cron/crontest1/
 
 the result is a page showing
 
 CronTest1
 
 and the logs show:
 
 ……/dwr/call/plaincall/AdminIntf.crontest1.dwr 200 …blah,blah
 I 2015-06-28 21:10:18.026 org.directwebremoting.util.CommonsLoggingOutput 
 info: Exec: AdminIntf.crontest1()
 W 2015-06-28 21:10:18.064 com.strongbrain.admin.AdminIntf crontest1: 
 ## crontest1() : 2015-06-29 03:10:18 UTC
 
 The url action returns 200, but, as noted at top, cron doesn’t successfully 
 run this.  Clearly I’m missing something essential, but I can’t see what.
 Any help will definitely be appreciated.
 Thanks in advance,
 Ken Bowen
 
 
 -- 
 You received this message because you are subscribed to a topic in the Google 
 Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/3OjCkOL2jhI/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-appengine/e49bc100-aeda-475c-94d4-0dc9b3ef94b8%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

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

[google-appengine] Problem running a cron job

2015-06-28 Thread Ken Bowen

I have a simple test cron job which does not succeed in running on GAE. 
 The target url runs correctly when invoked from a browser (when I’m logged 
in as admin),  but cron is not successfully running the job.  The GAE Cron 
Jobs page shows:

/admin/cron/crontest1every 2 hours (America/New_York) 
Initial simple test2015/06/28 23:18:03 2 secs late Failed

Here’s the cron.xml:
?xml version=1.0 encoding=UTF-8?
cronentries
cron
descriptionInitial simple test/description
timezoneAmerica/New_York/timezone
url/admin/cron/crontest1//url
scheduleevery 2 hours/schedule
/cron
/cronentries

In web.xml, the url-pattern/admin/*/url-pattern gets the   
security-constraint:
auth-constraint
 role-nameadmin/role-name
/auth-constraint

The target url /admin/cron/crontest1/ assembles a very simple jsp page 
equivalent to:
head
script type='text/javascript' 
src='/admin/cron/crontest1/crontest1.js'/script
script
$(document).ready(function() {
crontest1init();
});
/script
/head
body 
h1CronTest1/h1  
/body 

where crontest1.js is just:

function crontest1init()
{
AdminIntf.crontest1();
}

And AdminIntf.crontest1() is just a DWR (Direct Web Remoting) call to this:

public static void crontest1(){
final DateTimeFormatter fmt = Constants.YMDHMS_DATETIME_FORMATTER;
String now = fmt.print(System.currentTimeMillis());
logger.warn(## crontest1() :  + now);
}

When I am logged in as admin and issue the url

http://[my.project].appspot.com/admin/cron/crontest1/

the result is a page showing

CronTest1

and the logs show:

……/dwr/call/plaincall/AdminIntf.crontest1.dwr 200 …blah,blah
I 2015-06-28 21:10:18.026 org.directwebremoting.util.CommonsLoggingOutput 
info: Exec: AdminIntf.crontest1()
W 2015-06-28 21:10:18.064 com.strongbrain.admin.AdminIntf crontest1: 
## crontest1() : 2015-06-29 03:10:18 UTC

The url action returns 200, but, as noted at top, cron doesn’t successfully 
run this.  Clearly I’m missing something essential, but I can’t see what.
Any help will definitely be appreciated.
Thanks in advance,
Ken Bowen

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


[google-appengine] How to setup a GAE managed VM

2015-02-11 Thread Ken Bowen
I have a moderate-sized AppEngine java app running in the classic GAE 
sandbox.  It makes a few calls out to non-GAE systems to perform 
processing that can't be done in the sandbox (e.g., calls involving AWT). 
 Now I'd like to explore running it as a single module on a GAE managed VM 
over Linux, changing those external calls to local, but still using the 
DataStore.  My problem is that I'm confused as to how to set up a GAE 
managed VM.  When I go to my Developers Console 
(console.developers.google.com/project) and click Create Project, I don't 
see any options for a GAE managed VM.  Can anyone point me in the right 
direction to get started?
Thanks,
Ken Bowen

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


[google-appengine] Trimming backup records on Datastore Admin

2014-08-22 Thread ken
For my app(s), I have nightly, weekly, and monthly backups to Google Cloud 
Storage (BCS) which are fired by GAE cron jobs.  The backup /contents/ in 
GCS are automatically pruned  using lifecycle methods: 
https://developers.google.com/storage/docs/lifecycle,   so that I keep 7 
daily backups, 4 weekly backups, and all monthly backups.
The cron jobs which fire off backups make entries in the Backups 
section of Datastore Admin.  These can be used to initiate a Restore if 
needed.  Also, these records can be manually deleted (but the GCS contents 
are not correspondingly deleted).  If not manually trimmed, these backup 
records appear to grow unbounded.  My question is whether there exists a 
method of trimming these backup records using an API, or using a lifecycle 
method similar to that available for GCS?  
Similarly, is there any way at all of trimming the Completed Operations 
section of the Datastore Admin?
Thanks in advance,
Ken Bowen

-- 
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] Issue with Cloud Storage GCS API on local Development Server

2013-12-21 Thread Ken Bowen
Gary,

Are you using namespaces and running your code in a non-default namespace?  
That was my problem (see the very end of my original post.)  My revised  code 
for 11/21 runs in the default namespace -- that's why it worked.

Ken

On Dec 20, 2013, at 12:33 PM, Gary Mort wrote:

 
 
 On Tuesday, November 19, 2013 3:57:09 PM UTC-5, k...@form-runner.com wrote:
 I've encountered a problem using the Google Cloud Storage GCS Client API, 
 running on the local development server.  I'm trying to write the bytes from 
 a PDF file, and then read them back.  
 
 The code appears to write the (local fake)GCS file ok: (1) There appears to 
 be an appropriate entry in the Development Console, and (2) there's a 
 physical file in ~war/WEB-APP/appengine-generated (details below).  However, 
 when I attempt to read the bytes from the GCS file, it throws a FileNotFound 
 exception when it attempts to get the metadata (filesize).\\
 
 I have the same problem with 1.8.8 using PHP.
 
 I can go to http://localhost:8000 and see that there are a bunch of datastore 
 items being created from the PHP calls to save data to a file[and I can even 
 see that the filenames in datastore match the ones that should have been 
 created].  However, any subsequent attempts to stat those files results in a 
 file not found error[ie check the filesize, check to see if the file exists, 
 etc].
 
 
 
 -- 
 You received this message because you are subscribed to a topic in the Google 
 Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/TJ1d7wqZngo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/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] Difficulty turning on project Billing

2013-12-11 Thread ken
I have a project which is currently set for free.  I'm trying to turn on 
Billing, but cannot.  I am an Owner and Billing Administrator of the 
project.  If I go to Billing  Billing Status, and click Enable Billing, I 
get the page for setting budgets.  However, when I click Submit on that 
page,  I just get a white page with:
You are not authorized to access this page.
It if go back to Billing  Billing Status, I get:

Enabling billing …
Billing will be enabled after we verify your payment method

[Button: Do not enable billing now]
…..
You are not authorized to access this page.

BUT:  I haven't submitted any payment method, and when I try to go to 
Billing  Billing Profie or Billing  Billing Settings, I just get
You are not authorized to access this page.
I /think/ a bug has crept in; I've successfully  set up Billing for other 
projects.

Thanks for the help
--Ken Bowen

-- 
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: Difficulty turning on project Billing

2013-12-11 Thread ken
Problem mysteriously resolved.  I replicated it a couple of more times, 
then logged out and went away for while.  When I came back  logged in, 
everything behaved as it should.
Go figure.
Cheers,
--Ken


-- 
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] Google Cloud Storage: Real World - Bucket authorization

2013-12-03 Thread Ken Bowen
Hi Vinny,

Thanks for the invite to your Google+ circle.  I don't have a Google+ account 
right now, but I plan to set one up for myself and for my company in January 
when, hopefully, our business opens it's doors.  You'll see me show up in your 
circle then.
Cheers,
Ken

On Nov 24, 2013, at 5:39 PM, Vinny P wrote:

 On Sat, Nov 23, 2013 at 1:39 PM, Ken Bowen k...@form-runner.com wrote:
 Vinny,
 Thank you very much!   That got me going.  I especially appreciate the screen 
 shot on imgur, because on my MacBook Pro, none of Chrome,FF,Safari showed the 
 bottom portion of the page for adding unless I suppressed the Nav or 
 Bookmarks bar, and there's no vertical scroll bar.
 
 
 No problem! Glad to hear everything's working for you.
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL
 
 App Engine Code Samples: http://www.learntogoogleit.com
 
 
 -- 
 You received this message because you are subscribed to a topic in the Google 
 Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/D4ZwnBhj9yM/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/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] Problem with SSL for Custom Domains

2013-12-02 Thread ken
I'm having a problem with SSL for Custom Domains.  Everything appears to be 
set up (no error complaints from Google), but it just doesn't work for the 
our custom domain.

Say the project is myproject.appspot.com, and that the custom domain is 
my-project.com. Then:
http://myproject.appspot.com redirects to https://myproject.appspot.com 
which works ok.
and
   http://www.myproject.appspot.com redirects to 
https://www.myproject.appspot.com, also ok.

However:
http://my-project.com/ redirects to https://my-projectr.com/, not ok,
and 
http://www.my-projectr.com/ redirects to https://www.my-project.com/, 
also not ok:

Both https://my-project.com/ and https://www.my-project.com/ yield messages:

…. can't establish a secure connection to the server 
[www.]my-project.com

Here are the details:

* In Apps  Domains, the primary domain is set to my-project.com, and the 
naked domain is redirected to http://www.my-project.com
* Billing is turned on for the project, and SSL is being billed to the 
project.
* I got 3 different *.crt files from Comodo:
  AddTrustExternalCARoot.crt  PositiveSSLCA2.crt   www_my_project_com.crt
  Below, I've tried uploading three different combos:
  - www_my_project_com.crt alone (= combined.pem below)
  - cat PositiveSSLCA2.crt AddTrustExternalCARoot.crt 
www_my_project_com.crt  combined.pem
  - cat www_my_project_com.crt PositiveSSLCA2.crt 
AddTrustExternalCARoot.crt  combined.pem

* In Apps  Security  SSL for Custom Domains:
  - I uploaded combined.pem together with the private.key I generated from 
openssl with the CSR which produced this cert.  Apps made no complaint, and:
  - In the Billing Summary it shows: SNI certificate slots: Used 1 of 5
  - the CNAME for www is set to ghs.googlehosted.com in our DNS.
  - In web.xml, I have this set in security-constraint:
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint

Plugging each of my-project.com and www.my-project.com into 
http://www.digicert.com/help/, I get No certificates were found  even 
though my Apps  SSL for Custom Domains asserts: SNI certificate slots: 
Used 1 of 5.

So, if anyone can give me any useful troubleshooting tips for this, I'll 
greatly appreciate it.
Thanks in advance,
Ken Bowen

-- 
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] JDO startup apparently reads through entire table, causing quota problems - why and how to fix?

2013-11-25 Thread Ken Traub
I've got a GAE app which uses JDO to manage a single persistent class.  
Memcache not used.  Every time a new instance of the app starts up, I see 
3524 data store read operations added to my quota usage.  That number 
happens to be the number of rows in the persistent table, currently.  So it 
seems that JDO is reading through the entire table upon startup.  I've done 
thorough logging and testing to confirm that my own app code is not doing 
this -- my code only does queries thatl read at most 1-12 rows at a time, 
and the effect on quota usage for an already started instance matches my 
expectations.  It's only when GAE starts a new instance that I see the huge 
increment to data store read ops.
 
Because usage of my app varies up and down through a typical day, GAE 
starts new instances frequently (which come and go).  So this 3500+ hit to 
quota each time easily exceeds 50K total a day, so this is costing me $.
 
Questions:  why in the world does JDO need to read through the entire table 
upon startup, and is there any way to prevent it?
 
Below is the log output at startup from JDO.
 
Thanks very much in advance for any advice anybody provides.
 

   1. 2013-11-21 13:45:01.543
   2. 
   
   org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints: Bundle 
org.datanucleus.jpa has an optional dependency to org.datanucleus.enhancer 
but it cannot be resolved
   
   3. I2013-11-21 13:45:01.543
   
   org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints: Bundle 
org.datanucleus has an optional dependency to org.eclipse.equinox.registry 
but it cannot be resolved
   
   4. I2013-11-21 13:45:01.544
   
   org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints: Bundle 
org.datanucleus has an optional dependency to org.eclipse.core.runtime but 
it cannot be resolved
   
   5. I2013-11-21 13:45:02.237
   
   org.datanucleus.PersistenceConfiguration setProperty: Property 
datanucleus.rdbms.sql.allowAllSQLStatements unknown - will be ignored
   
   6. I2013-11-21 13:45:02.244
   
   org.datanucleus.PersistenceConfiguration setProperty: Property 
datanucleus.rdbms.stringDefaultLength unknown - will be ignored
   
   7. I2013-11-21 13:45:02.263
   
   org.datanucleus.PersistenceConfiguration setProperty: Property 
datanucleus.appengine.autoCreateDatastoreTxns unknown - will be ignored
   
   8. I2013-11-21 13:45:02.268
   
   org.datanucleus.ObjectManagerFactoryImpl logConfiguration: = 
Persistence Configuration ===
   
   9. I2013-11-21 13:45:02.270
   
   org.datanucleus.ObjectManagerFactoryImpl logConfiguration: DataNucleus 
Persistence Factory - Vendor: DataNucleus  Version: 1.1.5
   
   10. I2013-11-21 13:45:02.271
   
   org.datanucleus.ObjectManagerFactoryImpl logConfiguration: DataNucleus 
Persistence Factory initialised for datastore URL=appengine driver= 
userName=
   
   11. I2013-11-21 13:45:02.271
   
   org.datanucleus.ObjectManagerFactoryImpl logConfiguration: 
===
   
   12. I2013-11-21 13:45:02.839
   
   org.datanucleus.PersistenceConfiguration setProperty: Property 
datanucleus.query.cached unknown - will be ignored
   
   13. I2013-11-21 13:45:03.840
   
   org.datanucleus.jdo.metadata.JDOMetaDataManager init: Registering listener 
for metadata initialisation
   
   14. I2013-11-21 13:45:04.692
   
   org.datanucleus.jdo.metadata.JDOAnnotationReader processClassAnnotations: 
Class net.traub.tagxlate.server.dao.gae.GaeGcpRuleRecord has been specified 
with JDO annotations so using those.
   
   15. I2013-11-21 13:45:04.851
   
   org.datanucleus.store.appengine.MetaDataValidator validate: Performing 
appengine-specific metadata validation for 
net.traub.tagxlate.server.dao.gae.GaeGcpRuleRecord
   
   16. I2013-11-21 13:45:04.851
   
   org.datanucleus.store.appengine.MetaDataValidator validate: Finished 
performing appengine-specific metadata validation for 
net.traub.tagxlate.server.dao.gae.GaeGcpRuleRecord
   
   17. I2013-11-21 13:45:04.936
   
   org.datanucleus.store.StoreDataManager registerStoreData: Managing 
Persistence of Class : net.traub.tagxlate.server.dao.gae.GaeGcpRuleRecord 
[Table : class name=GaeGcpRuleRecord
  identity-type=application
  objectid-class=javax.jdo.identity.LongIdentity
  persistence-modifier=persistence-capable
   
   [details omitted here to save space] /class
   , InheritanceStrategy : new-table]
   
   18. I2013-11-21 13:45:05.034
   
   org.datanucleus.store.StoreDataManager registerStoreData: Managing 
Persistence of Class : net.traub.tagxlate.server.dao.gae.GaeGcpRuleRecord 
[Table : class name=GaeGcpRuleRecord
  identity-type=application
  objectid-class=javax.jdo.identity.LongIdentity
  persistence-modifier=persistence-capable
   
   inheritance strategy=new-table
   /inheritance
   [details omitted here to save space] /class
   , InheritanceStrategy : new-table]
   
   19. I2013-11-21 

Re: [google-appengine] Google Cloud Storage: Real World - Bucket authorization

2013-11-23 Thread Ken Bowen
Vinny,
Thank you very much!   That got me going.  I especially appreciate the screen 
shot on imgur, because on my MacBook Pro, none of Chrome,FF,Safari showed the 
bottom portion of the page for adding unless I suppressed the Nav or Bookmarks 
bar, and there's no vertical scroll bar. 
Cheers,
Ken Bowen

On Nov 22, 2013, at 11:46 PM, Vinny P wrote:

 On Fri, Nov 22, 2013 at 8:57 PM, k...@form-runner.com wrote:
 I have a Google Cloud Console Account set up with billing enabled, have 
 enabled the Google Cloud Storage API, and have created a bucket called 
 my_bucket. But I'm not clear about how to provide my apps with authorization 
 to access to my_bucket... I don't understand how to  attach the ServerKey / 
 APIKey to our library code to accomplish authorization.
 
 
 You don't need to attach any keys to your code. App Engine and Cloud Storage 
 handle authentication for you. 
 
 Log in to the cloud console, select the application you're using, then open 
 up the Cloud Storage menu. Check the box next to the bucket you're using, 
 then press the Bucket Permissions button. You'll see a screen similar to 
 this: http://imgur.com/gadnQEF . All you need to do is insert (your 
 application id) @ appspot . gserviceaccount . com (without spaces) as a 
 privileged user on the bucket. 
 
 From here, your application will have access to the bucket. Just open a 
 channel to the bucket using the GCS library, and GAE will handle 
 authenticating to the bucket.
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL
 
 App Engine Code Samples: http://www.learntogoogleit.com
  
 
 
 -- 
 You received this message because you are subscribed to a topic in the Google 
 Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/D4ZwnBhj9yM/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/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: Issue with Cloud Storage GCS API on local Development Server

2013-11-22 Thread ken


 Nailed the culprit!
 We make extensive use of namespaces, and in my original post, there turns 
 out to be an unfortunate interaction between namespaces and the GCS client 
 API.

 Down in my original post, where I laid out all the data I could find in 
 the Development Console, you will see that there are entries in the empty 
 namespace and a different namespace:

 In __GsFileInfo__ (in the empty Namespace)
 ….blah … blah

 In Namespace 5629499534213120 (where everything ran):
 In _ah_FakeCloudStorate_formrunnerbucket-r7yh23nb2:
 …. blah…. blah

 The code for writing into GCS ran in namespace 5629499534213120, but it 
 wrote part of it's data into the empty namespace.

 The (successful) experiment was to ensure that all the GCS API code (read 
 and write) runs in the empty namespace, conceptually thus:

 private byte[] readFromFile(GcsFilename fullGcsFilename)  throws 
 IOException 
 {
 String in_ns = NamespaceManager.get();
 NamespaceManager.set(null);
 int fileSize = (int) gcsService.getMetadata(fullGcsFilename).getLength();
 ByteBuffer result = ByteBuffer.allocate(fileSize);
 GcsInputChannel readChannel = gcsService.openReadChannel(fullGcsFilename, 
 0);
 try {
   readChannel.read(result);
 } finally {
   readChannel.close();
 }
 byte[] toreturn=result.array();
 NamespaceManager.set(in_ns);
 return toreturn;
 }

 Now the FileNotFound does not occur, and I do get (some) bytes back, about 
 1/10 of the 1.2MB.  Presumably when I switch to ObjectStreaming, I'll get 
 all.
 Cheers,
 --Ken


-- 
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] Google Cloud Storage: Real World - Bucket authorization

2013-11-22 Thread ken
So I have GCS-API-client library code working in my app on the Development 
Console.  Now I need to get things running on GAE, accessing GCS.

I have a Google Cloud Console Account set up with billing enabled, have 
enabled the Google Cloud Storage API, and have created a bucket called 
my_bucket.

On GAE, I have a production and a test version of the app: 
 myproject.appspot.com and testmyproject.appspot.com (same source code).  I 
want both of these GAE apps to be able to write and read  (FULL CONTROL) to 
my_bucket.  Both of these apps have been entered on Registered apps on 
Cloud Console.

But I'm not clear about how to provide my apps with authorization to access 
to my_bucket.  I think the nature of access needed corresponds to the 
Server Key type of authorization that one sees when clicking on the app's 
listing under Registered apps.  All we are doing at present is  storing 
Blobs bigger than 1MB in GCS.  BUT, if this is correct, I don't understand 
how to  attach the ServerKey / APIKey to our library code to accomplish 
authorization.  If I've missed a doc that explains this, please give me a 
link.  And if I'm completely off-base, please point me to the right doc to 
get straight.

Many thanks in advance,
--Ken Bowen

-- 
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] Issue with Cloud Storage GCS API on local Development Server

2013-11-21 Thread Ken Bowen
Thanks Tom.
I went through pretty much the same servlet exercise a couple of hours before 
seeing your post this afternoon.
The problem was that I missed the point the the docs that the code /must/ run 
in a servlet.
(I'm not clear where it's stated, but I guessed from the comment about the test 
harness in LocalExample.)
I assumed that it would be ok to run in a deployed app on AppEngine.
Thanks again,
--Ken

On Nov 21, 2013, at 2:51 PM, Tom Kaitchuck wrote:

 Using the 1.8.8 version of the SDK and depending on appengine-gcs-client 
 0.3.3, the following servlet based on your above example works:
 
 public class GcsTest extends HttpServlet {
   private void writeToFile(GcsService gcsService, GcsFilename 
 fullGcsFilename, byte[] content)
   throws IOException {
 System.out.println(writeToFile:full= + fullGcsFilename.toString());
 GcsOutputChannel outputChannel =
 gcsService.createOrReplace(fullGcsFilename, 
 GcsFileOptions.getDefaultInstance());
 outputChannel.write(ByteBuffer.wrap(content));
 outputChannel.close();
   }
 
 
   private byte[] readFromFile(GcsService gcsService, GcsFilename 
 fullGcsFilename)
   throws IOException {
 System.out.println(readFromFile:full= + fullGcsFilename.toString());
 int fileSize = (int) gcsService.getMetadata(fullGcsFilename).getLength();
 ByteBuffer result = ByteBuffer.allocate(fileSize);
 GcsInputChannel readChannel = gcsService.openReadChannel(fullGcsFilename, 
 0);
 try {
   readChannel.read(result);
 } finally {
   readChannel.close();
 }
 return result.array();
   }
   
   @Override
   public void doGet(HttpServletRequest req, HttpServletResponse resp) throws 
 IOException {
 GcsService gcsService = GcsServiceFactory.createGcsService();
 GcsFilename fullGcsFilename = new GcsFilename(Foo, Bar);
 byte[] content = new byte[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
 writeToFile(gcsService, fullGcsFilename, content);
 byte[] result = readFromFile(gcsService, fullGcsFilename);
 PrintWriter writer = resp.getWriter();
 writer.append(Arrays.toString(content));
 writer.append(Arrays.toString(result));
   }
 }
 
 I'm not really sure what could be different about your setup to cause that. 
 Try creating a new project with the minimal possible dependencies and run the 
 servlet above and see what happens.
 
 
 
 On Tue, Nov 19, 2013 at 12:57 PM, k...@form-runner.com wrote:
 I've encountered a problem using the Google Cloud Storage GCS Client API, 
 running on the local development server.  I'm trying to write the bytes from 
 a PDF file, and then read them back.  
 
 The code appears to write the (local fake)GCS file ok: (1) There appears to 
 be an appropriate entry in the Development Console, and (2) there's a 
 physical file in ~war/WEB-APP/appengine-generated (details below).  However, 
 when I attempt to read the bytes from the GCS file, it throws a FileNotFound 
 exception when it attempts to get the metadata (filesize).
 
 First, here's the core code, versions of GCS client read/write, with my 
 debugging stmts left in for reference:
 
 private void writeToFile(GcsFilename fullGcsFilename, byte[] content) 
   throws IOException 
 {
 System.out.println(writeToFile:full=+fullGcsFilename.toString());
 GcsOutputChannel outputChannel =
   gcsService.createOrReplace(fullGcsFilename, 
 GcsFileOptions.getDefaultInstance());
 outputChannel.write(ByteBuffer.wrap(content));
 outputChannel.close();
 }
 
 private byte[] readFromFile(GcsFilename fullGcsFilename) 
   throws IOException 
 {
 System.out.println(readFromFile:full=+fullGcsFilename.toString());
 int fileSize = (int) gcsService.getMetadata(fullGcsFilename).getLength(); 
   [*][Exception thrown here]
 ByteBuffer result = ByteBuffer.allocate(fileSize);
 GcsInputChannel readChannel = gcsService.openReadChannel(fullGcsFilename, 
 0);
 try {
   readChannel.read(result);
 } finally {
   readChannel.close();
 }
 return result.array();
 }
 
 Here's the debugging output (in/out filenames appear to be the same):
 
 writeToFile:full=GcsFilename(formrunnerbucket-r7yh23nb2, 
 FA/MasterFormStore-6649846324789248)
 
 
 readFromFile:full=GcsFilename(formrunnerbucket-r7yh23nb2, 
 FA/MasterFormStore-6649846324789248)
 
 
 Here's the observed results:
 
 IN ~war/WEB-APP/appengine-generated:
 
 -rw-r--r--  1 ken  staff  1679407 Nov 19 09:19 
 encoded_gs_key:L2dzL2Zvcm1ydW5uZXJidWNrZXQtcjd5aDIzbmIyL0ZBL01hc3RlckZvcm1TdG9yZS02NjQ5ODQ2MzI0Nzg5MjQ4
 This is the expected PDF file, which can be opened (with Preview on a Mac).
 
 
 In the Development Console (http://localhost:/_ah/admin/datastore):
 In __GsFileInfo__ (in the empty Namespace)
 
 Key: 
 ag5mb3JtcnVubmVyLWhyZHJ7CxIOX19Hc0ZpbGVJbmZvX18iZ2VuY29kZWRfZ3Nfa2V5OkwyZHpMMlp2Y20xeWRXNXVaWEppZFdOclpYUXRjamQ1YURJemJtSXlMMFpCTDAxaGMzUmxja1p2Y20xVGRHOXlaUzAyTmpRNU9EUTJNekkwTnpnNU1qUTQM
 
 ID/Name

Re: [google-appengine] Issue with Cloud Storage GCS API on local Development Server

2013-11-21 Thread Ken Bowen
Indeed.  FYI  for anyone coming on this thread, below is running code (in the 
DevServer),  
invoked from a test page via DWR, and returning the String result to be 
displayed in an alert; 
the result is:
startBytesSize = 1160921
bytesReadSize = 1160921
Code:
public static String doGCSTest()
throws IOException
{
String result = ;
String testPDFFile = IRAD1-2.pdf; // a 1.2MB PDF file accessible 
as a resource
String testPDFPath = samples/ + testPDFFile;
byte[] startBytes = CaptureWARSamples.getBytesFromWARFile(testPDFPath);
int startBytesSize = startBytes.length;
result += startBytesSize =  + startBytesSize;

String BUCKETNAME = formrunnerbucket-r7yh23nb2;
final GcsService gcsService =
GcsServiceFactory.createGcsService(new RetryParams.Builder()
.initialRetryDelayMillis(10)
.retryMaxAttempts(10)
.totalRetryPeriodMillis(15000)
.build()) ;

String gcsFilename = TEST-IRAD1-2pdf;
GcsFilename fullGcsFilename = new GcsFilename(BUCKETNAME, gcsFilename);

GcsOutputChannel outputChannel =
gcsService.createOrReplace(fullGcsFilename, 
GcsFileOptions.getDefaultInstance());
outputChannel.write(ByteBuffer.wrap(startBytes));
outputChannel.close();

int fileSize = (int) 
gcsService.getMetadata(fullGcsFilename).getLength();
ByteBuffer byteBufferResult = ByteBuffer.allocate(fileSize);
GcsInputChannel readChannel = 
gcsService.openReadChannel(fullGcsFilename, 0);
try {
  readChannel.read(byteBufferResult);
} finally {
  readChannel.close();
}
byte[] bytesRead = byteBufferResult.array();
int bytesReadSize = bytesRead.length;
result += \nbytesReadSize =  + bytesReadSize;
return result;
}
--Ken

On Nov 21, 2013, at 7:05 PM, Tom Kaitchuck wrote:

 Correct. It does not have to be directly in the servlet. For example App 
 Engine MapReduce: https://code.google.com/p/appengine-mapreduce/
 uses the GCS client to write out data, but it is many levels removed from a 
 servlet.
 
 
 On Thu, Nov 21, 2013 at 4:44 PM, Ken Bowen k...@form-runner.com wrote:
 Hi Tom,
 
 Re:
  you don't need to use the LocalServiceTestHelper
 
 Understood.  I ran LocalExample once when I began, just to follow the 
 documentation.
 
 The original description I posted is from a running app on the DevServer, no 
 TestHelper involved.  In fact, the test jars are not even in the project.
 
 After posting, I was reviewing LocalExample to make comparisons, and the 
 phrase
 
 ...run locally as opposed to in a deployed servlet
 
 caught my eye.  So I wrote a version of what I posted as a servlet (grabs a 
 1.2MB PDF out of a resource, stores it with the GCS library, retrieves it, 
 and writes out the number of bytes it got).  That works fine.
 
 If you say this doesn't /have/ to be directly in a servlet, I'll dig in 
 further to my original.
 
 Cheers,
 --Ken
 
 On Nov 21, 2013, at 5:07 PM, Tom Kaitchuck wrote:
 
  I'm a bit confused by your statement.
  If you want to run in the DevAppserver or in AppEngine then you don't need 
  to use the LocalServiceTestHelper at all. The LocalExample only does that 
  as a demo of how to run it as a local executable or if you want to use it 
  within Junit.
  If you don't include such a line, like in GcsExampleServlet then it should 
  work as part of your deployed application.
 
 
  On Thu, Nov 21, 2013 at 3:41 PM, Ken Bowen k...@form-runner.com wrote:
  Thanks Tom.
  I went through pretty much the same servlet exercise a couple of hours 
  before seeing your post this afternoon.
  The problem was that I missed the point the the docs that the code /must/ 
  run in a servlet.
  (I'm not clear where it's stated, but I guessed from the comment about the 
  test harness in LocalExample.)
  I assumed that it would be ok to run in a deployed app on AppEngine.
  Thanks again,
  --Ken
 
  On Nov 21, 2013, at 2:51 PM, Tom Kaitchuck wrote:
 
   Using the 1.8.8 version of the SDK and depending on appengine-gcs-client 
   0.3.3, the following servlet based on your above example works:
  
   public class GcsTest extends HttpServlet {
 private void writeToFile(GcsService gcsService, GcsFilename 
   fullGcsFilename, byte[] content)
 throws IOException {
   System.out.println(writeToFile:full= + fullGcsFilename.toString());
   GcsOutputChannel outputChannel =
   gcsService.createOrReplace(fullGcsFilename, 
   GcsFileOptions.getDefaultInstance());
   outputChannel.write(ByteBuffer.wrap(content));
   outputChannel.close();
 }
  
  
 private byte[] readFromFile(GcsService gcsService, GcsFilename 
   fullGcsFilename)
 throws IOException {
   System.out.println(readFromFile:full

[google-appengine] Issue with Cloud Storage GCS API on local Development Server

2013-11-19 Thread ken
I've encountered a problem using the Google Cloud Storage GCS Client API, 
running on the local development server.  I'm trying to write the bytes 
from a PDF file, and then read them back.  

The code appears to write the (local fake)GCS file ok: (1) There appears to 
be an appropriate entry in the Development Console, and (2) there's a 
physical file in ~war/WEB-APP/appengine-generated (details below). 
 However, when I attempt to read the bytes from the GCS file, it throws a 
FileNotFound exception when it attempts to get the metadata (filesize).

First, here's the core code, versions of GCS client read/write, with my 
debugging stmts left in for reference:

private void writeToFile(GcsFilename fullGcsFilename, byte[] content) 
throws IOException 
{
System.out.println(writeToFile:full=+fullGcsFilename.toString());
GcsOutputChannel outputChannel =
  gcsService.createOrReplace(fullGcsFilename, 
GcsFileOptions.getDefaultInstance());
outputChannel.write(ByteBuffer.wrap(content));
outputChannel.close();
}

private byte[] readFromFile(GcsFilename fullGcsFilename) 
throws IOException 
{
System.out.println(readFromFile:full=+fullGcsFilename.toString());
int fileSize = (int) 
gcsService.getMetadata(fullGcsFilename).getLength();   [*][Exception thrown 
here]
ByteBuffer result = ByteBuffer.allocate(fileSize);
GcsInputChannel readChannel = 
gcsService.openReadChannel(fullGcsFilename, 0);
try {
  readChannel.read(result);
} finally {
  readChannel.close();
}
return result.array();
}

Here's the debugging output (in/out filenames appear to be the same):

writeToFile:full=GcsFilename(formrunnerbucket-r7yh23nb2, 
FA/MasterFormStore-6649846324789248)


readFromFile:full=GcsFilename(formrunnerbucket-r7yh23nb2, 
FA/MasterFormStore-6649846324789248)


Here's the observed results:

IN ~war/WEB-APP/appengine-generated:

-rw-r--r--  1 ken  staff  1679407 Nov 19 09:19 
encoded_gs_key:L2dzL2Zvcm1ydW5uZXJidWNrZXQtcjd5aDIzbmIyL0ZBL01hc3RlckZvcm1TdG9yZS02NjQ5ODQ2MzI0Nzg5MjQ4
This is the expected PDF file, which can be opened (with Preview on a Mac).


In the Development Console (http://localhost:/_ah/admin/datastore):
In __GsFileInfo__ (in the empty Namespace)

Key: 
ag5mb3JtcnVubmVyLWhyZHJ7CxIOX19Hc0ZpbGVJbmZvX18iZ2VuY29kZWRfZ3Nfa2V5OkwyZHpMMlp2Y20xeWRXNXVaWEppZFdOclpYUXRjamQ1YURJemJtSXlMMFpCTDAxaGMzUmxja1p2Y20xVGRHOXlaUzAyTmpRNU9EUTJNekkwTnpnNU1qUTQM

ID/Name: 
encoded_gs_key:L2dzL2Zvcm1ydW5uZXJidWNrZXQtcjd5aDIzbmIyL0ZBL01hc3RlckZvcm1TdG9yZS02NjQ5ODQ2MzI0Nzg5MjQ4

content_type: application/octet-stream

filename: 
 /gs/formrunnerbucket-r7yh23nb2/FA/MasterFormStore-6649846324789248

size: 1679407

[[The ID/Name appears to be identical to the filename appearing in 
~war/WEB-APP/appengine-generated]]

---
In the Development Console (http://localhost:/_ah/admin/datastore), in 
Namespace 5629499534213120 (where everything ran):
In _ah_FakeCloudStorate_formrunnerbucket-r7yh23nb2:

Key: 
ag5mb3JtcnVubmVyLWhyZHJZCxIwX2FoX0Zha2VDbG91ZFN0b3JhZ2VfX2Zvcm1ydW5uZXJidWNrZXQtcjd5aDIzbmIyIiNGQS9NYXN0ZXJGb3JtU3RvcmUtNjY0OTg0NjMyNDc4OTI0OAyiARA1NjI5NDk5NTM0MjEzMTIw

ID/Name:  FA/MasterFormStore-6649846324789248

options: Blob: 483 bytes

---
Here's the exception thrown in readFromFile above, at:

int fileSize = (int) gcsService.getMetadata(fullGcsFilename).getLength();   
[*][Exception thrown here]

java.lang.RuntimeException: java.io.FileNotFoundException
at com.formrunner.pdf.PDFMaker.makePDFfromFormInstance(PDFMaker.java:132)
.
Caused by: java.io.FileNotFoundException
at 
com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java:614)
at 
com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:593)
at 
com.google.appengine.api.files.FileServiceImpl.stat(FileServiceImpl.java:383)
at 
com.google.appengine.tools.cloudstorage.dev.LocalRawGcsService.getObjectMetadata(LocalRawGcsService.java:215)
at 
com.google.appengine.tools.cloudstorage.GcsServiceImpl$2.run(GcsServiceImpl.java:73)
at 
com.google.appengine.tools.cloudstorage.GcsServiceImpl$2.run(GcsServiceImpl.java:70)
at 
com.google.appengine.tools.cloudstorage.RetryHelper.doRetry(RetryHelper.java:93)
at 
com.google.appengine.tools.cloudstorage.RetryHelper.runWithRetries(RetryHelper.java:138)
at 
com.google.appengine.tools.cloudstorage.GcsServiceImpl.getMetadata(GcsServiceImpl.java:70)
at 
com.formrunner.data.GoogleCloudStorage.readFromFile(GoogleCloudStorage.java:62)
at 
com.formrunner.data.GoogleCloudStorage.getBytesAt(GoogleCloudStorage.java:55)
at com.formrunner.db.MasterFormStore.getContent(MasterFormStore.java:92)
at com.formrunner.forms.FormUtils.getFormBlob(FormUtils.java:314)
at com.formrunner.pdf.PDFUtils.getPDFDocFromInstance(PDFUtils.java:50)
at com.formrunner.pdf.PDFMaker.makePDFfromFormInstance(PDFMaker.java:75)

It may be worth noting that the LocalExample from the GCS Client API runs 
fine, but does not leave any trace

[google-appengine] add-on Google Cloud Storage to an existing GAE project

2013-11-12 Thread ken
Hi,
I'm attempting to add-on Google Cloud Storage to an existing GAE project, 
but am confused about whether I've succeeded.

1. I visited  https://cloud.google.com/console#/project , clicked the 
checkbox for one of my projects (ABC), clicked the Create Project button, 
validated my phone# via TextMessage, and validated my email address by 
clicking the return link in the validating email, and got the resulting 
confirmation.

2. I turned on billing.

3. So at this point I have a project

https://cloud.google.com/console#/project/apps~xxx-yyy-nnn

Under Permissions, I can add the other users from the original GAE project.
Under APIs, these are ON: BigQuery, Google Cloud, Google Cloud Storage, 
Google Cloud Storage JSON API.
I've also been able to run the LocalExample in Eclipse within our original 
project ABC.

But nowhere in the Google Cloud Console do I see any mention of the 
original project ABC which I checked at the beginning of the setup 
process.  The goal is to store data from that project in GCS.

What am I missing?
Thanks in advance,
Ken Bowen

-- 
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] Adding a single subdomain -- almost but not quite

2013-08-28 Thread ken

Something isn't working quite right here, but it's odd.  I'll review what's 
going on, using the real domains/accounts, etc.

* formrunner-hrd.appspot.com is being served on the naked domain 
form-runner.com (DNS on DreamHost).

* The following CNAME entry is in the form-runner.com DNS on DH , and is 
currently being served:

dvm.form-runner.comCNAME   ghs.googlehosted.com.

   However, browsing to dvm.form-runner.com gets a 404 from Google: The 
requested URL / was not found on this server. 

* The subdomain dvm.form-runner.com is registered/installed in the Form 
Runner Google Apps account:

DOMAIN STATUS
form-runner.com Primary Domain
Redirect the naked domain http://form-runner.com to 
http://www.form-runner.com

dvm.form-runner.com Verified.

   In one browser tab, I'm logged into Form Runner Google Apps account as 
Admin (ken at form-runner.com).

* In another tab, I'm logged into the AppEngine console for formrunner-hrd 
(as ken at form-runner.com, also an admin)

* I go to Application Settings  Domain Setup, and click Add Domain

* I enter dvm.form-runner.com in the Domain Name: textfield, and click Add 
Domain…

* I'm taken to 
https://accounts.google.com/AccountChooser?service=CPanelcontinue=https%3A%2F%2Fadmin.google.com%2Fdvm.form-runner.com%2FAddAppEngineService%3FappId%3Dformrunner-hrdhl=en

which shows:

Select an account 
 --
|   Ken Bowen
|   ken at form-runner.com 
-- 

Sign in with another email address

|
---
Continue

NOTHING will get me off this page.  There are no other address options in 
the top box (click on arrow).  Clicking on my name in the top box just 
comes back here.  (re-)typing my address in the lower box and continuing 
just comes back here.

This is a swamp.  How do I get over it to finish up setting up 
dvm.form-runner.com as a domain on which formrunner-hrd.appspot.com is 
served?  [Note that there is a (crude) version   
dvm.formrunner-hrd.appspot.com   which contains the Google Apps ownership 
verification tag in it's head, and which runs as 
 dvm.formrunner-hrd.appspot.com.].

Thanks, --Ken

-- 
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] Adding a single subdomain -- almost but not quite

2013-08-28 Thread Ken Bowen
At a somewhat different appengine address.

On Aug 28, 2013, at 1:45 PM, Barry Hunter wrote:

  https://appengine.google.com/a/form-runner.com/ 

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


Re: [google-appengine] Adding a single subdomain -- almost but not quite

2013-08-28 Thread Ken Bowen

After posting, I discovered

http://support.google.com/a/bin/answer.py?hl=enanswer=182081

which seems to say that what I want is not permitted.  Sorry for using the 
bandwidth.


-- 
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] Wildcard subdomain mapping for custom domains

2013-08-27 Thread Ken Bowen
Yes, my regular domain (foo.com) is installed/registered in our Google Apps 
account, and browsing to foo.com properly invokes myapp.appspot.com -- sorry, I 
should have mentioned that.
   One question before I go forward with your instructions for wildcarding:  I 
really only have a fixed number of subdomains (aa, bb, cc) that I want to 
handle, mapping aa.foo.com, bb.foo.com, etc. to aa.myapp.appspot.com,  
bb.myapp.appspot.com, etc. Instead of installing a *, is it possible to install 
the individual subdomains only?

Thanks much,
--Ken

On Aug 26, 2013, at 9:55 PM, Vinny P wrote:

 On Mon, Aug 26, 2013 at 12:51 PM, k...@form-runner.com wrote:
 I would like to be able to map subdomains as described
 However, I don't find a way of doing that on the new interface for Google 
 Apps.  When I 
 login as Admin on our Google Apps account, and go to 
   https://admin.google.com/AdminHome#Domains: 
   --then click Add a domain or a domain alias
   --click Add another domain
   --enter  *  in the text field
   --click Continue and verify domain ownership
 I get the error message:
   These characters are not allowed: *
 
 What am I missing?
 Is it still possible to perform wildcard subdomain mapping for custom domains 
 as described in top link above?
  
  
  
 You can do it, but you're going through the wrong path.
  
 First of all, is your regular domain served via Google Apps? So for example, 
 if the subdomain you wanted to serve was subdomain.example.com, is your 
 example.com domain registered with Google Apps? If not, you'll need to sign 
 up for an Apps accounts using your domain name.
  
 Secondly, to associate the subdomain, you need to go to (from your app) 
 Application Settings  Domain Setup  click the Add Domain button. You'll see 
 a textbox for the domain to add. Put in your domain, NOT a asterisk. On the 
 next page you'll see options for putting in a subdomain, put an asterisk in 
 the next box presented.
  
  
 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL
 
 App Engine Code Samples: http://www.learntogoogleit.com
 
  
 
 -- 
 You received this message because you are subscribed to a topic in the Google 
 Groups Google App Engine group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-appengine/9eWg8-J9taA/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 google-appengine+unsubscr...@googlegroups.com.
 To post to this group, send email to google-appengine@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/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] Wildcard subdomain mapping for custom domains

2013-08-26 Thread ken
Hi,

I would like to be able to map subdomains as described on

https://developers.google.com/appengine/docs/domain#more_about_wildcard_subdomain_mapping

In Step 5 just above the referenced above, it is stated:

To serve your app on all subdomains within a given higher-level subdomain, 
you can use wildcard subdomain mapping: enter an asterisk in place of the 
lowest-level name. For example, entering * will cause your app to be served 
on all subdomains within your registered domain.

However, I don't find a way of doing that on the new interface for Google 
Apps.  When I 
login as Admin on our Google Apps account, and go to 
https://admin.google.com/AdminHome#Domains: 
--then click Add a domain or a domain alias
--click Add another domain
--enter  *  in the text field
--click Continue and verify domain ownership
I get the error message:
These characters are not allowed: *

What am I missing?
Is it still possible to perform wildcard subdomain mapping for custom 
domains as described in top link above?

-- 
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 BILLING IS SERIOUSLY MESSED UP

2013-08-16 Thread Ken Bowen
I also got 
couldn't process a payment with your Visa…...for $0.02 on Aug 4, 
2013.  

It's a Citicard that has been on the GAE account for many months (and the card 
has be in continual use for over 10 years).  I only got the email yesterday 
(8/15).  I called Citibank.  They checked and stated that the charge was 
presented on Aug 3, and that it was approved, and there were no presentations 
or transactions showing on the 4th.

I managed to fix it by going to Billing  Billing Settings, and clicking the 
Edit next to the Primary (and only form of payment), then clicking OK, and then 
clicking Activate this … (or whatever it actually said.)  In 5-10 minutes, 
the Billing Settings and Billing Status pages looked correct, and I was able to 
make a manual payment (for 0.03) which showed on Billing Transactions.

So I got over it.  But this is NOT that way an organization which claims to be 
world-class should treat it's customers.

I can't prove it, but I believe that my setup for running our GAE app off a 
custom domain was broken by this.  But I'll post that separately.

--Ken

-- 
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] Will I be able to create a Google App (static hosting) with a domain name I used as an alias on a Google Apps for Business primary domain?

2013-03-06 Thread Ken Langston
So if I...
1. Started a Google Apps for Business plan with aaa.com (example) and 
updated MX email settings on GoDaddy
2. Then added bbb.com as an *alias domain* and updated MX email settings on 
GoDaddy

Will I be able to set up static hosting for both domains as Google Apps 
(appspot) with their real domain names (not an appspot subdomain)?

Thanks all for your help!

-- 
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: how can i delete a google apps for business account?

2013-01-16 Thread Ken Button
I need to figure this out too.  We've tried for weeks to get just a few 
more Google Apps for Business accounts and nobody at Google responds or is 
there to help us. There is no option to buy more accounts.  We have 60 
accounts and need another 5 and I can't get Google to take another $500... 
My boss wants to go back to email where we can click an 'add user' button 
and pay for it at that point.  I'm embarrassed and shocked Google doesn't 
have the means to add more Accounts.  So now... I need to know how to 
cancel them all so we can go with someone else.

On Monday, August 8, 2011 11:18:39 AM UTC-4, saintthor wrote:

 i only want to add a domain for my gae. and registered a apps for 
 BUSINESS by mistake. 

 once i sign in, there is a page says: 

 Sorry, we had an error processing your signup for Google Apps for 
 Business. Please complete the registration page again. 

 then can not go to any other page. 

 i can not complete the registration. i want to delete the mistake 
 account. 

 help me.

-- 
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/-/e_FA_0e1VvEJ.
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] Cancel of deploy using the Eclipse Plugin didn't cancel

2011-11-09 Thread Ken Kahn
After the console displayed

Preparing to deploy:
Created staging directory at: 'C:\Users\Ken\AppData\Local\Temp
\appcfg928847376792477628.tmp'

I clicked 'Cancel'.

It continued as can seen below despite the fact that it prints User
cancelled

Scanning for jsp files.
User cancelled
Scanning files on local disk.
User cancelled
Scanned 250 files.
User cancelled
Scanned 500 files.
User cancelled
Scanned 750 files.
User cancelled
Scanned 1000 files.
User cancelled
Scanned 1250 files.
User cancelled
Scanned 1500 files.
User cancelled
Scanned 1750 files.
User cancelled
Scanned 2000 files.
User cancelled
Scanned 2250 files.
User cancelled
Scanned 2500 files.
User cancelled
Scanned 2750 files.
User cancelled
Scanned 3000 files.
User cancelled
Scanned 3250 files.
User cancelled
Scanned 3500 files.
User cancelled
Scanned 3750 files.
User cancelled
Scanned 4000 files.
User cancelled
Scanned 4250 files.
User cancelled
Scanned 4500 files.
User cancelled
Initiating update.
User cancelled
Cloning 768 static files.
User cancelled
Cloned 100 files.
User cancelled
Cloned 200 files.
User cancelled
Cloned 300 files.
User cancelled
Cloned 400 files.
User cancelled
Cloned 500 files.
User cancelled
Cloned 600 files.
User cancelled
Cloned 700 files.
User cancelled
Cloning 3892 application files.
User cancelled
Cloned 100 files.
User cancelled
Cloned 200 files.
User cancelled
Cloned 300 files.
User cancelled
Cloned 400 files.
User cancelled
Cloned 500 files.
User cancelled
Cloned 600 files.
User cancelled
Cloned 700 files.
User cancelled
Cloned 800 files.
User cancelled
Cloned 900 files.
User cancelled
Cloned 1000 files.
User cancelled
Cloned 1100 files.
User cancelled
Cloned 1200 files.
User cancelled
Cloned 1300 files.
User cancelled
Cloned 1400 files.
User cancelled
Cloned 1500 files.
User cancelled
Cloned 1600 files.
User cancelled
Cloned 1700 files.
User cancelled
Cloned 1800 files.
User cancelled
Cloned 1900 files.
User cancelled
Cloned 2000 files.
User cancelled
Cloned 2100 files.
User cancelled
Cloned 2200 files.
User cancelled
Cloned 2300 files.
User cancelled
Cloned 2400 files.
User cancelled
Cloned 2500 files.
User cancelled
Cloned 2600 files.
User cancelled
Cloned 2700 files.
User cancelled
Cloned 2800 files.
User cancelled
Cloned 2900 files.
User cancelled
Cloned 3000 files.
User cancelled
Cloned 3100 files.
User cancelled
Cloned 3200 files.
User cancelled
Cloned 3300 files.
User cancelled
Cloned 3400 files.
User cancelled
Cloned 3500 files.
User cancelled
Cloned 3600 files.
User cancelled
Cloned 3700 files.
User cancelled
Cloned 3800 files.
User cancelled

Deploying:
Uploading 84 files.
User cancelled
Uploaded 21 files.
User cancelled
Uploaded 42 files.
User cancelled
Uploaded 63 files.
User cancelled
Uploaded 84 files.
User cancelled
Initializing precompilation...
User cancelled
Precompiling... 9 file(s) left.
User cancelled
Deploying new version.
User cancelled

Verifying availability:
Will check again in 1 seconds.
User cancelled
 on backend null.
User cancelled
java.lang.RuntimeException: java.lang.InterruptedException: sleep
interrupted

-- 
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: You do not have permission to modify this app

2011-09-19 Thread Ken Bowen
Duh!  Didn't realize I was incorrectly logged in to the Eclipse
plugin. Sorry for the clutter.

-- 
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] You do not have permission to modify this app

2011-09-15 Thread Ken Bowen
I've got a problem trying to upload to a newly created application
named 'wnaccess' in the applications for applied-logic-systems.com;
I'm in the role of application Owner.

Based on some searches, I ensured that the file .appcfg_cookies is not
present in my home directory.

I also ensured that:
Google Apps Manager Dashboard login was successful as
ken.bo...@applied-logic-systems.com

Google App Engine My Applications login was successful as
ken.bo...@applied-logic-systems.com at
https://appengine.google.com/a/applied-logic-systems.com

I'm currently running SDK version 1.5.0 in the Eclipse plugin.
With the two logins above currently active in different browser tabs,
I attempted to upload to the new application 'wnaccess' for the first
time.  The result on the console was this:

Created staging directory at: '/var/folders/EM/EMFo-6hIHsqSzUcUq--t1E++
+TI/-Tmp-/appcfg1791187681661511906.tmp'
Scanning for jsp files.
Scanning files on local disk.
Scanned 250 files.
Scanned 500 files.
Initiating update.
java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=wnaccessversion=1;
403 Forbidden
You do not have permission to modify this app (app_id=u'wnaccess').

Note that it did not ask me for an email or password.
I've worked on GAE applications for another company for a couple of
years, and I can't see what I'm doing differently here.
Can anyone help me figure out what is going wrong here or what my
mistake is?
Thanks in advance,
Ken

-- 
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] can't access my application at appspot.com

2011-07-11 Thread Ken Favières
I have just deployed a test application kfcbook (containing just a
hello-world message) on google application engine. The application's
id is kfcbook. However, although I can locally run it as
http://localhost:8080/kfcbook, I can't access it through its public
URL http://kfcbook.appspot.com. My IE8 browser throws the usual HTTP
404 error message.

I am using:
appengine-java-sdk-1.5.1
apache-ant-1.8.2
jdk1.6.0_26; jre6

I've read a lot of stuff on the internet about this issue, but haven't
found any solution.
Would you please tell me what I'm doing wrong or whether there is some
kind of connecting problem with appspot.com?

Thanks in advance,
Ken.

-- 
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] Problem following HOW TO: Build a SOAP Server tutorial

2011-03-02 Thread ken
I'm attempting to follow the Server part of Mitch Rudominer's tutoral
HOW TO: Build a SOAP Server and a SOAP Client on Google App Engine
(http://code.google.com/appengine/articles/soap.html)  but ran into a
problem early on.
My platform:  MacBook with Java 1.6.0_22 and Eclipse Helios R1 with
AppEngine 1.4.2.
I followed the tutoral by cut/paste, except for naming the project --
for convenience giving it a name already set up on GAE but as yet
unused.  For ref, here is my runwsgen.sh:

#!/bin/bash
class=com.example.Greeter
clpth='./war/WEB-INF/classes'
resourcedir='./war'
outsourcedir='./src'
outdir='./war/WEB-INF/classes'
wsgen -cp $clpth -wsdl -keep -r $resourcedir -d $outdir -s
$outsourcedir  $class

When I attempt to execute runwsgen.sh I get the following exception:

$ sh runwsgen.sh
Problem encountered during annotation processing;
see stacktrace below for more information.
com.sun.tools.internal.ws.processor.modeler.ModelerException: [failed
to localize] A web service endpoint could not be found()
at
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:
215)
at
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:
322)
at
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:
256)
at com.sun.mirror.apt.AnnotationProcessors
$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
at com.sun.tools.apt.main.Main.compile(Main.java:1102)
at com.sun.tools.apt.main.Main.compile(Main.java:964)
at com.sun.tools.apt.Main.processing(Main.java:95)
at com.sun.tools.apt.Main.process(Main.java:85)
at com.sun.tools.apt.Main.process(Main.java:67)
at
com.sun.tools.internal.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:
209)
at com.sun.tools.internal.ws.wscompile.WsgenTool.run(WsgenTool.java:
112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:111)
at com.sun.tools.internal.ws.WsGen.main(WsGen.java:41)
error: compilation failed, errors should have been reported

The com.example.Greeter source and class are present as described.
Nothing is generated, in particular, no WSDL file is created.   I'll
appreciate any pointers in getting past this.
Thanks in advance ...Ken

-- 
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: Problem following HOW TO: Build a SOAP Server tutorial

2011-03-02 Thread ken
Solved: My cut/paste mangled the @WebService annotation

On Mar 2, 2:11 pm, ken kbowe...@gmail.com wrote:
 I'm attempting to follow the Server part of Mitch Rudominer's tutoral
 HOW TO: Build a SOAP Server and a SOAP Client on Google App Engine
 (http://code.google.com/appengine/articles/soap.html)  but ran into a
 problem early on.
 My platform:  MacBook with Java 1.6.0_22 and Eclipse Helios R1 with
 AppEngine 1.4.2.
 I followed the tutoral by cut/paste, except for naming the project --
 for convenience giving it a name already set up on GAE but as yet
 unused.  For ref, here is my runwsgen.sh:

 #!/bin/bash
 class=com.example.Greeter
 clpth='./war/WEB-INF/classes'
 resourcedir='./war'
 outsourcedir='./src'
 outdir='./war/WEB-INF/classes'
 wsgen -cp $clpth -wsdl -keep -r $resourcedir -d $outdir -s
 $outsourcedir  $class

 When I attempt to execute runwsgen.sh I get the following exception:

 $ sh runwsgen.sh
 Problem encountered during annotation processing;
 see stacktrace below for more information.
 com.sun.tools.internal.ws.processor.modeler.ModelerException: [failed
 to localize] A web service endpoint could not be found()
         at
 com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.onError 
 (WebServiceAP.java:
 215)
         at
 com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildMo 
 del(WebServiceAP.java:
 322)
         at
 com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process 
 (WebServiceAP.java:
 256)
         at com.sun.mirror.apt.AnnotationProcessors
 $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
         at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
         at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
         at com.sun.tools.apt.main.Main.compile(Main.java:1102)
         at com.sun.tools.apt.main.Main.compile(Main.java:964)
         at com.sun.tools.apt.Main.processing(Main.java:95)
         at com.sun.tools.apt.Main.process(Main.java:85)
         at com.sun.tools.apt.Main.process(Main.java:67)
         at
 com.sun.tools.internal.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:
 209)
         at com.sun.tools.internal.ws.wscompile.WsgenTool.run(WsgenTool.java:
 112)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:111)
         at com.sun.tools.internal.ws.WsGen.main(WsGen.java:41)
 error: compilation failed, errors should have been reported

 The com.example.Greeter source and class are present as described.
 Nothing is generated, in particular, no WSDL file is created.   I'll
 appreciate any pointers in getting past this.
 Thanks in advance ...Ken

-- 
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] Please help: ClassNotFoundException: com.google.appengine.tools.enhancer.Enhance

2010-12-13 Thread ken
Hi, all:
I'm a newbie to google app engine.
After install GAE eclipse plugin, and create a Google Web
application project, it immediately reports error: Could not find the
main class: com.google.appengine.tools.enhancer.Enhance. Program
exit.

In the console:
Exception in thread Main Thread 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.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

I tested this with Eclipse 3.6/3.5, GAE 1.4/1.3, both report above
error.

Run the guestbook provided in the SDK, it would report the
following error:
javax.jdo.JDOUserException: Persistent class Class
guestbook.Greeting does not seem to have been enhanced.  You may want
to rerun the enhancer and check for errors in the output. has no
table in the database, but the operation requires it. Please check the
specification of the MetaData for this class.
...
Caused by:
Persistent class Class guestbook.Greeting does not seem to have been
enhanced.  You may want to rerun the enhancer and check for errors in
the output. has no table in the database, but the operation requires
it. Please check the specification of the MetaData for this class.
org.datanucleus.store.exceptions.NoTableManagedException: Persistent
class Class guestbook.Greeting does not seem to have been enhanced.
You may want to rerun the enhancer and check for errors in the
output. has no table in the database, but the operation requires it.
Please check the specification of the MetaData for this class.

Could anybody help on this, I would really very appreciate...

-- 
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] Re: bytes array into file

2010-11-01 Thread Ken Traub
Re #1, are you saying you'd like to be able to read your byte[] array
as you would a file, without actually creating a file in the
filesystem?  In that case, you should be able to use
java.io.ByteArrayInputStream.

-- 
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: 500 error accessing http://appengine.google.com/

2010-09-14 Thread Ken Liu
I'm getting errors in the console as well.

On Tue, Sep 14, 2010 at 12:51 PM, Jason C jason.a.coll...@gmail.com wrote:
 We're still seeing problems on the console.

 We're also seeing a large number for DownloadError ApplicationError 5
 (i.e., from urlfetch). (appid steprep)

 j

 On Sep 14, 8:37 am, Raymond C. windz...@gmail.com wrote:
 Its better now but still happens occasionally

 On Sep 14, 8:54 pm, James jamesk...@gmail.com wrote:



  While things seem to have stabilized, trying to deploy earlier this
  morning seems to have hung a deployment of mine.  I now get an
  error:

  Another transaction by user xxx is already in progress for this app
  and major version. That user can undo the transaction with appcfg.py's
  rollback command.

  I'm mentioning this for the GAE team just in case this NEEDS to be
  done.  Otherwise I'm content to just push out a different major
  version and eventually delete the stalled one.  I'm doing it this way
  because I use Java so I don't have the rollback command handy.

  James

  On Sep 14, 7:44 am, James jamesk...@gmail.com wrote:

   Right now.  Also can't deploy (Rolling back update error).

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



[appengine-java] Logging during JUnit tests in NetBeans with the GAE plugin

2010-05-27 Thread Ken
Logging works fine in the production environment.  I put my
logging.properties file in the right place and told GAE where to find
it and all is fine.

Now, when I try to use the same logging.properties file during my
JUnit tests it is completely ignored.  I'm not sure how to tell ant to
use it.  I've included it in a manually created target:

target name=test depends=compile-tests,compile,dist
description=Runs all the JUnit tests 
mkdir dir=${build.test.results.dir} /
echo message=JVM Args: ${runmain.jvmargs} /
junit printsummary=on haltonfailure=no showoutput=true
timeout=12 fork=true forkmode=perTest 
classpath
pathelement path=${run.tests.classpath}/
pathelement path=${javac.test.classpath} /
dirset dir=${build.test.classes.dir} /
dirset dir=${build.classes.dir} /
dirset dir=${build.generated.dir} /
/classpath

formatter type=brief usefile=false /
formatter type=xml /

batchtest fork=yes todir=${build.test.results.dir}
fileset dir=test
include name=**/*Test.java/
exclude name=**/AllTests.java/
/fileset
/batchtest
jvmarg line=${runmain.jvmargs} /
/junit
/target

Where runmain.jvmargs=-Djava.util.logging.config.file=web/WEB-INF/
classes/logging.properties

And that is that actual location of the file.

Does someone see a problem with this?  I'm running it through
NetBeans, but I don't think that should matter.  It doesn't work at
the command line either.

Any help would be appreciated.

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] Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I have a very simple Groovy on Grails application installed that uses
only a single table.  The application is really just the scaffolded
edits on this table with very few modifications to make it work.  So
it doesn't really do anything.

About one in five clicks result in an error.  The exception is a Hard
Deadline Exceeded and there is a warning about the CPU limit as well.
Randomly a request will take around 30 seconds of CPU for no reason.
There is no change in the code.  There is no change to the data.  The
exact same request will return with essentially no latency and then it
will take 30 seconds of CPU.

I thought this might be some kind of weirdness with Grails, but there
are several issues listed that seem to be related to same issue:

http://code.google.com/p/googleappengine/issues/detail?id=2621
http://code.google.com/p/googleappengine/issues/detail?id=2840
http://code.google.com/p/googleappengine/issues/detail?id=2691
http://code.google.com/p/googleappengine/issues/detail?id=2837
http://code.google.com/p/googleappengine/issues/detail?id=2846

I've stared them all because they all are likely related to the same
problem I'm having.

I was hoping that someone here knew what was going on and might be
able to help me resolve it.  In one of the messages above someone
mentions moving an application to another shard to solve the
problem.  What does this mean?  Is it really a potential solution?

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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-07 Thread Ken
This is happening to me in a Groovy on Grails application, but it
doesn't seem to be a loading problem.  Even if I'm clicking through
the application I get these kinds of problems randomly.  Probably one
out of every five clicks fails if I wait for it to.  Grails uses
Spring underneath so maybe this is the same issue.



On Mar 4, 10:49 am, Wong lhw...@gmail.com wrote:
 Now I get this 500 error quite frequently. See the log below in Admin
 Console. I believe this is different from HardDeadlineExceededError
 problem (exceeded 30 seconds limit) as there wasn't any
 HardDeadlineExceededError exception logged in log.  The site was
 accessed by one user, hence the simultaneous dynamic request limit (30
 requests) shouldn't have exceeded. Any idea?

-- 
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: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I was just looking in the logs after making numerous requests to my
application.  Something is seriously wrong.  I'm even having high CPU
on static files.  In one request it took 45 seconds of CPU to return
the favicon.ico file.  I guess this is really related to starting a
server instance, but if that's true then the server is going down
after only a few seconds of use.  It is starting the server handling a
request and a few seconds later dropping the server.  It isn't even
staying up a minute.

On Mar 7, 3:13 pm, Ken evotur...@gmail.com wrote:
 I have a very simple Groovy on Grails application installed that uses
 only a single table.  The application is really just the scaffolded
 edits on this table with very few modifications to make it work.  So
 it doesn't really do anything.

 About one in five clicks result in an error.  The exception is a Hard
 Deadline Exceeded and there is a warning about the CPU limit as well.
 Randomly a request will take around 30 seconds of CPU for no reason.
 There is no change in the code.  There is no change to the data.  The
 exact same request will return with essentially no latency and then it
 will take 30 seconds of CPU.

 I thought this might be some kind of weirdness with Grails, but there
 are several issues listed that seem to be related to same issue:

 http://code.google.com/p/googleappengine/issues/detail?id=2621http://code.google.com/p/googleappengine/issues/detail?id=2840http://code.google.com/p/googleappengine/issues/detail?id=2691http://code.google.com/p/googleappengine/issues/detail?id=2837http://code.google.com/p/googleappengine/issues/detail?id=2846

 I've stared them all because they all are likely related to the same
 problem I'm having.

 I was hoping that someone here knew what was going on and might be
 able to help me resolve it.  In one of the messages above someone
 mentions moving an application to another shard to solve the
 problem.  What does this mean?  Is it really a potential solution?

 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I am getting HardDeadlineExceededErrors.  What do you mean that the
instance will be disposed?  What can I do about it?

Thank you.

On Mar 7, 5:18 pm, John Patterson jdpatter...@gmail.com wrote:
 If there are errors like HardDeadlineExceededError then the server  
 instance will be disposed.  Could this be the problem?

 On 8 Mar 2010, at 05:09, Ken wrote:



  I was just looking in the logs after making numerous requests to my
  application.  Something is seriously wrong.  I'm even having high CPU
  on static files.  In one request it took 45 seconds of CPU to return
  the favicon.ico file.  I guess this is really related to starting a
  server instance, but if that's true then the server is going down
  after only a few seconds of use.  It is starting the server handling a
  request and a few seconds later dropping the server.  It isn't even
  staying up a minute.

  On Mar 7, 3:13 pm, Ken evotur...@gmail.com wrote:
  I have a very simple Groovy on Grails application installed that uses
  only a single table.  The application is really just the scaffolded
  edits on this table with very few modifications to make it work.  So
  it doesn't really do anything.

  About one in five clicks result in an error.  The exception is a Hard
  Deadline Exceeded and there is a warning about the CPU limit as well.
  Randomly a request will take around 30 seconds of CPU for no reason.
  There is no change in the code.  There is no change to the data.  The
  exact same request will return with essentially no latency and then  
  it
  will take 30 seconds of CPU.

  I thought this might be some kind of weirdness with Grails, but there
  are several issues listed that seem to be related to same issue:

 http://code.google.com/p/googleappengine/issues/detail?id=2621http://...
  ?id=2840http://code.google.com/p/googleappengine/issues/detail?id=2691http://...
  ?id=2837http://code.google.com/p/googleappengine/issues/detail?id=2846

  I've stared them all because they all are likely related to the same
  problem I'm having.

  I was hoping that someone here knew what was going on and might be
  able to help me resolve it.  In one of the messages above someone
  mentions moving an application to another shard to solve the
  problem.  What does this mean?  Is it really a potential solution?

  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-java@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://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: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
Actually my app is written in Groovy on Grails.  It is supposed to be
supported by App Engine and seems to work OK, with a few warts and
this problem.  Unfortunately it means I probably don't have as much
control over application start up times as I might with another
framework.

Is there any way to increase the amount of time my app is allowed to
spend spinning up?  If not, then app engine really doesn't support
Groovy on Grails.  We should probably note this stuff somewhere.

On Mar 7, 6:08 pm, John Patterson jdpatter...@gmail.com wrote:
 The Jetty server is not used again after an error so another one has  
 to be spun-up for you next request.  The only thing you can do about  
 it is tackle the HDEEs which is not always easy.  It sounds like they  
 might be due to long start-up time?

 If so there are a number of tactics you can use to reduce this:

 Use lazy initialization as much as possible.
 Split your app into a user facing version and an admin version that  
 share the same datastore
 If you use Guice try using the non-AOP version that does not enhance  
 classes at startup
 Spring - not sure but others mentioned turning off classpath scanning
 Try reducing external jar dependencies - not sure how much affect  
 loading these has

 If the cause of the HDEEs is that your requests take a long time then  
 you'll need to reduce processing time

 Try using the Deferred class:

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 On 8 Mar 2010, at 05:37, Ken wrote:



  I am getting HardDeadlineExceededErrors.  What do you mean that the
  instance will be disposed?  What can I do about it?

  Thank you.

  On Mar 7, 5:18 pm, John Patterson jdpatter...@gmail.com wrote:
  If there are errors like HardDeadlineExceededError then the server
  instance will be disposed.  Could this be the problem?

  On 8 Mar 2010, at 05:09, Ken wrote:

  I was just looking in the logs after making numerous requests to my
  application.  Something is seriously wrong.  I'm even having high  
  CPU
  on static files.  In one request it took 45 seconds of CPU to return
  the favicon.ico file.  I guess this is really related to starting a
  server instance, but if that's true then the server is going down
  after only a few seconds of use.  It is starting the server  
  handling a
  request and a few seconds later dropping the server.  It isn't even
  staying up a minute.

  On Mar 7, 3:13 pm, Ken evotur...@gmail.com wrote:
  I have a very simple Groovy on Grails application installed that  
  uses
  only a single table.  The application is really just the scaffolded
  edits on this table with very few modifications to make it work.  
  So
  it doesn't really do anything.

  About one in five clicks result in an error.  The exception is a  
  Hard
  Deadline Exceeded and there is a warning about the CPU limit as  
  well.
  Randomly a request will take around 30 seconds of CPU for no  
  reason.
  There is no change in the code.  There is no change to the data.  
  The
  exact same request will return with essentially no latency and then
  it
  will take 30 seconds of CPU.

  I thought this might be some kind of weirdness with Grails, but  
  there
  are several issues listed that seem to be related to same issue:

 http://code.google.com/p/googleappengine/issues/detail?id=2621http://
  ...
  ?id=2840http://code.google.com/p/googleappengine/issues/detail?id=2691http://
  ...
  ?id=2837http://code.google.com/p/googleappengine/issues/detail?id=2846

  I've stared them all because they all are likely related to the  
  same
  problem I'm having.

  I was hoping that someone here knew what was going on and might be
  able to help me resolve it.  In one of the messages above someone
  mentions moving an application to another shard to solve the
  problem.  What does this mean?  Is it really a potential solution?

  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-java@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://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-java@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://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

[appengine-java] HTTPRequestPoster - problem

2010-01-23 Thread ken
Hi all,

I'm working in Eclipse 3.5 using the most recent Google plugin 3.5.
I am attempting to use HTTPRequestPoster to send post data from an app
(with the server running on http://localhost:/) to a Tomcat server
running on port 8080 the same machine (MacBook pro).I can
successfully send info as a Get (and get a response) with the
following code:

String urlString = http://localhost:8080/tester/TestService;;
String getParams = id=mmsendgrp=Dummymsg=dummy
message;
HTTPRequestPoster rp = new HTTPRequestPoster();
String responseToGet = rp.sendGetRequest(urlString,
getParams);
System.out.println(Response-toGet=+ responseToGet);

However, where callingRequest is a fully instantiated Bean with String
fields and one ArrayListString, the following code doesn't work
because it doesn't insert any Post data in the request:

StringWriter sw = new StringWriter();
try {
HTTPRequestPoster.postObject(callingRequest, urlString, sw);
} catch (Exception e) {
e.printStackTrace();
}
String ResponseToPost = sw.toString();

In the doPost method on the receiving Tomcat, the following code shows
0 bytes:

InputStream inStream = request.getInputStream();
int nbytes = inStream.available();
System.out.println(# bytes available = +nbytes);

What is the problem here?
Thanks in advance,
Ken Bowen

-- 
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] Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken

Hi,

I seem to have an issue with the Google Plugin Hosted Mode and
java.net on a Mac OS X 10.5.8.
I have Eclipse Galilio with:
Google App Engine Java SDK 1.2.5
Google Plugin for Eclipse 3.5
Google Web Toolkit SDK 1.7.0

I created a new default GWT/AppEngine project (both checked) named
TestOne with package minman.
I set out to try to add a simple URL Fetch call to the generated entry
point class TestOne.java.
In the class TestOne.java, the only added code is these additional
imports at the top:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

The Eclipse editor does NOT complain about these.
I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.

However, when I try to Debug or Run the TestOne app, the Google Web
Tookit Hosted Mode panel shows the following (in red after the first):

Initializing AppEngine server
Loading an instance of module 'testone'
   Refreshing module from source
  Validating new compiled units
 Removing Units with errors
Errors in 'file:/blah...blah/TestOne/src/minman/client/
TestOne.java
   Line 6: The import java.net cannot be resolved
   Line 7: The import java.net cannot be resolved
.etc

[Of course, the app works ok without the 2 'import java.net.*'  lines
listed above.]

Also, I have code in other Java projects including those two import
lines and which compiles and runs fine under Eclipse 3.3.

Can this be resolved??

Thanks in advance,
Ken Bowen
--~--~-~--~~~---~--~~
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: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken

Actually, it was a test of just having a button issue a URL Fetch (to
a public web service).
I shouldn't think that one would have to RPC first to a service,
depending of course on what was really going to be accomplished.  In
this case, I was going to extend this to a simple GET with an attached
query which was intended to trigger a certain action in the target
(non-Google-App) server, and the return value from the GET was to be
trivial (probably just a boolean).
  Of course, if the GET was going to obtain significant data for
processing, then it makes sense to issue the URL Fetch from the first
through the server which is going to process it.

Let me know if the App Engine architecture really requires me to run
my case via RPC through the App server too.  {I've posted to the GWT
list about the original question too.}

Thanks,
Ken

On Sep 21, 3:34 pm, Toby Reyelts to...@google.com wrote:
 Hey Ken,

 As Jason says, the Eclipse plugin does not directly support validation of
 GWT code, so you only see an error after running Hosted Mode. If you use've
 intended this to be just server code, you should pull it up out of the GWT
 client package you currently have it in.



 On Mon, Sep 21, 2009 at 12:04 PM, ken kbowe...@gmail.com wrote:

  Hi,

  I seem to have an issue with the Google Plugin Hosted Mode and
  java.net on a Mac OS X 10.5.8.
  I have Eclipse Galilio with:
     Google App Engine Java SDK 1.2.5
     Google Plugin for Eclipse 3.5
     Google Web Toolkit SDK 1.7.0

  I created a new default GWT/AppEngine project (both checked) named
  TestOne with package minman.
  I set out to try to add a simple URL Fetch call to the generated entry
  point class TestOne.java.
  In the class TestOne.java, the only added code is these additional
  imports at the top:

  import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  import java.net.MalformedURLException;
  import java.net.URL;

  The Eclipse editor does NOT complain about these.
  I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.

  However, when I try to Debug or Run the TestOne app, the Google Web
  Tookit Hosted Mode panel shows the following (in red after the first):

  Initializing AppEngine server
  Loading an instance of module 'testone'
    Refreshing module from source
       Validating new compiled units
          Removing Units with errors
             Errors in 'file:/blah...blah/TestOne/src/minman/client/
  TestOne.java
                Line 6: The import java.net cannot be resolved
                Line 7: The import java.net cannot be resolved
  .etc

  [Of course, the app works ok without the 2 'import java.net.*'  lines
  listed above.]

  Also, I have code in other Java projects including those two import
  lines and which compiles and runs fine under Eclipse 3.3.

  Can this be resolved??

  Thanks in advance,
  Ken Bowen
--~--~-~--~~~---~--~~
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: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken

Thanks Toby,

And no surprise, moving my URL Fetch from the GWT client to the GWT
serverimpl makes it all work fine.
And from the GWT list:java.net package is not supported by GWT

Re: Jason's original comment, I'm not sure there's a bug to be filed.
It would be nice if the Plugin could distinguish GWT client classes
from all others (including GWT serverimpl classes) and validate
accordingly, but that might be some unpleasant work.

Thanks to all,
Ken

On Sep 21, 4:09 pm, Toby Reyelts to...@google.com wrote:
 Hi Ken,

 GWT and App Engine support two different sets of API, because they run on
 two entirely different platforms (someone's browser vs Google's cloud). To
 issue http requests from GWT, you can use
 RequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html?c...which
 delegates to your browser's implementation of XmlHttpRequest. To issue
 http requests from App Engine you can use java.net.URL or our FetchService
 directly.



 On Mon, Sep 21, 2009 at 3:54 PM, ken kbowe...@gmail.com wrote:

  Actually, it was a test of just having a button issue a URL Fetch (to
  a public web service).
  I shouldn't think that one would have to RPC first to a service,
  depending of course on what was really going to be accomplished.  In
  this case, I was going to extend this to a simple GET with an attached
  query which was intended to trigger a certain action in the target
  (non-Google-App) server, and the return value from the GET was to be
  trivial (probably just a boolean).
       Of course, if the GET was going to obtain significant data for
  processing, then it makes sense to issue the URL Fetch from the first
  through the server which is going to process it.

  Let me know if the App Engine architecture really requires me to run
  my case via RPC through the App server too.  {I've posted to the GWT
  list about the original question too.}

  Thanks,
  Ken

  On Sep 21, 3:34 pm, Toby Reyelts to...@google.com wrote:
   Hey Ken,

   As Jason says, the Eclipse plugin does not directly support validation of
   GWT code, so you only see an error after running Hosted Mode. If you
  use've
   intended this to be just server code, you should pull it up out of the
  GWT
   client package you currently have it in.

   On Mon, Sep 21, 2009 at 12:04 PM, ken kbowe...@gmail.com wrote:

Hi,

I seem to have an issue with the Google Plugin Hosted Mode and
java.net on a Mac OS X 10.5.8.
I have Eclipse Galilio with:
   Google App Engine Java SDK 1.2.5
   Google Plugin for Eclipse 3.5
   Google Web Toolkit SDK 1.7.0

I created a new default GWT/AppEngine project (both checked) named
TestOne with package minman.
I set out to try to add a simple URL Fetch call to the generated entry
point class TestOne.java.
In the class TestOne.java, the only added code is these additional
imports at the top:

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;

The Eclipse editor does NOT complain about these.
I'm using the Mac JVM 1.5.0 MacOS X default in Eclipse.

However, when I try to Debug or Run the TestOne app, the Google Web
Tookit Hosted Mode panel shows the following (in red after the first):

Initializing AppEngine server
Loading an instance of module 'testone'
  Refreshing module from source
     Validating new compiled units
        Removing Units with errors
           Errors in 'file:/blah...blah/TestOne/src/minman/client/
TestOne.java
              Line 6: The import java.net cannot be resolved
              Line 7: The import java.net cannot be resolved
.etc

[Of course, the app works ok without the 2 'import java.net.*'  lines
listed above.]

Also, I have code in other Java projects including those two import
lines and which compiles and runs fine under Eclipse 3.3.

Can this be resolved??

Thanks in advance,
Ken Bowen
--~--~-~--~~~---~--~~
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] makePersistent fails silently

2009-09-10 Thread Ken

I have a JDO class representing a tree of entities, somewhat like
this:

public class TreeNode {
 private String nodeName;
 private ListTreeNode children;
 ...
}

When I persist any such node to the datastore, the insert fails
silently.  The key of the object returned from makePersistent is null,
and no entities reside in the data viewer.

However, If I remove the 'children' field, or replace it with a list
of keys, then objects may be persisted, but I get a chicken-and-egg
problem when trying to create the entity key relationship, as the
child key is not available until its entity is persisted, which means
I cannot set the parent key on the child key after it has been
persisted.

Is this the expected behavior of the datastore?  Are classes w/ fields
of the same type allowed?  How would one persist a tree otherwise,
maintaining proper entity key parent/child relationships to ensure the
whole tree is available in a transaction?
--~--~-~--~~~---~--~~
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] why can't upload:java.lang.IllegalStateException: This HttpURLConnection has previously failed

2009-07-18 Thread ken

Unable to upload:
java.lang.IllegalStateException: This HttpURLConnection has previously
failed (and the error has been reported)
at com.oaklandsw.http.HttpURLConnection.getResponseStream(Unknown
Source)
at com.oaklandsw.http.HttpURLConnection.getInputStream(Unknown
Source)
at com.google.appengine.tools.admin.ServerConnection.connect
(ServerConnection.java:339)
at com.google.appengine.tools.admin.ServerConnection.getAuthToken
(ServerConnection.java:250)
at com.google.appengine.tools.admin.ServerConnection.authenticate
(ServerConnection.java:218)
at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:145)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:81)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:415)
at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction
(AppVersionUpload.java:229)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:98)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:53)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

--~--~-~--~~~---~--~~
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] HIPAA requirements vs. AppEngine security guidelines

2009-07-06 Thread Ken

Hi,

I'm researching the feasibility of running a healthcare app on the
AppEngine cloud.  I've read through the AE terms of service and they
don't say much about the actual security guidelines other than
deferring to the boilerplate Google security policy.  I have no doubt
there are internal documents detailing the exact security guarantees
provided by Google's infrastructure, but that information is not
readily available to the public.

It's been a full year since the last time HIPAA was discussed in this
group.  Now that SSL support has been enabled, data transfer
constraints can be met with ease.  So, what's the story today with GAE
and HIPAA compliance?  Are the App Engine's data storage and transfer
mechanisms compatible with the guidelines set out by HIPAA?

Google Apps documentation has quite a bit more security information,
such as specifying annual SAS 70 Type II audits.  I'm not familiar
with this particular security audit, but some quick research seems to
indicate that SAS 70 audit controls are mostly a superset of HIPAA
guidelines.  However, there are some aspects of HIPAA compliance that
seem to be difficult to implement in a distributed database system, so
any reassurances from the Google App Engine folks in this regard would
be most appreciated.

Thanks!

Ken

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



[google-appengine] Can I choose where in the world my app is hosted?

2009-05-19 Thread Ken

Hello,

I am going to develop an app for Chinese users. People in China always
suffer low connection speed to North American websites, while they
have a fast connection speed to local websites.

If I deploy my app on App Engine, where in the world my app will be
hosted? Can I make the choice to host my app on China servers?

I would appreciate if anyone from Google App Engine team could answer
my question. Thanks.

Ken

--~--~-~--~~~---~--~~
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] google-appengine@googlegroups.com

2009-04-20 Thread Ken Corey
Has anyone succeeded in using z3c.rml with AppEngine yet?  I've got a need
to create a complex and long document that something like a z3c.rml would be
much handier.

I've spent the best part of today trying (in vain) to get it simply working
on my windows command line, much less from within the SDK.

I checked out z3c.rml, zope.event, zope.i18nmessageid, zope.interface,
zope.schema.  I changed all the references to lxml to xml.etree.ElementTree,
so that it might work on Google AppEngine.  I copied the modules' source for
these various things into the rml2pdf working directory like it'd be under
AppEngine.

I set up pythonpath to point the the (seemingly) appropriate places, and
then tried several times running rml2pdf.py with this command line:

C:\Temp\z3c.rml\src\z3c\rmlpython rml2pdf.py tests\input\simple-layout.rml
Traceback (most recent call last):
 File rml2pdf.py, line 25, in module
   import document, interfaces
 File C:\Temp\z3c.rml\src\z3c\rml\document.py, line 26, in module
   from z3c.rml import attr, directive, interfaces, occurence
 File c:\temp\z3c.rml\src\z3c\rml\attr.py, line 36, in module
   from z3c.rml import interfaces
 File c:\temp\z3c.rml\src\z3c\rml\interfaces.py, line 138, in module
   class IDeprecatedDirective(zope.interface.interfaces.IInterface):
AttributeError: 'module' object has no attribute 'interfaces'

Do you know what that error means?  All this 'Interface' stuff has me more
than a little bemused as a complete Python newbie.

Thanks for any help you can give...

-Ken

--~--~-~--~~~---~--~~
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] using z3c.rml on AppEngine?

2009-04-20 Thread Ken Corey
Rats!  Scuppered the subject.  Sorry about the re-post!

Has anyone succeeded in using z3c.rml with AppEngine yet?  I've got a need
to create a complex and long document that something like a z3c.rml would be
much handier.

I've spent the best part of today trying (in vain) to get it simply working
on my windows command line, much less from within the SDK.

I checked out z3c.rml, zope.event, zope.i18nmessageid, zope.interface,
zope.schema.  I changed all the references to lxml to xml.etree.ElementTree,
so that it might work on Google AppEngine.  I copied the modules' source for
these various things into the rml2pdf working directory like it'd be under
AppEngine.

I set up pythonpath to point the the (seemingly) appropriate places, and
then tried several times running rml2pdf.py with this command line:

C:\Temp\z3c.rml\src\z3c\rmlpython rml2pdf.py tests\input\simple-layout.rml
Traceback (most recent call last):
 File rml2pdf.py, line 25, in module
   import document, interfaces
 File C:\Temp\z3c.rml\src\z3c\rml\document.py, line 26, in module
   from z3c.rml import attr, directive, interfaces, occurence
 File c:\temp\z3c.rml\src\z3c\rml\attr.py, line 36, in module
   from z3c.rml import interfaces
 File c:\temp\z3c.rml\src\z3c\rml\interfaces.py, line 138, in module
   class IDeprecatedDirective(zope.interface.interfaces.IInterface):
AttributeError: 'module' object has no attribute 'interfaces'

Do you know what that error means?  All this 'Interface' stuff has me more
than a little bemused as a complete Python newbie.

Thanks for any help you can give...

-Ken

--~--~-~--~~~---~--~~
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] running external applications

2009-04-13 Thread ken

I am in the early stages of developing a new web application and
Google App Engine is looking very enticing. However, part of my web
application involves the use of Subversion as a component of the
overall solution. (Note: I am actually using a subversion repository
as part of the solution, not just hosting the app's code itself in the
repository.)  I was wondering if Google App Engine has any means for
the hosting of external programs? Given that Subversion is written in
C/C++, and not Java or Python, I didn't see any way to run it within
Google App Engine. With a cloud computing service like EC2, I can
install anything I want on a VM. But I don't see this capability with
Google App Engine. The subversion repository wouldn't necessarily have
to be hosted right next to my Google App Engine web application, but
the network connectivity between the two would need to be fast and
cheap. (Faster and cheaper than standard internet connectivity.)
Private, for-a-fee usage of google code hosting might be feasible in
my particular scenario, if this option is even available, but I am
also interested in the general answer to the question of: I need to
be able to run application X written in language Y alongside my Google
App Engine web application. How can I do this?

Thanks,
Ken


--~--~-~--~~~---~--~~
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: logging level

2009-03-14 Thread Ken Tidwell

I was curious about logging load, as well, so I ran a few small tests.

It looks like it costs around 0.25 milliseconds per log call on the
production server. Which is not free but is very cheap.

But I also noticed that the development server takes a dive if you log
more than around 500 times in response to a single request. Haven't
investigated why that might be but it did explain some puzzling hangs
I had when debugging over-logged code.

The production server has no such issues and happily logged as many as
10,000 times in a single request. The load time rose to around 0.4
milliseconds per log in this test, though.

I was also duly chastised in the log entry for using so much CPU in a
single request. I'm still puzzling over the CPU usage claims. This
10,000 log entries test seems to complete in around 0.786 seconds wall
clock time (using Pythons time module to record start and end time of
the request then taking the difference) but is charged 3948ms in CPU.
Which seems odd.

--~--~-~--~~~---~--~~
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] AE 1.1.7 defines has_key on db.Model

2008-12-01 Thread Ken Tidwell

Apparently, some bright spark has defined a has_key method on db.Model.

Doing so will preclude the creation of any Model derived from or 
emulating dictionary classes (such as UserDict or DictMixin).

The has_key method in question does not follow the same semantics as 
has_key on dict so the choice of name is unfortunate, to say the least.

Any chance the method could be renamed to something less toxic and more 
suggestive of its actual function (such as key_complete)?

ken

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] No next 20 when filtering by Kind in Data Viewer

2008-09-27 Thread Ken Rimey


Could somebody please say whether they are seeing a next 20 link in
the Data Viewer when viewing entities by Kind?  I am being shown just
19 entities even when there are hundreds, as confirmed by a GQL query.

This pertains to Issue #424, which Google says they can't reproduce.

Ken Rimey


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---