[google-appengine] javax.el.PropertyNotFoundException

2012-06-24 Thread Shiho Wakita
Hi, I got this error when trying to display some values in jsp:
...
Caused by: javax.el.PropertyNotFoundException: Could not find property sTime in 
class com.xxx
at javax.el.BeanELResolver.toBeanProperty(BeanELResolver.java:430)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:290)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:231)
at org.apache.el.parser.AstValue.getValue(AstValue.java:123)
at org.apache.el.parser.AstFunction.getValue(AstFunction.java:101)
... 73 more

The class that is said its property sTime was not found actually has a getter 
method;
public String getSTime() {
return sTime;
}
and when I changed the method name to
public String getsTime() {
return sTime;
}
it's working fine.

I believe the method name "getSTime" is the name it should be and assume this 
is a bug.
Could anyone please suggest where I should post this?

Thanks.

-- 
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: appcfg upload data to localhost problems

2012-06-24 Thread Mahron
https://groups.google.com/group/google-appengine/browse_thread/thread/18c24f04ae3e897b/84af2c76f0571686?lnk=gst&q=not+saving+data#84af2c76f0571686

I got if fixed with 1.1.6.
I uninstalled the previous version(thing I did not do before) and
installed the new.
If I close it with the launcher it's fine.
Now the data only disappears when windows decides to restart my
computer in the middle of the night.

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



[google-appengine] how many db ops does it cost when accessing a ndb entity with a StructuredProperty?

2012-06-24 Thread saintthor
are there a more ops for the StructuredProperty?

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



Re: [google-appengine] TransientError on Text Search API ?

2012-06-24 Thread John Wheeler
Steve,

I'm running across this error now with the same code pretty much, except 
I'm trying to sort by a DateField. Did you ever find out how to get around 
this?

Thanks,
John

On Monday, May 14, 2012 7:07:15 AM UTC-7, Steve Qian wrote:
>
> Here is my search query code, currently it works without 
> 'sort_options' in query_options. 
>
> sort_opts = search.SortOptions(expressions=[ 
> search.SortExpression(expression='magnitude', 
> direction=search.SortExpression.DESCENDING, default_value=0) 
>  ],limit=1000) 
> query_options = search.QueryOptions(limit=limit, 
> cursor=cursor, ids_only=True, sort_options=sort_opts) 
> query_obj = search.Query(query_string=query_string, 
> options=query_options) 
> results = 
> search.Index(name=cls._INDEX_NAME).search(query=query_obj) 
>
> Here is how I build the search index from a model 
>
> doc = search.Document(doc_id=self.key.id(), 
> fields=[search.TextField(name='text', value=self.text), 
> search.TextField(name='full_name', 
> value=self.full_name), 
> search.TextField(name='source', value=self.source), 
> search.NumberField(name='magnitude', 
> value=self.magnitude), 
> search.DateField(name='created', 
> value=self.created.date())]) 
> search.Index(name=self._INDEX_NAME).add(doc) 
>
>
> Steve Qian 
>
>
>
> On Mon, May 14, 2012 at 8:54 PM, Sun Jing  wrote: 
> > I also got this error sometime if I mixed ascii char and Chinese char 
> (in 
> > UTF-8 encode). 
> > 
> > On Mon, May 14, 2012 at 4:58 PM, Amy Unruh  
> wrote: 
> >> 
> >> Steve, 
> >> 
> >> Can you provide more info (e.g. example code) showing how you built the 
> >> query object that you used for the search? 
> >> 
> >>  -Amy 
> >> 
> >> On 12 May 2012 20:05, Steve Qian  wrote: 
> >>> 
> >>> 
> >>> I keep getting the following TransientError when doing a search query. 
> >>> 
> >>> Anyone experience the same error? Is there a problem with the service? 
>  
>  
> results = 
> search.Index(name=cls._INDEX_NAME).search(query=query_obj) 
>    File 
>  
> "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/search/search.py",
>  
>
>  line 2487, in search 
>  _CheckStatus(response.status()) 
>  
>  
>  
>    File 
>  
> "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/search/search.py",
>  
>
>  line 443, in _CheckStatus 
>  raise _ERROR_MAP[status.code()](status.error_detail()) 
>  TransientError 
> >>> 
> >>> 
> >>> 
> >>> Steve 
> >>> 
> >>> -- 
> >>> 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/-/7Yt0VM1sBdAJ. 
> >>> To post to this group, send email to google-appengine@googlegroups.com. 
>
> >>> To unsubscribe from this group, send email to 
> >>> google-appengine+unsubscr...@googlegroups.com. 
> >>> For more options, visit this group at 
> >>> http://groups.google.com/group/google-appengine?hl=en. 
> >> 
> >> 
> >> -- 
> >> You received this message because you are subscribed to the Google 
> Groups 
> >> "Google App Engine" group. 
> >> To post to this group, send email to google-appengine@googlegroups.com. 
>
> >> To unsubscribe from this group, send email to 
> >> google-appengine+unsubscr...@googlegroups.com. 
> >> For more options, visit this group at 
> >> http://groups.google.com/group/google-appengine?hl=en. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Google App Engine" group. 
> > To post to this group, send email to google-appengine@googlegroups.com. 
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com. 
> > For more options, visit this group at 
> > http://groups.google.com/group/google-appengine?hl=en. 
>

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



Re: [google-appengine] Re: appcfg upload data to localhost problems

2012-06-24 Thread Moises Belchin
Thanks for the link.

I leave here my steps and I hope this will help other users.

1. Uninstall google appengine and delete all appengine directories on
C:\Program files and C:\Users\
2. Delete the file
C:\Users\\AppData\Local\Temp\dev_appserver.datastore
3. Download latest release 1.6.6 and install it.
4. With appcfg I downloaded again my kinds and I uploaded to localhost.

Best regards and good luck :-)

Moisés Belchín.



2012/6/24 Mahron 

>
> https://groups.google.com/group/google-appengine/browse_thread/thread/18c24f04ae3e897b/84af2c76f0571686?lnk=gst&q=not+saving+data#84af2c76f0571686
>
> I got if fixed with 1.1.6.
> I uninstalled the previous version(thing I did not do before) and
> installed the new.
> If I close it with the launcher it's fine.
> Now the data only disappears when windows decides to restart my
> computer in the middle of the night.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

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



[google-appengine] Cant create new application

2012-06-24 Thread Vladimir Daf
Hello everybody. One application is already there. I'm trying to create a 
second. Requests that mobile phone number. When enter it, comes the answer:
There were errors:
Mobile Number or Username

The phone number has been sent too many messages or has already been used 
to confirm an account.

Why is it so? In fact can be created up to 10 applications, but I can not 
create 
a second.
Sorry for my english

-- 
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/-/FgpXyCbJK-AJ.
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: Add domain takes infinity loop pushed "Activate this service"

2012-06-24 Thread Doug Wood
I have been having the same problem over the last week. This is not the 
first time I have activated a GAE service [my own] to a google apps account 
- In order to host my google app engine service at myowndomain.com instead 
of myowndomain.appspot.com. Really frustrating

Doug

-- 
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/-/7MxUB1CSrqUJ.
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] Changing IPs

2012-06-24 Thread veggieCoder
Hello.  This is my first post here.  My company has a prospective client 
who wants to use our API to write an application that will query servers 
that we host, and they want to host their app using GAE.  Our servers 
collect the client IP, and if the same user attempts to connect from a 
different IP the first connection will be dropped.  Based on the reading 
I've done in this forum, it sounds like that might be a problem.  Is it 
accurate that one request from an application might be sent up from one IP, 
and a subsequent request might use a different IP?
 
Thanks in advance!

-- 
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/-/WVr-AEZdsboJ.
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] registered domain not working anymore: gives 404

2012-06-24 Thread greg____
Domain Name: my.invicket.com
Users Affected: yes
Problem Description: domain mapped to google app engine app (zodcampaign) 
Steps to Reproduce: visit my.invicket.com

When I try to access the control panel, I get a message telling me that the 
domain ins't hosted with google apps, and if I try to register it again I 
get "This domain has been registered and is in the process of ownership 
verification. If you believe this registration was unauthorized, please 
have your domain administrator contact Google support." 
I read on forum and FAQs it could be because the domain ownership was not 
verified. 
When I added the domain name, I did verify web site ownership using the TXT 
entry and it was confirmed. Here is the entry that was created. 
google-site-verification=B0Q60QcDB3HUOFy7n79B4HdoHeHsimC2AEE5jdr31ZI

I got confirmation from google app engine it was all fine. Then now all the 
sudden, visiting the page gives me a 404 error.
This is the second time it happens for this domain. The first time I may 
have missed the verification step. But the second time, I made sure to 
verify all the steps, including the domain ownership.

What's missing and how can i ensure it won't happen again?

I have this posted on the Google App help forum and was told to post here.

For this app, we had Billing enabled and it is not anymore: why is that?

Thanks,
Greg 

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



[google-appengine] URGENT GAE billing issue

2012-06-24 Thread draftpik

App Engine has shut off our nhldraftpik app due to the max daily budget 
being met.  I would like to increase the budget, but I am completely unable 
to change the billing limit.  It says:

Billing Status: Changing Daily Budget

Your account has been locked while we process your budget changes. If you 
were redirected to Google Checkout but did not complete the process, your 
settings will remain unchanged. *(You will be able to make changes to your 
budget settings again once the outstanding payment is processed.)*

*
*

Please advise ASAP what I can do to work around this serious failure of 
Google's billing system.


Thank you,


Brian

-- 
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/-/spCEFoA_PmkJ.
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: An error occurred while trying to install this application. Please try again later.

2012-06-24 Thread sychedelix
Up up I have the same problem...

On Friday, June 1, 2012 2:06:35 PM UTC, Pavel Yankelevich wrote:
>
> Since yesterday I'm trying to add my google app engine application to 
> my google apps account. 
> I tried to do it both from app engine and from apps side. Also, I 
> tried to change control panel type as it was advised in several older 
> posts. 
>
> Is somebody can help me with that issue? 
>
> Thank you in advance, 
> Pavel Yankelevich


On Friday, June 1, 2012 2:06:35 PM UTC, Pavel Yankelevich wrote:
>
> Since yesterday I'm trying to add my google app engine application to 
> my google apps account. 
> I tried to do it both from app engine and from apps side. Also, I 
> tried to change control panel type as it was advised in several older 
> posts. 
>
> Is somebody can help me with that issue? 
>
> Thank you in advance, 
> Pavel Yankelevich


On Friday, June 1, 2012 2:06:35 PM UTC, Pavel Yankelevich wrote:
>
> Since yesterday I'm trying to add my google app engine application to 
> my google apps account. 
> I tried to do it both from app engine and from apps side. Also, I 
> tried to change control panel type as it was advised in several older 
> posts. 
>
> Is somebody can help me with that issue? 
>
> Thank you in advance, 
> Pavel Yankelevich


On Friday, June 1, 2012 2:06:35 PM UTC, Pavel Yankelevich wrote:
>
> Since yesterday I'm trying to add my google app engine application to 
> my google apps account. 
> I tried to do it both from app engine and from apps side. Also, I 
> tried to change control panel type as it was advised in several older 
> posts. 
>
> Is somebody can help me with that issue? 
>
> Thank you in advance, 
> Pavel Yankelevich

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



Re: [google-appengine] Channel API and the development enviroment: Internet Explorer does not receive any messages

2012-06-24 Thread Dev
Not working on ie9

On Wednesday, December 8, 2010 8:26:56 PM UTC+5:30, keakon wrote:
>
> I've just test it with IE 6, works fine in my app:
> http://chat.latest.gaejava.appspot.com/
>
> --
> keakon
>
> My blog(Chinese): www.keakon.net
> Blog source code: https://bitbucket.org/keakon/doodle/
>
>
>
> On Wed, Dec 8, 2010 at 10:49 PM, Henric Persson 
> wrote:
>
>> Hi,
>>
>> I'm having problems receiving messages from the Channel API in
>> Internet Eplorer (tried versions 6, 7 and 8).
>>
>> On the client side, I can see that socket.onopen() is called. And from
>> the server there is no error when I call channelService.sendMessage().
>> But socket.onmessage is never called.
>>
>> I'm running this successfully with Google Chrome, Firefox, Safari. And
>> it works like a charm in the live appengine environment.
>>
>> Has anyone else had this problem?
>>
>> /Henric
>>
>> --
>> 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.
>>
>>
>
On Wednesday, December 8, 2010 8:26:56 PM UTC+5:30, keakon wrote:
>
> I've just test it with IE 6, works fine in my app:
> http://chat.latest.gaejava.appspot.com/
>
> --
> keakon
>
> My blog(Chinese): www.keakon.net
> Blog source code: https://bitbucket.org/keakon/doodle/
>
>
>
> On Wed, Dec 8, 2010 at 10:49 PM, Henric Persson 
> wrote:
>
>> Hi,
>>
>> I'm having problems receiving messages from the Channel API in
>> Internet Eplorer (tried versions 6, 7 and 8).
>>
>> On the client side, I can see that socket.onopen() is called. And from
>> the server there is no error when I call channelService.sendMessage().
>> But socket.onmessage is never called.
>>
>> I'm running this successfully with Google Chrome, Firefox, Safari. And
>> it works like a charm in the live appengine environment.
>>
>> Has anyone else had this problem?
>>
>> /Henric
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/iDEikqja2-MJ.
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] Doubt Concerning Efficient Entity Organization In DataStore

2012-06-24 Thread Sono G. De M
Hi,
I have some worries concerning entity design in the G. Datastore.
The non-relational organization of the Data Store kinds of complicates it, 
a little, to plan an efficient Entity design to organize your data.

In Particular, the Data Store seems to be governed by the concept that 
every entity-relationship implies that one of the entities is a parent of 
another. 
Of A and B are related, either A or B is a parent of the other. 
In short, the concept of composition if thrown complely down the can. All 
we have is a pseudo Super/Subclassing hierarchy that is implied between all 
entities.
The concept that B may exist by itself, and that A does not own B but 
instead simply knows of B does not seem to be there.

In the end, for now, this truns into the following difficulty.
Say that we have a data model comprised by the following two concepts:

(a) Types of Day, recursively related to itself in a hierarchical structure.
Tree illustration E.g :
--- Sunny
--  Hellish Suny
-- Cloudy Sunny
-- Rainy
--  Deluge
--  Heavy Rain (like the PS3 game)
-   Typical UK  Day
-- Stormy
-- Snowy
and so on.

In terms of pseudo code, this entiy Would be Something like
@PersistenceCapable
class DayType{
@PrimaryKey
@Persistable
   Key key; // key of app engine
@Persistable   
String name;
@Persistable
   DayTpe parent;
@Persistable(annotation maps to parent)
   HashSet children;  
}


(b) Then I would have some ocurrence record, which would record what type 
of day was registered (every day).
class DayRecord{
   KeyOfAppenGine key;
   Date ocurrenceDt;
   DayType  type;
}


Now, if i did something like this, I would not be able to persist my 
DayRecord enties. I would go as far as populating the DB with my DayType 
categories, but no further.
If I tried to do more, what I would see would be an exception saying that I 
could not register my DayRecord because this new entity would be trying to 
stamp itself as the parent of the DayType entity. 
For instance, it might tell me that  UK Typical Day already had been 
stamped with a parent relationship to Rainy Day and my trying to set it to 
the current DayRecord was an error. (In a relational model, however, this 
would have been solved with a simple forigen key on the DayRecord entity).


Anyway, when, in cases like this, where you have some generic classes like 
DayType to categorize you records it seems that you have no alternative but 
to imbue into your category class a property to make it a parent of your 
ocurrence records.
In this case, for example, I would have to enrich my DayType class with a 
new field say:
HashSet ocurrences;

This looks pretty scary to me, because if I ever need to load a DayType 
entity, I definatly do not to be bringing along with it almost the whole 
database simply because it has a map of DayRecords. Ever dayRecord for UK 
Typical Days would be comming a long, and we all know that it rains a lot 
over there. 


So, what is the best strategy here?
Is there a better way to model this. 
E.g. Ist it actually possible to have the DayType property set on the 
DayRecord without having appEnging trying to make a paret of  DayType?
Or do I simply need to make sure that I never load DayType entities, and 
that instead I shall run simple queries where I specifically identify the 
few properties of the DayType entity that I wish to see loaded?

Thank you for your help,
My kindest regards.

-- 
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/-/CJZdGXU0lk0J.
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] Adequate Entity Design In App Engine DataStore

2012-06-24 Thread Sono G. De M
Adequate Entity Design In App Engine Datastore

Hi, 
I would like to know if there is an adequate of efficiently modeling the 
following basic relationship in the Non Relational Data Model of the Data 
Store App Engine.

Say we have a data model with the following two concepts:

(1) DayType, which is defined recursively based on itself.
E.g. Of Day Type Tree Structure
(a) Rainy Day
(a.a) Typical UK Day
(a.b) Diluge
(b) Sunny Day
(a.a) Hell of a Day
(a.b) Snuy cloudy

And using JDO we could illustrate the entity as follows.
@PersistenceCapable
public class DayType  {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key; 
@Persistent()
private String name; 
@Persistent
DayType parent;
@Persistent (mappingto = "parent")
Set childre = new ...;
}


(2) We would also have the concep of DayRecord to keep track of days during 
the year.
@PersistenceCapable
public class DayRecord  {
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key; 
@Persistent()
private Date day; 
@Persistent
DayTpe type;
}


First problem,
With code like this we would only go as far as writing our DayType 
hierarchy.
After that, we would get an Exception telling us that DayRecords could not 
be persisted with the given DayTypes because the given DayTypes has already 
been stamped with their own parents. In a Relational Model we would just be 
creating a F.K on the DayRecord entity pointing to DayType. 

Anyway, To solve this enforced parent concept that is implied in the above 
code, and apparently in every App. Engine Entity Relationship, we would 
have to enrich the DayType entity wtih a new property so that it would own 
the relationship with DayRecord.
Thus DayType would be given
@Persistent
Set dayRecords;

And the DayRecord with have to say
@Persient (mappedbz dayRecods)
DayType type;

This way we would be able to solve all our entities.
But at the same time, this is scary, for it seems to imply that once I 
manpulate a DayType record, I will be loading almost the entire database 
along with because of its dayRecords property.


Is there a solution for this?
Or do I simply have to query the database, making that instead of loading 
the DayType entity I only read the relevant properties of DayType?


My kindest regards,
G. de M.

-- 
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/-/J6_wcGmpL5EJ.
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] Help needed ASAP!

2012-06-24 Thread Amy
I have been trying all day to use this app here  
http://blogger2wordpress.appspot.com/

I keep getting error messages. I've tried on different browsers, I'm on a 
Mac, but I"ve tried on a PC, and still cannot get the dang thing to work. 
Please help!!

-- 
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/-/oYFExea4b7YJ.
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] When will 'GAE sdk for java' support Java Web Services?

2012-06-24 Thread Joseph Hwang
I try to develop java web services with eclipse Indigo on google app 
engine. But gae sdk seems not to support java web services.
I don't know how to build and deploy java web services on gae with 
eclipse.and I can hardly find any related docu.
If I am right, kindly inform me of google's plan when to support java web 
services on gae with eclipse.

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



Re: [google-appengine] Re: Java instance startup time out of control

2012-06-24 Thread Jeff Schnitzer
Interesting.  From John Patterson's comments, it sounds like I can
remove bytecode generation by disabling the AOP stuff in Guice.
Unfortunate because I rely on interceptors pretty heavily, but I can
probably find an alternative.  Thanks for the suggestion; I will do
some experimentation.

We're now seeing startup times in 20-40s range in production, which
could be related to a big code refactoring we just pushed (not focused
on startup time) or could be coincidence.  At any rate we're not in
panic mode anymore.

Jeff

On Sat, Jun 23, 2012 at 8:26 PM, Rafael Dipold  wrote:
> Hi Jeff,
>
> I'm not so experienced with GAE like you (less than 1 year), but I would try
> to make my contribution.
>
> I have found in recent tests that Guice is a great villain of startup
> time. The Guice execute a bytecode generator
> (com.google.inject.internal.BytecodeGen newFastClass) classes for each
> startup and increases the start time by up to 13 seconds (only the Guice!!).
>
> Then I change my project to use PicoContainer instead of Guice and my
> startup decreased 11-12 seconds!
>
> Today I use Vraptor framework (http://vraptor.caelum.com.br/en) +
> PicoContainer + Objectify 4 with classpath scanning and my startup is in
> average 5 seconds.
>
> Follow my jars lib (34Mb):
>
> appengine-api-1.0-sdk-1.6.6.jar
> appengine-api-labs-1.6.6.jar
> appengine-jsr107cache-1.6.6.jar
> commons-fileupload-1.2.1.jar
> commons-io-1.3.2.jar
> gmultipart.jar
> guava-r07.jar
> hamcrest-all-1.2RC3.jar
> iogi-0.9.1.jar
> javassist-3.14.0.GA.jar
> json-20090211.jar
> jsr107cache-1.1.jar
> log4j-1.2.16.jar
> mirror-1.5.1.jar
> objectify-4.0a3.jar
> paranamer-2.2.jar
> picocontainer-2.13.6.jar
> scannotation-1.0.3.jar
> slf4j-api-1.6.1.jar
> slf4j-log4j12-1.6.1.jar
> vraptor-3.4.1.jar
> vraptor-gae.jar
> xstream-xstream-1.3.2-SNAPSHOT-GAE.jar
>
> --
> 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/-/-czBx6HdOsYJ.
>
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Re: how many db ops does it cost when accessing a ndb entity with a StructuredProperty?

2012-06-24 Thread Guido van Rossum
On Sunday, June 24, 2012 5:40:15 AM UTC-7, saintthor wrote:
>
> are there a more ops for the StructuredProperty?


StructuredProperty is essentially just a bunch of properties with funny 
names. The cost depends on how many indexed properties you have in total in 
an entity (including in structured properties). So e.g. these two (Flat and 
Nested) below have the same cost:

class Flat(ndb.Model):
  name = ndb.StringProperty()
  address_line1 = ndb.StringProperty()
  address_line2 = ndb.StringProperty()

and

class Addres(ndb.Model):
  line1 = ndb.StringProperty()
  line2 = ndb.StringProperty()

class Nested(ndb.Model):
  name = ndb.StringProperty()
  address = ndb.StructuredProperty(Address)

-- 
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/-/X0VKumjWFqIJ.
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: Large text files from blobstore are not being gzipped (AppEngine Java)

2012-06-24 Thread Emanuele Ziglioli
Thanks for that, I tried to setup Cloud Storage and thought that I could be 
on a free quota (we're already paying for GAE and didn't really want to pay 
again for something that GAE should be doing). Anyway, if there's a free 
quota for Cloud storage, I don't know how to enable it.
The cost of working around GAE's restrictions keeps increasing. 

On the upside, https has started to work for us on a custom domain, 
although with a certificate error.

On Saturday, 23 June 2012 05:23:02 UTC+12, Stephen Lewis wrote:
>
> Curiosity got the better of me, and I've just tried this - unfortunately, 
> it doesn't work. When serving from Google Storage using send_blob I 
> received the pre-gzipped content, but the Content-Encoding header was not 
> sent.
>
> You might want to try something with signed URLs (
> https://developers.google.com/storage/docs/accesscontrol#Signed-URLs). 
> I've just discovered that the edge cache in front of Google Storage will 
> actually *uncompress* pre-compressed content before serving it (which 
> would mess things up for you), but I suspect this this is a bug, and I also 
> imagine that it won't affect signed URLs.
>
> Stephen
>

>

-- 
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/-/kb69ZTJL384J.
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: Google to launch Amazon, Microsoft cloud rival at Google I/O

2012-06-24 Thread Emanuele Ziglioli
Google's strategies are mysterious.
Remember Wave? #nekminnit Buzz, then Plus
They keep throwing things to the wall.

On Saturday, 23 June 2012 10:09:40 UTC+12, Jon Stevens wrote:
>
>
> http://gigaom.com/2012/06/22/google-to-launch-amazon-microsoft-cloud-competitor-at-google-io-2012/
>
> Personally, I rather that Google just put those resources towards making 
> AppEngine better. The last thing in the world I want to do is be a sysadmin 
> and AppEngine is on the right path towards making that job title 
> unnecessary for many of us.
>

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



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread Emanuele Ziglioli
Hi Jeff,

https has started working for us last week on a custom domain, although 
with a certificate error.
I had request to be included in the trial but had not notification of that.

Previously I had had some success doing secure authentication with json-rpc 
and Cors:
https://groups.google.com/forum/?fromgroups#!topic/vosao-cms-development/cybFCgCvYt0

Support from browsers for Cors and cookies is spotty at this point in time 
but it almost works.
Basically I've implemented a servlet filter on a subpath and secured that 
with https. When I receive requests on that subdomain, I strip the /secure/ 
prefix and I redirect that request internally.
There's a useful Cors filter here: 
http://software.dzhuvinov.com/cors-filter.html

Emanuele 

On Wednesday, 20 June 2012 10:36:58 UTC+12, Jeff Schnitzer wrote:
>
> Yes, but - unless someone has rolled out a wonderful new feature 
> silently - you cannot make https requests to ghs.google.com.  The 
> "secure" setting only works on *.appspot.com. 
>
> Jeff 
>
> On Tue, Jun 19, 2012 at 2:48 PM, Hamilton Carter  
> wrote: 
> > Hi, 
> > 
> > I believe you can cause this to happen in your app.yaml file.  If you 
> have 
> > something like: 
> > 
> > url: .* 
> >   script: main.py 
> >   secure: always 
> > 
> > it might 'force' all accesses through https. 
> > 
> > Best Regards, 
> > Hamilton 
> > 
> > 
> > On Monday, June 18, 2012 12:41:29 PM UTC-5, emmett9001 wrote: 
> >> 
> >> I have an appengine app that uses Amazon Route53 as its nameserver. 
> I've 
> >> used Route53 to create a CNAME record of "ghs.google.com" for the 
> desired 
> >> subdomain. I've also used the google cpanel to link the subdomain to 
> the 
> >> app. Currently, the app is accessible at https://subdomain.domain.combut 
> >> not http://subdomain.domain.com - that is, it's accessible over HTTPS 
> but 
> >> not HTTP. Is there some misconfiguration in either Route53, Appengine, 
> or 
> >> the Google Apps control panel that might be causing this issue? Thanks 
> for 
> >> any help and insight. 
> > 
> > -- 
> > 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/-/Jlcu0ZEO9UcJ. 
> > 
> > To post to this group, send email to google-appengine@googlegroups.com. 
> > To unsubscribe from this group, send email to 
> > google-appengine+unsubscr...@googlegroups.com. 
> > For more options, visit this group at 
> > http://groups.google.com/group/google-appengine?hl=en. 
>

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



Re: [google-appengine] Re: Java instance startup time out of control

2012-06-24 Thread Jeff Schnitzer
Experiment #1:  JARing my classes.

Times are measured by shutting down instance, hitting a URL, looking
at request time in logs.  Repeat until bored.

First, the "control".  My app (sandbox appid), normally deployed
(classes in WEB-INF/classes):

21118ms
23849ms
35995ms
20556ms
21620ms
23718ms
34446ms
42948ms
22487ms
32722ms
34511ms
31883ms

Redeployed, same code but with classes JARed instead of in WEB-INF/classes:

19240ms
19386ms
19912ms
27517ms
20400ms
20483ms
20186ms
19517ms
20352ms
19528ms
20856ms

What's interesting is that this change didn't improve the best-case
load times by much, but it almost eliminated the crazy variance.  This
is a huge win.

Conclusion:  Use this ant script for deployment:
















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



Re: [google-appengine] Re: Java instance startup time out of control

2012-06-24 Thread Jeff Schnitzer
Oh, an added bonus:  Deployment is faster since it clones half the
number of files.

Jeff

On Sun, Jun 24, 2012 at 5:00 PM, Jeff Schnitzer  wrote:
> Experiment #1:  JARing my classes.
>
> Times are measured by shutting down instance, hitting a URL, looking
> at request time in logs.  Repeat until bored.
>
> First, the "control".  My app (sandbox appid), normally deployed
> (classes in WEB-INF/classes):
>
> 21118ms
> 23849ms
> 35995ms
> 20556ms
> 21620ms
> 23718ms
> 34446ms
> 42948ms
> 22487ms
> 32722ms
> 34511ms
> 31883ms
>
> Redeployed, same code but with classes JARed instead of in WEB-INF/classes:
>
> 19240ms
> 19386ms
> 19912ms
> 27517ms
> 20400ms
> 20483ms
> 20186ms
> 19517ms
> 20352ms
> 19528ms
> 20856ms
>
> What's interesting is that this change didn't improve the best-case
> load times by much, but it almost eliminated the crazy variance.  This
> is a huge win.
>
> Conclusion:  Use this ant script for deployment:
>
>        
>                
>                
>
>                
>                        
>                                
>                                 />
>                        
>                
>                 basedir="${classes.dir}" />
>
>                
>        

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



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread Cayden Meyer
Hi Emanuele,

Can you explain what you mean by this statement from your previous post?

> https has started working for us last week on a custom domain, although
> with a certificate error.
> I had request to be included in the trial but had not notification of
> that.


Thanks,

Cayden Meyer
Product Manager, Google App Engine


On 25 June 2012 08:31, Emanuele Ziglioli wrote:

> Hi Jeff,
>
> https has started working for us last week on a custom domain, although
> with a certificate error.
> I had request to be included in the trial but had not notification of that.
>
> Previously I had had some success doing secure authentication with
> json-rpc and Cors:
>
> https://groups.google.com/forum/?fromgroups#!topic/vosao-cms-development/cybFCgCvYt0
>
> Support from browsers for Cors and cookies is spotty at this point in time
> but it almost works.
> Basically I've implemented a servlet filter on a subpath and secured that
> with https. When I receive requests on that subdomain, I strip the /secure/
> prefix and I redirect that request internally.
> There's a useful Cors filter here:
> http://software.dzhuvinov.com/cors-filter.html
>
> Emanuele
>
> On Wednesday, 20 June 2012 10:36:58 UTC+12, Jeff Schnitzer wrote:
>>
>> Yes, but - unless someone has rolled out a wonderful new feature
>> silently - you cannot make https requests to ghs.google.com.  The
>> "secure" setting only works on *.appspot.com.
>>
>> Jeff
>>
>> On Tue, Jun 19, 2012 at 2:48 PM, Hamilton Carter 
>> wrote:
>> > Hi,
>> >
>> > I believe you can cause this to happen in your app.yaml file.  If you
>> have
>> > something like:
>> >
>> > url: .*
>> >   script: main.py
>> >   secure: always
>> >
>> > it might 'force' all accesses through https.
>> >
>> > Best Regards,
>> > Hamilton
>> >
>> >
>> > On Monday, June 18, 2012 12:41:29 PM UTC-5, emmett9001 wrote:
>> >>
>> >> I have an appengine app that uses Amazon Route53 as its nameserver.
>> I've
>> >> used Route53 to create a CNAME record of "ghs.google.com" for the
>> desired
>> >> subdomain. I've also used the google cpanel to link the subdomain to
>> the
>> >> app. Currently, the app is accessible at https://subdomain.domain.combut
>> >> not http://subdomain.domain.com - that is, it's accessible over HTTPS
>> but
>> >> not HTTP. Is there some misconfiguration in either Route53, Appengine,
>> or
>> >> the Google Apps control panel that might be causing this issue? Thanks
>> for
>> >> any help and insight.
>> >
>> > --
>> > 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/-/**Jlcu0ZEO9UcJ.
>>
>> >
>> > To post to this group, send email to google-appengine@googlegroups.**
>> com .
>> > To unsubscribe from this group, send email to
>> > google-appengine+unsubscribe@**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 view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/FOyZue1PMvwJ.
>
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

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



Re: [google-appengine] Re: Java instance startup time out of control

2012-06-24 Thread Jeff Schnitzer
Experiment #2:  Bigger better faster frontends

Using JARed classes, with F2 frontends:

19409ms
18516ms
17125ms
18056ms
17152ms
18708ms
28104ms
16821ms
18074ms
16859ms
18311ms

Small but noticeable improvement, maybe 10%?

Same deployment, with F4 frontend:

12063ms
9070ms
10037ms
8617ms
10024ms
10656ms
8871ms
9330ms
9019ms
9253ms

Hot damn!

I'm not entirely sure how to interpret these results.  An F4 is about
twice as fast as an F1.  This suggests the problem is significantly
computational.  Except that an F2 is more or less the same speed as an
F1, which suggests the problem is almost entirely I/O.

Maybe F2 instances aren't actually twice the CPU power of an F1?
Maybe F4 instances get some special I/O priority?  Anyone want to
speculate?

Jeff

On Sun, Jun 24, 2012 at 5:00 PM, Jeff Schnitzer  wrote:
> Experiment #1:  JARing my classes.
>
> Times are measured by shutting down instance, hitting a URL, looking
> at request time in logs.  Repeat until bored.
>
> First, the "control".  My app (sandbox appid), normally deployed
> (classes in WEB-INF/classes):
>
> 21118ms
> 23849ms
> 35995ms
> 20556ms
> 21620ms
> 23718ms
> 34446ms
> 42948ms
> 22487ms
> 32722ms
> 34511ms
> 31883ms
>
> Redeployed, same code but with classes JARed instead of in WEB-INF/classes:
>
> 19240ms
> 19386ms
> 19912ms
> 27517ms
> 20400ms
> 20483ms
> 20186ms
> 19517ms
> 20352ms
> 19528ms
> 20856ms
>
> What's interesting is that this change didn't improve the best-case
> load times by much, but it almost eliminated the crazy variance.  This
> is a huge win.
>
> Conclusion:  Use this ant script for deployment:
>
>        
>                
>                
>
>                
>                        
>                                
>                                 />
>                        
>                
>                 basedir="${classes.dir}" />
>
>                
>        

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



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread Emanuele Ziglioli


On Monday, 25 June 2012 12:15:08 UTC+12, Cayden Meyer wrote:
>
> Hi Emanuele, 
>
> Can you explain what you mean by this statement from your previous post? 
>
>> https has started working for us last week on a custom domain, although 
>> with a certificate error.
>>
>
I've noticed that https://www.ourdomain.com is now working.
Browsers warn us that the certificate is issued by google.com and not by 
ourdomain.com. So if accept that exception and go on it works fine. Please 
don't take it away...
 

> I had request to be included in the trial but had not notification of 
>> that. 
>
>
Sorry about my English :-) 
I had submitted a request to be added to the https trial but have never 
received an invitation.  
 

-- 
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/-/5_L_4NsVKpQJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



RE: [google-appengine] Re: Java instance startup time out of control

2012-06-24 Thread Brandon Wirtz
F4 Vs F2 Vs F1

I'll bet money, your numbers are right and your conclusion is wrong.  F4's
have more memory, and more CPU, and more "IO" but the difference I'm 90%
certain is that you get a whole VM all to yourself so your neighbors aren't
stealing from you. :-) so you get a crap ton more throughput.  Watch F4's
talk to memcache, It is a whole other beast.

Why didn't you test on an F8?  You can do some really, really fun things on
an F8. (which isn't really 4.8 GHZ :-) )  You move to an F4 with F8 backends
and you will see Appengine through the Rose Colored glasses Brandon does,
where the world is always happy, and the numbers never change, and life is
all sunshine and rainbows and unicorns .

It's all those lousy neighbors who load huge frame works, that Dead Line
Exceed on startups cook the CPU and the IO, and then crash only to start up
30 seconds later only to do it again... No losers trying to stuff 129 megs
of stuff in to memory along with 64 megs of startup over flowing and going
through re-spin up.

Nah, co-habitation sucks. Pony up the rent and kick out the room mates, your
life will be happier and you will get laid more often too.




> -Original Message-
> From: google-appengine@googlegroups.com [mailto:google-
> appeng...@googlegroups.com] On Behalf Of Jeff Schnitzer
> Sent: Sunday, June 24, 2012 5:59 PM
> To: google-appengine@googlegroups.com
> Subject: Re: [google-appengine] Re: Java instance startup time out of
control
>
> Experiment #2:  Bigger better faster frontends
>
> Using JARed classes, with F2 frontends:
>
> 19409ms
> 18516ms
> 17125ms
> 18056ms
> 17152ms
> 18708ms
> 28104ms
> 16821ms
> 18074ms
> 16859ms
> 18311ms
>
> Small but noticeable improvement, maybe 10%?
>
> Same deployment, with F4 frontend:
>
> 12063ms
> 9070ms
> 10037ms
> 8617ms
> 10024ms
> 10656ms
> 8871ms
> 9330ms
> 9019ms
> 9253ms
>
> Hot damn!
>
> I'm not entirely sure how to interpret these results.  An F4 is about
twice as
> fast as an F1.  This suggests the problem is significantly computational.
> Except that an F2 is more or less the same speed as an F1, which suggests
the
> problem is almost entirely I/O.
>
> Maybe F2 instances aren't actually twice the CPU power of an F1?
> Maybe F4 instances get some special I/O priority?  Anyone want to
> speculate?
>
> Jeff
>
> On Sun, Jun 24, 2012 at 5:00 PM, Jeff Schnitzer 
wrote:
> > Experiment #1:  JARing my classes.
> >
> > Times are measured by shutting down instance, hitting a URL, looking
> > at request time in logs.  Repeat until bored.
> >
> > First, the "control".  My app (sandbox appid), normally deployed
> > (classes in WEB-INF/classes):
> >
> > 21118ms
> > 23849ms
> > 35995ms
> > 20556ms
> > 21620ms
> > 23718ms
> > 34446ms
> > 42948ms
> > 22487ms
> > 32722ms
> > 34511ms
> > 31883ms
> >
> > Redeployed, same code but with classes JARed instead of in WEB-
> INF/classes:
> >
> > 19240ms
> > 19386ms
> > 19912ms
> > 27517ms
> > 20400ms
> > 20483ms
> > 20186ms
> > 19517ms
> > 20352ms
> > 19528ms
> > 20856ms
> >
> > What's interesting is that this change didn't improve the best-case
> > load times by much, but it almost eliminated the crazy variance.  This
> > is a huge win.
> >
> > Conclusion:  Use this ant script for deployment:
> >
> >        
> >                
> >                
> >
> >                
> >                        
> >                                
> >                                 > name="WEB-INF/appengine-generated/**" />
> >                        
> >                
> >                 > basedir="${classes.dir}" />
> >
> >                
> >        
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to google-
> appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.



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



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread johnP
I was assuming that this would be the 'big announcement' at the IO 
conference.  I guess you confirmed it :)




On Sunday, June 24, 2012 6:16:33 PM UTC-7, Emanuele Ziglioli wrote:
>
>
>
> On Monday, 25 June 2012 12:15:08 UTC+12, Cayden Meyer wrote:
>>
>> Hi Emanuele, 
>>
>> Can you explain what you mean by this statement from your previous post? 
>>
>>> https has started working for us last week on a custom domain, although 
>>> with a certificate error.
>>>
>>
> I've noticed that https://www.ourdomain.com is now working.
> Browsers warn us that the certificate is issued by google.com and not by 
> ourdomain.com. So if accept that exception and go on it works fine. 
> Please don't take it away...
>  
>
>> I had request to be included in the trial but had not notification of 
>>> that. 
>>
>>
> Sorry about my English :-) 
> I had submitted a request to be added to the https trial but have never 
> received an invitation.  
>  
>

-- 
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/-/SheOjERO6o8J.
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] Great Grandpa Query (yet another ancestor question)

2012-06-24 Thread gor
*Scenario 1:*
If I have a Great Grandpa ancestor (let's name him A); And my key is from 
"child1"; is there a way to check that my great grandpa is A? (hope I can 
do that without needing to loop)

Or can I check, if child1's key is of the path "A->B->C".
*A -> B -> C -> (child1, child2...)*

*Scenario 2:*
>From the above. Great Grandpa has another descendants from "G", and would 
like to retrieve "H"s children:

*A-> B -> C -> (children of C)*
*...-> G -> H -> (children of H)*

I like to retrieve "H"s children, thinking that Grandpa knows the path from 
A, G, to H... can I do that? (hope I can do this in a query, without 
looping)

If you have a Go1 example: that would be awesome... 

Thanks Google! and I love you!


-- 
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/-/uCfV7ATJABAJ.
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: Great Grandpa Query (yet another ancestor question)

2012-06-24 Thread timh
Hi

Here is one approach you could use.

In each entity store a list of paths of each parent.  ie in second scenario

H has a list property called parent_paths it would have the following 
values ['/a/g','/a'] and its children would have ['/a','/a/g','/a/g/h'] etc

Then given any entity you can fetch all levels of descendants. So in your 
example  you just need to query for any entity
that has '/a/g/h'  in its parent_paths.  This doesn't allow you to restrict 
depth though.

Cheers

Tim

On Monday, June 25, 2012 11:17:50 AM UTC+8, gor wrote:
>
> *Scenario 1:*
> If I have a Great Grandpa ancestor (let's name him A); And my key is from 
> "child1"; is there a way to check that my great grandpa is A? (hope I can 
> do that without needing to loop)
>
> Or can I check, if child1's key is of the path "A->B->C".
> *A -> B -> C -> (child1, child2...)*
>
> *Scenario 2:*
> From the above. Great Grandpa has another descendants from "G", and would 
> like to retrieve "H"s children:
>
> *A-> B -> C -> (children of C)*
> *...-> G -> H -> (children of H)*
>
> I like to retrieve "H"s children, thinking that Grandpa knows the path 
> from A, G, to H... can I do that? (hope I can do this in a query, without 
> looping)
>
> If you have a Go1 example: that would be awesome... 
>
> Thanks Google! and I love you!
>
>
>

-- 
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/-/S4rJviM4NEsJ.
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: Great Grandpa Query (yet another ancestor question)

2012-06-24 Thread gor
the parent_path property could work. thanks.

On Monday, June 25, 2012 11:49:12 AM UTC+8, timh wrote:
>
> Hi
>
> Here is one approach you could use.
>
> In each entity store a list of paths of each parent.  ie in second scenario
>
> H has a list property called parent_paths it would have the following 
> values ['/a/g','/a'] and its children would have ['/a','/a/g','/a/g/h'] etc
>
> Then given any entity you can fetch all levels of descendants. So in your 
> example  you just need to query for any entity
> that has '/a/g/h'  in its parent_paths.  This doesn't allow you to 
> restrict depth though.
>
> Cheers
>
> Tim
>
> On Monday, June 25, 2012 11:17:50 AM UTC+8, gor wrote:
>>
>> *Scenario 1:*
>> If I have a Great Grandpa ancestor (let's name him A); And my key is from 
>> "child1"; is there a way to check that my great grandpa is A? (hope I can 
>> do that without needing to loop)
>>
>> Or can I check, if child1's key is of the path "A->B->C".
>> *A -> B -> C -> (child1, child2...)*
>>
>> *Scenario 2:*
>> From the above. Great Grandpa has another descendants from "G", and would 
>> like to retrieve "H"s children:
>>
>> *A-> B -> C -> (children of C)*
>> *...-> G -> H -> (children of H)*
>>
>> I like to retrieve "H"s children, thinking that Grandpa knows the path 
>> from A, G, to H... can I do that? (hope I can do this in a query, without 
>> looping)
>>
>> If you have a Go1 example: that would be awesome... 
>>
>> Thanks Google! and I love you!
>>
>>
>>

-- 
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/-/JUa55BAGTfIJ.
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: Great Grandpa Query (yet another ancestor question)

2012-06-24 Thread timh
hi

If you store the depth of the path as an integer property of each child, 
you can then restrict you query by the depth below a parent as well.

Cheers

T

On Monday, June 25, 2012 12:35:11 PM UTC+8, gor wrote:
>
> the parent_path property could work. thanks.
>
> On Monday, June 25, 2012 11:49:12 AM UTC+8, timh wrote:
>>
>> Hi
>>
>> Here is one approach you could use.
>>
>> In each entity store a list of paths of each parent.  ie in second 
>> scenario
>>
>> H has a list property called parent_paths it would have the following 
>> values ['/a/g','/a'] and its children would have ['/a','/a/g','/a/g/h'] etc
>>
>> Then given any entity you can fetch all levels of descendants. So in your 
>> example  you just need to query for any entity
>> that has '/a/g/h'  in its parent_paths.  This doesn't allow you to 
>> restrict depth though.
>>
>> Cheers
>>
>> Tim
>>
>> On Monday, June 25, 2012 11:17:50 AM UTC+8, gor wrote:
>>>
>>> *Scenario 1:*
>>> If I have a Great Grandpa ancestor (let's name him A); And my key is 
>>> from "child1"; is there a way to check that my great grandpa is A? (hope I 
>>> can do that without needing to loop)
>>>
>>> Or can I check, if child1's key is of the path "A->B->C".
>>> *A -> B -> C -> (child1, child2...)*
>>>
>>> *Scenario 2:*
>>> From the above. Great Grandpa has another descendants from "G", and 
>>> would like to retrieve "H"s children:
>>>
>>> *A-> B -> C -> (children of C)*
>>> *...-> G -> H -> (children of H)*
>>>
>>> I like to retrieve "H"s children, thinking that Grandpa knows the path 
>>> from A, G, to H... can I do that? (hope I can do this in a query, without 
>>> looping)
>>>
>>> If you have a Go1 example: that would be awesome... 
>>>
>>> Thanks Google! and I love you!
>>>
>>>
>>>

-- 
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/-/mp0GXxN-Bb8J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread Emanuele Ziglioli
Well, https has suddenly stopped working.
That's classy

On Monday, 25 June 2012 12:15:08 UTC+12, Cayden Meyer wrote:
>
> Hi Emanuele, 
>
> Can you explain what you mean by this statement from your previous post? 
>
>> https has started working for us last week on a custom domain, although 
>> with a certificate error.
>> I had request to be included in the trial but had not notification of 
>> that. 
>
>
> Thanks,
>
> Cayden Meyer
> Product Manager, Google App Engine
>
>
>

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



Re: [google-appengine] Re: App Accessible via HTTPS but not HTTP

2012-06-24 Thread Emanuele Ziglioli
...should have kept my bloody mouth shut, that'll teach me, ay

On Monday, 25 June 2012 16:59:19 UTC+12, Emanuele Ziglioli wrote:
>
> Well, https has suddenly stopped working.
> That's classy
>
> On Monday, 25 June 2012 12:15:08 UTC+12, Cayden Meyer wrote:
>>
>> Hi Emanuele, 
>>
>> Can you explain what you mean by this statement from your previous post? 
>>
>>> https has started working for us last week on a custom domain, although 
>>> with a certificate error.
>>> I had request to be included in the trial but had not notification of 
>>> that. 
>>
>>
>> Thanks,
>>
>> Cayden Meyer
>> Product Manager, Google App Engine
>>
>>
>>

-- 
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/-/rIKrF8NDU5AJ.
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: Channel API and the development enviroment: Internet Explorer does not receive any messages

2012-06-24 Thread Heiko Roth
Hi folks,

It's definitly not working for months now. Uploading it into an appengine 
isn't a solution for development or debugging. It's just a work around.
@Google
When will you fix this issue?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-ySwSsVBiWsJ.
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: GAE Stats Going Crazy Today

2012-06-24 Thread James Gilliam
No strange stats today ... perhaps the issue is cleared up ... :)

On Saturday, June 23, 2012 9:05:34 PM UTC-7, James Gilliam wrote:
>
> More erroneous numbers being posted to the dashboard ... claims 950 
> channels created today when none where actually created ... billions of 
> read and write operations which are totally wrong as well ... 
>
> no red flags on the gae status either ...
>
> i assume none of this will be charge, as the bogus stuff wasn't charge 
> yesterday.
>
> On Saturday, June 23, 2012 6:41:02 PM UTC-7, James Gilliam wrote:
>>
>> I was not charged for the bogus emails yesterday.
>>
>> The bad news is the bogus email count is back again today.
>>
>> On Friday, June 22, 2012 6:47:03 PM UTC-7, James Gilliam wrote:
>>>
>>> The GAE billing stats are going crazy today.  It shows 20,000 + sent 
>>> emails, 4 billion + entity delete ops, 10,000+ url fetches, and other 
>>> things were are absolutely wrong.
>>>
>>> Some of these are contributing to extra billing for today.
>>>
>>> These excessive numbers are not supported with items in the log so I 
>>> think they are totally bogus.
>>>
>>> Where do I dispute such billing errors?
>>>
>>> appid = ogeekcom
>>>
>>

-- 
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/-/i1-yz_zASS0J.
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: Large text files from blobstore are not being gzipped (AppEngine Java)

2012-06-24 Thread Stephen Lewis
I signed up for a GCS account relatively recently, and I certainly got the 
free quota (https://developers.google.com/storage/docs/pricingandterms) 
applied. It's easy to miss though - to see whether it's active you need to 
go to the API Console and choose the 'Billing' option from the menu. When I 
do that, I see the text "The following promotion has been applied to your 
project: Google Storage 5GB free plan." - this only applies to the first 
API project you create, though.

Stephen

On Sunday, 24 June 2012 22:59:40 UTC+1, Emanuele Ziglioli wrote:
>
> Thanks for that, I tried to setup Cloud Storage and thought that I could 
> be on a free quota (we're already paying for GAE and didn't really want to 
> pay again for something that GAE should be doing). Anyway, if there's a 
> free quota for Cloud storage, I don't know how to enable it.
> The cost of working around GAE's restrictions keeps increasing. 
>
> On the upside, https has started to work for us on a custom domain, 
> although with a certificate error.
>
> On Saturday, 23 June 2012 05:23:02 UTC+12, Stephen Lewis wrote:
>>
>> Curiosity got the better of me, and I've just tried this - unfortunately, 
>> it doesn't work. When serving from Google Storage using send_blob I 
>> received the pre-gzipped content, but the Content-Encoding header was not 
>> sent.
>>
>> You might want to try something with signed URLs (
>> https://developers.google.com/storage/docs/accesscontrol#Signed-URLs). 
>> I've just discovered that the edge cache in front of Google Storage will 
>> actually *uncompress* pre-compressed content before serving it (which 
>> would mess things up for you), but I suspect this this is a bug, and I also 
>> imagine that it won't affect signed URLs.
>>
>> Stephen
>>
>
>>

-- 
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/-/vGbGS_i-_WcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Channel API and the development enviroment: Internet Explorer does not receive any messages

2012-06-24 Thread Takashi Matsuo
Can you file an issue on our issue tracker? Sorry if I missed, but I
couldn't find any.

Thanks,

-- Takashi

On Sun, Jun 24, 2012 at 10:41 PM, Heiko Roth  wrote:
> Hi folks,
>
> It's definitly not working for months now. Uploading it into an appengine
> isn't a solution for development or debugging. It's just a work around.
> @Google
> When will you fix this issue?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/-ySwSsVBiWsJ.
>
> 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.



-- 
Takashi Matsuo | Developer Advocate | tmat...@google.com

-- 
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: Great Grandpa Query (yet another ancestor question)

2012-06-24 Thread gor
right. thanks for the ideas.


On Monday, June 25, 2012 12:53:05 PM UTC+8, timh wrote:
>
> hi
>
> If you store the depth of the path as an integer property of each child, 
> you can then restrict you query by the depth below a parent as well.
>
> Cheers
>
> T
>
> On Monday, June 25, 2012 12:35:11 PM UTC+8, gor wrote:
>>
>> the parent_path property could work. thanks.
>>
>> On Monday, June 25, 2012 11:49:12 AM UTC+8, timh wrote:
>>>
>>> Hi
>>>
>>> Here is one approach you could use.
>>>
>>> In each entity store a list of paths of each parent.  ie in second 
>>> scenario
>>>
>>> H has a list property called parent_paths it would have the following 
>>> values ['/a/g','/a'] and its children would have ['/a','/a/g','/a/g/h'] etc
>>>
>>> Then given any entity you can fetch all levels of descendants. So in 
>>> your example  you just need to query for any entity
>>> that has '/a/g/h'  in its parent_paths.  This doesn't allow you to 
>>> restrict depth though.
>>>
>>> Cheers
>>>
>>> Tim
>>>
>>> On Monday, June 25, 2012 11:17:50 AM UTC+8, gor wrote:

 *Scenario 1:*
 If I have a Great Grandpa ancestor (let's name him A); And my key is 
 from "child1"; is there a way to check that my great grandpa is A? (hope I 
 can do that without needing to loop)

 Or can I check, if child1's key is of the path "A->B->C".
 *A -> B -> C -> (child1, child2...)*

 *Scenario 2:*
 From the above. Great Grandpa has another descendants from "G", and 
 would like to retrieve "H"s children:

 *A-> B -> C -> (children of C)*
 *...-> G -> H -> (children of H)*

 I like to retrieve "H"s children, thinking that Grandpa knows the path 
 from A, G, to H... can I do that? (hope I can do this in a query, without 
 looping)

 If you have a Go1 example: that would be awesome... 

 Thanks Google! and I love you!




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



Re: [google-appengine] Strange import errors in logs (fatal)

2012-06-24 Thread Takashi Matsuo
Hi Pamela-

I have not heard any similar issues for now, and there was no outage
at that time period.
I found that the instance which had continuously threw that exception
initially encountered DeadlineExceededError.

Could you tell me how you're handling exceptions? There might be a
culprit that caused that instance got into the weird state.

-- Takashi

On Sat, Jun 23, 2012 at 10:59 AM, Pamela Fox  wrote:
> My app went down for 10 minutes, and when I look at the logs, I see a lot
> of:
>
> "Traceback (most recent call last):
>   File
> "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
> line 187, in Handle
>     handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>   File
> "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py",
> line 225, in _LoadHandler
>     handler = __import__(path[0])
>   File
> "/base/data/home/apps/s~everyday-app/3.359804434352768230/application/__init__.py",
> line 21, in 
>     import urls
>   File
> "/base/data/home/apps/s~everyday-app/3.359804434352768230/application/urls.py",
> line 6, in 
>     from application import app, views, util
> ImportError: cannot import name views"
>
> But then it stopped happening and is fine now. Was this an app engine issue
> where it didn't have all the files available for some reason? Or is this
> something that I need to be changing on my end?
>
> My app runs on Python 2.7 with the Flask framework, and this is the first
> I've seen of this error.
>
> Thanks!
>
> --
> 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.



-- 
Takashi Matsuo | Developer Advocate | tmat...@google.com

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



Re: [google-appengine] Junit Test -> Cloud SQL (local mysql database)

2012-06-24 Thread Takashi Matsuo
Hi jan,

How do you run your test? Could you show me an exact command line?

-- Takashi

On Fri, Jun 22, 2012 at 12:10 PM, jan  wrote:
> Hi,
>
> i would like to unit test with some data from my database. If i execute this
> sql connection code as webapplication it works with cloud sql as well as my
> local database. If i run this unit test, i get the Error:
>
> com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package
> 'rdbms' or call 'OpenConnection()' was not found.
> at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
> at
> com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.makeSyncCall(RdbmsApiProxyClient.java:95)
> at
> com.google.appengine.api.rdbms.RdbmsApiProxyClient$ApiProxyBlockingInterface.openConnection(RdbmsApiProxyClient.java:73)
> at
> com.google.cloud.sql.jdbc.internal.SqlProtoClient.openConnection(SqlProtoClient.java:58)
> at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:66)
> at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:26)
> at java.sql.DriverManager.getConnection(Unknown Source)
> at java.sql.DriverManager.getConnection(Unknown Source)
> at test.Tester.test(Tester.java:29)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
>
>
> I also added the jars to the class-path: appengine-api-labs.jar,
> appengine-api-stubs.jar, appengine-api.jar, appengine-testing.jar,
> google-sql.jar (found in the app engine plugin folder). Can anybody tell me
> what i'm doing wrong? How can i get this to work?
>
> Thank you very much
> Jan
>
>
> package test;
> import java.sql.Connection;
> import java.sql.DriverManager;
> import java.sql.ResultSet;
>
> import org.junit.Test;
>
> import com.google.appengine.api.rdbms.AppEngineDriver;
>
> import de.jan.util.Helper;
>
> import junit.framework.TestCase;
> import static org.junit.Assert.*;
>
> public class Tester {
>
> @Test
> public void test(){
>
> try {
> DriverManager.registerDriver(new AppEngineDriver());
> Connection conn =
> DriverManager.getConnection("jdbc:google:rdbms://xxx:yyy/mydb");
> } catch (Exception e) {
> System.out.println("No connection to database possible");
> e.printStackTrace();
> }
> assertTrue(true);
> }
> }
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/tiAzMTAYZaoJ.
> 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.



-- 
Takashi Matsuo | Developer Advocate | tmat...@google.com

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



Re: [google-appengine] Cron jobs not running for production apps

2012-06-24 Thread Takashi Matsuo
Hi Kesava,

It's just a guess, I assume that the cron entry in question was
supposed to run on "dynamic" backend instance.
If that's the case, the cron execution can be a single point of
failure, because the cron never retries.

I'd suggest directing all the cron execution to FE, and for the task
you want to run on backend instances, put a task on a queue associated
to the backend instance. That way, you can mitigate the risk that the
cron execution ends up with an error.

Additionally, you can make the initial cron call redundant in a safe
way if you use named tasks.

hope it helps!

-- Takashi

On Thu, Jun 21, 2012 at 7:01 PM, Kesava Neeli  wrote:
> Hi,
>
> We have many cron jobs that run as part of our application. Some crons run
> on FE instances and some hit our Backend instances for execution. Since this
> morning, teh crons are NOT running at regular intervals. I opened 2
> production issues and attached screenshots. It's our production app and
> crons are very critical for us. We haven't made any changes to our
> production app in last 1 week. We redployed the app today but that didn't
> make a difference.
>
> Are there known issues in appengine with running cron jobs? Anyone sees
> similar issue?
>
> Thanks
> Neeli
>
> --
> 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/-/Zl579CSFHe4J.
> 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.



-- 
Takashi Matsuo | Developer Advocate | tmat...@google.com

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