[appengine-java] Re: PDF Generator Library

2009-09-24 Thread Mian Rashid
Use can use Jasper Report and there is also designer tool available for that is IReport. On Sep 23, 6:57 pm, mably fm2...@mably.com wrote: Does anybody know of a java PDF generator library working with Google App Engine ?  Even a low-level one. Any help would be greatly appreciated. Thanx

[appengine-java] Re: Seeing different (incorrect?) JDO behavior after upgrading to 1.2.5

2009-09-24 Thread Ian Marshall
Oh dear, sorry that didn't work. All I can say is that you are very brave to set the encodedKey values in your code. I let BigTable do this for me (and correctly, I hope)! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[appengine-java] Re: How to store tree ? example?

2009-09-24 Thread Ian Marshall
My persistent entity class is only written to datastore by an administrator user, and the writes are very infrequent, so I cannot comment on any performance issues when writing large volumes to the datastore. My class above has BigTable generate the Long ID for each entity, since I cannot be

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Marcel Overdijk
@Diana Currently there is only real docs for JDO. I think same documentation should be available for JPA and low-level API. Concentrating on practical exmaples. On Sep 24, 7:09 am, Diana Cruise diana.l.cru...@gmail.com wrote: Could you supply some briefs on your findings?  This is exactly the

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Mingfai
imho, the low level api is quite simple and straightforward. The relevant docs for Python is useful to me. there is nothing wrong with JPA/JDO. DAO + Low Level API implementation without an additional JDO layer works for me. On Thu, Sep 24, 2009 at 5:23 AM, Marcel Overdijk

[appengine-java] Re: JDO vs low level API

2009-09-24 Thread Roy
I'm about to quit on JPA/JDO after 2 days of pure frustration. The final straw is:- System.out.println(emp.dept name= + emp.getDept().getName ());// throws an NPE vs. System.out.println(emp.dept name= + emp.dto.getDept().getName());

[appengine-java] Re: JDO vs low level API

2009-09-24 Thread datanucleus
The final straw is:-                 System.out.println(emp.dept name= + emp.getDept().getName ());    // throws an NPE So why not address what the difference is in calls to your persistable class ? Nothing is non-deterministic by definition that you have a programming language here and rules

[appengine-java] Re: JDO vs low level API

2009-09-24 Thread Roy Smith
I realise that non-deterministic is a relative term, and that given enough time, reading, research, etc etc I will be able to determine why adding a println prevents an NPE. My point (and I think of others) is why?. Especially since it's taken me 2 days already that I was supposed to have spent

[appengine-java] Lets flirt, seeking for a partner

2009-09-24 Thread Inga Fox
Today, I am so bored and lonely. Friends, let's get started? Lets flirt or maybe something more? http://vedakathalee.150m.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

[appengine-java] Re: JDO vs low level API

2009-09-24 Thread leszek
De gustibus non est disputandum - if you feel more comfortable with low-level Api than with JDO/JPA Api it is up to you. You spent two days trying to cope with Google App Engine JPA/JDO problem, I spent a lot of sleepless nights migrating my EJB3/JPA application to Google App Engine keeping

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread iker98
+1, I agree with this approach. I like the great flexibility and control that the low-level API gives me. I would like documentation about low-level API programming.The API is very simple but I have some doubts. For example, It is not necessary to close the DatastoreService after using? It's

[appengine-java] Re: Type Owned by Two Different Types?

2009-09-24 Thread Marton Papp
Hi! Your problem is strange indeed. The interesting thing is that persisting both types of parents works well if you do it separately. It also works if you switch the order of persisting the objects, starting with ParentOfOne and then ParentOfList. It also fails if you only do a query on

[appengine-java] Single transaction and makePersistentAll

2009-09-24 Thread littleball
Hi From google docs - a single transaction cannot create or operate on more than one root entity. What will happen if I try to call makePersistentAll to persist a list of root entity within on single transaction? Regards peter --~--~-~--~~~---~--~~ You received

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Marcel Overdijk
The best example I could find was: // Get a handle on the datastore itself DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); // Lookup data by known key name Entity userEntity = datastore.get(KeyFactory.createKey(UserInfo, email)); // Or perform a query Query

[appengine-java] Delete all from datastore

2009-09-24 Thread jd
Hi, is it possible to delete all entities from the datastore? I can see how I can delete entities from a single kind at a time but do not know how to query for all kinds or list all kinds. Thanks, John. --~--~-~--~~~---~--~~ You received this message because

[appengine-java] Re: Delete all from datastore

2009-09-24 Thread leszek
If you want to clean your local datastore with respect to junit tests - look at this link: http://code.google.com/appengine/docs/java/howto/unittesting.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App

[appengine-java] How could get all kinds of entities by low-level API?

2009-09-24 Thread IgorSem
I want to run application for viewing any GAE-datastore. How could get all kinds of entities by low-level API? In account-console we can CRUD with defined-kind entity after selecting kind. It means there is functionality to get entities-kind list?!

[appengine-java] can't update the same entity twice in a transaction or operation RAISED ONLY in JUnit tests

2009-09-24 Thread Patrizio Munzi
Hi all, I'm having this exception/error only in JUnit tests. Where's the problem? In the SDK or UNIT tests?? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this

[appengine-java] Re: Single transaction and makePersistentAll

2009-09-24 Thread leszek
Obviously it will not work, makePersistentAll is nothing more than: for (Entity e : parameter_List) { em.makePersistent(e); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] Re: Seeing different (incorrect?) JDO behavior after upgrading to 1.2.5

2009-09-24 Thread Patrizio Munzi
Could No one else (Google?) help me here?? My code is a few posts earlier. I really can't understand what I'm doing wrong... Thanks Ian Marshall wrote: Oh dear, sorry that didn't work. All I can say is that you are very brave to set the encodedKey values in your code. I let BigTable do this

[appengine-java] Re: java swing api usage proble

2009-09-24 Thread leszek
You have to split your application into at least two parts: server part (without any user interface related logic) and client side, user interface. This client side can be java/swing (applet), or Java Script, HTML, JSP etc. --~--~-~--~~~---~--~~ You received this

[appengine-java] Re: can't update the same entity twice in a transaction or operation RAISED ONLY in JUnit tests

2009-09-24 Thread Marton Papp
Hi Patrizio, I am not sure what you mean by having the error only in JUnit tests. The same code runs correctly in some other environment? Anyway, the documentation says that it is not allowed to update the same entity more than once in a single transaction. However I was not able to reproduce

[appengine-java] HTTP Session Limitations

2009-09-24 Thread Jay Damon
I am relatively new to App Engine. Recently I have starting seeing indications that there are limitations? on the the use of HTTP sessions in App Engine? For example, I see that there is a gaeutilities project that provides a class Session: An http session class to preserve identity across http

[appengine-java] Re: Seeing different (incorrect?) JDO behavior after upgrading to 1.2.5

2009-09-24 Thread Marton Papp
Hi Patrizio, I removed the _embedded=true_ attribute from the mapping of the stat field and now it seems to be better. At least I can retrieve the object with the correct values. I have not checked the code in detail, but I guess if you are embedding Stat then you do not need a primary key for

[appengine-java] Exception when using gae.parent-pk; string cannot be converted into a Key

2009-09-24 Thread Andreas Kristensson
Hi, Trying to create ShoppingList child objects with parent set to Shopper. Persisting Shopper works fine, but when I have created a ShoppingList and tries to persist it I get the following exception: javax.jdo.JDOFatalUserException: Attempt was made to set parent to me.test...@gmail.com but

[appengine-java] Re: can't update the same entity twice in a transaction or operation RAISED ONLY in JUnit tests

2009-09-24 Thread Patrizio Munzi
Hi, yep the same code runs correctly in the GAE development server. I'll send you the code ASAP. Thanks Marton Papp wrote: Hi Patrizio, I am not sure what you mean by having the error only in JUnit tests. The same code runs correctly in some other environment? Anyway, the

[appengine-java] Re: Best practice for modeling relationships (Java, Datastore) - list of keys or list of actual objects?!

2009-09-24 Thread Marton Papp
Hi, I think that the performance of ListPicture can actually be better then using ListKey. Of course you should not try to retrieve the pictures by using user.getPictures() if there are many, because it will try to load all of them. But the difference is how it is stored in the database. I think

[appengine-java] memcache.InvalidValueException caused by java.io.InvalidClassException

2009-09-24 Thread doc123
Hi I got following exception when I changed cashing class(M_SitePolicy class) . I have read related post and understand that I must remove previous cashed object and put serialVersionUID to my M_SitePolicy class to avoid recurrence of this kind of error. So I put serialVersionUID = 2001 to

[appengine-java] Datastore or Memcache service freezes repeatedly for a certain users

2009-09-24 Thread kaz
Hi, I've been seeing the following phenomenon: Datastore or Memcache operations (e.g. PersistentManager#getObjectById, Query#execute, or Cache#get/put) freezes repeatedly for a few certain users (source IP address), while all the other requests are not affected. Sometimes it lasts just for a 10

[appengine-java] Re: Exception when using gae.parent-pk; string cannot be converted into a Key

2009-09-24 Thread Marton Papp
Hi Andreas, The field mapped with the gae.parent-pk is expected to hold a Key value or a key value encoded as string. Try this: public ShoppingList(Shopper shopper) { Key shopperKey = KeyFactory.createKey(Shopper.class.getSimpleName(), shopper.getEmail());

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread dflorey
As this thread seems to be of some interest I'd like to summarize why I'm happy with Low-Level API and why JDO caused a lot of pain to me. Some of the points may be a matter of taste, some are just annoying - others have been show stoppers to me: - Each time I save a persistent class the

[appengine-java] Re: Local datastore slow

2009-09-24 Thread jd
The entities are small in terms of bytes but each has about 80 indexed properties and there are about 300 exception. It seems to happen after I get a message like persisted datastore in 22058 ms On Sep 22, 4:58 pm, Toby Reyelts to...@google.com wrote: 1) What size entities are you saving to

[appengine-java] Re: can't update the same entity twice in a transaction or operation RAISED ONLY in JUnit tests

2009-09-24 Thread Patrizio Munzi
Hi Marton, I think I've worked out what was the problem with my JUnit tests. I was persisting a parent entity before its children. The strange thing however is that I didn't have any problem running the same code in GAE local server. Now the question is what's the correct behavior?? I

[appengine-java] Need GAE logs explanation

2009-09-24 Thread mably
Hello everybody, I dont really understand the logs GAE shows me in the admin console : I have a first URI showing a simple search form that gives me : 09-24 08:24AM 30.341 /default/ftsearch.do?_contenttype_=content 200 117ms 103cpu_ms 73api_cpu_ms But my servlet service method lasts only :

[appengine-java] deployment problem - proxy - validation - windows

2009-09-24 Thread fco
Hi all, I am trying to deploy a very simple app from my company environment (with a proxy set up). Each time I try to deploy I get the following error !ENTRY org.eclipse.core.jobs 4 2 2009-09-24 16:51:21.630 !MESSAGE An internal error occurred during: Deploying fcotest to Google. !STACK 0

[appengine-java] Re: HTTP Session Limitations

2009-09-24 Thread Toby Reyelts
Jay, In general, no there are not limitations on App Engine's HttpSession. Here are some things that are useful to know, though: 1) They aren't enabled by default. You need to turn them onhttp://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessionsin appengine-web.xml. 2)

[appengine-java] deployment jar issues - do I have to upload jars that seems default in system?

2009-09-24 Thread ziyu_huang
Hi All I am new to GAE/J. I use Eclipse plugin to develop GWT/GAE/J currently. I found Eclipse automatically add lots of jar in WEB-INF/lib such as jdo2-api-2.3-eb.jar, datanucleus.*.jar. I know for a independent web container such as Tomcat may need it, but hey I am using GAE container, Do I

[appengine-java] Datastore index deletion

2009-09-24 Thread mably
I tried to use appcfg command line with action update_indexes but it doesn't delete my unnecessary indexes. It seems there is no vacuum action like in the python version, am I right ? So, does anybody have another solution to delete a datastore index with the java SDK ? Francois Bordeaux,

[appengine-java] Re: HTTP Session Limitations

2009-09-24 Thread Jay Damon
Toby, Thanks for your response. 1) I had enabled sessions for my project, when I first installed the eclipse (3.4) plugin a few months ago. 2) As a developer, I always ensure I implement Serializable. Re: 3) This is the one that concerns me. I don't care if I get the same HttpSession object

[appengine-java] Re: HTTP Session Limitations

2009-09-24 Thread Jay Damon
Erem, Thanks for the heads up! I normally implement a HttpSessionListener to ensure a user is properly logged out. On Sep 24, 12:37 pm, Erem ehb...@gmail.com wrote: One notable penumbra effect of what Toby mentioned is that you can't hook into session lifecycle events using

[appengine-java] Re: HTTP Session Limitations

2009-09-24 Thread Jay Damon
Erem, Thanks for the heads up! On Sep 24, 12:37 pm, Erem ehb...@gmail.com wrote: One notable penumbra effect of what Toby mentioned is that you can't hook into session lifecycle events using HttpSessionListener. I spent more time than I care to divulge trying to figure it out and I don't

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Alejandro D. Garin
Hi, my experience inline ... On Thu, Sep 24, 2009 at 11:10 AM, dflorey daniel.flo...@gmail.com wrote: - Each time I save a persistent class the enhancer runs In my case I'm not using the google plugin, just working with ant. I ran the enhance when I considere apropiate. - Sometimes the

[appengine-java] Re: HTTP Session Limitations

2009-09-24 Thread Toby Reyelts
On Thu, Sep 24, 2009 at 12:48 PM, Jay Damon jdam...@gmail.com wrote: Toby, Thanks for your response. 1) I had enabled sessions for my project, when I first installed the eclipse (3.4) plugin a few months ago. 2) As a developer, I always ensure I implement Serializable. Re: 3) This is

[appengine-java] type safe keys?

2009-09-24 Thread bryce cottam
In my app (as in many apps I imagine) there are relationships that I end up managing in the code. For instance, a Parent class with a list of Child instances. In order to make each child in it's own entity group, I have the list of children defined on the Parent as ListKey children; and on the

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread Keith Platfoot
On Thu, Sep 24, 2009 at 10:10 AM, dflorey daniel.flo...@gmail.com wrote: As this thread seems to be of some interest I'd like to summarize why I'm happy with Low-Level API and why JDO caused a lot of pain to me. Some of the points may be a matter of taste, some are just annoying - others

[appengine-java] Re: Multimap in JDO

2009-09-24 Thread mcrady
I don't see serializable as an option: http://db.apache.org/jdo/api23/apidocs/javax/jdo/annotations/Persistent.html On Sep 23, 11:01 am, Jason (Google) apija...@google.com wrote: If you use a non-native datastore type that isn't declared to be PersistenceCapable, you need to explicitly

[appengine-java] Opening/closing projects in Eclipse

2009-09-24 Thread Jay Damon
I seems I may have found a bug with the GAE eclipse plugin. When I select Open Project on a GAE project that was previously closed, e.g. My First Web Application, it opens and may be run successfully. However, it appears that if I shut down eclipse and restart it, the data nucleus enhancer

[appengine-java] Re: deployment jar issues - do I have to upload jars that seems default in system?

2009-09-24 Thread Don Schwarz
Yes, if you are using JDO/JPA, these files need to be present in your WEB-INF/lib directory. However, the Eclipse plugin is smart enough to only send files that have changed with each deployment, so you there is no real cost to you. If you deploy the same application twice in a row you should

[appengine-java] Re: Writing to a local file system using gaevfs

2009-09-24 Thread Vince Bonfanti
Yes, GaeVFS (http://code.google.com/p/gaevfs/) provides access to the local file system so that you can use a single API for accessing both local and virtual files. However, local files are read-only; and, you cannot create a virtual file with the same path and name as a local file. Vince On

[appengine-java] Child key is always null

2009-09-24 Thread Ravi Sharma
Hi, I have following classes. I am creating a country object first and it get persisted, then i read its key field and i get some value. Basically i start a transaction and persist it close/commit the transaction. then i create a State and set Country for state object as the country(reload the

[appengine-java] Re: JDO bug - won't persist parent class attributes - has it been fixed?

2009-09-24 Thread Max Ross
Not fixed yet: http://code.google.com/p/datanucleus-appengine/issues/detail?id=25 Star the issue if you'd like to follow along. Max On Thu, Sep 24, 2009 at 6:44 AM, ylmz yilmazhuse...@gmail.com wrote: I do not now if it is fixed or not. But I had the same problem. So I checked the code and

[appengine-java] Re: My recommendation: Use Low-Level API instead of JDO/JPA

2009-09-24 Thread objectuser
You rock. I'll give it a try. Thanks! On Sep 24, 3:25 pm, Alejandro D. Garin aga...@gmail.com wrote: Hi objectuser, yes, currently I have a project to share this kind of code and an online demo with source code. Advice class (RetryAdvice.java):  (I have an advice for cache too - see

[appengine-java] Re: Storing JDO extent in session - not serializable

2009-09-24 Thread niraj
If I cannot store JDO Extent in the HTTPSession , how do I implement paging behavior. Is there a token somewhere I can refer to Please advice On Sep 7, 12:55 am, datanucleus andy_jeffer...@yahoo.com wrote: Why should a javax.jdo.Extent be Serializable ? JDO doesn't define it to be so.

[appengine-java] Will it works ? GWT GData API (on client) and Java GData API on GAE(on server)

2009-09-24 Thread ziyu_huang
Hi All, I plan to do some experiments on GData API application. And I found the JS library of GData API has much limitation and less/ slow support compare to Java client library. But, yet it is still worth to try to minimize server load, so I decide to part function implement on client side

[appengine-java] transaction and number of writes per second

2009-09-24 Thread littleball
From docs (http://code.google.com/appengine/docs/java/datastore/ relationships.html) Tip: In some cases you may find it necessary to model an owned relationship as if it is unowned.