[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=4230q=isUserAdmincolspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log Votes in favor of fixing it are

[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

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

2010-12-16 Thread Liang Ding
支持事务,但是不能在同一个事务中操作属于不同实体组的实体。 2010/12/16 EtuO nbaer...@gmail.com 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 nbaer...@gmail.com Caused by: java.lang.IllegalArgumentException: can't operate on

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 kartik.kud...@gmail.com You can not operate on two entities in single transaction unless both are entity groups. First delete CityNum in one

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 durand.did...@gmail.com 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 crui...@gmail.com wrote: Hey,

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

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

2010-12-16 Thread EtuO
谢谢大家,只能开启两个事务来解决啦。 在 2010年12月16日 下午6:11,kartik kudada kartik.kud...@gmail.com写道: 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

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 nbaer...@gmail.com 谢谢大家,只能开启两个事务来解决啦。 在 2010年12月16日 下午6:11,kartik kudada

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

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

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

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

[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

[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 : /gwt module = servlet/version/path to gwt file Remember that, if you change the default GWT module path (like adding a

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

[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

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

[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

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:

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

[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

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.

[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

[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=Xversion=5; 500 Internal

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=Xversion=5; 500 Internal Server Error htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title500 Server Error/title /head body text=#00 bgcolor=#ff h1Error:

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

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 mala...@gmail.com

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 andy.ste...@gmail.com

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

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 mala...@gmail.com wrote: Still no messagesand no

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

[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

[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 ianmarshall...@gmail.com 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: