[google-appengine] Protocol Buffers

2012-08-31 Thread Larry White
is there any support in appengine for using protocol buffers for data 
transfer (eg. through RPCs).  

If not, what recommended practices do people have for minimizing latency 
between AppEngine and clients, when clients are spread across the globe?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/-7T-KWknCvEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



NoClassDef ReadPolicy$Consistency? (was Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException)

2010-04-22 Thread Larry White
I just upgraded - thanks for the amazingly quick turnaround on my bug btw!!

Unfortunately, I'm now getting
 java.lang.NoClassDefFoundError:
com/google/appengine/api/datastore/ReadPolicy$Consistency
at com.googlecode.objectify.ObjectifyOpts.init(ObjectifyOpts.java:25)
at
com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:105)
at
com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:29)

I thought it might be because I was using a slightly older version of the
AppEngine, so I updated that to 1.3.3, but still get the same result. Now my
assumption is that there's something wrong with my configuration (I'm
missing a jar I need?) but don't know which one.

Can anyone tell me what jar
com/google/appengine/api/datastore/ReadPolicy$Consistency is in?


On Wed, Apr 21, 2010 at 11:10 PM, Jeff Schnitzer j...@infohazard.orgwrote:

 Fixed.  Although you might prefer to issue a batch get() operation
 instead of the query.  There might be a performance difference - I'm
 not sure.

 Jeff

 On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org
 wrote:
  Looks like you found a bug.  I should be able to have a unit test and
  a fix checked in tonight.  Sorry about that!
 
  Jeff
 
  On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com wrote:
  Hi,
 
  I'm trying to pass in a collection of Strings to be used in a filter
 using
  Objectify (which I LOVE, btw). I'm doing it like so:
 
  QuerySNote query = ofy.query(SNote.class).filter(id IN,
  results).limit(limit).offset(offset).order(-timestamp);
 
  where the results parameter is a non-empty ArrayListString.
 
  I'm getting the exception:
 
  64951 [btpool0-4] ERROR com.deathrayresearch  -
  java.lang.IllegalArgumentException: A collection of values is required.
  at
 
 com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153)
  at
 
 com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543)
  at
 com.google.appengine.api.datastore.Query.addFilter(Query.java:231)
  at
 com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102)
  at com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28)
 
  The id parameter contains Strings and I think an ArrayListString
 qualifies
  as a collection of values. Can anyone tell me what I'm doing wrong?
 
  thanks much
 
  Larry
 
  --
  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...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
 

 --
 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...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
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...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: NoClassDef ReadPolicy$Consistency? (was Re: [appengine-java] using an Objectify query filter with IN -- IllegalArgumentException)

2010-04-22 Thread Larry White
Ok, So I can reliably recreate the issue. My app works fine with Objectify
2.02 and 2.1 but fails on the first DB read with 2.2. Any help would be
appreciated.

On Thu, Apr 22, 2010 at 12:36 PM, Jeff Schnitzer j...@infohazard.orgwrote:

 It's in appengine-api-1.0-sdk-1.3.2.jar (or presumably 1.3.3)... it's
 hard to imagine your project compiles without it!

 Jeff

 On Thu, Apr 22, 2010 at 5:31 AM, Larry White ljw1...@gmail.com wrote:
  I just upgraded - thanks for the amazingly quick turnaround on my bug
 btw!!
 
  Unfortunately, I'm now getting
   java.lang.NoClassDefFoundError:
  com/google/appengine/api/datastore/ReadPolicy$Consistency
  at
 com.googlecode.objectify.ObjectifyOpts.init(ObjectifyOpts.java:25)
  at
 
 com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:105)
  at
  com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:29)
 
  I thought it might be because I was using a slightly older version of the
  AppEngine, so I updated that to 1.3.3, but still get the same result. Now
 my
  assumption is that there's something wrong with my configuration (I'm
  missing a jar I need?) but don't know which one.
 
  Can anyone tell me what jar
  com/google/appengine/api/datastore/ReadPolicy$Consistency is in?
 
 
  On Wed, Apr 21, 2010 at 11:10 PM, Jeff Schnitzer j...@infohazard.org
  wrote:
 
  Fixed.  Although you might prefer to issue a batch get() operation
  instead of the query.  There might be a performance difference - I'm
  not sure.
 
  Jeff
 
  On Wed, Apr 21, 2010 at 6:46 PM, Jeff Schnitzer j...@infohazard.org
  wrote:
   Looks like you found a bug.  I should be able to have a unit test and
   a fix checked in tonight.  Sorry about that!
  
   Jeff
  
   On Wed, Apr 21, 2010 at 1:43 PM, Larry White ljw1...@gmail.com
 wrote:
   Hi,
  
   I'm trying to pass in a collection of Strings to be used in a filter
   using
   Objectify (which I LOVE, btw). I'm doing it like so:
  
   QuerySNote query = ofy.query(SNote.class).filter(id IN,
   results).limit(limit).offset(offset).order(-timestamp);
  
   where the results parameter is a non-empty ArrayListString.
  
   I'm getting the exception:
  
   64951 [btpool0-4] ERROR com.deathrayresearch  -
   java.lang.IllegalArgumentException: A collection of values is
 required.
   at
  
  
 com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:153)
   at
  
  
 com.google.appengine.api.datastore.Query$FilterPredicate.init(Query.java:543)
   at
   com.google.appengine.api.datastore.Query.addFilter(Query.java:231)
   at
   com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:102)
   at
   com.googlecode.objectify.impl.QueryImpl.filter(QueryImpl.java:28)
  
   The id parameter contains Strings and I think an ArrayListString
   qualifies
   as a collection of values. Can anyone tell me what I'm doing wrong?
  
   thanks much
  
   Larry
  
   --
   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...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
   For more options, visit this group at
   http://groups.google.com/group/google-appengine-java?hl=en.
  
  
 
  --
  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...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
 
  --
  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...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 

 --
 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...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
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...@googlegroups.com.
To unsubscribe

[appengine-java] Re: noob question: HTML rendering as escaped in HTML widget

2010-04-22 Thread Larry White
doh. I was setting the HTML content with setText() instead of setHTML(). so,
uh, nevermind.

thanks

On Thu, Apr 22, 2010 at 5:54 PM, Larry White ljw1...@gmail.com wrote:

 I have a text string created in the RichTextArea widget. When viewed in
 that widget it shows as HTML with all the expected formatting (bold,etc.)

 When viewed in my com.google.gwt.user.client.ui.HTML widget it renders as
 if escaped, with all the markup visible.  I've checked in Firebug and it
 doesn't appear that there's anything interesting going on with stylesheets -
 just setting widths, alignment and size.

 I never added a gwt-HTML class to my stylesheets so the actual div
 representing the HTML widget shows as having no style set.

 Any thoughts, etc. much appreciated.

 thank you!



-- 
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...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.