[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null

2011-04-27 Thread Mitch Rudominer
Hi Brandon, Sorry I wasn't clear in my previous response. The API is working as designed. In your code sample you call writeChannel.write(bb) and then getBlobKey(file) without calling writeChannel.closeFinally(). Until you call closeFinally() the file has not been *finalized*. This means the

[appengine-java] Re: Always On and warm up requests

2011-04-27 Thread Heiko Roth
Try thread on. appengine-web.xml threadsafetrue/threadsafe But please first check if your application is thread safe. Otherwise, if your first request is in work on the server and you do the second request, it needs a new instance. -- You received this message because you are

Re: [appengine-java] Re: Deferred Task with non default queue

2011-04-27 Thread Marcel Overdijk
Hi Gianni, If I understand correctly I can use the default handler for any deferred task and thus specifying the url is irrelevant. How would I send a 'deferred' Task to a specific queue? Like this? QueueFactory.getQueue(email- queue).add(TaskOptions.Builder.withPayload(newEmailTask(email)));

[appengine-java] Re: How to add parameters to HTTP Post

2011-04-27 Thread Icarus
Thanks hector and Adam, This works. On Apr 27, 3:02 am, hector@ISB hrovira@gmail.com wrote: import com.google.appengine.api.urlfetch.*; import static com.google.appengine.api.urlfetch.HTTPMethod.POST; import static com.google.appengine.api.urlfetch.FetchOptions.Builder.withDeadline;

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Zeno
Thanks you for that tip! Do I understand you that I should only call makePersistent() if the entity does Not exist already? And that if I want an update to fail when the entity does not exist I should do nothing beyond Transaction.commit()? What I mean is: Transaction tx =

[appengine-java] Re: Moderation enabled

2011-04-27 Thread Todd Vierling
On Tuesday, September 29, 2009 11:55:42 AM UTC-4, Jason (Google) wrote: Due to the recent uptick in spam messages, I have enabled moderation for new members -- this means that if you haven't posted here before, your message may not show up right away until I have the opportunity to approve

[appengine-java] Re: YouTube Direct Admin problem

2011-04-27 Thread Сергей Сургут
Photo Submissions: Enabled -- 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 group, send email to

[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null

2011-04-27 Thread Brandon Donnelson
I was merely trying to grab the blobkey before it was closed to see if it was possible, in trying to find a workaround. I knew that I had to do it after closing. I see the blobkey string in the file object when it is null, although I am finding the blog actually is null(corrupted) even though

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Brandon Donnelson
Hmm, let see if I can convert my thought into words :). To persist is to update or insert automatically, depending on if the ID already exists in the datastore for the object. So persist method figures out insert or update. You can do things after commit, but you won't be able to roll back.

[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null

2011-04-27 Thread Brandon Donnelson
I dont' want to waste your time, so I wanted to let you know, that all blobs write to store perfectly. When I get a null return for blobkey after successful write to blobstore, I split the namePart to get the key, but for some reason, this doesn't match up yet. Its probably api operator error,

[appengine-java] Eclipse plugin: Unavoidable NPE in ORM validation on Scala sources

2011-04-27 Thread Todd Vierling
I submitted a moderated post about this, but I think it got lost somewhere. My posts are getting through now, so here we go... Environment: * Eclipse 3.6.2 (Helios SR2) * Google Plugin for Eclipse 2.2.1 (also tested 2.3.0 beta1) * Scala IDE plugin (any version, though primarily using the

[appengine-java] Re: Always On and warm up requests

2011-04-27 Thread Kyle Baley
I've been purposely avoiding the threadsafe option because I haven't checked whether our app is threadsafe or not. Will give it a try. Thanks. -- 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

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Erwin Streur
Brandon, I don't think your last answer is helping him. Because in this case he needs the transaction for the isolation and he is on the right track already. By querying for the entity by ID sameKey in Servlet B the transaction is pinned to that entity group and therefore the transaction is

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Zeno
If I check getObjectById() just before makePersistent(), another thread could still delete it between the two calls couldn't it? Uses_for_Transactions http://code.google.com/intl/nl/appengine/docs/java/datastore/transactions.html#Uses_for_Transactions%20 Is exactly the thing. _Except_ not for

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Brandon Donnelson
I think this is a good question for Ikai, hes the guru that might be able to give you some light to your path. I see the dilemma, but I'm not sure which road :). Brandon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] issue in serving xml file from blobstore

2011-04-27 Thread pac
I am creating xml file in blobstore but after serving from blobstore, when saved through browser then CDATA barckets get changed i.e ![CDATA[ to lt;![CDATA[ and ]] to ]]gt; Thought elements brackets stay fine i.e. id remains as it is. During file creation I use:

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Brandon Donnelson
He has two servlets concurrently working on the same object, what would you suggest? Brandon -- 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] How to show the Google Development Tools dropdown?

2011-04-27 Thread Lina Qu
This page (link below) shows there are several new features in Google App Engine. http://code.google.com/eclipse/docs/signin.html But I can't find the sign in and other like Google API Support in my Eclipse 3.6, even after check for Updates. http://code.google.com/eclipse/docs/googleapis.html

[appengine-java] ${SDK_ROOT} .classpath eclipse

2011-04-27 Thread Kervin
I am getting a headache with using ${SDK_ROOT} in eclipse for the classpath. I just cannot make it work. I tried as below, but does not seem to work. I spedn 5-6 hours on that! Any help would be useful. thank you. classpathentry kind=lib path=${SDK_ROOT}/lib/appengine-remote- api.jar/ -- You

[appengine-java] Re: FileServiceFactory.getFileService().getBlobKey(file) is Broken, blobkey parser returns null

2011-04-27 Thread Mitch Rudominer
Hi Brandon, Sorry, I wasn't clear before. What I meant was that the API is working as designed. In your code sample you call writeChannel.write(bb) but you never called writeChannel.closeFinally(). This means that the file is not *finalized*. Until the file is finalized it is write-only, it

[appengine-java] Re: jdo update is inserting when I don't want it to

2011-04-27 Thread Brandon Donnelson
I've been thinking about your deal. Since the changes are happening concurrently, you could either sync the servlet threads up and talk across the servlets, which I have no experience and haven't tried servlet concurrency or keep track of the threads through a jdo class. So here is what I

[appengine-java] Re: issue in serving xml file from blobstore

2011-04-27 Thread Brandon Donnelson
Here is what I do: public class Servlet_Index extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { home(req, res); } public void home(HttpServletRequest req, HttpServletResponse res) throws IOException {

[appengine-java] Re: ${SDK_ROOT} .classpath eclipse

2011-04-27 Thread Brandon Donnelson
Can you right click on library and add it to the build path? I like to install it through Help Install New software my self. I get mine through the GWT channel. Brandon Donnelson http://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google

[appengine-java] Struts2 result type xslt with Google App

2011-04-27 Thread 朴乾斌
I success to integrate struts2 in GAE . And can execute program in normal condition. But when i try use xslt result type . The error come out. javax.xml.transform.TransformerOncfigurationException: Could not compile stylesheet is there have any solution? -- You received this message because