[appengine-java] Re: Persistence problem of an entity with two List of the same type

2009-09-21 Thread elDoudou
Thank you Maciej for your answer. But I think that my problem is not related to any empty field. The problem of storage arises as soon as you define twice a persistent field which is a list of the same type, as I explained earlier. The only work-around I found is to duplicate the listed

[appengine-java] Re: Storing GWT-RPC objects to BigTable

2009-09-21 Thread Max
When I declare fields as @Persistent it stops to work in GWT. On Sep 21, 1:40 am, Romain hippe...@bellsouth.net wrote: As long as your Entities are in the client.* folder they can be seen as JDO objects as well as in GWT as POJOs On Sep 20, 5:07 pm, Max max.seven@gmail.com wrote: It

[appengine-java] Restricted classes

2009-09-21 Thread gooru
Hi - I was using iText PDF generation library and found out that when I deploy it to the AppEngine I am getting exceptions because the classes: java.awt.Color and java.awt.color.ICC_Profile are restricted. Would it be possible to add those to the white list? It does not seem like those

[appengine-java] Re: Restricted classes

2009-09-21 Thread 小乐
iText Version(s): ? Status: INCOMPATIBLE iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed at http://sourceforge.net/tracker/?func=detailatid=365255aid=2810312group_id=15255.

[appengine-java] DatastoreTimeoutException on all the accesses

2009-09-21 Thread kaz
Hi, My app is seeing DatastoreTimeoutException on all of its queries for last 1 hour. Redeployment did not work. And it seems it is an app-wide phenomenon since my other apps are working properly. Can you please check? I'll let you know my app id directly. Caused by:

[appengine-java] Re: DatastoreTimeoutException on all the accesses

2009-09-21 Thread Max Ross
Your app is most likely impacted by the elevated datastore latency and error rate we're currently experiencing: http://code.google.com/status/appengine We'll update the status site when we have more information. Thanks, and sorry for the trouble. Max On Mon, Sep 21, 2009 at 2:43 AM, kaz

[appengine-java] Re: DatastoreTimeoutException on all the accesses

2009-09-21 Thread kaz
Hi Max, OK, thanks so much for the quick response. Kaz On 9月21日, 午後6:58, Max Ross maxr+appeng...@google.com wrote: Your app is most likely impacted by the elevated datastore latency and error rate we're currently experiencing: http://code.google.com/status/appengine We'll update the

[appengine-java] JPA - User Defined Types

2009-09-21 Thread sud...@jsptube.com
Is it possible to create custom user defined types as explained in this article http://www.datanucleus.org/extensions/rdbms_java_types.html I need to create custom types like Gender, Height Income etc... Thanks --~--~-~--~~~---~--~~ You received this message

[appengine-java] How to upload data into the app engine?

2009-09-21 Thread Pasin
If I have some static data that I would like to populate into the data storage (for query), what is the best way to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

[appengine-java] Re: Storing GWT-RPC objects to BigTable

2009-09-21 Thread Max
Thank You! I thought I missed something and there is some framework from google that has to be used here. On Sep 21, 12:49 pm, leszek leszek.ptokar...@gmail.com wrote: Yes, the second solution (TO - transient objects) means code duplicating but seems more realistic. You can share the same

[appengine-java] DataStoreTimeOutException when using session at production mode

2009-09-21 Thread doc123
Hi I got DatastoreTimeoutException when I using HttpSession at production mode. This code does not create error at local development environment. Purpose to use session is cashing userID(google e-mail string ) when user login at first time. So I created Session_User class which have SeesionID,

[appengine-java] How to get eclipse with google app engine plugin to copy jars to /war/WEB-INF/lib

2009-09-21 Thread brendan
I've just spent a couple hours tracking down an issue. It turns out that i was missing gin.jar and junit.jar from my /war/WEB-INF/lib directory. Using eclipse I have specified a number of User Libraries, and have added those to the Libraries section of the Java Build path in my project

[appengine-java] Re: DataStoreTimeOutException when using session at production mode

2009-09-21 Thread doc
PS appengine-web.wxl ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; applicationchainofasker/application version1/version sessions-enabledtrue/sessions-enabled !-- Configure java.util.logging --

[appengine-java] Re: Query a collection of entities with their IDs

2009-09-21 Thread Zou Zhi Le
Max, thanks, this works pretty well for me :-) On Sep 9, 3:14 am, Max Ross maxr+appeng...@google.com wrote: You can do the equivalent of a low level batch get with jdoql: Query q = pm.newQuery(select from + Flight.class.getName() + where id == :ids); @SuppressWarnings(unchecked)

[appengine-java] Re: Persistence problem of an entity with two List of the same type

2009-09-21 Thread Nicolas Melendez
Hi, i think your problem is here: @Persistent private ListB list1 = new ArrayListB(); you use a List, but you assing an ArrayList. That because the datastore makes different structures for different types of collection. To fix that, your code should be: @Persistent private ArrayList B list1

Re: [gae] [appengine-java] How to get eclipse with google app engine plugin to copy jars to /war/WEB-INF/lib

2009-09-21 Thread Allen Firstenberg
This issue was first raised back on April 16th: http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f# At the time, the Google team gave a couple of suggestions, admitted that some work needed to be done in this area, and said that they were tracking this

[appengine-java] Re: JPA - User Defined Types

2009-09-21 Thread || Sudhir Nimavat ||
Does any one has any idea ? Sudhir NimavatSenior software engineer. Quick start global PVT LTD. Baroda - 390007 Gujarat, India Personally I'm always ready to learn, although I do not always like being taught From: sud...@jsptube.com

[appengine-java] Retrieve of Collection model not working

2009-09-21 Thread Dhamu
// MyModel String id ListString values ListLong scores; // get(id) PersistenceManager pm = ...getPersistenceManager(); try { return pm.getObjectById(MyModel.class, id); } finally { pm.close(); } // store(obj); PersistenceManager pm = ...getPersistenceManager(); try {

[appengine-java] JDO vs low level API

2009-09-21 Thread Cornel
Hello! I would like to bring in discussion a comparison between JDO and the low level API. Google recommends using the low-level API only to framework developers, but JDO seems to inflexible to me. I've been using JDO for a month now and i've come across some nasty limitations. I will mention a

[appengine-java] JDO vs low level API

2009-09-21 Thread Cornel
Hello! I would like to bring in discussion a comparison between JDO and the low level API. Google recommends using the low-level API only to framework developers, but JDO seems to inflexible to me. I've been using JDO for a month now and i've come across some nasty limitations. I will mention a

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

2009-09-21 Thread leszek
That's very interesting because it works for me: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; private String firstName; private String lastName; }

[appengine-java] Re: when will BigDecimal be supported in datastore?

2009-09-21 Thread ted stockwell
On Sep 21, 3:05 am, Philippe Marschall philippe.marsch...@gmail.com wrote: But long is crappy abstraction. Sometimes you need two decimal places, sometimes three, sometimes six, sometimes as many as there are. That's all quite cumbersome to do with a long alone. String seems like the

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

2009-09-21 Thread objectuser
Thanks! I'd certainly rather it be something I'm doing wrong. I think you have represented my exact scenario there. I'll continue looking at my code. On Sep 21, 9:49 am, leszek leszek.ptokar...@gmail.com wrote: That's very interesting because it works for me:

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

2009-09-21 Thread Marton Papp
Hi Corneliu! I also had doubts about using JDO in GAE when I started to work with it. Especially because I met several bugs and it was annoying and time wasting to figure out what was going wrong. But then the bugs were fixed in the next release, so I think the guys are generally doing a good

[appengine-java] Re: JPA - User Defined Types

2009-09-21 Thread Max Ross
Creating an Embedded object works great and should give you the result you're looking for. On Mon, Sep 21, 2009 at 6:26 AM, || Sudhir Nimavat || sudhir_nima...@yahoo.com wrote: Does any one has any idea ? *Sudhir Nimavat* *Senior software engineer. ** Quick start global PVT LTD.

[appengine-java] Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken
Hi, I seem to have an issue with the Google Plugin Hosted Mode and java.net on a Mac OS X 10.5.8. I have Eclipse Galilio with: Google App Engine Java SDK 1.2.5 Google Plugin for Eclipse 3.5 Google Web Toolkit SDK 1.7.0 I created a new default GWT/AppEngine project (both checked)

Re: [gae] [appengine-java] How to get eclipse with google app engine plugin to copy jars to /war/WEB-INF/lib

2009-09-21 Thread Jason Parekh
Hey Allen, Thanks for linking to the previous discussion. Unfortunately, we haven't revisited the issues mentioned in that thread yet. It may be worthwhile to star a similar feature request at http://code.google.com/p/google-web-toolkit/issues/detail?id=3810 since we use stars as one signal to

[appengine-java] Re: ...appengine.api.users.User object missing getUserId method

2009-09-21 Thread Don Schwarz
1.2.5 is the latest version. Please upgrade and make sure that you are copying the latest API jar (appengine-api-1.0-sdk-1.2.5.jar) into your application's WEB-INF/lib directory. On Mon, Sep 21, 2009 at 11:48 AM, chris chrismiddl...@gmail.com wrote: I'm probably just overlooking something,

[appengine-java] Re: java.lang.IllegalArgumentException: Must set a body

2009-09-21 Thread Jason (Google)
According to the docs, the message body should be a named POST parameter in the request object passed into the servlet. Can you log or otherwise take note of this parameter and the other XMPP parameters before calling parseMessage and report what you find? - Jason On Thu, Sep 17, 2009 at 10:47

[appengine-java] Re: what's the bigger/complex application Java/Python running on GAE

2009-09-21 Thread Jason (Google)
Hi Patrizio. We have an article coming out soon which will help you determine how much data your application will use. If you're concerned about storage, be sure to note which properties you'll never use in queries and mark these as unindexed from the start so you don't have to incur a storage

[appengine-java] JUnit best practices questions

2009-09-21 Thread Pion
My environments are: Google App Engine (GAE) Java SDK 1.2.5, Google Web Toolkit (GWT) 1.7, Eclipse-Galileo on Windows Vista. GWT (http://code.google.com/webtoolkit/tutorials/1.6/JUnit.html) provides junitCreator tool and creates a default folders for the junit. I got this thing running on

Re: [gae] Re: [appengine-java] How to get eclipse with google app engine plugin to copy jars to /war/WEB-INF/lib

2009-09-21 Thread Allen Firstenberg
Thanks for pointing out the open bug, Jason. It wasn't clear from the discussion in April if opening an issue was the right/best way to handle this, but I'm glad to see its been opened and the previous discussion noted there. Thank you, as always, for everything! Allen On Mon, Sep 21, 2009 at

[appengine-java] Re: How-to view stack dumps in GAE

2009-09-21 Thread Rajeev Dayal
Maybe you could try e.printStackTrace(System.out) and see if that makes a difference? On Sat, Sep 19, 2009 at 11:34 AM, Diana Cruise diana.l.cru...@gmail.comwrote: What does GAE do with standard dumps such as e.printStackTrace()? Here is the Admin Console Log output in DEBUG mode for my test:

[appengine-java] Re: Error 400 while trying to upload my application for the first time

2009-09-21 Thread Jason (Google)
What is your registered application ID? From the looks of the URL that returned 400, you're using ID which is not a valid identifier. Have you registered an application ID via http://appengine.google.com? - Jason On Fri, Sep 18, 2009 at 2:13 AM, 6real xirgon...@gmail.com wrote: Hello guys, I

[appengine-java] Re: Do app engine support OR operator??

2009-09-21 Thread Jason (Google)
The general workaround for OR is to issue separate queries, then merge the results. - Jason On Thu, Sep 17, 2009 at 9:51 PM, Francis francis@gmail.com wrote: hi: I wrote the following query: Select p From we.bean.base.Player p where p.Id = 664778005 OR p.Id = 999 and I get: Nested

[appengine-java] Re: Colabolo is now running on GAE/J

2009-09-21 Thread Jason (Google)
Congratulations on completing your migration, kaz! You know where to find us if you have any more questions down the road. :) - Jason On Fri, Sep 18, 2009 at 8:36 AM, kaz kazunori...@gmail.com wrote: Hi, I'd like to thank you all for the supports I got here for the last several month. We

[appengine-java] Re: ClassCastException blues

2009-09-21 Thread Jason (Google)
Hi James. Are you using the latest version of the SDK? I use jsp:include in a few of my projects and I haven't seen an exception yet in either the local or production environments, so I don't think the include tag itself is the issue. It's certainly possible that the included JSP has an error

[appengine-java] Re: Java + Python run-time on GAE

2009-09-21 Thread Jason (Google)
No, not in a single version. - Jason On Fri, Sep 18, 2009 at 8:03 PM, YONG yongkia...@gmail.com wrote: Can java and python run-time coexist in one single application? I had tried that, in one single version could not, but in different version then it is OK. Can have a way to make both

[appengine-java] Re: Java Low Level commit timeout

2009-09-21 Thread Jason (Google)
Hi Clay. The datastore timeout limit is fixed. If you're using transactions, you should be able to rollback your changes if any of the writes (in this case, deletes) failed. But this will only work if all entities that you're deleting are in the same entity group. Since bulk updates to entities in

[appengine-java] Re: UTF-8 in the URL resource

2009-09-21 Thread Jason (Google)
It looks like there is an issue in using JSPs or other files with non-ASCII characters in their names. Please file a new issue in the tracker and avoid using these characters as folder/file names for the time being. http://code.google.com/p/googleappengine/issues/list - Jason On Fri, Sep 18,

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

2009-09-21 Thread Marton Papp
Hi, The code in that form also works for me, but just because the exception is caught and never reported. If you rethrow any exceptions from the catch blocks than you should get something like the following: Detected attempt to establish Parent2(3) as the parent of Parent1(1)/ Child1(2) but the

[appengine-java] Re: How-to view stack dumps in GAE

2009-09-21 Thread Toby Reyelts
Hi Diana, Throwable.printStackTrace() writes to System.err. App Engine ties System.err to the java.util.logging.Logger named stderr using the Warning logging level. If you've redirected System.err or don't have logging configured correctly, your stacktraces can end up going somewhere else or

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

2009-09-21 Thread Corneliu Paul Lupulet
Thank you very much for your feedback Marton :) I hope you don't mind, but i will write some further comments to sustain my cause. I also would like to hear the opinion of someone from Google. I know you guys recommend JDO, but can you give me some arguments against using the low level API,

[appengine-java] Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread Toby Reyelts
Hey Ken, As Jason says, the Eclipse plugin does not directly support validation of GWT code, so you only see an error after running Hosted Mode. If you use've intended this to be just server code, you should pull it up out of the GWT client package you currently have it in. On Mon, Sep 21, 2009

[appengine-java] Re: Retrieve of Collection model not working

2009-09-21 Thread Marton Papp
Hi, Those two are equivalent Java constructs, and it should not be the solution to your problem. Have you tried rewriting your code to the original (having the return statement within the try block) and run it again? Are you sure you have not changed anything else? Marton On Sep 21, 6:29 pm,

[appengine-java] Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken
Actually, it was a test of just having a button issue a URL Fetch (to a public web service). I shouldn't think that one would have to RPC first to a service, depending of course on what was really going to be accomplished. In this case, I was going to extend this to a simple GET with an attached

[appengine-java] Newbie

2009-09-21 Thread jonisccp
Hi, I am a newbiew to this environment but willing to learn. I would like to use Google apps engine to create a website like a fantasy football league. Can anyone tell me where I can start and what I can do to learn how to program the website to be hiosted on google app engine? Thanks

[appengine-java] Cascade delete

2009-09-21 Thread Marcel Overdijk
I have a Drinks entity which just contains a key which holds a String to indicate the drink. Like Coca Cola, Pepsi, etc. In my User entity I like to connect one or more favourite drinks of the user. I'm wondering if I delete a Drink if it will be removed from the users automatically?

[appengine-java] Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread Toby Reyelts
Hi Ken, GWT and App Engine support two different sets of API, because they run on two entirely different platforms (someone's browser vs Google's cloud). To issue http requests from GWT, you can use

[appengine-java] Re: about gzip issue

2009-09-21 Thread Jason (Google)
Can you reply with the request and response headers for a response that should have been gzipped by App Engine but wasn't? If the Accept Encoding header reports that the client can accept compressed responses, then App Engine should gzip the response automatically:

[appengine-java] Re: Pointing Domains

2009-09-21 Thread Danny
i mapped both domains and used the wild card the only problem is that google enforces users currently to register to google apps and then register the app to my domain which is a very complicated and long process which not all users understand how plus whats worse is that there is no way to

[appengine-java] Re: Owned One-to-One Relationship and Owned One-to-Many Relationship aren't compatible

2009-09-21 Thread Jason (Google)
Yes, it's related. - Jason On Sat, Sep 19, 2009 at 10:32 AM, objectuser kevin.k.le...@gmail.comwrote: Jason, is it also true that you can't have two one-to-one relationships of the same kind? I'm able to save such a relationship, but when I fetch it, I get the same child in both values. I

[appengine-java] Re: Error 500 uploading index definitions

2009-09-21 Thread Jason (Google)
Your quotas look fine, including your indices count quota. Can you try uploading one more time? The vacuum_indexes command is currently only available in the Python SDK, but you can still use this command even if you deployed your app using the Java SDK. - Jason On Sat, Sep 19, 2009 at 1:52 PM,

[appengine-java] Re: date between jdo query

2009-09-21 Thread Jason (Google)
Read more on indexes here: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Introducing_Indexes For more complex queries, you may have to define an index. If you run your application in the local development server, it should generate the needed index for you, then when

[appengine-java] Re: support for task queues in development environment?

2009-09-21 Thread Jason (Google)
Some of these requests may already have been filed in the public tracker, but if they haven't, please feel free: http://code.google.com/p/googleappengine/issues/list - Jason On Sat, Sep 19, 2009 at 10:54 PM, Tristan sp00s...@gmail.com wrote: I agree with this! Additionally, it'd be great to

[appengine-java] Re: How to location my service in Unit testing?

2009-09-21 Thread Jason (Google)
Are you importing the class correctly? In the mail example, you can see that it depends on the class Bug which is in the same package as the BugNotificationTest class. If you import your classes, assuming they're in a different package, you should be able to use them in your tests. If you can be

[appengine-java] Lists not being saved with JDO

2009-09-21 Thread T_even
Hello, I am new to google app engine and i am having some trouble in saving some data. I have a class that have lists, those list have been 'declared' persistent and i don't want any relation to be involved. However when i try to save the object the data on the lists aren't saved. From what i

[appengine-java] Re: Query a collection of entities with their IDs

2009-09-21 Thread Marton Papp
Hi Max, I am surprised that this actually works. :) I could not find the documentation describing this feature. Do you know how is this implemented? Is it more efficient than just calling getObjectByIdentity N (=listOfKeys.size()) times? Thanks, Marton On Sep 8, 9:14 pm, Max Ross

[appengine-java] Re: Page taking too long to process. Need advice.

2009-09-21 Thread Jason (Google)
Are you seeing these response times on subsequent refreshes? I assume so given the timestamps. What is your application ID? One idea that would certainly help is using memcache to avoid querying on every request, but I'll follow up on why you're seeing these response times with the query. Are you

[appengine-java] Re: appengine with gwt and gwt-ext

2009-09-21 Thread Jason (Google)
Hi Greg. In that case, you may want to post in the GWT discussion group -- if the JAR is in your lib folder, it should be deployed with your application. I've been told that the error can occur when the GWT compiler doesn't know where to pull in the code because you haven't old it to include the

[appengine-java] Re: Plugin Hosted Mode failing to resolve import java.net.* on Macintosh

2009-09-21 Thread ken
Thanks Toby, And no surprise, moving my URL Fetch from the GWT client to the GWT serverimpl makes it all work fine. And from the GWT list:java.net package is not supported by GWT Re: Jason's original comment, I'm not sure there's a bug to be filed. It would be nice if the Plugin could

[appengine-java] ApiProxyLocalImpl.getService question [junit]

2009-09-21 Thread Pion
I have the following server side code: package com.foo.server; // code deleted for brevity /** * The server side implementation of the RPC service. */ @SuppressWarnings(serial) public class FooServiceImpl extends RemoteServiceServlet

[appengine-java] Re: JDO query using LIKE

2009-09-21 Thread rissen
i'm facing the same problem. --~--~-~--~~~---~--~~ 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-java@googlegroups.com To unsubscribe from this

[appengine-java] excel to datatstore.. help

2009-09-21 Thread mar_novice
Is there a way to import data from excel to datastore?? --~--~-~--~~~---~--~~ 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-java@googlegroups.com To

[appengine-java] Re: excel to datatstore.. help

2009-09-21 Thread datanucleus
Use the DataNucleus excel plugin and make the data available to GAE/J using the DataNucleus REST plugin ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send