[appengine-java] Re: GAEJ down!

2011-08-12 Thread Peter Liu
Do you happen to be deleting a lot of entities? It happens to me before (can't access console) and it's a know bug, thou I am not sure it's fixed or not. Can you access other admin pages? Sometimes the bookmarked link become invalid and need to relogin from the login page. On Aug 12, 1:01 am, JT

[appengine-java] Re: java.lang.OutOfMemoryError: Java heap space

2011-02-12 Thread Peter Liu
Try using the low level API and do keys only query with limit of 1000 (and delete them) repeatedly instead of retrieving whole objects. I am guessing the out of memory is due to large amount of objects returned by the query. Keys only query also use much less api cpu. On Feb 12, 9:22 pm, Benjamin

[appengine-java] 1.4.2: Can't make https call from dev server

2011-02-12 Thread Peter Liu
We are using a custom remote delegate to route datastore rpc call to live production test site on appspot. We did this because sometimes we want to develop with live data. However after upgrading to 1.4.2, https outbound call starts failing (see below). If we change to http, then it works again.

[appengine-java] Using the "Python" datastore replication in Java

2011-01-25 Thread Peter Liu
http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html#Copying_Entities_to_Another_Application Anyone successfully transfer a table from one app to another? I need to update a test app with data from a production app, and the bulk download utility just take too long (and too many

[appengine-java] Re: Output encoding / JPEG does not seem to work

2010-11-16 Thread Peter Liu
Are you using dev server? The image service on dev server does the most basic thing possible and ignore most params. You might have issue working with PNG files as well. Deploy to a live test server and the image service should work. By default, jpeg encoding is quality 85 (according to my trial

[appengine-java] Re: Does ImageService support join image?

2010-11-02 Thread Peter Liu
I think what you are looking for is "Composite". Look at the javadoc of the image service and service factory, there's a way to create composite and there's a function to take a list of composites to compose a single image. On Nov 1, 4:33 am, Secret wrote: > I have try the API. Seems the ImageSer

[appengine-java] Re: Eclipse plugin insists on copying DataNucleus jars to war/WEB-INF/lib

2010-10-27 Thread Peter Liu
Hi Max, Does it copy on startup or build? I am using Eclipse 3.5 , 3.6 and it doesn't copy to lib always. It happens when SDK is changed or maybe on startup. Regardless, I wanted to do the same thing and what I did is write an ANT task that runs every build. The ANT task removed the libs that I

[appengine-java] Handle "internal 500 error" gracefully

2010-10-26 Thread Peter Liu
In doc for java: Note: At present, you cannot configure custom error handlers for some error conditions. Specifically, you cannot customize the 404 response page when no servlet mapping is defined for a URL, the 403 quota error page, or the 500 server error page that appears after an App Engine in

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-20 Thread Peter Liu
I had the same issue in other threads. The new OutputSetting class is not in production and causing class not found. Google says some instances are still in 1.3.7 and some are in 1.3.8, which I verified because my test app is still in 1.3.7 and production is 1.3.8. You can tell what version you ar

[appengine-java] Re: Unable to deploy 1.3.8 project

2010-10-19 Thread Peter Liu
e the GAE SDK version manually. > On my mac : Eclipse > Preferences > Google > App Engine > > On 19/10/10 08:03, "Peter Liu" wrote: > > >Ok. I installed a new Eclipse (Helios), install the Google plugin with > >only 1.3.8, created a new project, deploy to p

[appengine-java] Re: Unable to deploy 1.3.8 project

2010-10-18 Thread Peter Liu
x27;t think it's my setting issue. Can anyone verify? On Oct 18, 10:41 pm, Peter Liu wrote: > I created a brand new project with 1.3.8 sdk, deploy to live server, > and the SystemProperty.version is still: > > "Google App Engine/1.3.7". > > Can anyone help? How do I

[appengine-java] Unable to deploy 1.3.8 project

2010-10-18 Thread Peter Liu
I created a brand new project with 1.3.8 sdk, deploy to live server, and the SystemProperty.version is still: "Google App Engine/1.3.7". Can anyone help? How do I verify what version of jars I deployed to production? @SuppressWarnings("serial") public class VikiSpot8Servlet extends HttpServlet {

[appengine-java] Re: JPEG Quality OutputSettings NoClassDefFoundError

2010-10-18 Thread Peter Liu
o, world"); } } On Oct 18, 9:02 pm, Peter Liu wrote: > Anyone have this working? -- 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...@googlegrou

[appengine-java] Re: JPEG Quality OutputSettings NoClassDefFoundError

2010-10-18 Thread Peter Liu
18, 9:02 pm, Peter Liu wrote: > Anyone have this working? -- 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, sen

[appengine-java] Re: JPEG Quality OutputSettings NoClassDefFoundError

2010-10-18 Thread Peter Liu
Anyone have this working? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...

[appengine-java] Re: How to get rid of a hanging mapreduce job?

2010-10-18 Thread Peter Liu
ong time ago and it was > inconsequential. > > On Oct 17, 2:50 am, Peter Liu wrote: > > > I had the same problem. > > > I fix it by deleting the entries of the 2 map reduce table. Go to to > > the datastore viewer and there's 2 "Kind" used by map red

[appengine-java] JPEG Quality OutputSettings NoClassDefFoundError

2010-10-18 Thread Peter Liu
I am having a strange problem when testing the new JPEG quality feature in the ImagesService API. The com/google/appengine/api/images/ OutputSettings class is not defined on GAE, but it's defined in dev. I checked that the class is in WEB-INF/lib/appengine-api-1.0- sdk-1.3.8.jar, but somehow it's

[appengine-java] Re: How to get rid of a hanging mapreduce job?

2010-10-16 Thread Peter Liu
I had the same problem. I fix it by deleting the entries of the 2 map reduce table. Go to to the datastore viewer and there's 2 "Kind" used by map reduce. By the way, how to mark the task as completed? When my task is done it always end with the "Unknown" state. I asked this question before but t

[appengine-java] Re: Query BlobInfo in Java?

2010-09-07 Thread Peter Liu
in appengine? I'm wondering if I can > use the blobstore service even with a free account. If not, are there other > alternatives for blobstore so that I can upload and retrieve a file? Thanks > > On Tue, Sep 7, 2010 at 2:57 AM, Peter Liu wrote: > > Just what I needed. Thank

[appengine-java] Re: Query BlobInfo in Java?

2010-09-06 Thread Peter Liu
reparedQuery pq = datastore.prepare(query); >  List entList = pq.asList(FetchOptions.Builder.withLimit(1)); > > Hope that helps... > > On 6 set, 05:13, Peter Liu wrote: > > > Hi all, > > > Anyone know a simple way to query BlobInfo? > > > Simple use case will be query t

[appengine-java] Query BlobInfo in Java?

2010-09-06 Thread Peter Liu
Hi all, Anyone know a simple way to query BlobInfo? Simple use case will be query the BlobInfo that has a specific file name. It seems there's a method to query BlobInfo for Python but I can't find it for java. Thanks! -- You received this message because you are subscribed to the Google Grou

[appengine-java] Eclispe deploy version check failed but deployed?

2010-06-06 Thread Peter Liu
The admin console have the new version available but the check in eclipse keep failing. It's somewhat annoying because I have to quit eclipse to stop the check. Uploaded 12 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds. Will check again in 2 seconds. Wi

[appengine-java] Stats are 0ms in AppStats

2010-04-12 Thread Peter Liu
I just followed the guide for installing appstats for java and loaded the admin page. (11) 2010-04-12 18:02:17.528 "GET /wsjspotName=Barack %20Obama&test=true" 200 real=357ms cpu=0ms api=0ms overhead=0ms (8 RPCs) (12) 2010-04-12 18:01:57.196 "GET /image/17001/barack-obama" 404 real=214ms cpu=0

[appengine-java] Re: Anyway to check if current app instance is default version?

2010-02-11 Thread Peter Liu
Great simple suggestion! Thanks!!! On Feb 11, 3:12 pm, John Patterson wrote: > You could check the http host in the request to check for your live url > > On 12 Feb 2010, at 05:59, Peter Liu wrote: > > > Is there anyway to check if current app version is default? > > >

[appengine-java] Anyway to check if current app instance is default version?

2010-02-11 Thread Peter Liu
Is there anyway to check if current app version is default? Basically we want to cache the pages with only the default version. We want testers to hit the new version but won't effect normal users using the default version. Thanks! -- You received this message because you are subscribed to the

[appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-10 Thread Peter Liu
"App Engine now automatically retries all datastore calls (with the exception of transaction commits) when your applications encounters a datastore error caused by being unable to reach Bigtable" Is the datastore retry logic at the base API level or at the JPA/JDO level? A lot of people are using

[appengine-java] Re: production memcache grabTail namespace isolation broken

2010-02-05 Thread Peter Liu
Hi Ikai, If the grab tail do intend to only return objects belong to a specific namespace, it will be nice if the memchace "clear all" function only delete objects in a specific namespace as well. At first I thought the "clear all don't respect namespace" is due to memcache implementation constra

[appengine-java] Re: Does precompilation work ?

2010-01-31 Thread Peter Liu
In my experience deployment sometimes fail with variety of reasons. Sometimes it says precompiling starts and eventually time out. The console will suggest you to turn off precompilation, but if you try deploy again, it will work. My suggestion is keep trying. On Jan 30, 11:46 am, tomekc wrote:

[appengine-java] Re: Do we really need to upload the jar files under war/lib folder?

2009-12-01 Thread Peter Liu
My guess is that the jars you uploaded are the ones that will be used. If the environment just use google's jar we have no control on what version to use. Say if google release a new release and triggers a bug in our code, we better off sticking with the old jars instead. On Dec 1, 1:55 pm, Yiming

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Peter Liu
I think most complains about JDO in this group is not saying that JDO has issues. It just that GAE is so different then traditional environments that old frameworks aren't 100% suitable. If there's a modify version of JDO that strip out irrelevant features, and put in some important low level api

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Peter Liu
t;is managed by a different Object Manager" error or my > objects don't get persisted or other errors I can't remember now.  I can't > figure out if I'm getting bit by Spring, GAE's datastore, or JDO, and it's > very frustrating. > > What

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Peter Liu
Awesome! I recently played with the lower level API as well. Some of the features are not available in JDO, like reserving a key before committing a new object. The detach/attach is also problematic when dealing with caching and transaction. I also noticed small JDO objects are much bigger than i