Re: [appengine-java] Re: JAXB doesn't work for me in 1.2.8

2009-12-09 Thread Jeremy Blythe
It works now. Thanks. On Wed, Dec 9, 2009 at 11:01 PM, Toby Reyelts wrote: > The built-in JAXB implementation should be available now. Please let us know > if you continue to see problems. > > On Sat, Dec 5, 2009 at 3:16 AM, Jeremy Blythe > wrote: >> >> Thanks, but I'll stick with Simple XML htt

[appengine-java] Re: Copy production datastore to local_db.bin?

2009-12-09 Thread Dominik Steiner
Hi Ikai, I followed the instructions in the cook book for the python uploader/ downloader in order to be able to download and backup the data of my java application. As already posted in the cook book article, I got the following situation: "I would love to be able to download data in order to b

Re: [appengine-java] An entity group that does not have a root entity supports transaction. How does it work?

2009-12-09 Thread Yasuo Higa
Hi Ikai, On Thu, Dec 10, 2009 at 2:49 AM, Ikai L (Google) wrote: > Which timestamp are you referring to? > I mean timestamp as "committed" timestamp explained by the following document(50p): http://snarfed.org/space/datastore_talk.html Thanks, Yasuo Higa > On Tue, Dec 8, 2009 at 6:35 PM, Yasuo

[appengine-java] Re: Critical issue with INDEX

2009-12-09 Thread GTZhou
Thanks Ikai On 12月10日, 上午2时30分, "Ikai L (Google)" wrote: > Here's the issue in our public tracker: > > http://code.google.com/p/googleappengine/issues/detail?id=2481 > > On Wed, Dec 9, 2009 at 9:56 AM, Ikai L (Google) wrote: > > > > > Ravi, > > > We're aware of the issue and have already begun i

[appengine-java] Re: Cache stops returning results under heavy load

2009-12-09 Thread Martin Caslavsky
Yes, cache maps Strings (URLs) to byte[] blobs (RSS feed content). Martin On Dec 10, 12:13 am, "Ikai L (Google)" wrote: > What kind of objects are you storing the cache? Are you storing large binary > objects? > > On Tue, Dec 8, 2009 at 12:23 AM, Martin Caslavsky wrote: > > > > > Sorry, it is dm

Re: [appengine-java] Invoking another GAE Restful service in one GAE app

2009-12-09 Thread Ikai L (Google)
Which tutorial are you referring to? If you are invoking a REST call, you can also make use of the low-level URLFetch API that we provide: http://code.google.com/appengine/docs/java/urlfetch/overview.html On Mon, Dec 7, 2009 at 8:57 PM, Featheast Lee wrote: > I have encountered this problem in my

Re: [appengine-java] Re: Cache stops returning results under heavy load

2009-12-09 Thread Ikai L (Google)
What kind of objects are you storing the cache? Are you storing large binary objects? On Tue, Dec 8, 2009 at 12:23 AM, Martin Caslavsky wrote: > Sorry, it is dmczum. > FYI redeploy of the app helps for a few hours. > > Martin > > On Dec 8, 2:20 am, "Ikai L (Google)" wrote: > > Martin, > > > > Ca

Re: [appengine-java] Re: JAXB doesn't work for me in 1.2.8

2009-12-09 Thread Toby Reyelts
The built-in JAXB implementation should be available now. Please let us know if you continue to see problems. On Sat, Dec 5, 2009 at 3:16 AM, Jeremy Blythe wrote: > Thanks, but I'll stick with Simple XML http://simple.sourceforge.net/ > until 1.2.9 :) > > On Fri, Dec 4, 2009 at 10:55 PM, Toby Rey

Re: [appengine-java] Copy production datastore to local_db.bin?

2009-12-09 Thread Ikai L (Google)
Regarding your question about connecting development code to the hosted datastore: there's a tool in Python for connecting to the remote datastore: http://code.google.com/appengine/articles/remote_api.html The article has examples on putting together an interactive console, or otherwise working w

[appengine-java] Re: File Access on App Engine

2009-12-09 Thread mattkrae34
Using the relative path worked. I thought I had tried that Thanks On Dec 9, 3:51 am, "andy.booth" wrote: > Use a relative path, not an absolute path. So remove the forward slash > prefix, to just FileInputStream("test.xml"). So a file located in / > projectfolder/war/data/anothertest.xml wo

Re: [appengine-java] Re: Processing incoming email

2009-12-09 Thread Ikai L (Google)
Peter, I'm hoping this solved your issue with CIDs and inline image attachments. If you can, it'd be awesome if you could post some sample code for the group. On Wed, Dec 9, 2009 at 2:02 PM, Peter Ondruska wrote: > Thank you Jeremy, Ikai, and tetest. I was able to finish incoming mail > handler i

Re: [appengine-java] Re: XMPP Message not being received

2009-12-09 Thread Ravi Sharma
Hi Googlers and GAE users, I changed code little bit, there was one problem.And then i tried sedning a message every 2 seconds and it went fine. I think after this fix i will be able to get a speed of 80 messages/second, but still far away from 3000/second. i removed this line * Chat chat

[appengine-java] Re: Processing incoming email

2009-12-09 Thread Peter Ondruska
Thank you Jeremy, Ikai, and tetest. I was able to finish incoming mail handler in Java and it works fine now. I has been confusing due to changes in 1.2.7 and 1.2.8 releases. Peter On Dec 9, 10:52 pm, "Ikai L (Google)" wrote: > I've just tested this code out with Yahoo, Gmail and Hotmail for proc

Re: [appengine-java] Re: Processing incoming email

2009-12-09 Thread Ikai L (Google)
I've just tested this code out with Yahoo, Gmail and Hotmail for processing an attachment. It's working well. Thanks to Jeremy Blythe for looking into this and posting about it! I'll add this to the cookbook when I get a chance. // IncomingMailHandlerServlet.java import com.google.appengine.api.d

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2009-12-09 Thread David Fuelling
Thanks Max! Just updated to 1.2.8 and ran into this problem. The workaround looks good, though I think you specified the boolean value wrong if you want to disable this error. Should be: In my case, the app builds fine with no Enhancer errors or warnings. However, when I run my app, I'm get t

[appengine-java] Re: How to use jmsn on GAE?

2009-12-09 Thread Todd Vierling
On Dec 7, 5:19 am, Leon wrote: > I have trying to deploy a web MSN Messenger app to GAE and the > following error appears. > > java.lang.NoClassDefFoundError: rath.msnm.MSNMessenger is a restricted > class. Please see the Google  App Engine developer's guide for more > details. A MSN messenger ap

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread Ratamovic
sorry there was a problem in my link to the logs for problem 1. Here is the link with all the lines: http://tinypaste.com/a303b On 9 déc, 21:16, Ratamovic wrote: > I found something weird in the log: > INFO: Performing appengine-specific metadata validation for > com.testgae.xp.domain.B > 9 déc.

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread Ratamovic
I found something weird in the log: INFO: Performing appengine-specific metadata validation for com.testgae.xp.domain.B 9 déc. 2009 20:59:57 org.datanucleus.store.appengine.MetaDataValidator warn ATTENTION: Meta-data warning for com.testgae.xp.domain.B._cUpdates: The datastore does not support join

Re: [appengine-java] Critical issue with INDEX

2009-12-09 Thread Ravi Sharma
Thanks Ikai. On Wed, Dec 9, 2009 at 6:30 PM, Ikai L (Google) wrote: > Here's the issue in our public tracker: > > http://code.google.com/p/googleappengine/issues/detail?id=2481 > > > On Wed, Dec 9, 2009 at 9:56 AM, Ikai L (Google) wrote: > >> Ravi, >> >> We're aware of the issue and have alrea

Re: [appengine-java] Inherit one-to-many relationship

2009-12-09 Thread Max Ross (Google)
Could you please post all the model objects that are involved in the example? Looks like SpeciesStats is missing. Also, it would be great if you could post the code that shows how you populate the Community object before persisting. Thanks, Max On Wed, Dec 9, 2009 at 11:40 AM, Max Ross (Google)

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-09 Thread bryce cottam
On the ActivityReservation model object, there is an instance of RatePlan (which is also a child object of Activity). So, here's a thought, I will try it out later, but I thought I'd ask right now about it: how about having subclasses of RatePlan that live on different parent objects? since RateP

Re: [appengine-java] Inherit one-to-many relationship

2009-12-09 Thread Max Ross (Google)
Thanks for the report, investigating now On Tue, Dec 8, 2009 at 2:33 PM, Pierre Lavignotte < pierre.lavigno...@gmail.com> wrote: > Hi, > > I have a problem when I try to inherit a one-to-many relation ship > from a base entity class. > > The following model works fine : > > @PersistenceCapabl

Re: [appengine-java] java.lang.NoClassDefFoundError: java.rmi.server.UID ->>>>>using commons-fileupload-1.2.1.jar

2009-12-09 Thread Toby Reyelts
http://code.google.com/appengine/kb/java.html#fileforms On Wed, Dec 9, 2009 at 12:44 PM, Henry wrote: > Hi Guys, > > Im trying to store and image with GWT to Google App engine, I'm using > the packages: > commons-codec-1.4.jar > commons-fileupload-1.2.1.jar > commons-io-1.4.jar > to get the w

[appengine-java] TransformerFactory.newInstance() not working in App Engine SDK 1.2.8

2009-12-09 Thread Dan Dubois
Dear All, I just migrated my code to App Engine SDK 1.2.8 and GWT SDK 2.0.0. I have a method that converts an XML Document object into a string: public static String getStringFromDocument(Document doc) throws TransformerException { DOMSource domSource = new DOMSource(doc)

[appengine-java] java.lang.NoClassDefFoundError: java.rmi.server.UID ->>>>>using commons-fileupload-1.2.1.jar

2009-12-09 Thread Henry
Hi Guys, Im trying to store and image with GWT to Google App engine, I'm using the packages: commons-codec-1.4.jar commons-fileupload-1.2.1.jar commons-io-1.4.jar to get the widgets from the formPanel that I'm sending to the server which contain the widgets FileUpload that has my image. When

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-09 Thread Max Ross (Google)
I don't see a class that is owned by more than one entity in your latest example. What exactly should I be looking at? Your understanding of the BigTable layout is correct, but you're bumping into a limitation of how we've mapped JDO on to that layout. The low-level api knows nothing about your

Re: [appengine-java] URLFetch HTTPRequest.fetch throws NPE

2009-12-09 Thread Kevin Shekleton
This looks like it might be http://code.google.com/p/googleappengine/issues/detail?id=2412 On Wed, Dec 9, 2009 at 4:03 AM, Satheesh Babu Vattekkat wrote: > Hi, > > I've a code like this to a remote web service (under https) that > expects a form data post. Output is XML. > > URLFetchService f =

Re: [appengine-java] Critical issue with INDEX

2009-12-09 Thread Ikai L (Google)
Here's the issue in our public tracker: http://code.google.com/p/googleappengine/issues/detail?id=2481 On Wed, Dec 9, 2009 at 9:56 AM, Ikai L (Google) wrote: > Ravi, > > We're aware of the issue and have already begun investigating it. I'll open > up a public issue to mirror our progress so eve

Re: [appengine-java] Critical issue with INDEX

2009-12-09 Thread Ikai L (Google)
Ravi, We're aware of the issue and have already begun investigating it. I'll open up a public issue to mirror our progress so everyone can follow it and add their comments. On Wed, Dec 9, 2009 at 1:09 AM, Ravi Sharma wrote: > Can anyone from google look into this issue please? > > > On Mon,

Re: [appengine-java] An entity group that does not have a root entity supports transaction. How does it work?

2009-12-09 Thread Ikai L (Google)
Which timestamp are you referring to? On Tue, Dec 8, 2009 at 6:35 PM, Yasuo Higa wrote: > Thanks for your reply, Ikai. > > > Entity groups are distributed based on the key and not necessarily the > root > > entity. Thus, it is possible to place entities in the same entity group > > without an en

[appengine-java] Re: Is it possible to store ContactEntrys in the appengine datastore?

2009-12-09 Thread Josh
One other thing I should add. The ContactEntrys are currently stored in an ArrayList. I'm trying to persist the whole list. -- 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] URLFetch HTTPRequest.fetch throws NPE

2009-12-09 Thread Satheesh Babu Vattekkat
Hi, I've a code like this to a remote web service (under https) that expects a form data post. Output is XML. URLFetchService f = URLFetchServiceFactory.getURLFetchService(); HTTPRequest req = new HTTPRequest(url, HTTPMethod.POST); req.setPayload(data.toString().getBytes()); HTTPResponse resp

[appengine-java] Is it possible to store ContactEntrys in the appengine datastore?

2009-12-09 Thread Josh
I'm trying to store a list of ContactEntrys in the appengine datastore. When I persist the group, I get the following error. Is there anyway to get around this? Thanks, HTTP ERROR: 500 contacts: com.google.gdata.data.contacts.ContactEntry is not a supported property type. RequestURI=/update C

Re: [appengine-java] Re: Collections usge in Appengine Java

2009-12-09 Thread andy stevko
Sorry for not seeing this earlier - I missed your reply post in the mail stream. FetchGroups are documented at http://www.datanucleus.org/products/accessplatform_1_1/jdo/fetchgroup.html#dfg The xml metadata they show is generated by the @FetchGroup annotation which is documented at http://www.dat

[appengine-java] Datastore properties with more than one value Restrictions

2009-12-09 Thread gopoto
Hi, I would like to know if Properties with more than on value has restrictions on the numbers of elements you can set on these fields ? Ex: @Persistent List favoriteFoods; Do we have some restrictions on favoriteFoods ? Thanks a lot -- You received this message because you are subsc

[appengine-java] HttpUnit with GAE

2009-12-09 Thread Don
Hi, I am trying to tweak HttpUnit 1.7.2 to run under GAE, and stumbled accross the URLStreamHandler error. As HttpUnit uses URLStreamHandler to process javascript and https, removing URLStreamHandler means I can only access plain html website. How do I use GAE UrlFetch service to replace URLStrea

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread datanucleus
> 1- The transaction is really a JDO/datastore exception encapsulated by > Spring (as I am using the transactional components of Spring). To be > sure, I tried to execute these tests with manual transactions instead > of not Spring and the result was the same (except that it was not a > Spring exce

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread Ratamovic
Thx for your answer. To clarify these points: 1- The transaction is really a JDO/datastore exception encapsulated by Spring (as I am using the transactional components of Spring). To be sure, I tried to execute these tests with manual transactions instead of not Spring and the result was the same

[appengine-java] Re: updating object doesn't work anymore

2009-12-09 Thread tal
Thanks for the quick response! I tried switching to getPersistenceManagerProxy() but didn't get any change. After experimenting some more I finally found my problem... my object of User had a list of Category, and I carelessly used @Transient (javax.persistence) instead of @NonPersistent (javax.jdo

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread datanucleus
1. Any exception from Spring is of use to one group of people only ... Spring. I'd guess it has a nested exception, so that would provide more basis for comment. 3. Perhaps you could define what "my childs are never loaded" means, cos I don't see a field called that. JDO loads as per the FetchPlan

[appengine-java] Re: JDO bug (entity groups and double update)

2009-12-09 Thread Ratamovic
Just a short answer to say that I found a similar issue (http:// code.google.com/p/datanucleus-appengine/issues/detail?id=67) about entities that does not work with unidirectional one to many relationship after being detached. However converting all my model to bidirectional relationships does not

[appengine-java] Re: "Any single entity or entity group can only be updated about five times a second."

2009-12-09 Thread Ratamovic
Hi Tim, Ithink you ran into the same problem as me. You can see in my post (http://groups.google.com/group/google-appengine-java/browse_thread/ thread/a0be8114353d9798/c3b9e94f1942d661?lnk=gst&q=entity+updated +twice#c3b9e94f1942d661) an example where I just call make persistence once on an entity

Re: [appengine-java] Critical issue with INDEX

2009-12-09 Thread Ravi Sharma
Can anyone from google look into this issue please? On Mon, Dec 7, 2009 at 8:15 PM, Ravi Sharma wrote: > Hi Jason and all Google guys, > This is real big problem and its not just canslimbot application but there > are many applications, in today's mails i can see 3 people have faced this > p

[appengine-java] Re: File Access on App Engine

2009-12-09 Thread andy.booth
Use a relative path, not an absolute path. So remove the forward slash prefix, to just FileInputStream("test.xml"). So a file located in / projectfolder/war/data/anothertest.xml would be accessed using FileInputStream("data/anothertest.xml"). Andy On Dec 8, 10:49 pm, mattkrae34 wrote: > I'm usi