[appengine-java] Re: thanking uuuuuuuuu

2009-11-04 Thread leszek
http://groups.google.co.uk/group/google-appengine-java/browse_frm/thread/b2d502bc03c83155# --~--~-~--~~~---~--~~ 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

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-11-04 Thread Kris
Hi Toby, I've just realised that I probably over-wrote the app with a new version yesterday. Did you get what you need? (If not, I can easily re-deploy and resend the ID.) Cheers, Kris On Oct 19, 8:30 pm, Toby Reyelts to...@google.com wrote: Kris, Can you send us your app id (privately if

[appengine-java] Re: What defines a single transaction in JDO?

2009-11-04 Thread leszek
Sequence: tx.begin(); ,,, persist Entity group A tx.commit(); tx.begin(); .. persist Entity group B tx.commit(); works without any problem as designed. You have to provide more details to tell something. --~--~-~--~~~---~--~~ You received this message because

[appengine-java] all data suddenly disappeared from datastore

2009-11-04 Thread Prashant
Hi, I had around 250,000 entities of a type, yesterday i wrote a cron to delete them. Today, I notices that entities are not getting deleted, so, I stopped the cron and started deleting entities manually, after deleting a number of entities (around 50k), suddenly all the entities of all the types

[appengine-java] JSF2 and Scala - Problem with scala logger

2009-11-04 Thread baranda
Hi, I am a daring person and I have written an JSF2 web application in Scala (built with maven). Everything is working fine in the dev server and when I deploy I can see the first page. However, if there is a validation problem or I want to navigate to another page I get a blank page. On the

[appengine-java] Re: read file

2009-11-04 Thread Sanjith Chungath
yes, i was able to read a file directly from a folder data/abc.csv using normal java APIs. I didn't configure it as a resource or static file. -Sanjith. On Tue, Nov 3, 2009 at 4:15 AM, Jason (Google) apija...@google.com wrote: You should be able to read it if you put it in your war directory

[appengine-java] Re: DeadlineExceededException while executing a server method.

2009-11-04 Thread Sanjith Chungath
yeah I realized that. Since I was trying to read a big .csv file, I spit it to three parts and read it thrice. thanks for the reply Jason. -Sanjith. On Wed, Nov 4, 2009 at 12:56 AM, Jason (Google) apija...@google.com wrote: Hi Sanjith. All App Engine requests must return within 30 seconds or

[appengine-java] Re: How not to Retain Values in development server?

2009-11-04 Thread Tito George
If i am adding a new column to existing table, how do i migrate existing values? Okie. I have a table called User with columns First_Name, Last_name, email. And in some point i am adding a new column say DoB. When i query the existing values, i am getting exception like entity DoB is not present.

[appengine-java] Re: Problems with JDO Query.setCandidates(Collection)

2009-11-04 Thread datanucleus
App Engine's DataNucleus plugin doesn't support the setCandidates method Jason/Max, DataNucleus can do all of that for you, I'm sure I've mentioned this before. Here I'll even donate you some code that you can plug into your JDOQLQuery.performExecute() method code if

[appengine-java] Jdo: detaching objects vs. merging transient objects

2009-11-04 Thread a.maza
I've used the merging of transient objects approach for a while as described in http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html and it works quite fine. I only subsituted the proposed implementation of copying fields by dozer. However, I am still thinking to

[appengine-java] Re: thanking uuuuuuuuu

2009-11-04 Thread Ashen
here u can find Netbeans plugin for App Engine http://kenai.com/projects/nbappengine/pages/NBInstall On Nov 3, 5:52 pm, raju k alias (billa) oxfordr...@gmail.com wrote: Thank for the java version Is there any plugin for netbeans IDE --~--~-~--~~~---~--~~ You

[appengine-java] App engine layout - servers around the world?

2009-11-04 Thread barak
I was wondering - say a user from South Africa and a user from the U.S hits a webapp deployed on GAE. Do those users expirience the same speed of loading the site, downloaing images, etc., or GAE servers located in one data center (for example, California), and the nearest users will enjoy from

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-04 Thread IlyaE
If i change my authenticate filter to query.setFilter(ContactInfo.email == emailParam password == passwordParam); I now get this error. javax.jdo.JDOUserException: Identifier ContactInfo.email is unresolved (not a static field) On Nov 3, 9:32 pm, Max Ross (Google)

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread datanucleus
Why is BookFK trying to use Datastore Identity ? (as the message says) identityType=IdentityType.APPLICATION would be recommended --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-04 Thread IlyaE
Ok i figured it out now. I was trying to refer to the classname ContactInfo in my filter rather than the object name in my User class contactInfo. The difference in case for the leading 'C' was the culprit. On Nov 4, 10:19 am, IlyaE ilyaelk...@gmail.com wrote: If i change my authenticate filter

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Maybe I didn't word my problem very well. Let me describe it again: Data push: 1. I am bulkloading data to an app using python appcfg and custom bulkloaders. 2. The custom bulk loaders are pushing data from a CSV. 3. The models of the data being pushed have simple names in python (no package

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread James H
BookFk is an embedded class intended to be used by entities like Chapter and others. It is NOT intended to be a standalone entity or have a Primary Key. So, when I try your fix I get the following compile error: SEVERE: Class struts2.example4.BookFk has application-identity and no

[appengine-java] Re: Problem deploying app - Version not ready

2009-11-04 Thread JedIrv
Thanks, Jason. Indeed it did work when I tried it yesterday, though my recollection is that I tried it a few times over a couple of days last week, so it gave the impression of something less transient going on. But, indeed it works now! Thanks, Jed On Nov 2, 3:10 pm, Jason (Google)

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread datanucleus
BookFk is an embedded class intended to be used by entities like Chapter and others. Needs a PK either way. Pick a field, any field. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread datanucleus
Needs a PK either way. Pick a field, any field. Or just set embeddedOnly as true ... if you really never want to persist one of those in its own right --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: JSF 1.2 - Session-scoped managed Bean not Behaving as Expected

2009-11-04 Thread 软件梦工厂
I have the same problem with JSF 2.0,and I am looking for some solutions ,too. On Sep 5, 11:52 am, Traveler1980 jshar...@gmail.com wrote: Hi All, I recently upgraded an app that I'm working on from MyFaces 1.1.6 to JSF (Mojarra) 1.2_13 with Facelets.  I used the jars (el and jsf) from this

[appengine-java] problem with using session.getAttribute()

2009-11-04 Thread gaurav
in my application a servlet stores the user's details when she starts with the application as follows User user=new User(); HttpSession session=req.getSession(); user.setUser(userName); user.setRole(user); session.setAttribute(user, user); RequestDispatcher

[appengine-java] Cron job fired up twice

2009-11-04 Thread Stefan Roman
Hi All, My crontab is defined in the following way: ?xml version=1.0 encoding=UTF-8? cronentries cron url/cron/sendnotifs/url descriptionSend notification at 9 every Mon, Tue, Wed, Thu, Fri/ description scheduleevery mon,tue,wed,thu,fri 09:00/schedule

[appengine-java] How to use JSON on server-side?

2009-11-04 Thread Nguyễn Kim Kha
I'm newbie... I want to use JSON on server-side to do something... But I can't... Please help me! --~--~-~--~~~---~--~~ 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

[appengine-java] Recommended scope for DatastoreService

2009-11-04 Thread Roy
Should I be creating a DatastoreService for each session, or are they inexpensive enough that I can have one for each Kind? I realise that for transactions, the latter doesn't work. A related question is how threadsafe is an instance of DatastoreService?

[appengine-java] Cannot retrieve value of the newly created attribute in a JDO

2009-11-04 Thread delightwjk
Hi All, I created a JDO class, which had some attributes, and I created some CRUD operations, all of them worked correctly. Then I added a new attribute in the JDO class, and then set value to it and persisted it as usual when I executed CRUD operations. The problem is that I cannot retrieve

[appengine-java] Re: does usage of buffered writer in servlet make sense

2009-11-04 Thread Jason (Google)
If you're calling print or println many times in your servlet, then it makes sense, although the resource savings you net may not be significant. In general, it's acceptable to use the default PrintWriter. - Jason On Mon, Nov 2, 2009 at 7:18 AM, Raphael André Bauer

[appengine-java] Re: PDF Generator Library

2009-11-04 Thread Jason (Google)
Great news, Eugene! Can you please submit it to the open source projects page by following the instructions at the bottom of http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects ? - Jason On Sun, Nov 1, 2009 at 8:55 PM, edragoev drag...@gmail.com wrote:

[appengine-java] Re: Problem with using Federated Login (OpenID + OAuth)

2009-11-04 Thread Jason (Google)
Hi Pradheep. The library that you are using is attempting to spawn a new thread which is not permitted by App Engine's sandbox. You will have to either disable multithreading via configuration, if the library exposes this, or use another library. The Google Accounts API that is referenced in the

[appengine-java] Re: error 500 from server when starting the guestbook demo app

2009-11-04 Thread Jason (Google)
It looks like your system may not have Java configured correctly or otherwise can't invoke the javac compiler needed to compile your application. java.io.IOException: Cannot run program javac.exe: CreateProcess error=2 You may want to search the web for similar error messages, which might help

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread James H
Datanucleus, both suggestions worked but I like the embeddedOnly best in order to avoid a dummy key on every FK class! Bryce, I no longer get the error above...I just added embeddedOnly=true to the PersistanceCapable tag in BookFk class. You're right, I could use the collection technique on the

[appengine-java] Re: App Engine Refactoring / Adaptable Design

2009-11-04 Thread Jason (Google)
Unfortunately, the solution I proposed does not allow for adding additional filters when querying for all Campaigns with FundingOganization ABC. If this is a requirement, you'll have to consider several options -- either doing the filtering in memory, which is reasonable if you only expect a

[appengine-java] Re: Error while uploading app to GAE

2009-11-04 Thread Jason (Google)
Did your path always include the one \ delimiter with all of the other separators being /? - Jason On Mon, Nov 2, 2009 at 7:45 PM, Vik vik@gmail.com wrote: Hie Today all of a sudden when i tried to deploy my app to GAE throws errors: An internal error occurred during: Deploying

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread James H
Rusty, Thanks for the code sample! How do you decide when to use key type of Key vs String? On Nov 4, 1:45 pm, James H james.hollier...@gmail.com wrote: Datanucleus, both suggestions worked but I like the embeddedOnly best in order to avoid a dummy key on every FK class! Bryce, I no longer

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Typo (I think): - Query q = new Query(package.MyClass) // manually pass full package name should be: - Query q = new Query(SELECT * FROM package.MyClass) // manually pass full package name Stuart On Wed, Nov 4, 2009 at 4:43 PM, Stuart Moffatt stuartmoff...@gmail.comwrote: Nick,

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Nick, Can you clarify what you mean by 'java loader' and 'hosted mode'? My java loader is a servlet which loads a CSV from disk, processes it and persists entities to the datastore. The CSV has the values for the properties I want my entity to have. The CSV and the data it points to is in

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Nick Johnson (Google)
On Wed, Nov 4, 2009 at 11:31 PM, Stuart Moffatt stuartmoff...@gmail.comwrote: Nick, Can you clarify what you mean by 'java loader' and 'hosted mode'? My java loader is a servlet which loads a CSV from disk, processes it and persists entities to the datastore. The CSV has the values for

[appengine-java] Re: Java namespace for entity in bulkloader?

2009-11-04 Thread Stuart Moffatt
Nick, Pretty much, except kind() is a method for Model classes, not loaders. Like this: class Foo(db.Model): @classmethod def kind(self): return 'my.Foo' The above kind() method makes more sense (in the model instead of the loader). Was not aware of it as the docs don't give

[appengine-java] JDO/JPA Snippets That Work - Unindexed Properties

2009-11-04 Thread Max Ross (Google)
http://gae-java-persistence.blogspot.com/2009/11/unindexed-properties.html --~--~-~--~~~---~--~~ 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

[appengine-java] Re: Recommended scope for DatastoreService

2009-11-04 Thread Roy Smith
Hi Max Thx for the answer, especially the correction on the transaction implementation. The solution I'd arrived at is to use Guice to instantiate my DsS with a scope of @RequestScoped. Do you see any problems with that approach? best Roy On Wed, Nov 4, 2009 at 7:02 PM, Max Ross (Google)

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-04 Thread Rusty Wright
Thinking out loud here: When you use that encoded string format you can use it wherever you'd use Key. The apparent advantage of using the encoded string format is that your dto isn't exposing GAE's Key. With the encoded string your service layer can be oblivious about GAE's Key, without