[appengine-java] Re: Datastore server error

2012-03-22 Thread Mike Lawrence
Switch to HR datastore

On Mar 21, 9:28 am, Aswath Satrasala 
wrote:
> I have been have the same Datastore Viewer error with my appid
> 'vs-accounting'.  It is configure as M/S.
> I am having this trouble for over 1.5 days.  This application is in
> production.  I don't know what to do now  :(
>
> Error: Server Error
> The server encountered an error and could not complete your request.
> If the problem persists, please
> reportyour problem
> and mention this error message and the query that caused it.
>
> -Aswath
>
> On Sat, Mar 10, 2012 at 10:33 PM, wakk...@hotmail.com
> wrote:
>
>
>
> > Hi,
>
> > My application is address-generator-singapore.appspot.com, however the
> > Datastore Viewer seems to have gone awry. I can't view it at all; all that
> > happens when I click it is a server error and a link returning me to the
> > applications screen.
>
> > I've done research and it seems this problem is pretty rampart, but there
> > has been no fix regarding this as of yet. Is there a way to get an admin to
> > fix the problem? Because it broke my application and I can't run it at all
> > now.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/google-appengine-java/-/Bn9FOOIDEN0J.
> > 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.

-- 
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: Presentation: Developing WordPong.com on Google App Engine

2012-03-21 Thread Mike Lawrence
Not bought any GAE books.
The online docs are pretty good

On Mar 21, 6:17 am, Bucky  wrote:
> Great presentation and neat looking app. This come just in time for my
> development. Working alone from scratch, I've never done web development
> before, is challenging, to say the least.
>
> You've referenced many websites, but how about books you found helpful.
>
> Thanks again.
>
>
>
> On Tuesday, March 20, 2012 7:35:03 AM UTC-4, Mike Lawrence wrote:
>
> > Presenting this slide deck at DevNexus 2012 this week:
> >http://goo.gl/RspSm
>
> > It details my experiences developing
> >http://WordPong.com, a web-based social game, on GAE.
>
> > Mike Lawrence

-- 
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] Presentation: Developing WordPong.com on Google App Engine

2012-03-20 Thread Mike Lawrence
Presenting this slide deck at DevNexus 2012 this week:
http://goo.gl/RspSm

It details my experiences developing
http://WordPong.com, a web-based social game, on GAE.

Mike Lawrence

-- 
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: publishing html files

2012-03-01 Thread Mike Lawrence
How about a public google doc?
https://support.google.com/docs/bin/answer.py?hl=en&answer=184006


On Feb 26, 2:28 pm, Vik  wrote:
> Hie
>
> I am generated html documents using a google text doc as template (reading
> it using gdata apis and then doing some text manipulation).
> Now, I want to publish these documents somewhere so that I can refer to
> others giving the url of the document (which means it would be publicly
> accessible).
>
> Any suggestions on how do i go about it? Like where should i host these?
>
> Thankx and Regards
>
> Vik
> Founderhttp://www.sakshum.orghttp://blog.sakshum.org

-- 
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: Increased Average HTTP Response Times since Feb 12th 2012

2012-03-01 Thread Mike Lawrence
App Engine Console
https://appengine.google.com/settings
Application Settings
Idle Instances
move slider

On Feb 29, 12:42 am, ravi kumar  wrote:
> Hi Mike how do you change the instance?
>
>
>
>
>
>
>
> On Saturday, 18 February 2012 19:20:34 UTC+5:30, Mike Lawrence wrote:
>
> > I changed instaces settings in console from auto to a minimum of two
> > and the response times are again about a second
> > On Feb 16, 2:07 pm, Matthias Friedrich  wrote:
> > > hi mike,
> > > i can confirm that. The responsetime is getting higher and higher,
> > > meanwhile some are above 90 seconds, causing complete failures. I wonder
> > > whats going on there?

-- 
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: Slow cold starts

2012-02-26 Thread Mike Lawrence

I noticed similar behavior.
I think the auto setting for minimum number
of instances changed from two to zero active
instances.
I changed from auto to one, and my app
is much more responsive. setting minimum
instances higher will co$t you more

On Feb 25, 9:36 am, Anders  wrote:
> In the recent weeks the cold starts for Java apps have started to take a
> long time in my experience. More than three seconds to load a webpage is
> too long generally for a high quality end user experience. I assume it
> happens when the physical GAE servers become too crowded resulting in
> sluggish cold start loading of apps from the file system (and/or maybe
> because of delays in the distributed file system itself).

-- 
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: GAE High Replication datastore (HRD) with transaction

2012-02-20 Thread Mike Lawrence
since hrd is eventually consistent,
you need to restructure your app to not
immediately query the newly commited data after a transaction.

welcome to nosql

my app builds its own result page that assumes the committed data is
there.
by the time the user refreshes the page the
data is there and queryable as normal

On Feb 18, 9:27 pm, sj  wrote:
> I'm using HRD because I want make changes to multiple entities within a
> single transaction using entity groups.
>
> Understand that Non transactional (non ancestor) queries may see all, some,
> or none of the results of a previously committed transaction.
>
> The problem I facing now is:
>
>    - After commit an transaction for adding new record to db
>
>   Transaction tx = pm.currentTransaction();
>   tx.begin();
>   pm.makePersistent(object);
>   tx.commit();
>
>    -
>
>    Follow by query the record committed, sometime it will return result and
>    some time just return as null
>
>    Query q = pm.newQuery(queryStatement);
>    CompanyProfile result = (CompanyProfile) q.execute();
>
> p/s: When turn off HRD, it work perfectly.
>
> Any workaround?
>
> Thanks
>
> Rgds SJ

-- 
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: Increased Average HTTP Response Times since Feb 12th 2012

2012-02-18 Thread Mike Lawrence
I changed instaces settings in console from auto to a minimum of two
and the response times are again about a second
On Feb 16, 2:07 pm, Matthias Friedrich  wrote:
> hi mike,
> i can confirm that. The responsetime is getting higher and higher,
> meanwhile some are above 90 seconds, causing complete failures. I wonder
> whats going on there?

-- 
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] Increased Average HTTP Response Times since Feb 12th 2012

2012-02-16 Thread Mike Lawrence
Average HTTP Response times have gone from sub-second to about 10secs.
http://montools.com/stats/11770

I've not changed any admin settings or code.
Anyone else seeing this?

Looks like the scheduler now causes more cold starts.

Since me requests include memcache and database updates, not sure if
it's related to a service latency.


Response Time
Today   Yesterday   This Week   Last Week   This Month  
Last Month  This Year
Last Year
Max 11.808  12.594  25.427  6.199   25.427  11.191  25.427  30.952
Min 1.859   1.726   0.403   0.374   0.374   0.354   0.354   0.087
Avg 8.779   6.734   6.138   0.749   1.981   0.898   1.258   0.97
#Checks 22  48  166 335 741 1486222724426

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



Re: [appengine-java] Abridged summary of google-appengine-java@googlegroups.com - 10 Messages in 5 Topics

2012-02-15 Thread Mike Lawrence
Does the GAE File API support GAE projects created with a Google Apps account?

http://code.google.com/appengine/docs/java/googlestorage/overview.html
 says:
   Copy the value under Service Account Name. This is the service
account name of your application, in the format
application...@appspot.gserviceaccount.com. If you are using an App
Engine Premier Account, the service account name for your application
is in the format
application-id.example@appspot.gserviceaccount.com.

When I visit this page:
https://code.google.com/apis/console/b/0/#project:476894375364

and try to add this user (the account I'm trying to access the file api from):
   apptes...@appspot.gserviceaccount.com

I get the error:
   User apptes...@appspot.gserviceaccount.com may not be added to
project "API Project". Only members from domain systemsplanet.com (my
Google Apps Domain) may be added.

Sincerely,  Mike Lawrence

Blessed are the flexible, for they will never get bent out of shape

-- 
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] AppEngineFile typo

2012-02-12 Thread Mike Lawrence
On page:
http://code.google.com/appengine/docs/java/googlestorage/overview.html

writableFile = new AppEngine(path);

should be

writableFile = new AppEngineFile(path);

-- 
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: Abridged summary of google-appengine-java@googlegroups.com - 8 Messages in 5 Topics

2012-01-14 Thread Mike Lawrence
I guess I didn't expect to see mention of requiring entity groups for
transactions now that GAE supports cross-entity-group transactions.

Does GAE really need both modes?
Is there a performance benefit to not
enabling global transactions?


On Jan 13, 3:25 m, "Ikai Lan (Google)"  wrote:
> Actually, I took a look at these docs and it seems like we do talk about
> cross group transactions. There are a few areas where we talk about
> exceptions being thrown for transactions on entities in different entity
> groups, but that's expected behavior. You must specify that you want a
> cross-group transaction.
>
> We'd definitely like to improve these docs, however. Do you have any
> suggestions or areas where this documentation seems confusing?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
> On Fri, Jan 13, 2012 at 12:23 PM, Ikai Lan (Google) wrote:
>
>
>
> > Thanks! I'll file a bug for this since it's not merely a one line fix.
> > We'll probably want to better explain cross-entity group transactions a bit
> > and link to the documentation on that subject.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > plus.ikailan.com | twitter.com/ikai
>
> > On Fri, Jan 13, 2012 at 11:12 AM, Mike Lawrence 
> > wrote:
>
> >> Ikai,
> >> Docs still say transactions wont span entity groups:
> >>http://code.google.com/appengine/docs/java/datastore/transactions.html
>
> >>http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
> >>   Version 1.5.5 - Oct 11, 2011
> >>       App Engine now supports Cross Group (XG) transactions with the
> >> High Replication Datastore, which allow you to perform transactions
> >> across multiple entity groups.
> >>http://code.google.com/appengine/docs/java/datastore/transactions.html
>
> >> Sincerely,  Mike Lawrence
>
> >> On Thu, Jan 12, 2012 at 12:23 AM,
> >>  wrote:
> >> >   Today's Topic Summary
>
> >> > Group:http://groups.google.com/group/google-appengine-java/topics
>
> >> > problem with Content-type: null with css files [1 Update]
> >> > Minor update to Java SDK: 1.6.1.1 [1 Update]
> >> > [No Subject] [1 Update]
> >> > proxying datastore request [3 Updates]
> >> > how to get the correct time for germany? [2 Updates]
>
> >> >  problem with Content-type: null with css files
>
> >> > "Ikai Lan (Google)"  Jan 11 05:22PM -0800
>
> >> > We have an SDK update that resolves this issue on upload (I've also
> >> posted
> >> > in a separate thread about this):
> >> > ...more
>
> >> >  Minor update to Java SDK: 1.6.1.1
>
> >> > "Ikai Lan (Google)"  Jan 11 05:21PM -0800
>
> >> > Hey everyone,
>
> >> > There's a new version of the Java SDK available for download. You can
> >> get
> >> > it here:
>
> >>http://code.google.com/p/googleappengine/downloads/detail?name=appeng...
> >> > ...more
>
> >> >  [No Subject]
>
> >> > Aviv Keren  Jan 11 11:08PM +0200
>
> >> > Ok tnx!
> >> > ...more
>
> >> >  proxying datastore request
>
> >> > meiaestro  Jan 11 07:18AM -0800
>
> >> > Hi all!
>
> >> > I was thinking about making my RPC calls to the server (datastore
> >> commands)
> >> > more secure against java script or data stream modifications on client
> >> side
> >> > (when user is already signed ...more
>
> >> > "Ikai Lan (Google)"  Jan 11 10:44AM -0800
>
> >> > Hi there!
>
> >> > "- a logged in user could manipulate the RPC call (he could for
> >> > example exchange his userID by the ID of someone else and access the
> >> data
> >> > of this user)
>
> >> > - to avoid that I need to ...more
>
> >> > meiaestro  Jan 11 12:31PM -0800
>
> >> > Thanks for the reply.
>
> >> > You're right. I did not use the Users API, as I do not want to force the
> >> > users to have a google account (or any other existing account). This
> >> will
> >> > be optional at a ...more
>
> >> >  how to get the correct time for germany?
>
> >> > vega <_v...@vr-web.de> Jan 11 07:24AM -0800
>
> >> > hi everyone.
>
> >> > since the days are getting longer, i n

Re: [appengine-java] Abridged summary of google-appengine-java@googlegroups.com - 8 Messages in 5 Topics

2012-01-13 Thread Mike Lawrence
Ikai,
Docs still say transactions wont span entity groups:
http://code.google.com/appengine/docs/java/datastore/transactions.html


http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes
   Version 1.5.5 - Oct 11, 2011
   App Engine now supports Cross Group (XG) transactions with the
High Replication Datastore, which allow you to perform transactions
across multiple entity groups.
http://code.google.com/appengine/docs/java/datastore/transactions.html

Sincerely,  Mike Lawrence





On Thu, Jan 12, 2012 at 12:23 AM,
 wrote:
>   Today's Topic Summary
>
> Group: http://groups.google.com/group/google-appengine-java/topics
>
> problem with Content-type: null with css files [1 Update]
> Minor update to Java SDK: 1.6.1.1 [1 Update]
> [No Subject] [1 Update]
> proxying datastore request [3 Updates]
> how to get the correct time for germany? [2 Updates]
>
>  problem with Content-type: null with css files
>
> "Ikai Lan (Google)"  Jan 11 05:22PM -0800
>
> We have an SDK update that resolves this issue on upload (I've also posted
> in a separate thread about this):
> ...more
>
>  Minor update to Java SDK: 1.6.1.1
>
> "Ikai Lan (Google)"  Jan 11 05:21PM -0800
>
> Hey everyone,
>
> There's a new version of the Java SDK available for download. You can get
> it here:
>
> http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip
> ...more
>
>  [No Subject]
>
> Aviv Keren  Jan 11 11:08PM +0200
>
> Ok tnx!
> ...more
>
>  proxying datastore request
>
> meiaestro  Jan 11 07:18AM -0800
>
> Hi all!
>
>
>
> I was thinking about making my RPC calls to the server (datastore commands)
> more secure against java script or data stream modifications on client side
> (when user is already signed ...more
>
> "Ikai Lan (Google)"  Jan 11 10:44AM -0800
>
> Hi there!
>
> "- a logged in user could manipulate the RPC call (he could for
> example exchange his userID by the ID of someone else and access the data
> of this user)
>
> - to avoid that I need to ...more
>
> meiaestro  Jan 11 12:31PM -0800
>
> Thanks for the reply.
>
>
>
> You're right. I did not use the Users API, as I do not want to force the
> users to have a google account (or any other existing account). This will
> be optional at a ...more
>
>  how to get the correct time for germany?
>
> vega <_v...@vr-web.de> Jan 11 07:24AM -0800
>
> hi everyone.
>
> since the days are getting longer, i noticed that in 2 months ill have an
> error with my getTime() Method, which gives me the current time in a "human
> friendly" way.
>
> /** ...more
>
> Ian Marshall  Jan 11 08:44AM -0800
>
> The code below is how I do this. It works for summer and winter times
> automajically.
>
> public static final Locale G_LOCALE_UK = Locale.UK;
> public static final String G_S_TIME_ZONE_ID = ...more
>
> You received this message because you are subscribed to the Google Group
> google-appengine-java.
> You can post via email.
> To unsubscribe from this group, send an empty message.
> For more options, visit this group.
>
> --
> 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.

-- 
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] Memcache errors

2011-11-16 Thread Mike Lawrence
My Java GAE app has http sessions enabled.
Periodically, I see calls to createSession fail with a memcache error.
Anyone else seeing similar behavior?
Is there any elegant way to recover from this?


Here's an example:

2011-11-14 18:06:59.062

org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext:
Exception initializing page context
com.google.appengine.api.memcache.MemcacheServiceException: Memcache
put: Error setting single item (_ahsfI5BsuS2dkt9spIPZsZcWQ)
at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl
$7.transform(AsyncMemcacheServiceImpl.java:427)
at com.google.appengine.api.memcache.AsyncMemcacheServiceImpl
$7.transform(AsyncMemcacheServiceImpl.java:419)
at com.google.appengine.api.memcache.MemcacheServiceApiHelper
$RpcResponseHandler.convertResponse(MemcacheServiceApiHelper.java:59)
at com.google.appengine.api.memcache.MemcacheServiceApiHelper
$1.wrap(MemcacheServiceApiHelper.java:98)
at com.google.appengine.api.memcache.MemcacheServiceApiHelper
$1.wrap(MemcacheServiceApiHelper.java:92)
at
com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:
57)
at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
98)
at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
90)
at
com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:
27)
at
com.google.appengine.api.memcache.MemcacheServiceImpl.put(MemcacheServiceImpl.java:
79)
at
com.google.apphosting.runtime.jetty.MemcacheSessionStore.saveSession(MemcacheSessionStore.java:
39)
at
com.google.apphosting.runtime.jetty.SessionManager.createSession(SessionManager.java:
342)

...
at org.mortbay.jetty.Request.getSession(Request.java:1214)

-- 
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: .A research: how long will your java app instance start up fully?

2011-10-01 Thread Mike Lawrence

2-3 secs with stripes + slim3

On Sep 29, 9:29 pm, Tapir  wrote:
> ?

-- 
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: Transactions on entities in different entity groups ?

2011-09-29 Thread Mike Lawrence
This is a really important enhancement..!  Please give more details.

The only thing bigger would be removing the "eventually consistent"
nature of the high availability data store,
and making it immediately consistent.

On Sep 28, 4:52 pm, "Ikai Lan (Google)"  wrote:
> You currently can't, but we plan on rolling out a feature that will do this
> in the next few releases. It's currently in trusted tester at the moment.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
> On Mon, Sep 26, 2011 at 10:59 PM, Santosh kumar  wrote:
> > Hi,
>
> > I want to know how to create/update the entities which are in different
> > entity groups ?
>
> > for ex: I want to update the *apple* and *carrot* entities in a
> > transaction but those parents are not same. (Here i am in such a situation)
>
> > Thanks in advance :)
>
> > *S*antosh *K*umar *K* **
>
> > --
> > 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.

-- 
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: The *real* cost of the billing changes

2011-09-06 Thread Mike Lawrence
Instead of ranting "google broke it",
it might be more productive if you:
- identify the type of app you are building
   - use cases
   - API calls
   - number users
   - typical transactions
   - consistency requirements
   - etc

then offer some suggestions on how google
could support your use cases
- tiered billing
- higher free quotas
- two year contracts
etc


On Sep 2, 7:22 pm, James Briant  wrote:
> The real cost: *My professional credibility.*
>
> That is something that is of immeasurable value and is now in the toilet. I
> do not see how it is recoverable and the loss to me is far beyond the
> not-inconsequential costs of migrating to EC2, Heroku (oh look, it runs java
> as a few days ago), Rackspace or Linode.
>
> I have spent the last year or so being a *very* vocal advocate of GAE. I
> have advocated to start-ups in the San Diego community and at events like
> Start Up Weekend, that teams use GAE: we're starting from scratch, so we *
> can* write our apps to follow the strange rules of GAE. I did so on the
> rational and reasonable belief that we had to write the apps this way
> because they allowed google to run our apps more efficiently than if we just
> spin up Tomcat. I assumed that there was secret sauce. I assumed that Google
> had done what Google does: looked at the data and done the math. Instead, it
> looks to me that they just thought of some ideas that *might* make things
> more efficient, but guessed wrong.
> *
> *Myself, and others who listened to me, have spent man-years writing
> software with onerous rules for not only zero benefit, but in fact vendor
> lock-in to higher costs. And while it will be possible to recover our dollar
> costs by migrating our apps to EC2, Heroku, etc, *I will not be able to
> recover my credibility*.
>
> *How Google can make this right*
>
> I put a lot of effort into learning the GAE Way. *That investment needs to
> pay off.* If the hoops we had to jump through turned out to be the wrong
> hoops, tell us what the right hoops are. There *is* an *engineering*solution 
> to efficient (low cost), scalable app hosting. I bet my reputation
> on it. The GAE team needs to make that happen, not throw in the towel. If
> that means we need quota for things like RAM, fine.

-- 
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: Session/Cookie problem with redirect

2011-08-28 Thread Mike Lawrence
have you tried viewing the http headers in each request
using chrome, firebug, httpwatch, etc?
sunshine is the best disinfectant

I dont think redirects normally can set cookies
maybe the prod server is striping your
invalid host headers on a redirect

On Aug 28, 7:32 am, Simon Knott  wrote:
> You're not placing anything in your session which isn't serializable are
> you?  
>
> Given that everything seems to be failing when it's starting up a new
> instance, which is when it will attempt to read the session out of the
> datastore/memcache, it may be that it can't deserialize your data.

-- 
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: Always On not working properly

2011-08-26 Thread Mike Lawrence

switching to the high availability data store
fixed this for me.

On Aug 25, 10:30 am, Anders  wrote:
> I switched on the Always On option and it works inasmuch as the dashboard
> shows three resident instances but new instances are started sometimes with
> only a few seconds between page accesses with very low overall traffic. In
> the log the message "This request caused a new process to be started for
> your application, and thus caused your application code to be loaded for the
> first time." pops every 10 log lines or so.
>
> Surely, with Always On activated, new instances should not be started
> several times every minute?! The reason I switched it on was to prevent
> exactly that from happening.

-- 
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: Deploy button in Eclipse does not prompt for administrator account username

2011-08-23 Thread Mike Lawrence

I still cant sign in from eclipse Helios, but I was able to deploy
using this cmd:

set GAESDK=C:\eclipse\plugins
\com.google.appengine.eclipse.sdkbundle_1.5.0.r36v201105092302\appengine-
java-sdk-1.5.0
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_25
"%JAVA_HOME%\bin\java" -cp "%GAESDK%\lib\appengine-tools-api.jar"
com.google.appengine.tools.admin.AppCfg update war


http://code.google.com/p/googleappengine/issues/detail?id=4969


On Aug 22, 4:52 am, Bjorn B  wrote:
> I think the issue is that on some installations for Eclipse (STS among
> other) you get an silent error when clicking on the Google-login
> button in the bottom left corner. Some odd exception (only vissible in
> the error pane), and nothing happends. I still haven't worked out how
> to get around this error.
>
> /Björn
>
> On Aug 16, 9:59 pm, "Ikai Lan (Google)"  wrote:> You need 
> to go to:
>
> > appengine.google.com
>
> > and register an application ID. You can't use one that's taken. Once that's
> > done, put that into your appengine-web.xml.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > plus.ikailan.com | twitter.com/ikai
>
> > On Sun, Aug 14, 2011 at 10:26 PM, C De  wrote:
> > > So I installed Google App Engine for Java using Eclipse and successfully
> > > created the sample Guestbook project.I managed to run the project on my
> > > machine and also created an app id using the admin console. However when I
> > > try and deploy the app on the Google App Engine I do not get any prompt
> > > asking me to login, subsequently I get an error saying "This application
> > > does not exist".
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To view this discussion on the web visit
> > >https://groups.google.com/d/msg/google-appengine-java/-/-PFNasspAU4J.
> > > 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.

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



[appengine-java] Re: Getting a grip on startup

2011-08-06 Thread Mike Lawrence
the stripes web framework starts in
under 3 seconds on GAE.
it's clean, simple, and light.

do you really need spring?
is wiring beans really worth all the startup cost?



On Aug 3, 9:57 pm, John  wrote:
> As our app has grown, the amount of initialization work to do in order to
> make an instance useful has increased to the point that GAE often terminates
> requests that start a new instance. We had a warmup servlet, but the work
> started to commonly exceed the deadline. We're now looking to pare down the
> warmup, but we're having trouble with tuning since the behavior seems pretty
> different on the dev server from GAE. On the dev server, the initialization
> (loading our initial servlets) will complete in the vicinity of 4sec while
> GAE instance startup is often more than 20sec. We often see inexplicable
> gaps in our logging of 15sec or more (seemingly hung up), but it doesn't
> seem repeatable.
>
> Our focus to date has been to optimize the JDO/Datanucleus startup, but we
> believe that a significant contributor might be the number of classes
> loaded. Is it accurate to conclude that class loading carries a larger
> overhead on GAE than other environments? Are there any tools that will help
> us understand the processing during this startup? The Appstats tool shows
> long delays, but we don't know what is taking time besides the RPCs.

-- 
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: Joins!

2011-08-06 Thread Mike Lawrence
to build a scalable schema on GAE I'd consider
this agile/tracer bullet approach:
1 identify your most common couple of use cases
  eg building home page, list friends, etc
2 implement it from front end to back end
 using keyed reads over queries where
possible
3 add new features without breaking the
speed of your top use cases

use background tasks to propagate
updates to denormalized data where
needed.

consider slim3 dao for global transactions
to keep your model consistant


mike




On Aug 5, 8:06 pm, Jeff Schnitzer  wrote:
> On Fri, Aug 5, 2011 at 11:45 AM, William Levesque
>
>  wrote:
>
> > But is Google's position that all data should be denormalized?
>
> I don't think anyone would say that.  I wrote up my thoughts around
> this subject here:
>
> http://blog.similarity.com/post/7541938593/how-to-build-an-online-dat...
>
> The upshot is that we've been conditioned by SQL theorists to believe
> that there is a "proper" way of modeling data; that the data itself
> defines the schema and the magic of the RDBMS behind the curtain makes
> it fast.  Unfortunately, this is a lie.  It worked to a point but the
> traffic demands of a mass consumer application have vastly outstripped
> the RDBMS.  You're back to figuring out how to optimize your schema
> for your particular query profile.
>
> So the answer is not "denormalize everything", it's "denormalize the
> right things".  And "the right things" will vary from application to
> application.  You just have to build up a correct mental model of how
> the datastore performs and then design your application accordingly.
>
> Jeff

-- 
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: ANN: BatchFB 2.1, a Java Facebook library with automatic batching

2011-07-13 Thread Mike Lawrence

Nice Jeff. Do you ever sleep? ;)

Now we can quickly move all the
fb data to g+ and stop using fb. joy.

On Jul 12, 1:55 am, Jeff Schnitzer  wrote:
> This is the first time I've announced this opensource project in this forum
> because until now there wasn't anything GAE-specific about it.  You can
> still use BatchFB outside of GAE, but now BatchFB will use asynchronous
> fetching on App Engine to issue multiple batches to Facebook in parallel.
>  This is *the* fastest way to pull down significant quantities of data from
> Facebook.
>
> http://batchfb.googlecode.com/
>
> Here is a quick snippet of code:
>
> ---
>
> Batcher batcher = new FacebookBatcher(accessToken);
>
> Later me = batcher.graph("me", User.class);
> Later mark = batcher.graph("markzuckerberg", User.class);
> Later> myFriends = batcher.query(
>     "SELECT uid, first_name, pic_square FROM user WHERE uid IN" +
>     "(SELECT uid2 FROM friend WHERE uid1 = " + myId + ")", User.class);
> Later bob = batcher.queryFirst("SELECT timezone FROM user WHERE
> uid = " + bobsId, User.class);
> PagedLater feed = batcher.paged("me/feed", Post.class);
>
> // No calls to Facebook have been made yet.  The following get() will
> execute the
> // whole batch as a single Facebook call.
> String timezone = bob.get().timezone;
>
> ---
>
> You can stack up hundreds of Graph and FQL requests using the Future-like
> interface; BatchFB will group them into batches and execute the batches in
> parallel on App Engine.
>
> Enjoy,
> Jeff

-- 
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: Blog with schema advice for GAE/NoSQL users

2011-07-13 Thread Mike Lawrence

Nice blog post Jeff.

I've found myself storing lists of keys
in my domain objects to replace
queries with fast parallel gets of
related domain objects. Of course,
there is a trade-off of the expense
of keeping the key list fresh. This makes
the GUI extreamly fast (no queries, just
gets) and moves the slow updates to
the background. Won't work for all
use-cases but works well for my apps.




On Jul 12, 4:40 pm, Jeff Schnitzer  wrote:
> I've been keeping a technology blog about Similarity.com, and writing about
> some of the architectural issues I've faced.  The most recent entry exposes
> some of my schema and gives some advice about how to model data structures
> on App Engine (with Objectify, but the same lessons apply to any NoSQL
> system):
>
> http://blog.similarity.com/post/7541938593/how-to-build-an-online-dat...
>
> There's a Hacker News story for it 
> here:http://news.ycombinator.com/item?id=2756212
>
> Jeff

-- 
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] Cost of using async-session-persistence?

2011-07-01 Thread Mike Lawrence
Googlers?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/TMf-DMwnkYQJ.
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] Cost of using async-session-persistence?

2011-06-29 Thread Mike Lawrence
What is the financial cost associated with using this feature?
IE how many additional API calls/datastore accesses/bytes transferred/
etc can one expect?

http://code.google.com/p/googleappengine/issues/detail?id=1692

-- 
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: Is the native API really so much faster than JDO and slim3?

2011-06-08 Thread Mike Lawrence
I get...

The number of entities: 1
low level 1717 millis
slim3 1502 millis
objectify 2970 millis
jdo 3485 millis

probably should modify this example
to do an average of several runs

one important thing to note, is slim3 allows you
to update multiple entity types
in a single transaction.
not possible with the other 3 APIs



On Jun 7, 4:00 am, Ian Marshall  wrote:
> The low-level API does indeed look very fast.
>
> Just a comment on JDO: repeat runs roughly halve the JDO run time. I
> presume that this is because for repeat runs the JDO persistence
> manager factory has already been constructed.
>
> On Jun 6, 8:44 pm, DennisP  wrote:> I'm looking at 
> this online demo:http://slim3demo.appspot.com/performance/
>
> > Sample run:
> > The number of entities: 1
> > low-level API:get: 2 millis
> > Slim3: 2490 millis
> > JDO: 6030 millis
>
> > Is the low-level API really that much faster?

-- 
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: Java => Google app

2011-05-24 Thread Mike Lawrence
maven thoughts

- anyone who's worked on a large
project over time has seen the build
scripts grow in complexity and maintenance
costs

- maven, like many solutions, introduces
a domain-specific-language to simplify
things, or in mavens case, a domain
specific XML schema

- I usually cringe when I see a new dsl.
just one more unnatural thing to learn

- however in practice, I've seen maven
greatly simplify and standardize
large scale development (dozens
of developers working together on dozens
of projects)

- as always - UTRTFTJ use the right
tool for the job

- as for app engine, I don't use a build script.
stand-alone eclipse works fine with
a few developers on a project
On May 23, 8:08 pm, Brandon Donnelson  wrote:
> I see nothing wrong with what you said. Its fun to see others perspectives.
> That's what this group is all about. :)
> On May 23, 2011 4:58 PM, "Rusty Wright"  wrote:> 
> Sorry, my post was slightly tongue in cheek; sometimes I can't resist
> > sticking a twig into a hornet's nest.
>
> > On 2011-05-23 08:26, Ugorji wrote:
> >> +1 all the way to Jeff's comments.
>
> > --
> > 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.
>
>
>
>

-- 
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: GAE - Java - JSON?

2011-05-21 Thread Mike Lawrence
+1 stripes
  my stripe app boots cold in 2 seconds
  round trip times from browser to datastore
  in back are about 100ms

the rest of the stack...

  combined with slim3 datastore and
  much if the gae datastore issues
  melt away

  jquery mobile - works cross browser,
google tv, cross smart phone.
write once, run almost (requires
 a new version of IE) anywhere with
 no plugin



On May 20, 10:39 pm, Rusty Wright  wrote:
> I'm using Stripes (an action based framework, similar to Struts 2 but
> *way* better) and GSON.  Stripes is very flexible and powerful and very
> well thought out and designed.
>
> On 2011-05-20 06:43, Pop Vasile wrote:> Thanks guys, great resources. I'm 
> still a bit confused about the
> > approach on GAE server-side... Should I use servlets? Restlet?
> > Something else?
> > --
> > 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.

-- 
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: Vs: Re: Stripes + UrlBinding + Google App Engine

2011-05-15 Thread Mike Lawrence
there is no file system in gae so
the multipart wrapper could be your problem.
it probably would work locally by not in prod

On May 15, 8:30 am, Mike Lawrence  wrote:
> sorry you're having problems.
> dont think this is an app engine issue
> since many folks use stripes on gae.
> here are the stripe parts from my web XML
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
>         xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://
> java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
>         
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_4.xsd";
>         version="2.4">
>
>         
>                 StripesFilter
>                 net.sourceforge.stripes.controller.StripesFilter
>                 
>
>                 
>                         MultipartWrapperFactory.Class
>                         
>                         
> com.wordpong.app.stripes.EmptyMultipartWrapper
>                         
>                 
>
>         
>
>         
>                 StripesFilter
>                 DispatcherServlet
>                 
>                 *.jsp
>                 REQUEST
>                 FORWARD
>         
>
>         
>         
>                 DispatcherServlet
>                 
> net.sourceforge.stripes.controller.DispatcherServlet
>                 
>                 1
>         
>         
>                 DispatcherServlet
>                 *.action
>         
>
>         
>                 DynamicMappingFilter
>                  class>net.sourceforge.stripes.controller.DynamicMappingFilter
>                 
>         
>         
>                 DynamicMappingFilter
>                 /*
>                 REQUEST
>                 FORWARD
>         
>
> On May 14, 11:05 am, Pauli Savolainen 
> wrote:
>
>
>
> > Hello
>
> > I had some time to try this again, but I still have no success.
>
> > I have an ActionBean with @UrlBinding("/home"). The @DefaultHandler method
> > ForwardResolutions to index.jsp which only prints "Hello":
>
> > @DefaultHandler
> > public Resolution home() {
> >   return new ForwardResolution("index.jsp"); // Also tried "/index.jsp"
>
> > }
>
> > In dev environment I access my app 
> > viahttp://localhost:/index.jspandhttp://localhost:/home. Both print 
> > "Hello". That is, it works perfectly.
>
> > After I have deployed my app on appengine I access the application via
> > http://.appspot.com/index.jsp. This prints "Hello", but when I access
> > my app via http://.appspot.com/home I get an infinite redirect loop.
> > I checked the app engine logs:
>
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/inde 
> > x.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> > /index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp/index.jsp
> > /home/index.jsp/index.jsp
> > /home/index.jsp
> > /home/
>
> > I consider this more an app engine issue than Stripes issue because
> > everything works locally but not in app engine. Stripes uses a servlet
> > filter to handle the UrlBindings. The filter javadocs states:
>
> > This filter takes the following approach to determining when to dispatch an
> > ActionBean<http://stripes.sourceforge.net/docs/current/javad

[appengine-java] Re: Vs: Re: Stripes + UrlBinding + Google App Engine

2011-05-15 Thread Mike Lawrence
sorry you're having problems.
dont think this is an app engine issue
since many folks use stripes on gae.
here are the stripe parts from my web XML


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://
java.sun.com/xml/ns/javaee/web-app_2_4.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd";
version="2.4">





StripesFilter
net.sourceforge.stripes.controller.StripesFilter





MultipartWrapperFactory.Class


com.wordpong.app.stripes.EmptyMultipartWrapper










StripesFilter
DispatcherServlet

*.jsp
REQUEST
FORWARD










DispatcherServlet

net.sourceforge.stripes.controller.DispatcherServlet

1


DispatcherServlet
*.action













DynamicMappingFilter
net.sourceforge.stripes.controller.DynamicMappingFilter



DynamicMappingFilter
/*
REQUEST
FORWARD




On May 14, 11:05 am, Pauli Savolainen 
wrote:
> Hello
>
> I had some time to try this again, but I still have no success.
>
> I have an ActionBean with @UrlBinding("/home"). The @DefaultHandler method
> ForwardResolutions to index.jsp which only prints "Hello":
>
> @DefaultHandler
> public Resolution home() {
>   return new ForwardResolution("index.jsp"); // Also tried "/index.jsp"
>
> }
>
> In dev environment I access my app 
> viahttp://localhost:/index.jspandhttp://localhost:/home. Both print 
> "Hello". That is, it works perfectly.
>
> After I have deployed my app on appengine I access the application via
> http://.appspot.com/index.jsp. This prints "Hello", but when I access
> my app via http://.appspot.com/home I get an infinite redirect loop.
> I checked the app engine logs:
>
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/inde 
> x.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp 
> /index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp/index.jsp
> /home/index.jsp/index.jsp
> /home/index.jsp
> /home/
>
> I consider this more an app engine issue than Stripes issue because
> everything works locally but not in app engine. Stripes uses a servlet
> filter to handle the UrlBindings. The filter javadocs states:
>
> This filter takes the following approach to determining when to dispatch an
> ActionBean:
>
>    1. Allow the request to process normally, trapping any HTTP errors that
>    are returned.
>    2. If no error was returned then do nothing, allowing the request to
>    complete successfully. If any error other than 404 was returned then send
>    the error through. Otherwise ...
>    3. Check the 
> ActionResolverto
>  see if an
>    
> ActionBeanis
>  mapped to the URL. If not, then send the
>    404 error through. Otherwise...
>    4. Invoke 
> StripesFilterand
>    
> DispatcherServlet
>
> So it expects a 404. This all seems like the app engine doesn't like this
> behaviour, thus the infinte redirect loop.
>
> I have tried to clean my config

[appengine-java] Re: Integrating Flex/Flash/Silverlight/AJAX/Android with Java classes in GAE

2011-04-07 Thread Mike Lawrence
Mark,
if I write a simple servlet that accepts JSON
it supports any client too, for free with no
external dependencies.

I watched your entire video.
Sorry, not sure I understand your value
proposition.

On Apr 5, 3:45 pm, Mark Piller  wrote:
> Hey guys,
>
> I am not sure what the policy for announcements is on this forum, but I hope
> many of you will find it relevant. I just wanted to let you know that we
> released a version of our software which provides runtime integration
> between various client types and Java classes hosted in GAE. The supported
> client types include Flex, Flash, Silverlight, JavaScript/AJAX, Android,
> Windows Phone and in the very near future iOS. The product enabling the
> integration is called WebORB. It can be plugged into any GAE app. There is a
> video describing the integration at:http://www.youtube.com/watch?v=NSx9oRj5v50
>
> The doc describing the integration is available
> at:http://www.themidnightcoders.com/fileadmin/docs/java/v4/gae_overview.htm
>
> Cheers,
> Mark

-- 
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: Tips/Pitfalls for total newbies?

2011-04-02 Thread Mike Lawrence
Ck out this crash course in getting a java app up from scratch...
http://goo.gl/UT2W3

My personal recommendations:
- plan on spending a week or two learning how the datastore works
before you get started
- if you will ever need the High Replication Datastore, set it up now.
it's a pain to add it later
- wrap all data access in daos
- wrap all gae services in daos
- use slim3 for database access to get around "updating 2 entities in
a single transaction" limitation
- use stripes for the web framework to keep startup times under 3
seconds
- use https for everything  (firesheep is looking for your cookies)
- convert to app engine biz accnt and pay the $9/mnth for 3 always-on
servers. even 3 seconds start-up times make an app unusable for most
folks
- use jquery for minimal layout, do everything else in jsps to
generate jquery content upon form post
- add code to detect when datastore is read-only and handle it with a
custom page (maybe a javascript game, tetris?)
- add a apple-touch-icon.png touch icon so people can save your app to
their phones
- plan for mobile support from day one, ck out jquerymobile.com
- volume test your site using jmeter to see how it will handle massive
traffic spikes
- pay me for not having to learn the hard way like I did :)




On Apr 1, 7:38 am, Drew Spencer  wrote:
> Hi all,
>
> Totally new to this, about to embark on a development for my own business
> and think that GAE is the perfect solution. I basically want to make sure
> that we are making the right choice, and to be informed of any pitfalls
> early on.
>
> Basically the system will be a complete intranet/sales tool based around a
> rather complex pricing engine. I have previous experience using Codeigniter
> + Doctrine, but after tinkering with v2.0 for a while it just seems like it
> is very buggy, and still has many limitations over using Java.
>
> We already use google apps for mail and have a simple intranet built on
> google sites so users will be using their company email account for
> validation.
>
> There are a few key features we need:
>
>    - Small number of users (~100)
>    - Integration with salesforce.com (Using the force.com API?)
>    - Integration with Gmail so that the system can automatically log and
>    send emails, as well as pick them up. (Using IMAP/SMTP?)
>    - Ability to upload and store basic files that can be downloaded by staff
>    (Using docs API, or just datastore?)
>
> If anyone can advise of any things to investigate right now that would be
> really helpful.
>
> I have quite a few years experience programming, and a willing assistant
> with a bit of OO knowledge, other than that I will be learning to use things
> like JDO and JSP for the first time.
>
> All of your input is appreciated.
>
> Drew

-- 
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: Does anyone use cloudcover for running junit tests on appengine?

2011-03-25 Thread Mike Lawrence

this one works really well locally
and on gae
http://code.google.com/p/ktrwjr/

On Mar 22, 5:58 pm, Brendan Doherty 
wrote:
> At Google I/O last year, Max Ross gave an interesting talk on a unit test
> harness that let you run existing test suites in production on Google App
> Engine call cloudcover.
>
>  http://code.google.com/p/cloudcover/
>
> Does anyone use it?  I'd be interested to hear of how well it worked, or any
> problems that people ran into.

-- 
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: Deleted APP, recover app ID

2011-03-15 Thread Mike Lawrence
http://code.google.com/appengine/kb/general.html

How many applications can I create with Google App Engine?
 You can delete your existing applications via the Admin Console if
you want to create more,
but you will not be able to re-register an application ID.

On Mar 14, 9:41 am, IvanRdz  wrote:
> Hello,
>
> I deleted my app 5 days ago (due to HR datastore migration) and I can
> ´t recover this app id. When I try to register new app with this same
> name in this same account, Google says that this Id is not available.
> I remember a warning saying that there was no problem about the app ID
> if the app is deleted. But I can´t register it.
>
> Can anyone help me please?

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