[appengine-java] Re: Querying Owned Child Objects by Key.getId()

2009-11-05 Thread Ikai L (Google)
You should still be able to do the following: mysite.com/rest?key=someencodedkey The advantage of doing this is that you don't have to expose the internal structure of your entity groups, and that you will be able to fetch your object like so: Team team = pm.getObjectById(Team.class,

[appengine-java] Re: Session handleing example

2009-11-10 Thread Ikai L (Google)
Ilya, Are you looking to persist objects for a lifetime of a session, or are you looking to minimize the logic you are using in your JSPs? As a general design principle, we recommend that you minimize usage of session scope. Variables bound to session scope are serialized and stored to

[appengine-java] Re: Entity Group limitations

2009-11-10 Thread Ikai L (Google)
James, For all practical intents and purposes, there are no limits on the number of entity kinds per entity group or limits imposed by the underlying physical hardware. On Fri, Nov 6, 2009 at 6:56 PM, James H james.hollier...@gmail.com wrote: Is there any limit on number of entity kinds per

[appengine-java] Re: Singleton / Single Thread / Table Lock

2009-11-10 Thread Ikai L (Google)
Tim, It really depends on what you're doing. One of the challenges of developing on a distributed store like the App Engine data store is adjusting the way you approach persistence for objects. For instance, suppose you store favorite colors per application user. The canonical way of solving this

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-10 Thread Ikai L (Google)
François, Do you have a code snippet, log entries or a stack trace? -- Ikai Lan Developer Programs Engineer, Google App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] Re: Delete task queue

2009-11-10 Thread Ikai L (Google)
Peter, Were you able to delete the task queue? One thing you can try is using the update_queue command line tool with your XML file: ./appengine-java-sdk/bin/appcfg.sh update_queues myapp/war This is described here: http://code.google.com/appengine/docs/java/config/queue.html This should take

[appengine-java] Re: Problem with gdata services

2009-11-10 Thread Ikai L (Google)
Josh, This line: java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.http.GoogleGDataRequest Tells me that the issue is with your build environment not being able to resolve these files. Including JAR files in your lib directory ensures that classes in these JAR

[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-10 Thread Ikai L (Google)
You may want to look here: http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#PostPhotos If you are looking to upload photos that a user has uploaded, you will not be able to save the image in the file system. You'll have to buffer the data in memory and post to

[appengine-java] Re: Session handleing example

2009-11-11 Thread Ikai L (Google)
was redirected properly. Can you explain On Nov 10, 1:36 pm, Ikai L (Google) ika...@google.com wrote: Ilya, Are you looking to persist objects for a lifetime of a session, or are you looking to minimize the logic you are using in your JSPs? As a general design principle, we recommend

[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-11 Thread Ikai L (Google)
(/home/liz/puppies.jpg) snippet of this sample. Can you please give me a sample or refer to a doc that explains how the other approach (sending binary image data) works in jsp/java world? Thanks in advance - Kishore On Nov 10, 5:58 pm, Ikai L (Google) ika...@google.com wrote: You may want

[appengine-java] Re: How many cache can I create using JCacheFactory

2009-11-11 Thread Ikai L (Google)
Jay, It's not necessary to create a Map of caches. The Cache object represents a single Memcache client talking to a distributed, in-memory store. There's no gain for creating separate cache client instances. On Tue, Nov 10, 2009 at 8:38 PM, jay jay...@gmail.com wrote: Hi friends, I want to

Re: [appengine-java] HELP WITH ACCOUNT SETUP

2009-11-12 Thread Ikai L (Google)
Can you submit your request to the SMS waitlist? https://appengine.google.com/waitlist/sms_issues On Thu, Nov 12, 2009 at 6:10 AM, Brickhouse aaron.s...@gmail.com wrote: Apparently there was a problem on my end that prevented me from getting the sms code during account set up. Since I had

Re: [appengine-java] Re: Session handleing example

2009-11-12 Thread Ikai L (Google)
); % How is this possible such basic JSP handling could be failing? Could you please explain? Thanks. On Nov 11, 11:51 am, Ikai L (Google) ika...@google.com wrote: Ilya, One thing you will want to check will be if sessions are enabled. Sessions are off by default, so you'll

Re: [appengine-java] logs in dashboard ... how do they work?

2009-11-12 Thread Ikai L (Google)
Mark, Glad you like it! Unfortunately, this isn't open source. We store and index log entries in BigTable rather than append to a file, so it wouldn't be particularly useful to most users of Java logging. I could have sworn I've seen this feature in Glassfish's admin GUI before, but I might be

Re: [appengine-java] Re: Entity design tips for global Membership data

2009-11-12 Thread Ikai L (Google)
offered then as a whole the entire google infrastructure will benefit from efficient implementations of this most common requirement. Please advise. On Nov 10, 5:41 pm, Ikai L (Google) ika...@google.com wrote: James, The way I would probably do this would be to create an enum in the scope

Re: [appengine-java] Re: Session handleing example

2009-11-12 Thread Ikai L (Google)
. On Nov 11, 11:51 am, Ikai L (Google) ika...@google.com wrote: Ilya, One thing you will want to check will be if sessions are enabled. Sessions are off by default, so you'll have to add this line to your appengine-web.xml file: sessions-enabledtrue/sessions-enabled http

Re: [appengine-java] URLfetch 406 response

2009-11-13 Thread Ikai L (Google)
Vincenzo, HTTP 406 usually results from the HTTP client Accepts* header. This is documented here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html http://www.checkupdown.com/status/E406.html You'll want to check what headers you are setting as well as the headers for the URL you are

Re: [appengine-java] Re: Singleton / Single Thread / Table Lock

2009-11-13 Thread Ikai L (Google)
, but it is not looking like a practical solution yet. This is another reason we need to get support for long running batch processes within GAE.) Tim On Nov 10, 5:44 pm, Ikai L (Google) ika...@google.com wrote: Tim, It really depends on what you're doing. One of the challenges of developing

Re: [appengine-java] Re: Delete task queue

2009-11-16 Thread Ikai L (Google)
nameipn-queue/name rate5/s/rate bucket-size5/bucket-size /queue-- /queue-entries On 10 lis, 23:58, Ikai L (Google) ika...@google.com wrote: Peter, Were you able todeletethe taskqueue? One thing you can try is using the update_queue command line tool

Re: [appengine-java] Problems with large request/response headers

2009-11-16 Thread Ikai L (Google)
Matt, This looks like it may be a JeTTy issue: http://jira.codehaus.org/browse/JETTY-336 That being said, I'm curious as to what data you are storing in the cookie. Less than 1.5% of sites pass cookies larger than 1501 bytes, and there are performance implications for passing large amounts of

Re: [appengine-java] Querying sub objects with JDOQL in GAE/J

2009-11-16 Thread Ikai L (Google)
Can you post the queries you have attempted as well as the errors? On Tue, Nov 10, 2009 at 10:40 PM, enthusiast itzraj...@gmail.com wrote: I have a very basic question about JDOQL with GAE/J. Hope someone can shine light on this: I have modeled two persistent objects Employee and

Re: [appengine-java] Embedded objects come back null in unit tests

2009-11-17 Thread Ikai L (Google)
Nick, What's likely happening here is that the fields you need are being lazily loaded. Properties that aren't indexed like Text or Blobs are retrieved when you call the appropriate getter. For instance, if I have a model Car with a Text Description field, I would have to do this: // How to get

Re: [appengine-java] 500 Internal Server Error, when update appl

2009-11-18 Thread Ikai L (Google)
, 2009 at 10:25 PM, Jackob jrozn...@gmail.com wrote: The problem is not fixed , i can't upload update. The happened only with my account? On Mon, Nov 16, 2009 at 11:59 PM, Ikai L (Google) ika...@google.comwrote: Have you been able to update this application? On Wed, Nov 11, 2009 at 11

Re: [appengine-java] Re: Session handleing example

2009-11-18 Thread Ikai L (Google)
leopard). java version 1.6.0_15 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode) On Nov 10, 10:36 am, Ikai L (Google) ika...@google.com wrote: Ilya, Are you looking to persist objects for a lifetime of a session

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread Ikai L (Google)
+cPCEwBYwcI5QFMimSCVHgPTsHlgnzJpF OncHBAA7 --001636e90e61aa516e0478ac5398-- On Nov 18, 10:34 pm, Ikai L (Google) ika...@google.com wrote: François, I'm not familiar with any standards with regard to inline images. Do you have this working outside of App Engine? Do you have working code from

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-18 Thread Ikai L (Google)
byte[] byteData = outputStream.toByteArray(); // Close the streams inputStream.close(); outputStream.close(); return byteData; } } On Nov 18, 11:11 pm, Ikai L (Google) ika...@google.com wrote: What I mean is, is this code working

Re: [appengine-java] Problems with large request/response headers

2009-11-18 Thread Ikai L (Google)
and behind commercial grade webservers (IIS, and Apache) and does not exhibit this problem in any of those environments... only with Jetty. Matt On Mon, Nov 16, 2009 at 5:36 PM, Ikai L (Google) ika...@google.com wrote: Matt, This looks like it may be a JeTTy issue: http

Re: [appengine-java] 500 Internal Server Error, when update appl

2009-11-19 Thread Ikai L (Google)
Does it work now, or did it stop working at some point? On Wed, Nov 18, 2009 at 9:45 PM, Jackob jrozn...@gmail.com wrote: - aapcore - appengine-java-sdk-1.2.6 - Win XP - Several first times it was work fine - no proxy On Wed, Nov 18, 2009 at 11:42 PM, Ikai L (Google) ika

Re: [appengine-java] Re: Duplicate incoming emails?

2009-11-19 Thread Ikai L (Google)
to the email webhook - so some requests would succeed and others fail. On Nov 19, 8:35 am, Ikai L (Google) ika...@google.com wrote: Hi Dave, Have you had any luck reproducing this? If so, what did you do? On Tue, Nov 17, 2009 at 4:45 AM, Dave Cheong d...@davecheong.com wrote: Hi all

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-19 Thread Ikai L (Google)
API are still undocumented ? Thanx for all. On Nov 19, 12:25 am, Ikai L (Google) ika...@google.com wrote: That's good information to know. We are not using Sun's JavaMail implementation, so it's possible there are points of incompatibility. There's one last thing you may want to try

Re: [appengine-java] Re: Problems with large request/response headers

2009-11-19 Thread Ikai L (Google)
the fix for #336 was to allow the headerBufferSize configurations to be honored??? In which case we'd need both a newer Jetty in the GAE SDK *plus* the ability to configure it. Matt On Nov 18, 7:23 pm, Ikai L (Google) ika...@google.com wrote: Matt, There probably isn't anything you'll

Re: [appengine-java] Forcing a redirect to the actual Google Accounts screen?

2009-11-19 Thread Ikai L (Google)
What are you trying to do? Your development server would not be able to use the session that is created from the actual Google Accounts screen. If you really needed to, you could probably implement the UserService interface and dependency inject the implementation you need to return the real

Re: [appengine-java] bulkloader dump and restore

2009-11-19 Thread Ikai L (Google)
Len, I assume you are doing this by having different application versions for a Python application and Java application as documented here: http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html Then redefining your Java data class in Python in your Exporter

Re: [appengine-java] Null pointer exception when accessing keys of unowned 1..n relation

2009-11-20 Thread Ikai L (Google)
Can you post code? My assumption is that you are using JSP dispatch. Child objects are lazy loaded, so if this is what you are doing: 1. Fetch persistence manager instance 2. Make query on parent object 3. Store query results in a request attribute 4. Close persistence manager 5.

Re: [appengine-java] JDO x JPA

2009-11-23 Thread Ikai L (Google)
Both JDO and JPA support are built on top of the low-level API: http://code.google.com/appengine/docs/java/datastore/overview.html Anecdotally, I see more articles about JDO on App Engine, but my experience has been that there are more *general* JPA articles lying around, though they may not be

Re: [appengine-java] Ancestor queries in JPQL? / Getting Key of parameter value does not have a parent

2009-11-23 Thread Ikai L (Google)
, that are buried throughout the App Engine documentation. It would really be nice if these things were more clearly documented. Ikai L (Google) wrote: Hey Todd, There are a few different things you can do here: 1. Use the parent-pk filter. It looks something like this: query

Re: [appengine-java] Re: convert JDO query to JPA

2009-11-23 Thread Ikai L (Google)
Here's a video from Google I/O last year about complex data modeling on App Engine. It talks a little bit about how we do indexing underneath the hood: http://www.youtube.com/watch?v=AgaL6NGpkB8 Look for an upcoming article about the subject. App Engine Datastore is built on top of BigTable.

Re: [appengine-java] Re: InputStream read returning -1, but avalible btyes correct ?

2009-11-24 Thread Ikai L (Google)
true //if you get the body using the InputStream, then try to use getParameter //then all of your getParameters will return null //I don't know if this is by design or a bug because I'm not experienced Java Programmer -Bourke On Nov 23, 5:50 pm, Ikai L (Google) ika...@google.com wrote

Re: [appengine-java] Re: convert JDO query to JPA

2009-11-24 Thread Ikai L (Google)
This actually makes more sense. JPA does not write to the data store until either the EntityManager is closed or the transaction is flushed. Here's an example using transactions: EntityManager em = EMF.get().createEntityManager(); PrintWriter out = response.getWriter(); ListDog

Re: [appengine-java] Make application available for Google Apps customers

2009-11-24 Thread Ikai L (Google)
Peter, The recommended approach is to create a new app per Google Apps domain. This won't be a violation of the terms of service. On Sun, Nov 22, 2009 at 7:32 AM, Peter Ondruska peter.ondru...@gmail.comwrote: This is less technical question and I am not sure if it can be answered. I have a

Re: [appengine-java] Persistable JDO object - low-level entity?

2009-11-24 Thread Ikai L (Google)
Erem, You can use the makePersistentAll() method of PersistenceManager to batch put items. See here: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Making_Objects_Persistent This was introduced in SDK 1.2.5. On Mon, Nov 23, 2009 at 2:37 PM, Erem

[appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-11-24 Thread Ikai L (Google)
Hello App Engine Developers, As part of our ongoing efforts to improve release quality and transparency, we will start prereleasing SDKs for early testing. We hope this gives developers a chance to participate in our release process by trying out new changes and sending feedback. As of this

Re: [appengine-java] Re: Persistable JDO object - low-level entity?

2009-11-24 Thread Ikai L (Google)
of objects that need to be persisted: (1) a bunch of JDO managed objects (2) a bunch of low-level Entity objects. Is there any way that I could batch put all of them at once through the same API rather then calling the JDO api followed by the low-level api? On Nov 24, 5:09 pm, Ikai L (Google) ika

Re: [appengine-java] Import/export for Java

2009-11-25 Thread Ikai L (Google)
In the meantime, there are a few articles about how to do this using the Python loader for your Java app: http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loading-for-Java

Re: [appengine-java] Re: Weird results for JOD query with List item filter (List.contains(....))

2009-11-25 Thread Ikai L (Google)
Prashant, Is this happening locally? Is EmailID ever an empty value? On Tue, Nov 24, 2009 at 9:57 AM, Prashant antsh...@gmail.com wrote: Max please help me out, it is killing my app. :( On Tue, Nov 24, 2009 at 8:45 PM, Prashant antsh...@gmail.com wrote: this is surely a bug following

Re: [appengine-java] Re: Weird results for JOD query with List item filter (List.contains(....))

2009-11-25 Thread Ikai L (Google)
Is this something you can cause to happen in a development environment? Also, what is your application ID? On Wed, Nov 25, 2009 at 1:46 PM, Prashant antsh...@gmail.com wrote: no, I have tested it on Production Server and EmailID is a primary key so it cannot be null -- You received this

Re: [appengine-java] Datastore Issues

2009-11-25 Thread Ikai L (Google)
ratioBonus; } On Mon, Nov 23, 2009 at 11:46 AM, Ikai L (Google) ika...@google.comwrote: Can you post a subset of your code? It'd be great for the community to take a look at what you are doing and see if there's anything that jumps out at us. On Sat, Nov 21, 2009 at 11:46 PM, Jeffrey

Re: [appengine-java] Re: Weird results for JOD query with List item filter (List.contains(....))

2009-11-25 Thread Ikai L (Google)
The extra space likely comes from indexes. You can check your indexes in your Indexes tab. For a better understanding of how indexes work, here is a good session from Google I/O that discusses the topic: https://sites.google.com/site/io/under-the-covers-of-the-google-app-engine-datastore On

Re: [appengine-java] Re: on switching a webapp from RDBMS to GAE/J ( jdo, join, sql )

2009-11-25 Thread Ikai L (Google)
Your first option is what we recommend. App Engine's data model is similar to that of a federated data model based on sharded relational databases. Here's a pretty good session from Google I/O 2009 about migrating to/from RDBMS:

Re: [appengine-java] First Request High CPU

2009-11-30 Thread Ikai L (Google)
Yes. This is an issue we are working on. Basically, what happens is that instances of your application are elastic and loaded up upon demand. As your application grows, we will grow with you, but one of the consequences of this is that if your application is not receiving many requests, we may

Re: [appengine-java] Changing Log Format

2009-11-30 Thread Ikai L (Google)
Jeffrey, you'll want to add all feature requests here: http://code.google.com/p/googleappengine/issues/list?can=2q=log+format On Mon, Nov 30, 2009 at 10:21 AM, Jeffrey Goetsch jeffg@gmail.comwrote: I know that it is not possible to change the log format currently, but I wanted to make a

Re: [appengine-java] AppEngine needs an AppStore

2009-11-30 Thread Ikai L (Google)
David, We have a solutions marketplace for Google Apps: http://www.google.com/enterprise/marketplace/ On Mon, Nov 30, 2009 at 11:43 AM, David Chandler turboman...@gmail.comwrote: as in iPhone AppStore, not to be confused with DataStore AppEngine is fantastic. Even though AppEngine for Java

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

2009-11-30 Thread Ikai L (Google)
Ravi, Do you have any sample code? I'd like to take a look at this. On Fri, Nov 27, 2009 at 2:43 AM, Ravi ping2r...@gmail.com wrote: Hi Googlers, Did you get a chance to look at my problem Quota page says 3000 calls/min can be handled by App Engine. But when I send a message every 5 second

Re: [appengine-java] storing SetKey in datastore

2009-11-30 Thread Ikai L (Google)
Collections are lazy loaded. You will need to access the collection before adding items to it. You can do this by doing something like this: public void addToSet(Key what) { if(mySet != null) { mySet.size(); // This forces the set to be loaded mySet.add(what);

Re: [appengine-java] Change of Attribute in an object wasn't saved in datastore sometimes.

2009-11-30 Thread Ikai L (Google)
Ray, My suspicion is that usernames is not being fetched when you retrieve your object. Collections are lazy loaded, though usernames must be getting instantiated somewhere, otherwise you'd be getting a NullPointerException. Can you try this version of addUsername and let me know what happens?

Re: [appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-30 Thread Ikai L (Google)
)); Is this behaviour intentional? Many thanks Don On Nov 24, 10:15 am, Ikai L (Google) ika...@google.com wrote: Don, First, a word of caution: you'll probably want to contact the creators of the site you are trying to fetch the image from if you haven't done so already. Their terms of service prohibit

Re: [appengine-java] Any workaround to send email from dev server?

2009-11-30 Thread Ikai L (Google)
You can use SMTP to send the emails: http://www.javacommerce.com/displaypage.jsp?name=javamail.sqlid=18274 To do this, though, you'd need to download and load the JavaMail classes and change your code to use an SMTP server. You might be better off creating a development version of the

Re: [appengine-java]CPU quota problem

2009-11-30 Thread Ikai L (Google)
Calvin, only one instance of PersistenceManagerFactory will exist per application instance. The expensive part of application loading isn't the PersistenceManagerFactory. It's the virtual machine instance. If your application isn't receiving requests, we will cycle it out. The first request that

Re: [appengine-java] simultaneous active request limit error

2009-11-30 Thread Ikai L (Google)
What is your application ID? On Sat, Nov 28, 2009 at 1:59 PM, Rock anuj.a...@gmail.com wrote: Hi, I just uploaded my app and I have not enabled billing for this. No traffic is running on my applicaition but when I open the application the servlet throws error. I am constantly getting this

Re: [appengine-java] Re: AppEngine needs an AppStore

2009-12-01 Thread Ikai L (Google)
I see what you mean. Say, an application marketplace where folks can download source code for applications and deploy to their own App Engine instances, get support, download updates, and so forth. It's an interesting idea. We're focusing on Apps for Google Apps for the Enterprise in a SaaS model

Re: [appengine-java] Re: import deployed project into eclipse

2009-12-01 Thread Ikai L (Google)
Ilya, we do not allow downloads. In the case of Java applications, you're uploaded compiled .class files, anyway, so these would not be of much use to you. As everyone else highlights, source control is crucial. You can use free hosting on sites like BitBucket (Mercurial), GitHub (they have a

Re: [appengine-java] Parent Child GrandChild relationship, cannot get Grandchild object

2009-12-01 Thread Ikai L (Google)
Can you post any sample code? This is the code I am using, and I am able to create grandchild objects: /* Domain classes. Imports implied */ @PersistenceCapable(identityType = IdentityType.APPLICATION) public class League { @PrimaryKey @Persistent(valueStrategy =

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

2009-12-01 Thread Ikai L (Google)
) { // Do something, log an error } } On Tue, Dec 1, 2009 at 7:35 AM, Ravi ping2r...@gmail.com wrote: Hi Ikai L/Google App Team, Did you get a chance to look at this problem? Thanks, Ravi On Nov 30, 8:19 pm, Ravi Sharma ping2r...@gmail.com wrote: Hi, Thanks for looking

Re: [appengine-java] Servlet loading failing

2009-12-01 Thread Ikai L (Google)
Nicky, What are you doing in RoleFilter? Is it something that would use this library? When deploying an App Engine application, you will need to place required external libraries under WEB-INF/lib so that they are also deployed correctly. The reverse of this is also true: you will need to add

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

2009-12-02 Thread Ikai L (Google)
Peter, I'm working on a cookbook entry for processing incoming mail in Java. Here's some code I had working. Can you take a look at this and see if there's anything you can adapt? import com.google.appengine.api.datastore.Blob; import com.google.appengine.api.datastore.Key; import

Re: [appengine-java] SimpleDS 0.8.1 has been released

2009-12-02 Thread Ikai L (Google)
Wow, looking great! Did you want this added to the list of Open Source projects? https://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects On Tue, Dec 1, 2009 at 3:46 AM, Nacho Coloma icol...@gmail.com wrote: Hi all, SimpleDS, an alternative storage

Re: [appengine-java] Persisting class hierarchies

2009-12-02 Thread Ikai L (Google)
Alex, There's a danger here of overengineering when it comes to mapping objects to datastore entities. Unless you absolutely need different behavior between the subclasses of Animal, you may want to stay away from using types to convey information and use a field instead. In the datastore,

Re: [appengine-java] Qs: (1) data safe in GAE (2) delete existing app

2009-12-02 Thread Ikai L (Google)
John, Yes, you can delete applications: http://code.google.com/appengine/kb/adminconsole.html#delete_app We do not make it a practice to look at customer data. You'll want to read our terms of service: http://code.google.com/appengine/terms.html On Tue, Dec 1, 2009 at 6:13 PM, John Lin

Re: [appengine-java] Re: Text Search Support for Java

2009-12-02 Thread Ikai L (Google)
Full text search isn't on our public roadmap: http://code.google.com/appengine/docs/roadmap.html The link describes what we plan on releasing in the upcoming months. On Wed, Dec 2, 2009 at 3:28 PM, steveb steve.buikhui...@gmail.com wrote: I'm also very interested in this feature. I'm looking

Re: [appengine-java] Unable to update app: Version not ready.

2009-12-04 Thread Ikai L (Google)
This should have been resolved. Can you double check? On Fri, Dec 4, 2009 at 8:56 AM, PLL pask...@gmail.com wrote: Hi, I am receiving a Unable to update app: Version not ready deployement error for the application quemap-alpha-dev. Can anybody help ? thank you. Here are the Event

Re: [appengine-java] Sticky sessions -- keeping a user on a single JVM

2009-12-04 Thread Ikai L (Google)
Stephan, No, there is no way to stick sessions to application instances. While you can't associate all the data in a single Memcache key, you can break up the data, using a Memcache value as an index for the rest of the data. On Wed, Dec 2, 2009 at 2:48 PM, stephan smor...@gmail.com wrote: I

Re: [appengine-java] JAI working in JAE?

2009-12-04 Thread Ikai L (Google)
Have you tried it yet? Let us know how it works out and we can add an entry to the Will it play list: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine On Wed, Dec 2, 2009 at 10:07 PM, moissinac jcmoissi...@gmail.com wrote: The GAE-Java image service is very

Re: [appengine-java] local google app engine server in Netbeans

2009-12-07 Thread Ikai L (Google)
You'll have to stop the server when you redeploy. If you run in debug mode, the JVM will reload classes that you recompile so you would only need to redeploy when you change configurations (web.xml, appengine-web.xml, etc). I'm not familiar with the NetBeans plugin, so I can't comment on why this

Re: [appengine-java] Re: Datastore Statistics vs. Quota

2009-12-07 Thread Ikai L (Google)
Toby, There's another thing to be aware of: sessions are backed with the datastore. If you have sessions enabled, you may want to write a scheduled task that clears session data. On Mon, Dec 7, 2009 at 9:00 AM, Eric Rannaud eric.rann...@gmail.com wrote: On Mon, Dec 7, 2009 at 2:20 AM, Toby

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

2009-12-07 Thread Ikai L (Google)
Yes, App Engine suggests external JARs. What is likely happening is that the library is using a class that is not on the whitelist. Since it is an MSN Messenger app, this likely has to do with classes that require socket communication, which we do not allow. Have you looked into the XMPP service?

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

2009-12-07 Thread Ikai L (Google)
and make sure it's in your build path. On Mon, Dec 7, 2009 at 10:58 AM, Ikai L (Google) ika...@google.com wrote: Yes, App Engine suggests external JARs. What is likely happening is that the library is using a class that is not on the whitelist. Since it is an MSN Messenger app, this likely has to do

Re: [appengine-java] What does precompilation-enabledtrue/precompilation-enabled do?

2009-12-07 Thread Ikai L (Google)
Yes, pre-compilation reduces the time to load an application. This will benefit you on your first request after a deploy, after you've been cycled out or if more application instances are created to scale up with your load. You will see up to 30% improved loading time on your first request.

Re: [appengine-java] Running queries in the Data Viewer of the Datastore

2009-12-07 Thread Ikai L (Google)
Scott, No, not in the data viewer. You should be able to use the Python bulk loader tool for this: http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loading-for-Java On Sun, Dec 6, 2009 at 4:45 PM, Scott gocards...@gmail.com wrote: Is it possible to run update/insert queries in

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

2009-12-07 Thread Ikai L (Google)
Martin, Can you provide your app ID? I'm not able to look up czumdm. On Sun, Dec 6, 2009 at 4:40 PM, Martin Caslavsky mcaslav...@gmail.comwrote: Hi, my java app (czumdm) was over quota, so I enabled billing. First request was processed at 12-06 04:10PM 11.559. App worked correctly -- most

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

2009-12-07 Thread Ikai L (Google)
Sam, I understand your confusion. I'm looking into it. The code I posted was to convert an InputStream to the proper format. My understanding is that 1.2.8 actually fixed the issue, so our code should actually end up being simpler and closer adhere to standard Java incoming mail processing. Any

Re: [appengine-java] Multipart mail regression in 1.2.8 ?

2009-12-07 Thread Ikai L (Google)
François, Can you give this a try? ByteArrayDataSource mimePartDataSource = new ByteArrayDataSource(imgData, inboundMimeBodyPart.getContentType()); attachment.setDataHandler(new DataHandler(mimePartDataSource)); On Sat, Dec 5, 2009 at 1:47 AM, mably fm2...@mably.com wrote: This code doesn't

Re: [appengine-java] Updating a model class

2009-12-08 Thread Ikai L (Google)
Are you using the development server? The easiest thing to do here is to blow away your old datastore. App Engine will recreate your schema. I believe if you just blow away your output directory and rebuild, this should work. Look for an output directory under WEB-INF/appengine-generated. You

Re: [appengine-java] Re: Regarding Secure Data Access for the users of my service

2009-12-08 Thread Ikai L (Google)
You'll need to partition the data at the application level. We don't provide global ACLs for the datastore. You may be able to use Entity Groups for a lightweight version of this, but ultimately it'll be up to your application to decide who has the rights to see which data. On Sat, Dec 5, 2009 at

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

2009-12-08 Thread Ikai L (Google)
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 entity parent. Something similar to what you have done is also possible by creating a root entity, adding descendants, then removing the

Re: [appengine-java] problem storing email or phone number

2009-12-08 Thread Ikai L (Google)
Can you post example values that cause this error? Are you saving anything with special characters? In the meantime, you have a few options: - Wire up a Python version and use the remote shell - Write a handler that removes these values What is your application ID? On Sat, Dec 5, 2009 at 3:03

Re: [appengine-java] Error: Server Error

2009-12-08 Thread Ikai L (Google)
This line: java.security. AccessControlException: access denied (java.io.FilePermission /base/data/home/apps/go2ppp/2.338276405331081395/WEB-INF/work write) Seems to imply you may have a permissions error writing. Can you look into this? On Mon, Dec 7, 2009 at 1:31 AM, Li Kong kon...@gmail.com

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

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 ping2r...@gmail.com wrote: Can anyone from google look into this issue

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) ika...@google.com wrote: Ravi, We're aware of the issue and have already begun investigating it. I'll open up a public issue to mirror our

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

2009-12-09 Thread Ikai L (Google)
setData(Blob data) { this.data = data; } public String getContentType() { return contentType; } public void setContentType(String contentType) { this.contentType = contentType; } } On Mon, Dec 7, 2009 at 5:47 PM, Ikai L (Google) ika...@google.com wrote

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

2009-12-09 Thread Ikai L (Google)
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) ika...@google.com wrote: I've just tested this code out with Yahoo, Gmail and Hotmail for processing an attachment. It's working

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

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 mcaslav...@gmail.comwrote: Sorry, it is dmczum. FYI redeploy of the app helps for a few hours. Martin On Dec 8, 2:20 am, Ikai L (Google) ika...@google.com

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 featheast@gmail.comwrote: I have

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

2009-12-10 Thread Ikai L (Google)
can I use to cause this to happen? On Wed, Dec 9, 2009 at 4:04 PM, Martin Caslavsky mcaslav...@gmail.comwrote: Yes, cache maps Strings (URLs) to byte[] blobs (RSS feed content). Martin On Dec 10, 12:13 am, Ikai L (Google) ika...@google.com wrote: What kind of objects are you storing the cache

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

2009-12-10 Thread Ikai L (Google)
Interesting. Do you have some unicode characters in any fields? There's a snippet on the bulk loader page about how to handle these characters in your Importer: http://code.google.com/appengine/docs/python/tools/uploadingdata.html import datetime from google.appengine.ext import db from

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

2009-12-10 Thread Ikai L (Google)
Sam, that's awesome! I've bookmarked that and will be using that anytime someone asks about (incoming mail processing attachments Spring). On Thu, Dec 10, 2009 at 6:12 AM, Sam sambrod...@gmail.com wrote: Ikai, excellent, thanks for posting that and you're right, the 1.2.8 change makes it

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

2009-12-10 Thread Ikai L (Google)
://code.google.com/appengine/articles/storage_breakdown.html Not a lot in there about transactions, though, but that would be something we would add to the series. On Wed, Dec 9, 2009 at 5:43 PM, Yasuo Higa higaya...@gmail.com wrote: Hi Ikai, On Thu, Dec 10, 2009 at 2:49 AM, Ikai L (Google) ika...@google.com

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

2009-12-10 Thread Ikai L (Google)
It's basically the equivalent of a Null Pointer exception. This syntax: lambda x: x.someMethod() Is an inline anonymous function call. If x is None as opposed to blank String, you will not be able to call methods on it. On Thu, Dec 10, 2009 at 1:45 PM, Dominik Steiner

Re: [appengine-java] Slow response time under load

2009-12-10 Thread Ikai L (Google)
There is a limit on the number of open connections you can have, and it could be that you are hitting this limit. App Engine favors a model where you use many small, cheap requests in lieu of single, long requests. On Tue, Dec 8, 2009 at 2:50 PM, R D adma...@gmail.com wrote: I have a simple

  1   2   3   4   5   6   >