[appengine-java] How to use com.google.appengine.api.datastore.Text ?

2010-05-26 Thread awneil
Intro: I am an experienced embedded 'C' developer; I have written a little C++ and C#; I am new to both Java in general and AppEngine in particular; I don't know Python at all. I am trying to use the datastore, following the Book Store example in the online docs:

[appengine-java] GWT RPC fails with Custom Domain

2010-05-26 Thread Sky
GWT RPC is failing when I view my site with my custom domain, which was successfully attached to my google app. GWT RPC succeeds when I view my site with the myproject.appspot.com address. Why? Is the httpxmlrequest pointing to myproject.appspot.com instead of the the custom domain? Obviously it

[appengine-java] Re: No API environment is registered for this thread.

2010-05-26 Thread poe
It seems that I've used my own Run Configuration where I included a wrong nucleus-appengine-something.jar in the classpath. When I added the Jar-File by hand the enhancer didn't work anymore. I created a new Run Configuration with the latest appengine version and it works. Are there some

[appengine-java] Re: GWT RPC fails with Custom Domain

2010-05-26 Thread Sky
Oh, ok the reason RPC is failing is because I had the subdomain of the custom domain set to forward to http://myproject.appspot.com on my domain hosting service provider. I truly believe that would result in the RPC being cross domain and thus failing. I followed the steps of adding the subdomain

[appengine-java] Re: PersistenceManagerFactory: static PMF instance only gets initialized on first ever RPC call

2010-05-26 Thread Ian Marshall
Hello Sky, When my application launches, I create a queued task which constructs my singleton PMF instance asynchronously. My getPMF() method then uses this instance, and creates it at once if it is not yet created for some reason. This way, the creation of my PMF does not cause a delay to app

Re: [appengine-java] How to use com.google.appengine.api.datastore.Text ?

2010-05-26 Thread Pieter Coucke
http://code.google.com/intl/nl-BE/appengine/docs/java/javadoc/ Text myText = new Text(myString); -- Pieter Coucke Onthoo BVBA http://www.onthoo.com http://www.koopjeszoeker.be -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

Re: [appengine-java] AppEngine session advice

2010-05-26 Thread Muhammad Ijaz Khan
Any comment on this by anyone? I am waiting too :) thanks. On Tue, May 25, 2010 at 1:18 PM, Ice13ill andrei.fifi...@gmail.com wrote: I'm building an app that uses Google account auth. The application also uses a custom persistent entity (UserProfile) for users that are registered (so

[appengine-java] Re: how to gather all the entities in Data Store.

2010-05-26 Thread ylmz
pm.deletePersistentAll(Collection c) method gets collection as paramether and deletes every element of the collection pm.getExtent(Class class) gets all the images in datastore (as iterable) you could use getExtent to get all data, convert it to collection and use deleteAll to remove everything.

Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?

2010-05-26 Thread Viðar Svansson
I am curious, does it matter if I call the factory each time I need an instance of MemcacheService? I am trying to keep the startup time to minimum so it would be good to know. Currently I create a global instance on startup which may or may not be used by the request. Cheers, Viðar On Wed, May

[appengine-java] Help me

2010-05-26 Thread 付平 戚
How to instantiate EntityManager ? EntityManager entityManager = EntityManagerFactory.getEntityManager(); Is that true? Why is an null result? -- 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

Re: [appengine-java] Help me

2010-05-26 Thread Pieter Coucke
http://code.google.com/intl/nl-BE/appengine/docs/java/datastore/usingjpa.html#Getting_an_EntityManager_Instance -- Pieter Coucke Onthoo BVBA http://www.onthoo.com http://www.koopjeszoeker.be -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] Slow Index Building

2010-05-26 Thread Miroslav Genov
Hello, I have the following index definition in the datastore-indexes.xml: datastore-index kind=TransactionEntity ancestor=false source=manual property name=createdBy direction=asc/ property name=creationDate direction=asc/ property name=primary direction=asc/ property name=time direction=asc/

[appengine-java] Re: problems serializing 'java.lang.Long'

2010-05-26 Thread timwhunt
Try cleaning and rebuilding the project. I had a similar error in a GAE + GWT project, and I think that's what solved it for me. But I'm not sure I'm remembering right, so please report back if that or what else solves it. -- You received this message because you are subscribed to the Google

Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?

2010-05-26 Thread Rahul Juneja
You can call the factory any times it doesn't matter it will return you the same cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com 2010/5/26 Viðar Svansson vidarsv...@gmail.com I am curious, does it matter if I call

Re: [appengine-java] Slow Index Building

2010-05-26 Thread John Patterson
The status shows that your index updates are Queued which would suggest that they are waiting for other users indexes to be built first. Note that when you create the index definitions first then add the data, the indexes are created on-the-fly as each entity is added and the CPU time

Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?

2010-05-26 Thread Viðar Svansson
I realize that I always get the same cache. I am just wondering if it creates an overhead to always call the factory or not. Viðar On Wed, May 26, 2010 at 1:27 PM, Rahul Juneja rahul.jun...@gmail.com wrote: You can call the factory any times it doesn't matter it will return you the same cache.

Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?

2010-05-26 Thread John Patterson
Jut need to be careful that if you reuse the same instance you don't depend on the namespace or error handler which are per-instance. Also worth pointing out that although google devs have mentioned on this list that it is OK to share MemcacheService instances, the docs do not state that

[appengine-java] Google App Engine update an object from servlet not working ?

2010-05-26 Thread fni
I use the following code to update an object from servlet in Google App Engine : String Time_Stamp=[ 2010-05-26 ],query=select from +Contact_Info_Entry.class.getName()+ where Contact_Id == '+Contact_Id+' order by Contact_Id desc; PersistenceManager pm=null; try {

Re: [appengine-java] Re: No API environment is registered for this thread.

2010-05-26 Thread Ronmell Fuentes
As far As I know, there's not jeje. but if you use an IDE like Eclipse everything reduces to just install the plugin for GAE and done!. Rgds. R 2010/5/26 poe stefan.poe...@googlemail.com It seems that I've used my own Run Configuration where I included a wrong nucleus-appengine-something.jar

[appengine-java] java.lang.RuntimeException: Version not ready

2010-05-26 Thread lera
Hi, i try to upload new version and i got this error: ... Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. and in log: Unable to update: java.lang.RuntimeException: Version not ready. at

[appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)

2010-05-26 Thread alucarD
If U want try this solution U must change authentication options in google app engine dashboard : Administration - Application Settings. On May 19, 1:36 am, Drasko drasko.ko...@googlemail.com wrote: I put some stuff onhttp://super-easy.blogspot.com... hope it helps. On May 16, 5:13 

[appengine-java] WARNING: No file found for: /sign

2010-05-26 Thread Skeniver
Hi there I am trying to get the Google tutorial for the app engine working. I am at the end of the 'Using JSPs' page and have done everything exactly. But after I input a greeting on the form, I get: HTTP ERROR 404 Problem accessing /sign. Reason: NOT_FOUND

[appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)

2010-05-26 Thread alucarD
Anyone try this solution merge with oauth to achieve hybrid protocol (openid + oauth)? I want in one step log into my application using gmail account and also grant access to some google services like picasa,youtube,maps,... ;] On 19 Maj, 01:36, Drasko drasko.ko...@googlemail.com wrote: I put

[appengine-java] hybrid protocol (openid + oauth) in GWT

2010-05-26 Thread alucarD
Anyone try this solution with oauth? I want achieve one step authorization(for log in to my application) and authentication(to grant acces to google services: picasa,...) like in hybrid protocol (openid + oauth). In GWT its not quite simple to implement hybrid protocol;] -- You received this

[appengine-java] Delete error version

2010-05-26 Thread Chau Huynh
Hello Google, Can you please help me to delete an error version in my app? When I tried to delete it, the system reported Server Error. A server error has occurred. My app id: gaepocdemo Error version: 3 Thanks -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: hybrid protocol (openid + oauth) in GWT

2010-05-26 Thread alucarD
This is post, not new discoussion :/ I must do something wrong. In any event, I wanted implement hybrid protocol (openid + oauth) with built in app engine library since 1.3.4 sdk release has openid and oauth. Openid is very simple to implement:

Re: [appengine-java] WARNING: No file found for: /sign

2010-05-26 Thread Ikai L (Google)
Can you try rebuilding your project? Also note that changes to web.xml require a server restart if you are working in Debug mode and hot-reloading classes. On Wed, May 26, 2010 at 6:51 AM, Skeniver skeni...@gmail.com wrote: Hi there I am trying to get the Google tutorial for the app engine

[appengine-java] Re: How to use com.google.appengine.api.datastore.Text ?

2010-05-26 Thread Mike
Here's the page specifically for the Text object: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text.html As you can see in that documentation (as Pieter demonstrated) -- Text wraps a string (String) and does so via its constructor (rather than via some set

[appengine-java] Re: Delete error version

2010-05-26 Thread Erich
I'm getting this as well. I was deploying my app when I went to the blobviewer to delete an entry. Now I cannot delete the version that locked or delete any entries using the blobviewer. All I get is a Server Error. appid: storetormain version: 2 On May 26, 1:41 pm, Chau Huynh cmhu...@gmail.com

[appengine-java] Re: Can't delete blob in blob viewer

2010-05-26 Thread Erich
I'm getting this as well. I was deploying my app when I went to the blobviewer to delete an entry. Now I cannot delete the version that locked or delete any entries using the blobviewer. All I get is a Server Error. appid: storetormain version: 2 On May 25, 6:07 pm, Patrick Brown

Re: [appengine-java] Re: Can't delete blob in blob viewer

2010-05-26 Thread Patrick
Hi I think this is a known issue, since I posted the question I did some searching and found an issue documenting this happening to alot of people Patrick On May 26, 2010, at 5:39 PM, Erich erich.re...@gmail.com wrote: I'm getting this as well. I was deploying my app when I went to

[appengine-java] Re: Persisting object with generic supertype

2010-05-26 Thread Jaroslav Záruba
So I'm trying again now... After setting the (hopefully) proper strategy I get different exception from the Enhancer: -- 27.5.2010 2:51:42 org.datanucleus.enhancer.DataNucleusEnhancer main SEVERE: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some

[appengine-java] MemCache expiring around once a day

2010-05-26 Thread Rahul
I have a memcache and not to mention it does live between different jvm instances when new jvm instances starts, i can access the cache but once a while i don't find any values in cache and this happened twice in last 24 hours. Is there any default expiration which is less then 24-48 hours which

[appengine-java] GQL query to delete all entities in Datastore

2010-05-26 Thread drift elysium
Hi, In the datastore viewer, there is a provision to specify the GQL query. Can a query to delete all the entities be specified in it? If so , can someone please give the syntax for it! Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for

Re: [appengine-java] GQL query to delete all entities in Datastore

2010-05-26 Thread John Patterson
There is no delete keyword in standard GQL. You need to do this programatically. However, there is a GQL third party library which might implement delete. On 27 May 2010, at 08:55, drift elysium wrote: Hi, In the datastore viewer, there is a provision to specify the GQL query. Can a

[appengine-java] Re: MemCache expiring around once a day - UPDATE

2010-05-26 Thread Rahul
It looks like that i have received the following error and memcache was cleared around that time. What it looks like is memcache service was unavailable. This kind of answers my question i guess until and unless there is something else which i am missing. Just for the information this happened

Re: [appengine-java] GQL query to delete all entities in Datastore

2010-05-26 Thread drift elysium
Thanks for the reply ! On Wed, May 26, 2010 at 9:17 PM, John Patterson jdpatter...@gmail.comwrote: There is no delete keyword in standard GQL. You need to do this programatically. However, there is a GQL third party library which might implement delete. On 27 May 2010, at 08:55, drift