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

2009-09-21 Thread datanucleus
In fact, as long as GAE/J allows opening of files then the DataNucleus Excel plugin could be used to retrieve the data into Java objects, and these persisted straight to BigTable using the Google DataNucleus plugin, just like "replication". --~--~-~--~~~---~--~~ You

[appengine-java] not able to send emails using google apps engine

2009-09-21 Thread Vik
Hie Getting following exception: javax.mail.MessagingException: Illegal Arguments (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized sender The from address is on of the user i have created in my google apps account associated with my domain www.sakshum.com the from id i

[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

[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 T

[appengine-java] JDO/JPA Snippets That Work - Executing Batch Gets

2009-09-21 Thread Max Ross
Hello again and welcome to this week's installment of JDO/JPA Snippets That Work: Executing Batch Gets Did you know that the App Engine datastore supports batch gets? Batch gets are a super-efficient way to load multiple entities when you already have the keys of the entities you want loaded. He

[appengine-java] Re: can xmpp api send and receive messages using gmail ids?

2009-09-21 Thread Prashant
no, no, no, i meant to say that i want to send/receive xmpp to my friends' ids etc. form my gmail id using my app (instead of gTalk), say a kind of automated replies. if it is possible then how? --~--~-~--~~~---~--~~ You received this message because you are subscri

[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 gro

[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 imp

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

2009-09-21 Thread objectuser
After some more testing this is what I observe: - If A has one C property and B has two C properties, I can save both the A and the B instances, when I get the B instance, both C properties point to the same instance of C. - If A has one C property and B has a property that is a List of Cs, I get

[appengine-java] GAE JUnit testing documentation

2009-09-21 Thread Pion
I am reading http://code.google.com/appengine/docs/java/howto/unittesting.html. I am having a hard time to understand it. Where can I find any/all of the following doc/code/sample? * Complete "Hello World" sample? * Complete sample using the GAE Getting Started http://code.google.com/appengine/

[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 distin

[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 th

[appengine-java] Multimap in JDO

2009-09-21 Thread Dhamu
How to use multimap (http://google-collections.googlecode.com/svn/ trunk/javadoc/com/google/common/collect/Multimap.html) in jdo? I get the following exception. org.datanucleus.exceptions.NucleusUserException: Field "...model.jdo.MyModel.content" is declared as a reference type (interface/Object

[appengine-java] Re: can xmpp api send and receive messages using gmail ids?

2009-09-21 Thread Jason (Google)
A Gmail address is a valid Jabber ID, so yes, you should be able to do this. Along the same lines, you can use Google Talk to send and receive XMPP messages to/from your App Engine app. - Jason On Sun, Sep 20, 2009 at 8:26 AM, Prashant wrote: > Hi, > > > is it possible to use xmpp api to send an

[appengine-java] Re: JDO : How to make an unowned reference to an entity if we don't know its key yet ?

2009-09-21 Thread Jason (Google)
FYI, the low-level datastore has a new allocateIds function, so you can get a reference to an entity's key before writing the entity. This seems to be what you're looking for. Using unowned relationships wouldn't work because, as objectuser pointed out, your entities would all be in separate entity

[appengine-java] Re: How to use Unencoded String as primarykey with JDO

2009-09-21 Thread Jason (Google)
Hi Jaap. Can you paste the code you're using to create and persist the Employee? This would be a good point to write a quick unit test for the local environment to make sure that the Employee persist code is working as expected -- verifying the String passed into the constructor isn't null, etc. ht

[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 d

[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 wrote: > Y

[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 re

[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 mo

[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 wrote: > > I agree with this! Additionally, it'd be great to be able turn > man

[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: 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, W

[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 wrote: > > 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 need to > debug furt

[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 create

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

2009-09-21 Thread Marton Papp
Hi Corneliu! About mapping different classes to the same table, this worked for me in the dev server: @PersistenceCapable(identityType = IdentityType.APPLICATION, table="mappedTable") public class Mapped1 { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

[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: http://code.google.com/appengine/

[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 RequestBuilder

[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? Theoret

[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] 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] Changing Item location in list..

2009-09-21 Thread Danny
class Container { private List items; } i added 3 items to the list then i saved it. loaded the list back their position is saved and every thing works. now i want to change item 3 postition to be the first so i remove it and add it to the start then i save the container class. when i load

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

2009-09-21 Thread objectuser
I'll let leszek talk more about the code, but I assumed that the commented out line was just testing both scenarios. In the scenario without comment on the line, it would be my scenario: the same "owned type" but not the same "owned instance". My original question is not about one particular ent

[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, D

[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 a

[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, besid

[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 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 getting squ

[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: java.lang.IllegalArgumentException: Must set a body

2009-09-21 Thread Don Schwarz
This is a known bug: http://code.google.com/p/googleappengine/issues/detail?id=2082 Please star the issue to be notified when we fix it. In the mean time, I believe it's safe to ignore these XMPP messages. On Mon, Sep 21, 2009 at 12:09 PM, Jason (Google) wrote: > According to the docs, the mess

[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, 2009

[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 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 run-time coexists > i

[appengine-java] Re: ClassCastException blues

2009-09-21 Thread Jason (Google)
Hi James. Are you using the latest version of the SDK? I use 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 which is getting

[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 wrote: > > Hi, > > I'd like to thank you all for the supports I got here for the last > several month. We finally were able t

[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: 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 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 in org.apach

[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 wrote: > > Hello guys, > > I feel sorry to u

[appengine-java] Re: Unicode problems

2009-09-21 Thread Jason (Google)
Hi George. Which version of the SDK are you using? Just to clarify, you're seeing this in all HTML files under war/, not your JSPs? Would it be possible for you to post a sample HTML file that I can use to reproduce the issue? I've tried with UTF-8 encoding in my local development environment, but

[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 wrote: > > What does GAE do with standard dumps such as e.printStackTrace()? > Here is the Admin Console Log output in DEBUG mode for my test: > > I 09-19 08:14AM 54

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 1

[appengine-java] Re: Problem with indexes that stay in "Building" status for a long time (forever?)

2009-09-21 Thread Juan Pablo Picasso
Well, I checked today and the mentioned index is now in "serving" status. In my opinion, this should have a more predictable behaviour. On Sat, Sep 19, 2009 at 4:18 PM, Juan Pablo Picasso < jpica...@getsense.com.ar> wrote: > Hi, thanks for your reply, > do you know if there's any way to speed tha

[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 command

[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 pena

[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 PM,

[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 wrote: > > I'm probably just overlooking something, but according to the API

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

2009-09-21 Thread chris
I'm probably just overlooking something, but according to the API documentation located here (http://code.google.com/appengine/docs/java/ javadoc/com/google/appengine/api/users/User.html) the User object should have a public getUserId method on it. However, in my dev environment this method is una

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

2009-09-21 Thread Jason Parekh
Hi Ken, Seems like there are two separate issues you're pointing out: (1) The Eclipse validation is missing some classes that GWT really doesn't allow, and (2) java.net used to work in GWT, but not anymore? If that breakdown is accurate, would you mind opening a bug for (1)? Someone from the GW

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

2009-09-21 Thread Dhamu
my bad.. my stupid programming style I guess I changed from PersistenceManager pm = ...getPersistenceManager(); try { return pm.getObjectById(MyModel.class, id); } finally { pm.close(); } to PersistenceManager pm = ...getPersistenceManager(); try { MyModel m = pm.ge

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 g

[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) name

[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] 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 jo

[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 wrote: > That's very interesting because it works for me: > > @PersistenceCapable(identityType = IdentityType.APPLIC

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

2009-09-21 Thread ted stockwell
On Sep 21, 3:05 am, Philippe Marschall 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 easier way to go. > Well,

[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: URLFetching is failinging

2009-09-21 Thread Jay Wallingford
I believe this warning is from the underlying Apache HTTPClient they're using. It's just warning you that the entire response is going to be read into memory as opposed to reading it from an input stream a chunk at a time, which could be more efficient. I get this with the HTTPClient API outside o

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

2009-09-21 Thread Marton Papp
Hi Édouard, Although I am not from Google, I have had the a similar problem once. I guess it has to do something with the fact that the datastore identifies the object by their path from the roor of the entity group that they belong to. If you make two collection of the same type, there will be n

[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] Retrieve of Collection model not working

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

[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" To: Goog

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

2009-09-21 Thread objectuser
I have a class that's in an owned relationship with two different classes. Is this supported? I get the dreaded "java.lang.ClassCastException: oid is not instanceof javax.jdo.identity.ObjectIdentity" when I try to save an instance of the second relationship. I have classes setup like this: cla

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 inter

[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 List list1 = new ArrayList(); 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 list1 =

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

2009-09-21 Thread Nicolas Melendez
hi, what i do, is to copy all jars i use to /war/WEB-INF/lib (except those for Junit testing) and then my user libraries reference them. NM On Mon, Sep 21, 2009 at 2:12 PM, brendan wrote: > > I've just spent a couple hours tracking down an issue. It turns out > that i was missing gin.jar and j

[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 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") > List fligh

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

2009-09-21 Thread doc
PS appengine-web.wxl http://appengine.google.com/ns/1.0";> chainofasker 1 true --~--~-~--~~---

[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 propert

[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] 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 wrote: > Yes, the second solution (TO - transient objects) means code > duplicating but seems more realistic. You can share the same code > between GWT (client)

[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] 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 becau

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

2009-09-21 Thread kaz
Now it seems the Datastore service is running properly. Thanks for the quick response! Thanks, Kaz On 9月21日, 午後6:58, Max Ross 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 >

[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 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 status site when we have

[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 wrote

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

2009-09-21 Thread leszek
Yes, the second solution (TO - transient objects) means code duplicating but seems more realistic. You can share the same code between GWT (client) and server (Google App Engine). If you have few classes no problem to call set and get several times. Of course, if you have more classes and more att

[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: com.google.appengine.api.dat

[appengine-java] Re: Restricted classes

2009-09-21 Thread leszek
It is known issue : http://code.google.com/p/googleappengine/issues/list?can=2&q=awt&colspec=ID+Type+Status+Priority+Stars+Owner+Summary+Log+Component&cells=tiles --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Goog

[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=detail&atid=365255&aid=2810312&group_id=15255. See:http://groups.google.co

[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 represen

[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 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 wrote: > > > It is possible to use same class with GWT-R

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

2009-09-21 Thread Philippe Marschall
On 20 Sep., 18:56, ted stockwell wrote: > On Sep 20, 7:16 am, Philippe Marschall > wrote: > > > > > BigDecimal is the only sane choice for anything that includes monetary > > calculations. > > True, but just because a number is saved as a long doesn't mean you > can't do calculations using Big

[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 persisten