[appengine-java] Re: UserService functionality when run via cron

2010-12-16 Thread andrew
You can find the bug reported in googleappengine Google Code Project with Issue number 4230: http://code.google.com/p/googleappengine/issues/detail?id=4230&q=isUserAdmin&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log Votes in favor of fixing it are en

[appengine-java] gae不支持事务?

2010-12-16 Thread EtuO
Caused by: java.lang.IllegalArgumentException: can't operate on multiple entity groups in a single transaction. found both Element { type: "CityNum" name: "013001" } and Element { type: "ScheduleProcess" name: "013001" } at com.google.appengine.api.datastore.DatastoreApiHelper.tra

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread Liang Ding
支持事务,但是不能在同一个事务中操作属于不同实体组的实体。 2010/12/16 EtuO > Caused by: java.lang.IllegalArgumentException:* can't operate on > multiple entity groups in a single transaction*. found both Element { > type: "CityNum" > name: "013001" > } > and Element { > type: "ScheduleProcess" > name: "013001" > } > >

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread kartik kudada
You can not operate on two entities in single transaction unless both are entity groups. First delete CityNum in one transaction and then delete ScheduleProcess in different transaction, 2010/12/16 EtuO > Caused by: java.lang.IllegalArgumentException: can't operate on > multiple entity

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread Liang Ding
Hi, kartik. It works, but how can I rollback the 'first transaction' if the following operations throws an exception? 2010/12/16 kartik kudada > You can not operate on two entities in single transaction unless both are > entity groups. > First delete CityNum in one transaction and then delete S

Re: [appengine-java] Re: GWT Designer for NetBeans

2010-12-16 Thread Cesar Ruiz
True. Moved already. Cheers. Kido. On 16 December 2010 04:03, Didier Durand wrote: > Hi, > > A more appropriate place to post this question is > http://groups.google.com/group/google-web-toolkit > regards > didier > > On Dec 15, 8:03 pm, kidowell wrote: > > Hey, is there any gwt designer for

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread kartik kudada
If following operation throws an exception,we can not rollback the first transaction, because it is already committed. What I can think of right now is, you can manually delete it. but it is not the genuine solution. Why don't you create owned relation between these two table? Tell me about your t

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread EtuO
谢谢大家,只能开启两个事务来解决啦。 在 2010年12月16日 下午6:11,kartik kudada 写道: > If following operation throws an exception,we can not rollback the first > transaction, because it is already committed. What I can think of right now > is, you can manually delete it. but it is not the genuine solution. > > Why don't yo

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread 风笑雪
不能rollback,但可以roll forward。 这篇可能对你有帮助: http://www.keakon.net/article/1843 -- keakon My blog(Chinese): www.keakon.net Blog source code: https://bitbucket.org/keakon/doodle/ 2010/12/16 EtuO > 谢谢大家,只能开启两个事务来解决啦。 > > 在 2010年12月16日 下午6:11,kartik kudada 写道: > > If following operation throw

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread kartik kudada
As article on http://www.keakon.net/article/1843 suggests , you can create task queue on successful completion of 1st transaction , same can be done when exception occurred in 1st transaction. I did not try this solution but it seems like good option. By this way we can achieve atomicity like in

[appengine-java] Cannot resize a .tif image using the ImagesService on the dev app server

2010-12-16 Thread Ian Marshall
I refer to the related post entitled "WARNING: No image reader found for format "ico". An ImageIO plugin must be installed to use this format with the DevAppServer." dated 7th June 2009 at: http://groups.google.com/group/google-appengine-java/browse_thread/thread/7a44035eea5b1f4d/5fcd8b0a21f41db3?

Re: [appengine-java] gae不支持事务?

2010-12-16 Thread Liang Ding
The important thing is can't rollback while error occurred. 2010/12/16 EtuO > 谢谢大家,只能开启两个事务来解决啦。 > > 在 2010年12月16日 下午6:11,kartik kudada 写道: > > If following operation throws an exception,we can not rollback the first >> transaction, because it is already committed. What I can think of right now

[appengine-java] Re: storing unowned objects(one to many) in datastore

2010-12-16 Thread WillSpecht
Why do you want to store both in the same transaction? To me, it seems transactions are used to guarantee two things happen. eg. you don't want to delete one record without making sure the a log of deleted records is updated. Transactions are also used to prevent collisions, eg. I don't want two

[appengine-java] Re: Files Limitation 3000

2010-12-16 Thread Francois Masurel
Hi Ravi, I'm putting all the generated GWT files in a zip file and I'm serving them with a specific servlet. It works fine and even allows me to do some GWT versioning : /// Remember that, if you change the default GWT module path (like adding a version number in it), you need to override the Re

[appengine-java] Re: datanucleus-appengine

2010-12-16 Thread George Moschovitis
> > started a new app. For me, Objectify made Java persistence coding fun > again, and words like "persistence manager lifecycle" and "detached > instance" are blissfully draining out of my vocabulary :-) you may have a point here ;-) -g. -- You received this message because you are subsc

[appengine-java] Channel API problem

2010-12-16 Thread Tarun
I have been trying to use the newly launched Channel API on SDK 1.4 in my project. I try to push a message to client which actually pops up a notification but I am getting the ChannelFailureException. Here is the code: TestServlet Where the token is created: public void doGet(HttpServletRequest req

Re: [appengine-java] Mapper & Blobstore bytes read limit

2010-12-16 Thread xiu
i know the 1.4.0 version was released, the limit was raised to 32mb. http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html so i wanna upload my dem data . the data dem.bil is under the /war/dem.bil directory.and these are my codes to fetch the data dem.bil that is

[appengine-java] Re: Synchronized reads/writes on a memcache variable

2010-12-16 Thread Erwin Streur
I agree. You should seriously consider the method that you are using. The MemCacheService is a component designed to increase (mostly read) access to the Datastore. Users of this service should not rely upon the presence of data in the MemCache, but should use the Datastore and its transaction supp

Re: [appengine-java] Re: DEPLOYMENT FAILING AGAIN

2010-12-16 Thread Ikai Lan (Google)
We've been experiencing issues with the precompilation service that we're trying to resolve. It's been causing some deployment failures, which generally result in a 503 response code when you push your application. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleap

Re: [appengine-java] Multiple Async get vs one Sync batch get?

2010-12-16 Thread Ikai Lan (Google)
You're talking about the datastore API? Underneath the hood, synchronous gets just make asynchronous calls and block on Future.get() anyway. Making a single synchronous batch get would translate to a single asynchronous RPC with multiple keys vs. multiple asynchronous get RPCs. I suspect the single

[appengine-java] com.google.appengine.api.datastore.Text does not preserve formatting

2010-12-16 Thread Ojasvi
Hi I am using Java + Jdo to store data. I am able to store Text. The text I get loses all its formatting ( new lines spaces are all converted to single space ) is their any way to prevent the same ? I have read both the community and official FAQ and searched this group. Please help -- You rec

Re: [appengine-java] Multiple Async get vs one Sync batch get?

2010-12-16 Thread Gal Dolber
Yes, I am talking about datastore api. I made some isolated tests and the batch always wins (no by so much). But in my app, when I break the batch into multiple async gets, I can start processing each async get result (and doing another api calls) before... and it seems to be perform better. I'l

[appengine-java] Re: Newly deployed app doesn’t se em always reflected on the server.

2010-12-16 Thread nnhobbit
I think for sure there's some sort of delay of deployment sometimes. It does not always happen. You don't have to deploy your app again, just have to wait long enough (time frame unpredictable) for your new deployment instance get going. Even though in the console says the app is deployed and run

[appengine-java] 500 Internal Server Error:Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?

2010-12-16 Thread Sumi
I am getting deployed error gaian...this is happening every other day and as big productivity sink...anyone knows what is going on and when this will be resolved? Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?app_id=X&version=5&; 500 Interna

Re: [appengine-java] Re: Newly deployed app doesn’ t seem always reflected on the server.

2010-12-16 Thread Sumi
Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?app_id=X&version=5&; 500 Internal Server Error 500 Server Error Error: Server Error The server encountered an error and could not complete your request.If the problem persists, please http://

[appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread Moretto
I've changed the code to initialize the Session object passing properties as a parameter. Nothing changed. Still does not send emails and doesnt throws any exception. Ideias?? Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); Us

Re: [appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread A. Stevko
Does the email address used in your From have administrator privileges for your app? msg.setFrom(new InternetAddress(user.getEmail())); I read somewhere that system could only send email from registered email addresses. On Thu, Dec 16, 2010 at 7:13 PM, Moretto wrote: > I've changed

Re: [appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread A. Stevko
I now recall the conditions... http://code.google.com/appengine/docs/java/mail/overview.html > App Engine applications can send email messages on behalf of the app's > administrators, and on behalf of users with Google Accounts. On Thu, Dec 16, 2010 at 7:49 PM, A. Stevko wrote: > Does the ema

[appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread Moretto
"can send email messages on behalf of the app's administrators, and on behalf of users with Google Accounts." UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); These two lines of code retrieve the current google user logged in. i'll c

[appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread Moretto
Still no messagesand no errors Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); // UserService userService = UserServiceFactory.getUserService(); //User user = userService.getCurrentUser(); try { Messa

Re: [appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread A. Stevko
I have much the same code although I set more headers. How about adding yourself as a BCC and/or CC? Also, do you see any utilization in your Quota details - Mail API Calls and Recipients Emailed ? On Thu, Dec 16, 2010 at 8:12 PM, Moretto wrote: > Still no messagesand no errors > > Prope

Re: [appengine-java] Re: storing unowned objects(one to many) in datastore

2010-12-16 Thread kartik kudada
Hi, I can not create entity group because both are both classes can exists independently, It can be unowned relation between them. I want both should be stored in datastore or none of these(Atomic behavior ) . If one entity is not stored other entity must not store in datastore . Didier's sugges

[appengine-java] Re: Not sending email with Javamail and no error

2010-12-16 Thread Moretto
As you see the first time i've deployed my app, 2 email were sent. It appeared at my cota details. Now Could you post your headers details? Mail API Calls 0% 0 of 7,000 Okay Recipients Emailed 0% 0 of 2,000 Okay Admins Emailed 0% 0 of 5,0

[appengine-java] Re: Cannot resize a .tif image using the ImagesService on the dev app server

2010-12-16 Thread Ian Marshall
No ideas, anyone? On Dec 16, 11:59 am, Ian Marshall wrote: > I refer to the related post entitled "WARNING: No image reader found > for format "ico". An ImageIO plugin must be installed to use this > format with the DevAppServer." dated 7th June 2009 at: > > http://groups.google.com/group/google