[appengine-java] Re: JDO relationships and deletion.

2010-07-20 Thread Ian Marshall
Hello Christian, Where you have public class Foo { ... } I use @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") public class Foo implements Serializable { ... } instead. The "@PersistenceCapable" tag might help(?) Ian On Jul 20, 7:18

[appengine-java] Re: local_db does not exist; cannot store persistent data

2010-07-20 Thread Erencie
Hi, I have succeed in getting the local_db.bin after I change my Student class. Initially my Student class is like this: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Student { @PrimaryKey @Persistent private String googleAccount; @Persistent pri

[appengine-java] Re: не могу сохранит ь объект полностью

2010-07-20 Thread Артем Залевский
How to store complex objects? I have an object in its list of child objects in the child object has four list of child objects when calling makePersistent (person) object is not saved. Help I am call pm.makePersistent(); but Lists @Persistent private List choosedElements

[appengine-java] не могу сохранить о бъект полностью

2010-07-20 Thread Artem
Есть ли какое -нибудь ограничение в GAE JDO на дочерние объекты или какая - нибудь особеность при сохранение сложных объектов pm.makePersistent(offerEntity); pm.makePersistent(PersonEntity ); (используеться транзакция) но списки не сохраняются @Persistent private List choosedElemen

[appengine-java] redirection Urgent Reply

2010-07-20 Thread prakhil samar
Hi I have to redirect from one class to another class in the same package here is my code here sub is submit button sub.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Window.open("com.purchase.request.client.Purchase_New", "_self", ""); } } ); Here co

[appengine-java] Can I query keys only instead of full entities?

2010-07-20 Thread TL
I want to run a query and receive a few keys, which I will delete afterwards. The problem is that queries return the entire entity, unnecessary work for the data store and the client (which is also reflected as slower page performance and higher bills). All I want from the query is the keys. In SQ

[appengine-java] GAE Deployment - Unable to compile JSP

2010-07-20 Thread mukesh
Seems strange one GAE app loads fine but the other has problems:_ Unable to update: com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files. at com.google.appengine.tools.admin.Application.compileJsps(Application.java: 389) at com.google.appengine.tool

[appengine-java] Re: local_db does not exist; cannot store persistent data

2010-07-20 Thread Galoch
try explicitly setting path to local db in your run configuration in eclipse under Arguments tab / VM args: -Ddatastore.backing_store= This should create a new bin file if it does not exist. Thanks, G On Jul 20, 5:54 am, Erencie wrote: > Hi R, > > Yes I tried to save persistence objects using

[appengine-java] How to use GeoPt in native datastore API?

2010-07-20 Thread TL
Any information on how to use this object? For example I have entities that have a point, and I want to query all the entities inside a rectangle. How do create a query predicate for points in a rectangle? Another question is whether those can be indexed, or be part of a composite index (index on

[appengine-java] Re: Error using JPA

2010-07-20 Thread Sajid
Hi Ronmell, I haven't run the examples. My application runs perfectly on local server. but after deployment, it gives the error. On Jul 21, 12:21 am, Ronmell Fuentes wrote: > when running the examples you've got the same error? > > 2010/7/20 Sajid > > > I have already checked that. All jars are

[appengine-java] Re: when vacuum_indexes will be implemented?

2010-07-20 Thread Didier Durand
Yes, it will need more processing: each new / updated / deleted entity will be reflected in each of those indexes. Lots of details at http://code.google.com/appengine/articles/index_building.html didier On Jul 21, 12:54 am, Tapir wrote: > Now my app has many unused indexes. > Will them affect t

[appengine-java] Re: Are the 2 indexes same?

2010-07-20 Thread Robert Lancer
No they are not, that would actually create two indexes even though your queries against these indexes might be fairly interchangeable. On Jul 20, 6:57 pm, Tapir wrote: >     >         >         >     > >     >         >         >     -- You received this message because you are subscri

[appengine-java] Are the 2 indexes same?

2010-07-20 Thread Tapir
-- 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 go

[appengine-java] when vacuum_indexes will be implemented?

2010-07-20 Thread Tapir
Now my app has many unused indexes. Will them affect the entity creating and updating efficiency? -- 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 unsub

[appengine-java] Re: How to see the list of my applications?

2010-07-20 Thread tleroy
Hello, I find the solution, if you use an Google App account you need to connect to your admin console from and only from : https://appengine.google.com/a/your-domain.com. The password to use is your Google App account password and not your Google Accout password. I found the solution here : http:

Re: [appengine-java] Re: Error using JPA

2010-07-20 Thread Ronmell Fuentes
when running the examples you've got the same error? 2010/7/20 Sajid > I have already checked that. All jars are in WEB-INF lib folder. > > On Jul 20, 11:58 pm, Ronmell Fuentes wrote: > > Hi Sajid. > > > > Try to copy all the .jar files used by your app to the /WAR/lib directory > of > > your

[appengine-java] Re: Error using JPA

2010-07-20 Thread Sajid
I have already checked that. All jars are in WEB-INF lib folder. On Jul 20, 11:58 pm, Ronmell Fuentes wrote: > Hi Sajid. > > Try to copy all the .jar files used by your app to the /WAR/lib directory of > your app. > > Ronmell > > 2010/7/20 Sajid > > > Hi > > > I am using spring 3, jsf2 and jpa.

Re: [appengine-java] Error using JPA

2010-07-20 Thread Ronmell Fuentes
Hi Sajid. Try to copy all the .jar files used by your app to the /WAR/lib directory of your app. Ronmell 2010/7/20 Sajid > Hi > > I am using spring 3, jsf2 and jpa. I load entity manager factory sing > spring context xml. However, I am getting class not found error for > javax.persistence.Ent

[appengine-java] Error using JPA

2010-07-20 Thread Sajid
Hi I am using spring 3, jsf2 and jpa. I load entity manager factory sing spring context xml. However, I am getting class not found error for javax.persistence.EntityManagerFactory StackTrace: # javax.servlet.ServletException: java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.pe

Re: [appengine-java] Re: ClassNotFoundException after i deploy it for the first time

2010-07-20 Thread Ronmell Fuentes
have you tried to run the examples? did they work? 2010/7/16 Alex > yup im sure of it, somehow the project name in eclipse 3.5 cannot be > the same as package name (same thing happens to me when i was making a > wave gadget with cobogwave) > > On Jul 17, 12:04 am, Ronmell Fuentes wrote: > > ar

[appengine-java] JDO relationships and deletion.

2010-07-20 Thread Christian Edward Gruber
Hi, I have a Model something like this... public class Foo { @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @PrimaryKey private Key id; @Element(dependent = "true") @Persistent(mappedBy="foo") private Set bars = new HashSet(); ... } public class Bar { @Persistent(

Re: [appengine-java] Re: local_db does not exist; cannot store persistent data

2010-07-20 Thread Ronmell Fuentes
Ok. some issues. 1. Student the Class must be persistence with all the anotations that JDO states. 2. Try to print in the console of your app the data, before printing it on a Jsp o html. 3. when the message that says: "no local_db.bin exists" it also says something like it'll be created right?. 4

[appengine-java] Re: About Google App Engine & Google API

2010-07-20 Thread Dan Billings
Start with the documentation, it includes tutorials. If you have specific problems that haven't been answered before, ask here. On Jul 19, 3:57 am, Tan Duy wrote: > Hi there, > Now, I think that I should create an application on GAE. > It will list some libraries on Google Map. We can search, lo

[appengine-java] Re: What is entity "detached yet this operation requires it to be attached?"

2010-07-20 Thread Sekhar
Anyone? Would appreciate just about any help you can give! On Jul 15, 8:45 am, Sekhar wrote: > I pretty frequently get an error for my JPA entities saying an entity > is "is detached yet this operation requires it to be attached" and the > transaction isrolledback: > "com.google.apphosting.utils.

[appengine-java] Re: To store an Object of custom class

2010-07-20 Thread Didier Durand
Hi Manish, If you mean embed other objects (rather than raw types like boolean, int, etc...) in a persistent class: yes, it is possible. It's called an embedded object Check http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Embedded_Classes regards didier On Jul 20, 12:36

[appengine-java] Re: local_db does not exist; cannot store persistent data

2010-07-20 Thread Erencie
Hi R, Yes I tried to save persistence objects using sth like this in the servlet: Student newStudent = new Student(googleID, fullName, matricNum, email, team); PersistenceManager pm = PMF.get().getPersistenceManager(); try { pm.ma

[appengine-java] To store an Object of custom class

2010-07-20 Thread MANISH DHIMAN
Hi Is it possible to store objects in data store other than data type specified in G A E. -- 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 f

[appengine-java] too many info log

2010-07-20 Thread senderj
Everytime when my servlet use EntityManager I got a lot of info level log like this: org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints: Bundle "org.datanucleus.jpa" has an optional dependency to "org.datanucleus.enhancer" but it cannot be resolved There are many of them, saying t

[appengine-java] Re: PDF Files

2010-07-20 Thread Thomas
Hi: You can't let GAE/J Blobstore API serve the blob for you. You have to read the blob content and serve by yourself. This approach reduces to normal/regular pdf file download which is trivial. On 7月19日, 下午10時36分, chrischelmi wrote: > You are right conor, i set the content to application/pd

[appengine-java] Re: App Engine Java servlet clearing my Content-type Header for form POST from python

2010-07-20 Thread Thomas
Hi: I don't think so. I have uploaded lots of files onto production server without any problem. I guess the problem was due to your python script. Anyway you can unit test your upload handler of the production server with a browser. If the browser can upload files successfully, you can be sure

[appengine-java] Re: Must only return a redirect from a Blobstore upload callback??? What does it mean?

2010-07-20 Thread Thomas
I forgot to metion that If you used jsp as handler, you should call the response.sendRedirect(...) in your jsp's scriptlet. -- 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...@

[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread Didier Durand
Hi John, Thanks a lot for the pointer to the article! Can I understand that what the DataStore Viewer shows as Encoded key is what the article refers to as "prefix delta encoding scheme" ? It is supposed to save space by in my cases keys (encoded and decoded) are of approx same size. didier Cou

[appengine-java] Re: Must only return a redirect from a Blobstore upload callback??? What does it mean?

2010-07-20 Thread Thomas
Hi: The below document is copied from Blobstore doc. ( http://code.google.com/intl/en/appengine/docs/java/blobstore/overview.html ) To prompt a user to upload a Blobstore value, your app presents a web form with a file upload field. The app generates the form's action URL by calling the Blobs

Re: [appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread John Patterson
Yes, the kind name is used in the key along with the id/name and ancestor path and all contribute to the size. Details: http://code.google.com/appengine/articles/storage_breakdown.html On 20 Jul 2010, at 15:41, Didier Durand wrote: @John Patterson, I did not mention the Class / Kind in my an

[appengine-java] Re: Length of member variable names contributes to storage space used?

2010-07-20 Thread Didier Durand
@John Patterson, I did not mention the Class / Kind in my answer for the following reason: when I go to "Datastore Viewer" in the GAE Console and for every entity, I see "Decoded key" and "Encoded key" The encoded key is always - at least in my experience - a huge string whatever the size of the d