[appengine-java] Objectify - Twig - SimpleDS articles

2010-03-29 Thread Andreas Borglin
Hi all.

I recently decided to migrate away from JDO to one of the third party
datastore frameworks. At first I had only heard about objectify, but
after some further digging I  found out about 5 other frameworks as
well (Twig, SimpleDS, siena, slim3, cloud2db).

I was only interested in simple wrapper frameworks that acted as a
convenience layer above the AppEngine low-level API. I _want_ the
framework to expose the true nature of the datastore, but at the same
time relieve the developer of the tedious tasks that's involved when
working with the low-level API directly. It is much easier to work
with the AppEngine datastore when its concepts, features, constraints
and limitations are exposed directly. You can read more about the
reasons for this in the article.

This left me with objectify, Twig and SimpleDS. (siena and cloud2db
are multi-platform and slim3 is more than just a datastore framework)

I spent some time researching these when I got the idea to write an
article about them. I contacted the authors for each framework and
asked if they would be interested in participating. Passionate as they
are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John
Patterson (Twig) and Ignacio Coloma (SimpleDS) for this.

The goal is to publish two articles; one interview with the authors,
and one where I solve some typical scenario with each framework.
The interview article has now been published and can be found at
http://borglin.net/gwt-project/?page_id=604 .
The code example article will be posted sometime in the upcoming two
weeks.

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



Re: [appengine-java] Problem with AppStats

2010-03-29 Thread m seleron
Hi,

I tried.
After successfully running the following was added to the web.xml.


appstats

com.google.appengine.tools.appstats.AppstatsServlet


appstats
/appstats/*




/appstats/*


admin



appstats

com.google.appengine.tools.appstats.AppstatsFilter

logMessage
Appstats available:
/appstats/details?time={ID}



appstats
/*



I think that I should confirm the environment such as jar files
when there is no difference compared with your web.xml .

please try.
thanks.



2010/3/27 George Tang :
> Hey Everyone,
>
> I just downloaded the new SDK and i was excited to use app stats.
> After following the instructions to set it up, I tried testing it on
> my localdev server and I got a nullpointerexception
>
> WARNING: /appstats/stats
> java.lang.NullPointerException
>        at java.io.Reader.(Reader.java:61)
>        at java.io.InputStreamReader.(InputStreamReader.java:80)
>        at
> com.google.appengine.tools.appstats.TemplateTool.loadTemplateSource(TemplateTool.java:
> 115)
>        at com.google.appengine.tools.appstats.Renderer
> $1.loadTemplateSource(Renderer.java:41)
>        at
> com.google.appengine.tools.appstats.TemplateTool.getTemplate(TemplateTool.java:
> 142)
>        at
> com.google.appengine.tools.appstats.TemplateTool.format(TemplateTool.java:
> 100)
>        at com.google.appengine.tools.appstats.Renderer
> $1.format(Renderer.java:51)
>        at
> com.google.appengine.tools.appstats.Renderer.renderSummaries(Renderer.java:
> 66)
>        at
> com.google.appengine.tools.appstats.AppstatsServlet.doGet(AppstatsServlet.java:
> 99)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 511)
>        at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1166)
>        at
> com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:
> 92)
>        at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>        at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
> 51)
>        at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>        at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
> 43)
>        at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>        at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
> 122)
>        at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 388)
>        at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 182)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 765)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 418)
>        at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
> 70)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>        at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:349)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>        at org.mortbay.jetty.Server.handle(Server.java:326)
>        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 542)
>        at org.mortbay.jetty.HttpConnection
> $RequestHandler.headerComplete(HttpConnection.java:923)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>        at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 409)
>        at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:582)
>
> Anyone have any idea why?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed t

Re: [appengine-java] Re: Blobstore UploadBlobServlet.java NPE

2010-03-29 Thread bimbo jones
h,

We have the following code in the upload servlet:

public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
BlobInfo info = new
BlobInfoFactory().loadBlobInfo(blobstoreService.getUploadedBlobs(req).get("uploader"));
// uploader is the name of the 
//Then we use the persistence manager to store the key
//info.getBlobKey() .. info.getSize() ..
//Then redirect to a new servlet to send json to the form complete
handler
}

2010/3/27 Miguel 

> I have the same problem.
> It does not matter the url to the servlet i use to work with de keys
> of the blobs, i always have the same NPC.
>
> Any help about what we are doing wrong ?
>
> Thanks
>
> On 11 feb, 21:21, Stevko  wrote:
> > I'm trying to post files into theblobstoreon my dev station using
> > eclipse.
> > The _BlobInfo_ objects are appearing within the datastore viewer but
> > this exception keep getting thrown for the first time I post the form.
> >
> > Is there anyone with access to UploadBlobServlet.java that can point
> > me to why I'm getting a NPE?
> > --Andy.Stevko
> >
> > Feb 11, 2010 8:06:43 PM com.google.apphosting.utils.jetty.JettyLogger
> > warn
> > WARNING: /_ah/upload/
> > ag5uaW51a3VtZW1vcmllc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGIYIDA
> > java.lang.NullPointerException
> > at
> >
> com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
> dBlobServlet.java:
> > 365)
> > at
> com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
> > $000(UploadBlobServlet.java:72)
> > at com.google.appengine.api.blobstore.dev.UploadBlobServlet
> > $1.run(UploadBlobServlet.java:100)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
> ervlet.java:
> > 98)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> > at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 487)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1093)
> > at
> >
> com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocat
> ion.java:
> > 67)
> > at
> >
> com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipel
> ine.java:
> > 122)
> > at
> com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> > 110)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1084)
> > at
> >
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi
> lter.java:
> > 51)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1084)
> > at
> >
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans
> actionCleanupFilter.java:
> > 43)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1084)
> > at
> >
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile
> Filter.java:
> > 121)
> > at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1084)
> > at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> > 360)
> > at
> > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> > 216)
> > at
> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> > 181)
> > at
> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> > 712)
> > at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > 405)
> > at
> >
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn
> gineWebAppContext.java:
> > 70)
> > at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > 139)
> > at com.google.appengine.tools.development.JettyContainerService
> > $ApiProxyHandler.handle(JettyContainerService.java:352)
> > at
> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > 139)
> > at org.mortbay.jetty.Server.handle(Server.java:313)
> > at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > 506)
> > at org.mortbay.jetty.HttpConnection
> > $RequestHandler.content(HttpConnection.java:844)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
> > at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> > at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > at
> > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> > 396)
> > at org.mortbay.thread.BoundedThreadPool
> > $PoolThread.run(BoundedThreadPoo

Re: [appengine-java] bouncycastle add provider failure

2010-03-29 Thread Alan Kennedy
[ZaeX]
> I have tried to add the bouncycastle JCE provider in the code, it
> works in Eclipse jetty server, but failed on GAE.
> I wonder if it's because my coding mistake or 'Security.addProvider'
> is forbidden by GAE.

It is currently not possible to add security providers to appengine.

Add support for BouncyCastle JCE provider
http://code.google.com/p/googleappengine/issues/detail?id=1612

Alan.

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



[appengine-java] Re: Timeout using GData API

2010-03-29 Thread Kenyth
FYI, I appended messages to this issue (
http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to
describe my case. Surprisingly, this issue claims to be fixed on Sep
03, 2009?!

On Mar 29, 2:21 pm, Kenyth  wrote:
> The same issue here. Has someone found a solution so far?
>
> On Mar 26, 3:55 am, "Shinichiroh Takezaki [Virtual Technology]"
>
>  wrote:
> > Hi
>
> > I made a patch that the GData API library to execute asynchronously.
>
> > see:http://code.google.com/p/reflexworks/source/browse/trunk/gdataclientp...
>
> > source:http://code.google.com/p/reflexworks/source/browse/#svn/trunk/gdatacl...
>
> > Takezaki
>
> > 2010/3/19 Alexandru Farcas 
>
> > > i have the same problem ...
>
> > > in some cases, for some searches I get this error and is very annoying
> > > because I can not increase the timeout ...
> > > It's very urgent to me ... so, if anyone can help me/us to resolve
> > > this "problem"...
>
> > > On Mar 18, 1:25 pm, Ice13ill  wrote:
> > > > Everybody says that using the setConntectionTimeout() can set the
> > > > maximum timeout to 10 seconds.
> > > > I also tried setting service.setConnectionTimeout() (witch sets the
> > > > timeout for the HttpUrlConnectiion object used to fetch data) but with
> > > > no effect (contrary to what it says here:
> > >http://code.google.com/appengine/docs/java/urlfetch/overview.html#Req...).
> > > > I have read somewhere that this pb was fixed in an early release but
> > > > it doesn't appear so.
> > > > Can anyone help ?
>
> > > > On Jan 20, 7:42 am, smile laugh  wrote:
>
> > > > > I also get same error
>
> > > > > is there someone can help me out
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > _/ 有限会社バーチャルテクノロジー 竹嵜 伸一郎
> > _/ Virtual Technology, Ready to Cloud
> > _/http://www.virtual-tech.net/

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



Re: [appengine-java] Re: Timeout using GData API

2010-03-29 Thread Andrei Cosmin Fifiiţă
I noticed that too... I'll try async fetch... Hope it works...

2010/3/29 Kenyth 

> FYI, I appended messages to this issue (
> http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to
> describe my case. Surprisingly, this issue claims to be fixed on Sep
> 03, 2009?!
>
> On Mar 29, 2:21 pm, Kenyth  wrote:
> > The same issue here. Has someone found a solution so far?
> >
> > On Mar 26, 3:55 am, "Shinichiroh Takezaki [Virtual Technology]"
> >
> >  wrote:
> > > Hi
> >
> > > I made a patch that the GData API library to execute asynchronously.
> >
> > > see:
> http://code.google.com/p/reflexworks/source/browse/trunk/gdataclientp...
> >
> > > source:
> http://code.google.com/p/reflexworks/source/browse/#svn/trunk/gdatacl...
> >
> > > Takezaki
> >
> > > 2010/3/19 Alexandru Farcas 
> >
> > > > i have the same problem ...
> >
> > > > in some cases, for some searches I get this error and is very
> annoying
> > > > because I can not increase the timeout ...
> > > > It's very urgent to me ... so, if anyone can help me/us to resolve
> > > > this "problem"...
> >
> > > > On Mar 18, 1:25 pm, Ice13ill  wrote:
> > > > > Everybody says that using the setConntectionTimeout() can set the
> > > > > maximum timeout to 10 seconds.
> > > > > I also tried setting service.setConnectionTimeout() (witch sets the
> > > > > timeout for the HttpUrlConnectiion object used to fetch data) but
> with
> > > > > no effect (contrary to what it says here:
> > > >
> http://code.google.com/appengine/docs/java/urlfetch/overview.html#Req...).
> > > > > I have read somewhere that this pb was fixed in an early release
> but
> > > > > it doesn't appear so.
> > > > > Can anyone help ?
> >
> > > > > On Jan 20, 7:42 am, smile laugh  wrote:
> >
> > > > > > I also get same error
> >
> > > > > > is there someone can help me out
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> Groups
> > > > "Google App Engine for Java" group.
> > > > To post to this group, send email to
> > > > google-appengine-j...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > > --
> > > _/ 有限会社バーチャルテクノロジー 竹嵜 伸一郎
> > > _/ Virtual Technology, Ready to Cloud
> > > _/http://www.virtual-tech.net/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError

2010-03-29 Thread objectuser
Hey, Thomas,

Thanks very much for working on this!  I think a lot of people want
Spring transactions to work in GAE.

What does your fix do? Or why does it work?  It looks like you're just
creating a proxy that passes the invocation along.  For example, my
jdo-context.xml is below.  Is your new bean tied to a transaction
manager somehow like the one below?  Does having the proxy prevent the
AOP engine from throwing the exception?

Thanks!


http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:p="http://
www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop";
xmlns:context="http://www.springframework.org/schema/context";
xmlns:jee="http://www.springframework.org/schema/jee";
xmlns:tx="http://www.springframework.org/schema/tx";
xsi:schemaLocation="
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd";>
















On Mar 28, 11:10 pm, Thomas  wrote:
> Please refer tohttp://code.google.com/p/googleappengine/issues/detail?id=1381
> comment #20

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



[appengine-java] How to get IP address of Appengine running my java servlet page

2010-03-29 Thread powell...@gmail.com
I am trying to get a sense of where (location) the Appengine is
running my servlet to show how the cloud runs my servlet in different
locations. I have tried to use request.getLocalAddr() but get back
null. I tried getServletContext().getServerInfo() but did not get back
an IP address. Any ideas?

Dave

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



[appengine-java] Re: AuthSub InvalidToken problem

2010-03-29 Thread nicanor.babula
Come on!
Anyone, anything?

Thanks.

On Mar 26, 12:54 pm, "nicanor.babula" 
wrote:
> Hi all,
>
> I am facing a strange problem in with my app in GAE and I can't seem
> to figure it up by myself, so I hope you'll help me.. Here we are:
>
> I do :
>
> [code]
> String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, 
> "http://www.google.com/calendar/feeds/default/private/full";, false, true);
> response.sendRedirect(authSubUrl);
> [/code]
>
> in my servlet in order to get an auth subtoken. And the servlet at
> nextUrl does:
> [code]
> String oneTimeUseToken =
> AuthSubUtil.getTokenFromReply(request.getQueryString());
> if(oneTimeUseToken != null){
>   String sessionToken =
> AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null);
>   // persist the sessiontoken}
>
> // redirect to the page using google services
> [/code]
> in order to retrieve and persist the sessiontokenalong with other
> user information.
>
> The problem is that when later I do:
> [code]
> URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/
> private/full");
> CalendarQuery myQuery = new CalendarQuery(feedUrl);
> CalendarService calendarService = new CalendarService("some-app-
> name");
> calendarService.setAuthSubToken(currentUser.authSubToken, null);
> CalendarEventFeed resultFeed = calendarService.query(myQuery,
> CalendarEventFeed.class);
> [/code]
>
> It says that thetokenisinvalid, and raises this exception:
> [code]
> cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev:
> null
> com.google.gdata.util.AuthenticationException: OK
> 
> 
> Tokeninvalid-InvalidAuthSubtoken.
> 
> 
> Tokeninvalid-InvalidAuthSubtoken.
> Error 401
> 
> 
>
>         at
> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData 
> Request.java:
> 596)
>         at
> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG 
> DataRequest.java:
> 563)
>         at
> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques 
> t.java:
> 550)
>         at
> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java :
> 530)
>         at
> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. 
> java:
> 535)
>         at com.google.gdata.client.Service.getFeed(Service.java:1102)
>         at com.google.gdata.client.Service.getFeed(Service.java:1044)
>         at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
> 662)
>         at com.google.gdata.client.Service.query(Service.java:1204)
>         at com.google.gdata.client.Service.query(Service.java:1145)
>         at
> cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE 
> ventsServiceImpl.java:
> 133)
>         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
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> ethod_
> $1.run(Method_.java:165)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> ethod_.privilegedInvoke(Method_.java:
> 163)
>         at
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> ethod_.invoke_(Method_.java:
> 124)
>         at
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> ethod_.invoke(Method_.java:
> 43)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 562)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
> ceServlet.java:
> 188)
>         at
> cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java :
> 12)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
> ceServlet.java:
> 224)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
> RemoteServiceServlet.java:
> 62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 511)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1166)
>         at
> com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo 
> bUploadFilter.java:
> 97)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>         at
> com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF 
> ilter.java:
> 35)
>         at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1157)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doF

Re: [appengine-java] Re: log4j init fails

2010-03-29 Thread Rajeev Dayal
Can you provide the contents of the file?

On Sat, Mar 27, 2010 at 11:44 AM, Eurig Jones  wrote:

> I'm getting the same problem. my log4j.properties is in the root of my
> source folder and it's giving me this issue.
>
> On Mar 12, 10:25 pm, Rajeev Dayal  wrote:
> > Can you post a copy of your log4j.properties file?
> >
> > On Thu, Mar 11, 2010 at 12:45 PM, AJ Chen 
> wrote:
> > > yes, log4j.properties is copied by the build. the app uses it.  the
> warning
> > > message is weird.  thanks.
> >
> > > On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal 
> wrote:
> >
> > >> If you have your log4j.properties file at the root of your source
> tree, it
> > >> should automatically be copied over to war/WEB-INF/classes whenever
> Eclipse
> > >> performs a build of your project; you should not have to copy it over
> > >> manually.
> >
> > >> I'm not sure why you're getting the error with regard to
> > >> Datanucleus.Connection; I've added Don to this thread; he may have
> some
> > >> insight into this.
> >
> > >> On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen 
> wrote:
> >
> > >>> I have the default log4j.properties in WEB-INF/classes dir. but the
> > >>> warning always comes up. the file is visible because I can change the
> log
> > >>> level to ERROR to get rid of the warning.
> > >>> -aj
> >
> > >>> On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright <
> rwright.li...@gmail.com>wrote:
> >
> >  I think you can simply put the log4j.properties file in the
> >  WEB-INF/classes dir and you don't need any appengine-web.xml stuff
> for it.
> >   Log4j looks for its configuration file "on the classpath" which
> means it
> >  looks in WEB-INF/classes (and also in all of the jars in the lib
> directory).
> >
> >  AJ Chen wrote:
> >
> > > I have  log4j config in appengine-web.xml,
> > > 
> > > > > value="WEB-INF/logging.properties"/>
> > > > > value="file:WEB-INF/classes/log4j.properties"/>
> > > > > value="WEB-INF/monitor.properties"/>
> > >
> > >   but GAE still complains about it:
> > > log4j:WARN No appenders could be found for logger
> > > (DataNucleus.Connection).
> > > log4j:WARN Please initialize the log4j system properly.
> >
> > > Is there anything else that should be set?
> >
> > > thanks,
> > > -aj
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >  --
> >  0x2B | ~0x2b  --  Hamlet
> >
> >  --
> >  You received this message because you are subscribed to the Google
> >  Groups "Google App Engine for Java" group.
> >  To post to this group, send email to
> >  google-appengine-j...@googlegroups.com.
> >  To unsubscribe from this group, send email to
> >  google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> >  .
> >  For more options, visit this group at
> > http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > >>> --
> > >>> AJ Chen, PhD
> > >>> Chair, Semantic Web SIG, sdforum.org
> > >>>http://web2express.org
> > >>> twitter @web2express
> > >>> Palo Alto, CA, USA
> > >>> 650-283-4091
> > >>> *Building social media monitoring pipeline, and connecting social
> > >>> customers to CRM*
> >
> > >>>  --
> > >>> You received this message because you are subscribed to the Google
> Groups
> > >>> "Google App Engine for Java" group.
> > >>> To post to this group, send email to
> > >>> google-appengine-j...@googlegroups.com.
> > >>> To unsubscribe from this group, send email to
> > >>> google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> > >>> .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > >>  --
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "Google App Engine for Java" group.
> > >> To post to this group, send email to
> > >> google-appengine-j...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-appengine-java+unsubscr...@googlegroups.com
> 
> >
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > > --
> > > AJ Chen, PhD
> > > Chair, Semantic Web SIG, sdforum.org
> > >http://web2express.org
> > > twitter @web2express
> > > Palo Alto, CA, USA
> > > 650-283-4091
> > > *Building social media monitoring pipeline, and connecting social
> customers
> > > to CRM*
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Jav

Re: [appengine-java] Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-03-29 Thread Jason Parekh
Hi,

Could you try a few things:
- What happens when you right-click your project, and select Run As > Web
Application?  Does the Console come to focus?  What does it say?
- Could you create a new Web Application project (using GAE 1.3.2) and try
Run As > Web Application on it?  Does this work?
- I may have misunderstood when you said dumps stack traces, but if there
are stack traces, could you include them in your reply?

Thanks
jason

On Sun, Mar 28, 2010 at 10:07 PM, Joa  wrote:

> I've tried to update GAE to 1.3.2. Now the project is broken and I
> seem to be not even able to revert back to 1.3.1.
>
>
> I've taken the following steps:
> - Trying to locate instructions. Couldn't find any, so this must be
> simple...
> - Updated Google plugin through Help -> Check for updates. Checks out
> - Then downloaded GAE 1.3.2 for Java, unzip
> - Set Project Properties using Google > App Engine. "Use specific SDK"
> set to 1.3.2. Now the project root in the Eclipse Package Explorer is
> marked with an error. The project won't start any longer without an
> error message and dumps stack traces. To my dismay, any changes in
> this panel do not seem to have an impact whatsoever now.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: Update to GAE/J 1.3.2 -> Project in Eclipse broken

2010-03-29 Thread Jason Parekh
Hi Moritz,

Could you try the following:
- In your project properties, could you see what the App Engine SDK is set
to (right-click project > Properties > Google > App Engine).  Does it show
an error on this page?  If you click the Configure SDKs button, what is the
path for the SDK?
- In your project properties, can you go to Java Build Path , then Libraries
tab, and see if there are any leftover JARs on your classpath?  If there
are, could you take a screenshot of that dialog (hopefully tall enough so
all the entries are visible)?

Thanks,
jason

On Mon, Mar 29, 2010 at 1:53 AM, Moritz  wrote:

> I have the same problem: "The App Engine SDK '/{project-root}/war' on
> the project's build path is not valid" where "{project-root} is the
> root directory of my project.
> When I create a new project, this error does not occur, but I cannot
> spot any differences in the configuration files of both projects, so
> I'm a bit stuck at the moment.
>
> On 29 Mrz., 04:07, Joa  wrote:
> > I've tried to update GAE to 1.3.2. Now the project is broken and I
> > seem to be not even able to revert back to 1.3.1.
> >
> > I've taken the following steps:
> > - Trying to locate instructions. Couldn't find any, so this must be
> > simple...
> > - Updated Google plugin through Help -> Check for updates. Checks out
> > - Then downloaded GAE 1.3.2 for Java, unzip
> > - Set Project Properties using Google > App Engine. "Use specific SDK"
> > set to 1.3.2. Now the project root in the Eclipse Package Explorer is
> > marked with an error. The project won't start any longer without an
> > error message and dumps stack traces. To my dismay, any changes in
> > this panel do not seem to have an impact whatsoever now.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] JDO java cascade unidirectional mapping problem

2010-03-29 Thread Тарас Великий
What steps will reproduce the problem?
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Patient {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key patientID;

@Persistent
private String patientName;

@ForeignKey
@Persistent
private Genders genderID;

@Persistent
private Date patientBirthDate;
}

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Genders {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key genderID;

@Persistent
private String genderText;
}
What is the expected output? What do you see instead?
I use this code:
Patient patient = new Patient("someName", pm.getObjectById(
Genders.class, 7), new Date(), new );

And i got this exception:
Detected attempt to establish Patient(420) as the parent of Genders(7)
but
the entity identified by Genders(7) has already been persisted without
a
parent.  A parent cannot be established or changed once an object has
been
persisted.

What version of the product are you using? On what operating system?
Eclipse

Please provide any additional information below.
Please help to solve this problem

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



[appengine-java] Re: How to get IP address of Appengine running my java servlet page

2010-03-29 Thread Didier Durand
Hi, check out class java.lang.System:  you can get various system
properties.
didier

On Mar 29, 4:30 pm, "powell...@gmail.com"  wrote:
> I am trying to get a sense of where (location) the Appengine is
> running my servlet to show how the cloud runs my servlet in different
> locations. I have tried to use request.getLocalAddr() but get back
> null. I tried getServletContext().getServerInfo() but did not get back
> an IP address. Any ideas?
>
> Dave

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



[appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Blake
+1

On Mar 29, 4:03 am, Andreas Borglin  wrote:
> Hi all.
>
> I recently decided to migrate away from JDO to one of the third party
> datastore frameworks. At first I had only heard about objectify, but
> after some further digging I  found out about 5 other frameworks as
> well (Twig, SimpleDS, siena, slim3, cloud2db).
>
> I was only interested in simple wrapper frameworks that acted as a
> convenience layer above the AppEngine low-level API. I _want_ the
> framework to expose the true nature of the datastore, but at the same
> time relieve the developer of the tedious tasks that's involved when
> working with the low-level API directly. It is much easier to work
> with the AppEngine datastore when its concepts, features, constraints
> and limitations are exposed directly. You can read more about the
> reasons for this in the article.
>
> This left me with objectify, Twig and SimpleDS. (siena and cloud2db
> are multi-platform and slim3 is more than just a datastore framework)
>
> I spent some time researching these when I got the idea to write an
> article about them. I contacted the authors for each framework and
> asked if they would be interested in participating. Passionate as they
> are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John
> Patterson (Twig) and Ignacio Coloma (SimpleDS) for this.
>
> The goal is to publish two articles; one interview with the authors,
> and one where I solve some typical scenario with each framework.
> The interview article has now been published and can be found 
> athttp://borglin.net/gwt-project/?page_id=604.
> The code example article will be posted sometime in the upcoming two
> weeks.

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



[appengine-java] error when trying to run gae/j app - Usage: [options]

2010-03-29 Thread zackmac
getting this message when trying to run my gae/j app in Eclipse:

Usage:  [options] 

Options:
 --help, -h Show this help message and exit.
 --server=SERVERThe server to use to determine the latest
  -s SERVER   SDK version.
 --address=ADDRESS  The address of the interface on the local
machine
  -a ADDRESS  to bind to (or 0.0.0.0 for all
interfaces).
 --port=PORTThe port number to bind to on the local
machine.
  -p PORT
 --sdk_root=rootOverrides where the SDK is located.
 --disable_update_check Disable the check for newer SDK versions.

I was experimenting with implementing gwt in my gae/j app but decided
not to pursue that path further.  Now, I'm just trying to run the app
and have the "use gwt" settings unchecked but am still getting this
error.  I'm using Eclipse 3.4.1 and gae/j 1.3.1

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



Re: [appengine-java] Re: How to get IP address of Appengine running my java servlet page

2010-03-29 Thread Jeff Schnitzer
It seems quite unlikely that GAE appservers are going to have public
IP addresses.  Even if you can get the IP address of the host (and I
suspect this is impossible), it's going to be a private address.

The best you will probably be able to do is get the NATed apparent
address of the URLFetch servers.  Make a URLFetch request to a server
you run somewhere and check the source IP address in the logs.

This isn't necessarily a good piece of data, though.  For one, this is
simply going to be an outbound public IP.  The request could have been
routed around the world through Google's private network before it
found an outbound node.  For another, it's going to come from the
URLFetch service... and there is no guarantee that the URLFetch server
is the same box (or even located anywhere near) the box your app runs
on.

It's an opaque system - deliberately so.

Jeff

On Mon, Mar 29, 2010 at 9:43 AM, Didier Durand  wrote:
> Hi, check out class java.lang.System:  you can get various system
> properties.
> didier
>
> On Mar 29, 4:30 pm, "powell...@gmail.com"  wrote:
>> I am trying to get a sense of where (location) the Appengine is
>> running my servlet to show how the cloud runs my servlet in different
>> locations. I have tried to use request.getLocalAddr() but get back
>> null. I tried getServletContext().getServerInfo() but did not get back
>> an IP address. Any ideas?
>>
>> Dave
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Ikai L (Google)
Hah, Blake, guess you caught us! We might be doing more stuff with that in
addition to what went out with 1.3.2.

On Fri, Mar 26, 2010 at 6:50 PM, Blake  wrote:

> Ikai - that's awesome - great to see you guys listening to us.  Is
> that doc already outdated?  Didn't you just release this?
>
> "Ability to select different availability vs. latency options for
> Datastore"
>
> On Mar 26, 1:42 pm, "Ikai L (Google)"  wrote:
> > Keeping reserved instances has been added to our public roadmap:
> >
> > http://code.google.com/appengine/docs/roadmap.html
> >
> > As far as spinning
> up
> > additional instances, there are probably a few good solutions here. We'll
> be
> > best off collecting feedback when we ship reserved instances on which
> > solution works best.
> >
> >
> >
> >
> >
> > On Fri, Mar 26, 2010 at 10:38 AM, gholler 
> wrote:
> > > Thanks for your replies.  I think we would want an option to pay to
> > > keep at least one instance "warm" and ready to go at any time (I don't
> > > know what makes sense for a fee though).
> > > And as Guillermo says, that won't help us as new instances are needed
> > > to scale.  There could be a fee for paying accounts to get those
> > > special startup requests, and I also don't know what makes sense for a
> > > fee there. It would also need to be able to handle more than 30
> > > seconds, ideally it could be a task that keeps gettings called until
> > > it returns a 200-299 status. The url for the task could be specified
> > > in the appengine-web.xml.
> >
> > > G
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com unsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Enginehttp://
> googleappengine.blogspot.com|http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Error message after updating AppEngine in my project

2010-03-29 Thread Ikai L (Google)
Not sure why this should be happening as the deploy script should be
ignoring this, but is it possible for you to do an "svn export" to another
directory prior to a deploy?

On Sat, Mar 27, 2010 at 5:10 AM, Fux  wrote:

>  com.google.appengine.tools.info.LocalVersionFactory getVersion
> INFO: Could not find API version from C:\Documents and Settings
> \myproject\war\WEB-INF\lib\.svn
> java.io.FileNotFoundException: C:\Documents and Settings\myproject\war
> \WEB-INF\lib\.svn (Access Denied)
>at java.util.zip.ZipFile.open(Native Method)
>at java.util.zip.ZipFile.(ZipFile.java:114)
>at java.util.jar.JarFile.(JarFile.java:133)
>at java.util.jar.JarFile.(JarFile.java:97)
>at
>
> com.google.appengine.tools.util.ApiVersionFinder.findApiVersion(ApiVersionFinder.java:
> 37)
>at
>
> com.google.appengine.tools.info.LocalVersionFactory.getVersion(LocalVersionFactory.java:
> 65)
>at
>
> com.google.appengine.tools.info.UpdateCheck.getLocalVersion(UpdateCheck.java:
> 112)
>at
>
> com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:
> 91)
>at
> com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:
> 164)
>at
>
> com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:
> 132)
>at com.google.appengine.tools.development.DevAppServerMain
> $StartAction.apply(DevAppServerMain.java:150)
>at com.google.appengine.tools.util.Parser
> $ParseResult.applyArgs(Parser.java:48)
>at
>
> com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:
> 113)
>at
>
> com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:
> 89)
>
>
> No error is shown If I delete the folder: C:\Documents and Settings
> \myproject\war\WEB-INF\lib\.svn
>
> But if I remove that folder I get rid of the SVN bindings!
>
> Anyone can help 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-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] I was reading the objectify wiki and the have the best short explanation of the datastore i ever read. Here the link

2010-03-29 Thread Ikai L (Google)
I like that in one of the first sentences, Jeff says "The datastore is not
an RDBMS! It is like a giant HashMap!" You can really see that developers
tend to get stuck on the relational model. Sometimes I will say "table" or
"column" accidentally myself in these groups.

On Sat, Mar 27, 2010 at 7:11 AM, nicolas melendez wrote:

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



-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Contacts/Address Book App?

2010-03-29 Thread Ikai L (Google)
What kind of Address Book are you writing? GData has a contacts API already
you can take advantage of:

http://code.google.com/apis/contacts/

On Sun, Mar 28, 2010 at 6:27 PM, iwas9409  wrote:

> Instead of writing a Contacts/Address Book App from scratch, is there
> a place I can go to find canned apps that I can tweak OR can someone
> send me anything to get me started?
>
> -Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Looking to brush-up on my Java

2010-03-29 Thread Ikai L (Google)
Having *not* done JEE in a while may actually be a boon, as you would have
had to unlearn a few concepts coming from a relational persistence, stateful
servlets world to one that is not. If you work your way through the tutorial
and App Engine documentation, your prior Java experience should be more than
enough to start building, so as long as you don't try to jump in and use
frameworks you aren't familiar with from the get-go.

As far as specific App Engine questions go: search the groups and
StackOverflow, and if you don't find your answer you can always ask.

On Sat, Mar 27, 2010 at 9:14 PM, aeshanw  wrote:

> Its been a very long time since I used J2EE. been doing web dev in
> LAMP for the past couple of years. Im looking to get back in the game.
> Can anyone reccommend a good book on Java development for the
> AppEngine?
>
> I'm looking to get a good background on the Platform, which should
> help me better understand the debug messages Im getting on my app.
>
> Any suggestions?
>
> Thanks alot!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



Re: [appengine-java] Charging Application Users for Data Storage

2010-03-29 Thread Ikai L (Google)
There's no native API for this. You'll have to track this in your
application.

On Sun, Mar 28, 2010 at 8:41 AM, Gareth Davies wrote:

> I am currently working on my first Java application for Google App
> Engine. It would allow users to record discrete amounts of data
> (recorded with an Android application) by posting to a service
> (currently XML over HTTP). I have reviewed the Billing-related GAE
> documents and understand that after a certain threshold I would have
> to pay for additional storage space.
>
> In the (however unlikely!) event that my app becomes popular and this
> threshold is significantly exceeded I would like to pass on the cost
> by charging users based on how much data they store. I had hoped that
> there would be existing facilities within the Google platform (Apps,
> Checkout etc.) that would make this relatively easy to setup, at least
> from a technical standpoint. However, after searching this list and
> the wider web I have not found much relevant information. Are there
> any best practices/recommendations for how to go about this, or should
> I be looking for a solution independent of the Google App Engine
> plaform?
>
> Thanks,
> Gareth Davies
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

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



[appengine-java] SSLSocket / SSLSocketFactory

2010-03-29 Thread derkent
I would like to send/provoke an apple iphone push from the Java App
Engine.

This is done via ssl.

I have found a library that does exactly that, but it uses the class
SSLSocket & SSLSocketFactory which are not supported.

Are there any alternatives, or any other ways to do this with the app
engine api?

I saw that ssl for third party domains is number one on the roadmap,
but I am not sure if this will meet my requirements.

thanks

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



Re: [appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Guillermo Schwarz
One question: Why didn't you consider jiql?

On Mon, Mar 29, 2010 at 1:04 PM, Blake  wrote:

> +1
>
> On Mar 29, 4:03 am, Andreas Borglin  wrote:
> > Hi all.
> >
> > I recently decided to migrate away from JDO to one of the third party
> > datastore frameworks. At first I had only heard about objectify, but
> > after some further digging I  found out about 5 other frameworks as
> > well (Twig, SimpleDS, siena, slim3, cloud2db).
> >
> > I was only interested in simple wrapper frameworks that acted as a
> > convenience layer above the AppEngine low-level API. I _want_ the
> > framework to expose the true nature of the datastore, but at the same
> > time relieve the developer of the tedious tasks that's involved when
> > working with the low-level API directly. It is much easier to work
> > with the AppEngine datastore when its concepts, features, constraints
> > and limitations are exposed directly. You can read more about the
> > reasons for this in the article.
> >
> > This left me with objectify, Twig and SimpleDS. (siena and cloud2db
> > are multi-platform and slim3 is more than just a datastore framework)
> >
> > I spent some time researching these when I got the idea to write an
> > article about them. I contacted the authors for each framework and
> > asked if they would be interested in participating. Passionate as they
> > are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John
> > Patterson (Twig) and Ignacio Coloma (SimpleDS) for this.
> >
> > The goal is to publish two articles; one interview with the authors,
> > and one where I solve some typical scenario with each framework.
> > The interview article has now been published and can be found athttp://
> borglin.net/gwt-project/?page_id=604.
> > The code example article will be posted sometime in the upcoming two
> > weeks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
Saludos cordiales,

Guillermo Schwarz
Sun Certified Enterprise Architect

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



Re: [appengine-java] error when trying to run gae/j app - Usage: [options]

2010-03-29 Thread Jason Parekh
Hey Zack,

Looks like the launch configuration got into a bad state.

Before you proceed with the solution below, could you send us a copy of the
.launch file for this launch configuration?  That file will be in your
WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches directory.

The solution:  You can safely delete the existing launch configuration (in
Run > Run configurations), close the dialog, and then try right-clicking on
your project > Run As > Web Application.

jason

On Mon, Mar 29, 2010 at 1:06 PM, zackmac  wrote:

> getting this message when trying to run my gae/j app in Eclipse:
>
> Usage:  [options] 
>
> Options:
>  --help, -h Show this help message and exit.
>  --server=SERVERThe server to use to determine the latest
>  -s SERVER   SDK version.
>  --address=ADDRESS  The address of the interface on the local
> machine
>  -a ADDRESS  to bind to (or 0.0.0.0 for all
> interfaces).
>  --port=PORTThe port number to bind to on the local
> machine.
>  -p PORT
>  --sdk_root=rootOverrides where the SDK is located.
>  --disable_update_check Disable the check for newer SDK versions.
>
> I was experimenting with implementing gwt in my gae/j app but decided
> not to pursue that path further.  Now, I'm just trying to run the app
> and have the "use gwt" settings unchecked but am still getting this
> error.  I'm using Eclipse 3.4.1 and gae/j 1.3.1
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Guillermo Schwarz
JohnJ,

The way I see it, you just need to pay for one warmed instance.

I've measured that one instance is enough to handle 30 requests per second.
Trying to execute more requests than that immediatly triggers the loading of
a new instance and so far some of the requests fail.

Therefore, If you are using 1 instance in real traffic (max 30 requests per
second), you only need another one when you reach 31 requests per second, so
that new instance in theory would all you need "warmed" (unless you think
you will jump from one instance to 3 instance from one second to the next).

Assuming all requests end before one second, and assuming the time to load
an instance to be kept "warmed" is a few seconds, you only need 1 warmed
instance added to the instances you are actually using (which should be
number of requests per second / 30).

Did I make myself clear?

Cheers,
Guillermo.

On Mon, Mar 29, 2010 at 1:58 PM, Ikai L (Google)  wrote:

> Hah, Blake, guess you caught us! We might be doing more stuff with that in
> addition to what went out with 1.3.2.
>
>
> On Fri, Mar 26, 2010 at 6:50 PM, Blake  wrote:
>
>> Ikai - that's awesome - great to see you guys listening to us.  Is
>> that doc already outdated?  Didn't you just release this?
>>
>> "Ability to select different availability vs. latency options for
>> Datastore"
>>
>> On Mar 26, 1:42 pm, "Ikai L (Google)"  wrote:
>> > Keeping reserved instances has been added to our public roadmap:
>> >
>> > http://code.google.com/appengine/docs/roadmap.html
>> >
>> > As far as spinning
>> up
>> > additional instances, there are probably a few good solutions here.
>> We'll be
>> > best off collecting feedback when we ship reserved instances on which
>> > solution works best.
>> >
>> >
>> >
>> >
>> >
>> > On Fri, Mar 26, 2010 at 10:38 AM, gholler 
>> wrote:
>> > > Thanks for your replies.  I think we would want an option to pay to
>> > > keep at least one instance "warm" and ready to go at any time (I don't
>> > > know what makes sense for a fee though).
>> > > And as Guillermo says, that won't help us as new instances are needed
>> > > to scale.  There could be a fee for paying accounts to get those
>> > > special startup requests, and I also don't know what makes sense for a
>> > > fee there. It would also need to be able to handle more than 30
>> > > seconds, ideally it could be a task that keeps gettings called until
>> > > it returns a 200-299 status. The url for the task could be specified
>> > > in the appengine-web.xml.
>> >
>> > > G
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "Google App Engine for Java" group.
>> > > To post to this group, send email to
>> > > google-appengine-j...@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > > google-appengine-java+unsubscr...@googlegroups.com> unsubscr...@googlegroups.com>
>> > > .
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-appengine-java?hl=en.
>> >
>> > --
>> > Ikai Lan
>> > Developer Programs Engineer, Google App Enginehttp://
>> googleappengine.blogspot.com|http://twitter.com/app_engine
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> http://googleappengine.blogspot.com | http://twitter.com/app_engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
Saludos cordiales,

Guillermo Schwarz
Sun Certified Enterprise Architect

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



[appengine-java] Re: Objectify - Twig - SimpleDS articles

2010-03-29 Thread Andreas Borglin
Hi Guillermo.

Well, it's hard to consider things that I didn't know existed :-).
I was only aware of the six frameworks that I mentioned in the post.

I'll take a look at it.

On 29 mar, 20:52, Guillermo Schwarz 
wrote:
> One question: Why didn't you consider jiql?
>
>
>
> On Mon, Mar 29, 2010 at 1:04 PM, Blake  wrote:
> > +1
>
> > On Mar 29, 4:03 am, Andreas Borglin  wrote:
> > > Hi all.
>
> > > I recently decided to migrate away from JDO to one of the third party
> > > datastore frameworks. At first I had only heard about objectify, but
> > > after some further digging I  found out about 5 other frameworks as
> > > well (Twig, SimpleDS, siena, slim3, cloud2db).
>
> > > I was only interested in simple wrapper frameworks that acted as a
> > > convenience layer above the AppEngine low-level API. I _want_ the
> > > framework to expose the true nature of the datastore, but at the same
> > > time relieve the developer of the tedious tasks that's involved when
> > > working with the low-level API directly. It is much easier to work
> > > with the AppEngine datastore when its concepts, features, constraints
> > > and limitations are exposed directly. You can read more about the
> > > reasons for this in the article.
>
> > > This left me with objectify, Twig and SimpleDS. (siena and cloud2db
> > > are multi-platform and slim3 is more than just a datastore framework)
>
> > > I spent some time researching these when I got the idea to write an
> > > article about them. I contacted the authors for each framework and
> > > asked if they would be interested in participating. Passionate as they
> > > are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John
> > > Patterson (Twig) and Ignacio Coloma (SimpleDS) for this.
>
> > > The goal is to publish two articles; one interview with the authors,
> > > and one where I solve some typical scenario with each framework.
> > > The interview article has now been published and can be found athttp://
> > borglin.net/gwt-project/?page_id=604.
> > > The code example article will be posted sometime in the upcoming two
> > > weeks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Saludos cordiales,
>
> Guillermo Schwarz
> Sun Certified Enterprise Architect

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



[appengine-java] Re: error when trying to run gae/j app - Usage: [options]

2010-03-29 Thread zackmac
This is what's in the .launch file for this app:























On Mar 29, 3:00 pm, Jason Parekh  wrote:
> Hey Zack,
>
> Looks like the launch configuration got into a bad state.
>
> Before you proceed with the solution below, could you send us a copy of the
> .launch file for this launch configuration?  That file will be in your
> WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches directory.
>
> The solution:  You can safely delete the existing launch configuration (in
> Run > Run configurations), close the dialog, and then try right-clicking on
> your project > Run As > Web Application.
>
> jason
>
> On Mon, Mar 29, 2010 at 1:06 PM, zackmac  wrote:
> > getting this message when trying to run my gae/j app in Eclipse:
>
> > Usage:  [options] 
>
> > Options:
> >  --help, -h                 Show this help message and exit.
> >  --server=SERVER            The server to use to determine the latest
> >  -s SERVER                   SDK version.
> >  --address=ADDRESS          The address of the interface on the local
> > machine
> >  -a ADDRESS                  to bind to (or 0.0.0.0 for all
> > interfaces).
> >  --port=PORT                The port number to bind to on the local
> > machine.
> >  -p PORT
> >  --sdk_root=root            Overrides where the SDK is located.
> >  --disable_update_check     Disable the check for newer SDK versions.
>
> > I was experimenting with implementing gwt in my gae/j app but decided
> > not to pursue that path further.  Now, I'm just trying to run the app
> > and have the "use gwt" settings unchecked but am still getting this
> > error.  I'm using Eclipse 3.4.1 and gae/j 1.3.1
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Re: error when trying to run gae/j app - Usage: [options]

2010-03-29 Thread zackmac
Solution worked great - thanks!

On Mar 29, 3:00 pm, Jason Parekh  wrote:
> Hey Zack,
>
> Looks like the launch configuration got into a bad state.
>
> Before you proceed with the solution below, could you send us a copy of the
> .launch file for this launch configuration?  That file will be in your
> WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches directory.
>
> The solution:  You can safely delete the existing launch configuration (in
> Run > Run configurations), close the dialog, and then try right-clicking on
> your project > Run As > Web Application.
>
> jason
>
> On Mon, Mar 29, 2010 at 1:06 PM, zackmac  wrote:
> > getting this message when trying to run my gae/j app in Eclipse:
>
> > Usage:  [options] 
>
> > Options:
> >  --help, -h                 Show this help message and exit.
> >  --server=SERVER            The server to use to determine the latest
> >  -s SERVER                   SDK version.
> >  --address=ADDRESS          The address of the interface on the local
> > machine
> >  -a ADDRESS                  to bind to (or 0.0.0.0 for all
> > interfaces).
> >  --port=PORT                The port number to bind to on the local
> > machine.
> >  -p PORT
> >  --sdk_root=root            Overrides where the SDK is located.
> >  --disable_update_check     Disable the check for newer SDK versions.
>
> > I was experimenting with implementing gwt in my gae/j app but decided
> > not to pursue that path further.  Now, I'm just trying to run the app
> > and have the "use gwt" settings unchecked but am still getting this
> > error.  I'm using Eclipse 3.4.1 and gae/j 1.3.1
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Java Tasks

2010-03-29 Thread kscott
I have a simple Java task that simply checks to see if it needs to
send an email "email sent flag =N".

It is taking in excess of 6604 milliseconds to execute.  Are tasks
executed with a much lower priority?

When I moved my start time to15 minutes later I was a least able to
get rid of the most of the HTTP 500 errors caused by exceeding the
simultaneous dynamic request limit.

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



Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Baz
Warmed instances make absolutely no sense on the GAE! It's supposed to be an
invisible, infinite, platform without the notion of ram, cpu's, drives or
instances - it goes completely against the heart and soul of the project.
That just makes us an Amazon. It's boggled my mind from day 1 why instances
aren't loaded in the background. I always assumed it would be addressed
shortly - but instead we've decided to completely break the model. Why? I
hate to over-simply, but it really doesn't seem like it's that difficult to
make sure requests only go to ready/warm servers. I bet you could even solve
99% of the cases by simply waiting 3 minutes before serving a request.

Of course, I still love the GAE :)

Baz

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



[appengine-java] Re: Contacts/Address Book App?

2010-03-29 Thread iwas9409
Here is the plan.

I have a team of 100 people.  3 of those people would be
administrators. (we are setup and using Google Apps and those 3 are
setup in that system)

I would like to collect the names, email address, cell phone numbers
of the 100.   In addition, for each meeting we have every month, I
would like to track which of the 100 attendedthen be able to run
reports on who attend what meetings...as well as print a roster of all
100.

-Tom


On Mar 29, 12:24 pm, "Ikai L (Google)"  wrote:
> What kind of Address Book are you writing? GData has a contacts API already
> you can take advantage of:
>
> http://code.google.com/apis/contacts/
>
>
>
> On Sun, Mar 28, 2010 at 6:27 PM, iwas9409  wrote:
> > Instead of writing a Contacts/Address Book App from scratch, is there
> > a place I can go to find canned apps that I can tweak OR can someone
> > send me anything to get me started?
>
> > -Tom
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App 
> Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine

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



[appengine-java] Re: Error message after updating AppEngine in my project

2010-03-29 Thread julianc
Similar problem here. Upgraded to 1.3.2 error, switched back to
1.3.1 ... everything fine again.

Mar 29, 2010 11:24:44 PM
com.google.appengine.tools.info.LocalVersionFactory getVersion
INFO: Could not find API version from ../project/war/WEB-INF/lib/.svn
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:114)
at java.util.jar.JarFile.(JarFile.java:133)
at java.util.jar.JarFile.(JarFile.java:97)
at
com.google.appengine.tools.util.ApiVersionFinder.findApiVersion(ApiVersionFinder.java:
37)
at
com.google.appengine.tools.info.LocalVersionFactory.getVersion(LocalVersionFactory.java:
65)
at
com.google.appengine.tools.info.UpdateCheck.getLocalVersion(UpdateCheck.java:
112)
at
com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java:
91)
at
com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java:
164)
at
com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java:
132)
at com.google.appengine.tools.development.DevAppServerMain
$StartAction.apply(DevAppServerMain.java:150)
at com.google.appengine.tools.util.Parser
$ParseResult.applyArgs(Parser.java:48)
at
com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:
113)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:
89)
Mar 29, 2010 11:24:44 PM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Mar 29, 2010 11:24:44 PM
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed ../project/war/WEB-INF/appengine-web.xml
Mar 29, 2010 11:24:44 PM
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml

On Mar 29, 7:04 pm, "Ikai L (Google)"  wrote:
> Not sure why this should be happening as the deploy script should be
> ignoring this, but is it possible for you to do an "svn export" to another
> directory prior to a deploy?
>
>
>
>
>

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



Re: [appengine-java] Re: Why should app startup times be a problem.

2010-03-29 Thread Shawn Brown
>   It's boggled my mind from day 1 why instances
> aren't loaded in the background. I always assumed it would be addressed

What is difficult to understand?

1 server has X resources
warmed instanced require Y resources

X - YN = resources left over for the server to fulfill requests.

By reducing N (the number of warmed instances), you can increase the
capacity to fulfill actual requests.

By allowing us to pay for our own N, Google can presumably increase
the capacity of each server or can increase the number of servers.

I can see how it can cost Google to have unused apps loaded and ready
to immediately serve.  Can't you.

I don't see what the difficulty understanding is.

Shawn

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



[appengine-java] Re: AuthSub InvalidToken problem

2010-03-29 Thread seleronm
Hi,

I was not able to have them reproduce behavior though I tried a
little.
(It was possible to execute it normally).

Can post do you the source code further?
I want to confirm behavior.

Or, the environment might be a cause.

thank.

> Come on!
> Anyone, anything?
>
> Thanks.
>
> On Mar 26, 12:54 pm, "nicanor.babula" 
> wrote:
>
> > Hi all,
>
> > I am facing a strange problem in with my app in GAE and I can't seem
> > to figure it up by myself, so I hope you'll help me.. Here we are:
>
> > I do :
>
> > [code]
> > String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, 
> > "http://www.google.com/calendar/feeds/default/private/full";, false, true);
> > response.sendRedirect(authSubUrl);
> > [/code]
>
> > in my servlet in order to get an auth subtoken. And the servlet at
> > nextUrl does:
> > [code]
> > String oneTimeUseToken =
> > AuthSubUtil.getTokenFromReply(request.getQueryString());
> > if(oneTimeUseToken != null){
> >   String sessionToken =
> > AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null);
> >   // persist the sessiontoken}
>
> > // redirect to the page using google services
> > [/code]
> > in order to retrieve and persist the sessiontokenalong with other
> > user information.
>
> > The problem is that when later I do:
> > [code]
> > URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/
> > private/full");
> > CalendarQuery myQuery = new CalendarQuery(feedUrl);
> > CalendarService calendarService = new CalendarService("some-app-
> > name");
> > calendarService.setAuthSubToken(currentUser.authSubToken, null);
> > CalendarEventFeed resultFeed = calendarService.query(myQuery,
> > CalendarEventFeed.class);
> > [/code]
>
> > It says that thetokenisinvalid, and raises this exception:
> > [code]
> > cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev:
> > null
> > com.google.gdata.util.AuthenticationException: OK
> > 
> > 
> > Tokeninvalid-InvalidAuthSubtoken.
> > 
> > 
> > Tokeninvalid-InvalidAuthSubtoken.
> > Error 401
> > 
> > 
>
> >         at
> > com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData 
> > Request.java:
> > 596)
> >         at
> > com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG 
> > DataRequest.java:
> > 563)
> >         at
> > com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques 
> > t.java:
> > 550)
> >         at
> > com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java 
> > :
> > 530)
> >         at
> > com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. 
> > java:
> > 535)
> >         at com.google.gdata.client.Service.getFeed(Service.java:1102)
> >         at com.google.gdata.client.Service.getFeed(Service.java:1044)
> >         at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
> > 662)
> >         at com.google.gdata.client.Service.query(Service.java:1204)
> >         at com.google.gdata.client.Service.query(Service.java:1145)
> >         at
> > cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE 
> > ventsServiceImpl.java:
> > 133)
> >         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
> > com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> > ethod_
> > $1.run(Method_.java:165)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at
> > com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> > ethod_.privilegedInvoke(Method_.java:
> > 163)
> >         at
> > com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> > ethod_.invoke_(Method_.java:
> > 124)
> >         at
> > com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M 
> > ethod_.invoke(Method_.java:
> > 43)
> >         at
> > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> > 562)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
> > ceServlet.java:
> > 188)
> >         at
> > cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java 
> > :
> > 12)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
> > ceServlet.java:
> > 224)
> >         at
> > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
> > RemoteServiceServlet.java:
> > 62)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> >         at 
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 511)
> >         at org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.java:1166)
> >        

[appengine-java] Re: GAEJ Access to Google Calendar, How to Authenticate ?

2010-03-29 Thread seleronm
Hi,

I am glad to be useful for you.

Moreover, in the near future
I am looking forward to [Built-in support for OAuth & OpenID].

thanks.


> Thank'sSeleronm,
>
> the AuthSubUtil was my missing part to fix my problem.
>
> Regards
>  Stephan
>
> On 26 Mrz., 08:53,seleronm wrote:
>
> > Hi,
>
> > Though I am not an expert.
> > If you use not UserService but
> > [com.google.gdata.client.http.AuthSubUtil] the problem might be
> > solved.
>
> > I think that this link is 
> > useful.http://code.google.com/intl/us/apis/gdata/docs/auth/authsub.html
>
> > Please try.
> > thanks.
>
> > > Hi GAEJ Experts,
>
> > > I like to access (Read/Write) a GoogleCalendarfrom the Google App
> > > Engine.
> > > To learn how it works I have Up my Java Google App Application and on
> > > my PC a smallCalendartest program.
> > > Now I need the missing link how to combine both application's.
> > > In my GAEJ servlet I get the current user with :
>
> > >    UserService userService = UserServiceFactory.getUserService();
> > >    User           user            = userService.getCurrentUser();
> > > (after successfully login )
>
> > > And have access to the user Nickname, email address ...
>
> > > To access thecalendarI need the user and password.
> > >     CalendarService myService = new CalendarService( "exampleCo-
> > > exampleApp-1");
> > >    myService.setUserCredentials( myAccount, myPassword );
>
> > > I understand that I have no access to the User Password. For this
> > > reason I think there must be a other way around to access the 
> > > usercalendar's.
> > > I  can't believe there is no other way to access the CalendarService ?
> > > Any Idea ?
> > > Magic Cookies ?
>
> > > Regards
>
> > >  Stephan

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



[appengine-java] createLoginURL - userservice takes me to custom google apps domain login page

2010-03-29 Thread niraj
My code on the server is
if(userPrincipal != null){
String name = userPrincipal.getName();
site.setNickName(name);
site.setLoginLogOutURL(userService.createLogoutURL(thisURL));
site.setLoggedIn(true);

}else{
site.setNickName("Guest");
site.setLoginLogOutURL(userService.createLoginURL(thisURL));

site.setLoggedIn(false);
}

The Problem is that the URL takes me to the custom Google Apps Login
page instead of the standard google accounts login page.

i.e for a domain xyz.com - it takes me to google apps login page for
xyz.com.

Do I need to do something different??

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



[appengine-java] Datastore in task

2010-03-29 Thread Timofey Koolin
Now i write import data into datastore and clean datastore.

When I import data - i upload zip file to servlet, into servlet I
unzip it and create some tasks for import data.
First time, every task in first run can't access to datastore:

03-29 09:49AM 25.793 /ImportTask 500 10067ms 0cpu_ms 0kb AppEngine-
Google; (+http://code.google.com/appengine)
0.1.0.2 - - [29/Mar/2010:09:49:35 -0700] "POST /ImportTask HTTP/1.1"
500 0 "http://import.latest.tim-test-001.appspot.com/ImportTask";
"AppEngine-Google; (+http://code.google.com/appengine)"
"import.latest.tim-test-001.appspot.com"
W 03-29 09:49AM 35.860
Request was aborted after waiting too long to attempt to service your
request. Most likely, this indicates that you have reached your
simultaneous dynamic request limit. This is almost always due to
excessively high latency in your app. Please see
http://code.google.com/appengine/docs/quotas.html for more details.

Yesterday I think that I overquote CPU/minute when start 3-4 threads
of import data.

Today i write clean servlet and run it in one thread. I have same. I
read - free quota is 15 CPU minutes/minute. I have 1 thread of clean
servlet:

DatastoreService ds =
DatastoreServiceFactory.getDatastoreService();
for (String kind : kinds) {
log("kind: " + kind);
Query query = new Query(kind);
query.setKeysOnly();
query.addSort("__key__");
int size;
do {
log("prepare query");
PreparedQuery pq = ds.prepare(query);
ArrayList keys = new ArrayList(max_ids);
for (Entity e : pq.asIterable(withLimit(max_ids)))
{
keys.add(e.getKey());
}
ds.delete(keys);
size = keys.size();
log("delete: " + size);
count += size;
} while (size > 0);
}
out.println("Deleted all: " + count);
} catch (DeadlineExceededException ex) {
Queue q = QueueFactory.getDefaultQueue();
q.add(url("/
Clean").method(TaskOptions.Method.GET).param("start", "" + count));
out.println("Deleted: " + Integer.toString(count));
} finally {
out.close();
}

First time I start it by url and first created task have same problem
as above. But task, which i create in task (when i have timeoute
exception) haveno it problem.

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



[appengine-java] Russian characters in SDK datastore viewer

2010-03-29 Thread Timofey Koolin
I can't read it.

I can read it by API, I can see it into app engine server datastore
viewer, but in local datastore viewer i see "???".

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