Re: [appengine-java] session-enabled false and JSESSIONID

2010-05-17 Thread romesh soni
hello Sergio
*
*
*This is not an issue. disabling session id in code will not stop the cookie
from saving session id. When you enable session in app engine xml file than
you are telling the framework that you don't want to save sessions in
cookies (client side), instead you want to save them on server i.e. using
_ah_session. Cookies JSession id is default behavior of Java session mgmt.
And it is nothing to do with APP engine framework.*
*
*
*thanks*
*romesh*
*
*
On Mon, May 17, 2010 at 11:19 AM, Sergio Lopes slo...@gmail.com wrote:

 Hi everybody

 I'm trying to make a completely stateless application. I configured
 session-enabled to false and it seems that sessions are not being
 created in server side (the datastore _ah_session table is not growing
 anymore). But all requests are setting the JSESSIONID cookie. Why?
 There is no session support...

 Is this a bug? Should I fill this in issue tracker?

 Thanks
 Sérgio

 --
 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.



[appengine-java] Re: session-enabled false and JSESSIONID

2010-05-17 Thread Sergio Lopes
Hey Romesh
Thanks for your help!

I think JSESSIONID is not a client session, it's just an identifier
that refers to a server-side session. It doesn't make sense in  world
without server-side sessions. I think that id means nothing if my
sessions are disabled on server



On May 17, 3:06 am, romesh soni soni.rom...@gmail.com wrote:
 hello Sergio
 *
 *
 *This is not an issue. disabling session id in code will not stop the cookie
 from saving session id. When you enable session in app engine xml file than
 you are telling the framework that you don't want to save sessions in
 cookies (client side), instead you want to save them on server i.e. using
 _ah_session. Cookies JSession id is default behavior of Java session mgmt.
 And it is nothing to do with APP engine framework.*
 *
 *
 *thanks*
 *romesh*
 *
 *





 On Mon, May 17, 2010 at 11:19 AM, Sergio Lopes slo...@gmail.com wrote:
  Hi everybody

  I'm trying to make a completely stateless application. I configured
  session-enabled to false and it seems that sessions are not being
  created in server side (the datastore _ah_session table is not growing
  anymore). But all requests are setting the JSESSIONID cookie. Why?
  There is no session support...

  Is this a bug? Should I fill this in issue tracker?

  Thanks
  Sérgio

  --
  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%2B 
  unsubscr...@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 
 athttp://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.



[appengine-java] Re: GfS and Struts

2010-05-17 Thread Rahul Ravikumar
There are two modes of using the commons file upload API. One being
backed by the DiskFileItemFactory which uses a File I/O (frowned upon
on App Engine) and the other being the Streaming File Upload API.

To run on Google App Engine you will need to use the Streaming File
upload API. You can get more information at :
http://commons.apache.org/fileupload/streaming.html

-- 
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.



[appengine-java] Re: BlobstoreService serve method

2010-05-17 Thread Rahul Ravikumar
The information regarding the size can be obtained using the
BlobInfoFactory (http://code.google.com/appengine/docs/java/javadoc/
com/google/appengine/api/blobstore/BlobInfoFactory.html).

Look at the BlobInfo class which has all the relevant information
about the blob you uploaded to the store. (http://code.google.com/
appengine/docs/java/javadoc/com/google/appengine/api/blobstore/
BlobInfo.html)

-- 
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.



[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Phuong Nguyen
Thanks for pointing out.

I'm using FreeMarkerServlet, so here what I did:
I change the content type of FreemarkerServlet, add charset=utf-8 to
it.
Without the charset being set, the FreemarkerServlet would obtain such
charset from some environment variable (which I didn't have time to
figure out), so the rendered result my vary depend of the environment
settings.

servlet-namefreemarker/servlet-name

servlet-classfreemarker.ext.servlet.FreemarkerServlet/servlet-
class

init-param
param-nameTemplatePath/param-name
param-value//param-value
/init-param
init-param
param-nameNoCache/param-name
param-valuetrue/param-value
/init-param
init-param
param-nameContentType/param-name
param-valuetext/html; charset=utf-8/param-value
/init-param

(Gosh, why did you guys make different charset between the cloud and
the development server? Shouldn't they be the same?)



On May 17, 12:05 pm, Toby Reyelts to...@google.com wrote:
 You need to make a call to
 HttpServletResponse.setContentTypehttp://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/Servle...)to
 change the charset for the response. Maybe FreeMarker has a facility
 somewhere to set that, or maybe you need to do it manually.

 There's currently no facility (nor is one currently planned) for changing
 the Charset of your JVM under App Engine.

 On Mon, May 17, 2010 at 12:46 AM, Phuong Nguyen phuongn...@gmail.com
 wrote:

  Hi Don:
  Thanks for the reply.
  I find the header on the cloud is a little bit *weird*

  For Local Server
  Response Headers

  Content-Language        en-US
  Content-Type    text/html; charset=utf-8
  Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
  check=0
  Pragma  no-cache
  Expires Sun, 17 May 2009 04:28:58 UTC
  Transfer-Encoding       chunked
  Server  Jetty(6.1.x)

  For Cloud Server

  Response Headers
  Content-Language        en-US
  Content-Type    text/html; charset=ANSI_X3.4-1968
  Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
  check=0
  Pragma  no-cache
  Expires Sun, 17 May 2009 04:43:18 UTC
  Content-Encoding        gzip
  Date    Mon, 17 May 2010 04:43:38 GMT
  Server  Google Frontend
  Content-Length  1581

  Charset was set to ANSI_X3.4-1968 (!)

  Probably that Charset is something that can be customized by an xml
  configuration?

  Please advice.
  On May 17, 10:58 am, Don Schwarz schwa...@google.com wrote:
  We need more information to help with this.

  Did you compare the HTTP response headers between the DevAppServer and
  when deployed?

  On May 15, 9:29 pm, Phuong Nguyen phuongn...@gmail.com wrote:

   Thanks to Google guys, FreeMarker is now run fine. However, there is
   still a (small/big/?) problem with Unicode.
   I have a lot of Unicode inside my FreeMarker template. They all
   printed fine on Development Server. However, being deployed to the
   cloud, these Unicode characters are all displayed as question mark.
   (Vietnamese: Chọn nhà cung cấp của bạn - Ch???n nh?? cung c???p c???a
   b???n).

   Please advice.

   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

 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 athttp://

 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 athttp://

 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, 

[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Phuong Nguyen
Hmm, there was a funny thing:
I got the content type set correctly right now.
*But*, if the unicode character was dispatched from controller to the
view, then it will be rendered appropriately.
However, if the character was typed into the controller before, then
it will be rendered into several question marks.
Look like the template (*.ftl files) was *broken* before it was feed
to FreeMarker engine.

What else should I do in this cases?

On May 17, 12:05 pm, Toby Reyelts to...@google.com wrote:
 You need to make a call to
 HttpServletResponse.setContentTypehttp://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/Servle...)to
 change the charset for the response. Maybe FreeMarker has a facility
 somewhere to set that, or maybe you need to do it manually.

 There's currently no facility (nor is one currently planned) for changing
 the Charset of your JVM under App Engine.

 On Mon, May 17, 2010 at 12:46 AM, Phuong Nguyen phuongn...@gmail.com
 wrote:

  Hi Don:
  Thanks for the reply.
  I find the header on the cloud is a little bit *weird*

  For Local Server
  Response Headers

  Content-Language        en-US
  Content-Type    text/html; charset=utf-8
  Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
  check=0
  Pragma  no-cache
  Expires Sun, 17 May 2009 04:28:58 UTC
  Transfer-Encoding       chunked
  Server  Jetty(6.1.x)

  For Cloud Server

  Response Headers
  Content-Language        en-US
  Content-Type    text/html; charset=ANSI_X3.4-1968
  Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
  check=0
  Pragma  no-cache
  Expires Sun, 17 May 2009 04:43:18 UTC
  Content-Encoding        gzip
  Date    Mon, 17 May 2010 04:43:38 GMT
  Server  Google Frontend
  Content-Length  1581

  Charset was set to ANSI_X3.4-1968 (!)

  Probably that Charset is something that can be customized by an xml
  configuration?

  Please advice.
  On May 17, 10:58 am, Don Schwarz schwa...@google.com wrote:
  We need more information to help with this.

  Did you compare the HTTP response headers between the DevAppServer and
  when deployed?

  On May 15, 9:29 pm, Phuong Nguyen phuongn...@gmail.com wrote:

   Thanks to Google guys, FreeMarker is now run fine. However, there is
   still a (small/big/?) problem with Unicode.
   I have a lot of Unicode inside my FreeMarker template. They all
   printed fine on Development Server. However, being deployed to the
   cloud, these Unicode characters are all displayed as question mark.
   (Vietnamese: Chọn nhà cung cấp của bạn - Ch???n nh?? cung c???p c???a
   b???n).

   Please advice.

   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

 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 athttp://

 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 athttp://

 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 
 athttp://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.



[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Phuong Nguyen
Excuse me for the typos. Here what I intended to say:

*But*, if the unicode character was dispatched from controller to the
view, then it will be rendered appropriately.
However, if the character was typed into the template file (.ftl)
before, then it will be rendered into several question marks.
Look like the template (*.ftl files) was *broken* before it was feed
to FreeMarker engine.


On May 17, 5:05 pm, Phuong Nguyen phuongn...@gmail.com wrote:
 Hmm, there was a funny thing:
 I got the content type set correctly right now.
 *But*, if the unicode character was dispatched from controller to the
 view, then it will be rendered appropriately.
 However, if the character was typed into the controller before, then
 it will be rendered into several question marks.
 Look like the template (*.ftl files) was *broken* before it was feed
 to FreeMarker engine.

 What else should I do in this cases?

 On May 17, 12:05 pm, Toby Reyelts to...@google.com wrote:



  You need to make a call to
  HttpServletResponse.setContentTypehttp://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/Servle...)to
  change the charset for the response. Maybe FreeMarker has a facility
  somewhere to set that, or maybe you need to do it manually.

  There's currently no facility (nor is one currently planned) for changing
  the Charset of your JVM under App Engine.

  On Mon, May 17, 2010 at 12:46 AM, Phuong Nguyen phuongn...@gmail.com
  wrote:

   Hi Don:
   Thanks for the reply.
   I find the header on the cloud is a little bit *weird*

   For Local Server
   Response Headers

   Content-Language        en-US
   Content-Type    text/html; charset=utf-8
   Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
   check=0
   Pragma  no-cache
   Expires Sun, 17 May 2009 04:28:58 UTC
   Transfer-Encoding       chunked
   Server  Jetty(6.1.x)

   For Cloud Server

   Response Headers
   Content-Language        en-US
   Content-Type    text/html; charset=ANSI_X3.4-1968
   Cache-Control   no-store, no-cache, must-revalidate, post-check=0, pre-
   check=0
   Pragma  no-cache
   Expires Sun, 17 May 2009 04:43:18 UTC
   Content-Encoding        gzip
   Date    Mon, 17 May 2010 04:43:38 GMT
   Server  Google Frontend
   Content-Length  1581

   Charset was set to ANSI_X3.4-1968 (!)

   Probably that Charset is something that can be customized by an xml
   configuration?

   Please advice.
   On May 17, 10:58 am, Don Schwarz schwa...@google.com wrote:
   We need more information to help with this.

   Did you compare the HTTP response headers between the DevAppServer and
   when deployed?

   On May 15, 9:29 pm, Phuong Nguyen phuongn...@gmail.com wrote:

Thanks to Google guys, FreeMarker is now run fine. However, there is
still a (small/big/?) problem with Unicode.
I have a lot of Unicode inside my FreeMarker template. They all
printed fine on Development Server. However, being deployed to the
cloud, these Unicode characters are all displayed as question mark.
(Vietnamese: Chọn nhà cung cấp của bạn - Ch???n nh?? cung c???p c???a
b???n).

Please advice.

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

  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 athttp://

  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 athttp://

  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 
  athttp://groups.google.com/group/google-appengine-java?hl=en.

 --
 You received this message because you are subscribed to the 

Re: [appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Pieter Coucke
Have you tried saving your template files in UTF-8?
You can use Notepad++ for this.

-- 
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.



[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Phuong Nguyen
I use Eclipse, which default encoding for text file is set to UTF-8.
By the way, it runs fine on client, problems only when being deployed
to the cloud.

On May 17, 5:41 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:
 Have you tried saving your template files in UTF-8?
 You can use Notepad++ for this.

 --
 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 
 athttp://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.



[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread akochnev
Freemarker has a way to specify the encoding of the files that you're
dealing with. Look at freemarker.template.Configuration, more
specifically :

fmConfiguration.setDefaultEncoding(UTF-8);
fmConfiguration.setLocale(Locale.US);
fmConfiguration.clearEncodingMap();

You can use the methods above to explicitly provide the encoding of
your templates . If you don't , it probably uses a default encoding
map, and possibly the platform encoding. Thus, if your development
(e.g. Windows) and deployment (GAE, Linux ? ) have different default
encodings, your templates will not be rendered properly.

Regards,

Alex Kotchnev

On May 17, 7:38 am, Phuong Nguyen phuongn...@gmail.com wrote:
 I use Eclipse, which default encoding for text file is set to UTF-8.
 By the way, it runs fine on client, problems only when being deployed
 to the cloud.

 On May 17, 5:41 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

  Have you tried saving your template files in UTF-8?
  You can use Notepad++ for this.

  --
  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 
  athttp://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 
 athttp://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.



[appengine-java] Java Reference implementation in Google App Engine (socialsite)

2010-05-17 Thread bdar
I am trying to port the socialsite Java Reference implementation in
Google App Engine

https://socialsite.dev.java.net/

The project is using Netbeans and  Glassfish  with several DB options
on the backend ...

I am trying to do  port it to Google App Engine using Eclipse and want
to use Datastore using JDO.

Has anyone else done this project before ?

I intend to create a screen cast out of this for reference
implementation.

It looks like no one is maintaining the project. 
https://socialsite.dev.java.net/

The Reason I am doing this I cant find any simple/basic java
implementation of User Login and profile maintenance in Google App
engine. if there is one can someone point it out.


Problem No 1
The First issue i have is the resolution of the class path for JRE /
JDK envoirment.

!ENTRY com.google.appengine.eclipse.core 4 0 2010-05-16 20:24:10.675
!MESSAGE Cannot run program C:\Java\jre6\bin\javaw.exe (in directory
C:\workspace\Socialsite3): CreateProcess error=87, The parameter is
incorrect
!STACK 0
java.io.IOException: Cannot run program C:\Java\jre6\bin
\javaw.exe (in directory C:\workspace\Socialsite3): CreateProcess
error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(Unknown Source)
at
com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnError(ProcessUtilities.java:
195)
at
com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspace(EnhancerJob.java:
78)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.IOException: CreateProcess error=87, The parameter
is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.init(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 5 more

I am using
Eclipse SDK Version: 3.5.2 Build id: M20100211-1343
Google App engine plugin 1.3.3.1

java version 1.6.0_14
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)

javac 1.6.0_20


If i setup a non Google app engine project ( i.e ) Simple Java Eclipse
project, I do not get this issue.

Any Suggestions ??

-- 
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.



[appengine-java] Loading child entities with JPA

2010-05-17 Thread Phil H.
I am not able to get child entities to load once they are persisted. I
am certain that they are saving because I can see them in the
datastore if I deploy an application and try it. For example if I have
the following two entities...

public class Parent implements Serializable{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String key;
@OneToMany(cascade=CascadeType.ALL)
private ListChild children = new ArrayListChild();

//getters and setters
}

public class Child implements Serializable{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String key;
private String name;
@ManyToOne
private Parent parent;
//getters and setters
}

I can save the parent and a child just fine using the following:

Parent parent = new Parent();
Child child = new Child();
child.setName(Child Object);
parent.getChildren().add(child);
em.persist(parent);

However when I try to load the parent and then try to access the
children (I know GAE lazy loads) I do not get the child records.

//parent already successfully loaded
parent.getChildren.size(); // this returns 0

I've looked at tutorial after tutorial and nothing has worked so far.
I'm using version 1.3.3.1 of the SDK. I've seen the problem mentioned
on various blogs and even the App Engine group I believe but the
answer is always JDO related (dealing with fetch groups). Am I doing
something wrong or has anyone else had this problem and solved it for
JPA?

-- 
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.



[appengine-java] Integrating Spring with JPA and Google App Engine : class is not enhanced ?

2010-05-17 Thread Nicolas KONDRATEK
Hi,

First of all, sorry for my Emglish, I'm french guy.

I try to integrate Spring with JPA and Google Appengine, but I've a
problem.

The integration of Spring (2.5 and in another project 3.0) is OK, and
it's work, but when I make en Java Class annoted with @Entity, when I
start my server, I've this error :

Found Meta-Data for class com.my.project.metier.joueur.Person but this
class is not enhanced!! Please enhance the class before running
DataNucleus.

If I delete the Spring configuration, I haven't this problem.

Can you help me ?

Thanks 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.



[appengine-java] Java Uploader

2010-05-17 Thread Erich
Hi All.

I'm completely illiterate in Python, so I've created a workaround in
Java to upload Java Object to the datastore.

I have a deployed JSP which receives data and uses reflection and
various magic to take the incoming URL, create the objects dynamically
and add them to the store. I've built my uploader and receiver to take
advantage of bulk operations to save URL and datastore calls.

There are some serious drawbacks to this method:
1 - The maximum URL length before a 414 error is 2000. This really
limits how many objects can be passed per URL.
2 - I haven't figure out a way to do this using securely. (without
exposing the JSP publicly)

The good things about it:
1 - All Java (no installing a second google app program and mucking
around in Python)
2 - No need to create intermediate files on your system. Plain Object -
 Datastore

I would like to improve this if possible. Does anyone know how the
python uploader works? Is a special URL or connection I can make to
pass more data or do it securely?

Thanks,
Erich

-- 
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.



[appengine-java] MD4?

2010-05-17 Thread Elchin
I need to calculate an MD4 has of a string for a project I am working
on. When I try to use MD4 class from Sun, it tells me that it is not
supported. I cannot use MessageDigest.getInstance()  because MD4 is
not included in any standard providers. So is there a way to include
MD4 from java.sec to my project or do I have to implement is
separately?

I am even not sure whether I will have a permission to add new
provider as described in
http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-sun/security/sun/security/provider/MD4.java.htm

-- 
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.



[appengine-java] Typing mistake in Java Application Configuration documentation: Inbound Services?

2010-05-17 Thread Fred Janon
I think (I hope!) there is a slight mistake on this page:

http://code.google.com/appengine/docs/java/config/appconfig.html

in the paragraph:

*Inbound Services*

Before an application can receive email and XMPP messages, the application
must be configured to enable those services. You enable these services for a
*Python *app by including an inbound-services element in the
appengine-web.xml file.

I think it should say Java instead of Python. Can someone confirm?

Thanks

Fred

-- 
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.



[appengine-java] why there is multi-line cookies?

2010-05-17 Thread Hzw
When I use  HttpURLConnection or URLFetchService to fetch a url, the
second time it auto set the cookies according to the response's  Set-
Cookie headers.
but it auto set it like this ( captured by Wireshark):
Cookie: $Version=0; a_a=a; $Path=/
Cookie: $Version=0; a_b=b; $Path=/
Cookie: $Version=0; a_c=c; $Path=/

How to cancel the cookie auto handle?The server recognize one line
Cookie only.

-- 
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.



[appengine-java] Integrating Spring with JPA and Google App Engine : class is not enhanced ?

2010-05-17 Thread Nicolas KONDRATEK
Hi,

First of all, sorry for my Emglish, I'm french guy.

I try to integrate Spring with JPA and Google Appengine, but I've a
problem.

The integration of Spring (2.5 and in another project 3.0) is OK, and
it's work, but when I make en Java Class annoted with @Entity, when I
start my server, I've this error :

Found Meta-Data for class com.my.project.metier.joueur.Person but this
class is not enhanced!! Please enhance the class before running
DataNucleus.

If I delete the Spring configuration, I haven't this problem.

Can you help me ?

Thanks 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.



[appengine-java] Re: Loading child entities with JPA

2010-05-17 Thread datanucleus
 I'm using version 1.3.3.1 of the SDK. I've seen the problem mentioned
 on various blogs and even the App Engine group I believe but the
 answer is always JDO related (dealing with fetch groups). Am I doing
 something wrong or has anyone else had this problem and solved it for
 JPA?

JPA has a fetch group too ... just there is only a defaultFetchGroup
(i.e you can't define custom fetch groups). So just set the field to
be loaded EAGER (or access the field before commit of any txn).

-- 
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.



[appengine-java] System property to know the application default version?

2010-05-17 Thread Sergio Lopes
Hi

Recently GAE added two system properties,
com.google.appengine.application.version/id.
I'm wondering if I can tell what is the default version besides
getting the current version. Is there any property like that?

Tks
Sérgio

-- 
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.



[appengine-java] Owned One to Many relationship problem: can not retrieve score value

2010-05-17 Thread bobo
Hi

As there's no any demo on relationship implementations on more than
one class in the download GAE files,  I feel pretty hard to try on the
JDO implementation with relationship classes.

I tried to use JDO to make an application with owned one to many
relationship.  That is, each QuizzTaker can take many Quizzes.
QuizzTaker acts as a parent and Quizz class is as child.  I also
created a utility class that would be called by a jsp page.  The jsp
page would be able to show the historic records for this taker: each
quizz name the taker has taken and the score he received for each
quizz.  The problem is that I can not retrieve score value and quizz
name.  I put the code below and anyone can shed me a light?

1. Quizz Class:
@PersistenceCapable
public class Quizz {
@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
Key key;

@Persistent
private String quizzName;

@Persistent
private Integer score;

@Persistent
private QuizzTaker quizzTaker;

public Quizz( String qzName, Integer Score){
System.out.println(Quizz iniialization == +quizzName + | +
Score.intValue() );
this.quizzName = qzName;
this.score = Score;

}

public void setKey(Key key) {
this.key = key;
}

public Key getKey() {
return key;
}

public void setQuizzName(String quizzName) {
this.quizzName = quizzName;
}

public String getQuizzName() {
return quizzName;
}

public void setScore(Integer Score) {
this.score = Score;
System.out.println(Quizz is set score  + Score.intValue() );
}

public Integer getScore() {
return score;
}

}
2. QuizzTaker
@PersistenceCapable
public class QuizzTaker {
@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
Key key;
@Persistent
private String userName;

@Persistent(mappedBy=quizzTaker)
@Order(extensions = @Extension(vendorName=datanucleus, key=list-
ordering, value=quizzName asc))
private CollectionQuizz quizzes;

public QuizzTaker(String userNickName){
this.setUserName(userNickName);
if(quizzes == null){
   quizzes = new ArrayListQuizz();
}
}

public void setKey(Key key) {
this.key = key;
}

public Key getKey() {
return key;
}

public void setQuizzes(Quizz quizz) {
quizzes.add(quizz);
}

public CollectionQuizz getQuizzes() {
return quizzes;
}

public void setUserName(String userName) {
this.userName = userName;
}

public String getUserName() {
return userName;
}


}

3. Utility class that JSP file will call those utility method:
public class QuizzUtils {


public static Quizz addNewUserToNewQuizz(String userName, String
quizzName, Integer score){
System.out.println(  addNewUserToNewQuizz );
PersistenceManager pm = PMF.get().getPersistenceManager();
Quizz quizz = null;
try{
pm.currentTransaction().begin();
try{
QuizzTaker qt = new QuizzTaker(userName);
Quizz qz = new Quizz(quizzName, score);
qz.setScore(score);
qt.setQuizzes(qz);
pm.makePersistent(qt);
}catch (JDOObjectNotFoundException e) {
System.out.println(e.getMessage());

}
pm.currentTransaction().commit();
}finally{
 if (pm.currentTransaction().isActive()) {
 pm.currentTransaction().rollback();
 }
 pm.close();
}
return quizz;

}

public static void addUserToQuizz(String userName, String quizzName,
Integer score){
System.out.println(  addUserToQuizz );
PersistenceManager pm = PMF.get().getPersistenceManager();
Quizz quizz = null;
try{
pm.currentTransaction().begin();
QuizzTaker qt = null;
try{
ListQuizz l_quizz = getQuizz(quizzName);
if(l_quizz.size() 0){
quizz = l_quizz.get(0);
}
ListQuizzTaker l_qt = getQuizzTaker(userName);
if(l_qt.size() 0){
  

[appengine-java] Bad Java latency today

2010-05-17 Thread François Masurel
http://code.google.com/status/appengine/detail/serving-java/2010/05/17

Seems to be a different problem from last week as the datastore seems
to be going fine :

http://code.google.com/status/appengine/detail/datastore/2010/05/17

-- 
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.



[appengine-java] Re: Freemarker and Unicode: On local: fine, on cloud: become question mark

2010-05-17 Thread Phuong Nguyen
Thank you,
I add DefaultEncoding setting to FreeMarkerServlet and the problem is
solved.

On May 17, 6:50 pm, akochnev akoch...@gmail.com wrote:
 Freemarker has a way to specify the encoding of the files that you're
 dealing with. Look at freemarker.template.Configuration, more
 specifically :

         fmConfiguration.setDefaultEncoding(UTF-8);
         fmConfiguration.setLocale(Locale.US);
         fmConfiguration.clearEncodingMap();

 You can use the methods above to explicitly provide the encoding of
 your templates . If you don't , it probably uses a default encoding
 map, and possibly the platform encoding. Thus, if your development
 (e.g. Windows) and deployment (GAE, Linux ? ) have different default
 encodings, your templates will not be rendered properly.

 Regards,

 Alex Kotchnev

 On May 17, 7:38 am, Phuong Nguyen phuongn...@gmail.com wrote:



  I use Eclipse, which default encoding for text file is set to UTF-8.
  By the way, it runs fine on client, problems only when being deployed
  to the cloud.

  On May 17, 5:41 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Have you tried saving your template files in UTF-8?
   You can use Notepad++ for this.

   --
   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 
   athttp://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 
  athttp://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 
 athttp://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: [appengine-java] Accessing the last committed timestamp using datastore API?

2010-05-17 Thread Ikai L (Google)
This isn't available in the low level API. Transactions are already using
the implementation you've described via optimistic locking.

There's an article written by Max Ross about using the @Version annotation
to achieve the same thing. Check it out:

http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-with-version.html

On Thu, May 13, 2010 at 11:54 PM, brendan brendanpdohe...@gmail.com wrote:

 Slide 54 of Under the Covers of the Google App Engine Datastore by
 Ryan Barrett states that the last committed timestamp co-located with
 root entity.  Is it possible to access this last committed timestamp
 using the low level datastore API?

 I'd like to be able to access it to create an enhancement to objectify
 that provides optimistic locking.

 My idea is:
 - On get(), populate a field in the entity just read with the
 timestamp.  Probably the field would have an @Lock annotation.
 - Send entity to gwt client over rpc.
 - Receive entity back from gwt client over rpc.
 - On put(), before update check the timestamp and fail if their is a
 difference.

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] Re: Prerelease 1.3.4 SDK ready for download

2010-05-17 Thread Ikai L (Google)
Thanks! Did you run into any snags doing it?

On Fri, May 14, 2010 at 4:17 AM, Rajkumar Radhakrishnan 
r.rajku...@gmail.com wrote:

 Lots of love to you folks, for OpenID !!
 I was almost tempted to go in for temporary libraries.. until the feature
 arrives.

 And the way, you made it switchable via admin console (instead of having to
 redeploy) is good too.

 Thank you very much.

 Regards,
 R.Rajkumar

 On Fri, May 14, 2010 at 6:46 AM, yjun hu itswa...@gmail.com wrote:

 maybe google app engine shall cancel the 30seconds limit,  most of backend
 process need more than 30seconds


 On Fri, May 14, 2010 at 2:17 AM, atomi at...@verizon.net wrote:

 Are there API reference docs for the OpenID support?
 It seems as though a new application would need to be created for this to
 work - am I correct in assuming this? As of now I don't see that option,
 which makes it a little difficult to test or play with.
 What is the ETA/schedule on the feature complete 1.3.4 release?
 Thanks.


 On Thu, May 13, 2010 at 10:48 AM, Ikai L (Google) ika...@google.comwrote:

 ... a link to the download would be helpful:

 http://code.google.com/p/googleappengine/downloads/list

 On Thu, May 13, 2010 at 7:45 PM, Ikai L (Google) ika...@google.comwrote:

 Greetings, Java developers!

 Prerelease SDK 1.3.4 is ready for download. As usual, please help us
 test this release and post feedback to this thread.

 The release notes are below:

 Version 1.3.4
 =
 - Client side bulkloader available with the Python SDK that has a new
   configuration syntax and wizard for easier import/export with the
 datastore.
   Can be used by enabling remote_api in your Java application
 - Applications can now be configured to authenticate with OpenID by
 selecting
   the OpenID option when creating your application in the admin console
 http://code.google.com/p/googleappengine/issues/detail?id=248
 http://code.google.com/p/googleappengine/issues/detail?id=56
 - New API to allow App Engine apps to act as OAuth service providers
 http://code.google.com/p/googleappengine/issues/detail?id=919
 - The version update check in the Java SDK now uses https
 - Allow full access to javax.el.*
 http://code.google.com/p/googleappengine/issues/detail?id=3157
 - Increased the timeout during deployment to 15 minutes
 - Fixed an issue with JPA where an illegal cast exception was thrown
 during the
   fetch of integer fields
 - MemcacheService.setNamespace() is deprecated in favor of
   MemcacheServiceFactory.getMemcacheManager(namespace)
 - Support in the SDK for Java 1.5 is being deprecated. These warnings
 now appear
   when starting the SDK

 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter: http://twitter.com/ikai
 Delicious: http://delicious.com/ikailan

 
 Google App Engine links:
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine




 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter: http://twitter.com/ikai
 Delicious: http://delicious.com/ikailan

 
 Google App Engine links:
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine

  --
 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.




 --
 hapeblog (Blog on GAE)
 http://www.hapeblog.com

  --
 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.




 --
 
 http://crm.ifreetools.com

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

Re: [appengine-java] Does the new OpenID and OAuth work only with google accounts?

2010-05-17 Thread Ikai L (Google)
If you use your own User account, it wouldn't be OpenID or OAuth. You can
and should create a companion object - data related to the account that is
logged in. It's probably better this way, as users won't have to sign up for
yet another website account.

On Fri, May 14, 2010 at 11:11 AM, Joe Fawzy joewic...@gmail.com wrote:

 Hi all
 Does the new OpenID and OAuth work only with google accounts?
 cannot i use my own account management or my user object?

 please clarify
 Joe

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] Google I/O 2010

2010-05-17 Thread Ikai L (Google)
Hey Toby! Have you tried the #io2010 hashtag (and other hashtags) on
Twitter? There are many App Engine developers trickling into town that would
probably take you up on your offer.

On Fri, May 14, 2010 at 11:47 AM, Toby toby.ro...@gmail.com wrote:

 Hello,

 I am going to I/O next week. I did not get a spot in the boot camp. So
 I got nothing to do on Tuseday. I wonder if any of you are going.
 Might be cool to meet up and to discuss around our projects.
 It is the first time I go there. Maybe also during the event there is
 some chance to have a chat.
 Looking forward to meet you.

 Toby

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] Re: BlobstoreService: can't call getUploadedBlobs

2010-05-17 Thread Viðar Svansson
Am I the only one who is experiencing this problem? This is a critical
functionality for our app so I would really appreciate a comment on
this.

Thanks,
Viðar

On Fri, May 14, 2010 at 11:08 PM, pjesi vidarsv...@gmail.com wrote:
 I created an issue here: 
 http://code.google.com/p/googleappengine/issues/detail?id=3223

 On May 14, 11:02 pm, pjesi vidarsv...@gmail.com wrote:
 For more information, I am using the Upload.java servlet 
 fromhttp://code.google.com/appengine/docs/java/blobstore/overview.html

 The server gives my the stacktrace on the URL _ah/upload/blobId (The
 form POST URL).
 It looks like it is failing to extract the filename. However, the file
 saves fine in the datastore.

 Is there any other way to know the key? For example reading headers or
 request parameters? I could bypass getUploadedBlobs if I can access
 the key somehow since I only need it to forward to another servlet
 (which renders the blob just fine).

 Thanks,
 Viðar

 On May 14, 8:08 pm, pjesi vidarsv...@gmail.com wrote:





  I can upload just fine into the blobstore. However, the callback
  handler can never access the uploaded file using getUploadedBlobs.

  The exception is:

  Uncaught exception from servlet
  java.lang.IllegalStateException: Must be called from a blob upload
  callback request.
          at
  com.google.appengine.api.blobstore.BlobstoreServiceImpl.getUploadedBlobs(Bl
   obstoreServiceImpl.java:
  128)

  This seems to be the result of an parse exception:

  com.google.apphosting.utils.servlet.ParseBlobUploadFilter doFilter:
  Could not parse multipart message:
  javax.mail.internet.ParseException: Missing ';'
          at javax.mail.internet.ParameterList.init(ParameterList.java:135)
          at
  javax.mail.internet.ContentDisposition.init(ContentDisposition.java:
  51)
          at javax.mail.internet.MimeBodyPart.getFileName(MimeBodyPart.java:
  303)
          at
  com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo
   bUploadFilter.java:
  74)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF
   ilter.java:
  35)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans
   actionCleanupFilter.java:
  43)
          at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
          at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
  388)
          at
  org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
  216)
          at
  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
  182)
          at
  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
  765)
          at 
  org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  418)

  Note that this works fine on the development server. I am using 1.3.2.
  Any ideas?

  Thansk,
  Viðar

  --
  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 
  athttp://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 
 athttp://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.



-- 
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: [appengine-java] Google I/O 2010

2010-05-17 Thread Christian Goudreau
I want to come !

Next year maybe :)

Christian

On Mon, May 17, 2010 at 1:34 PM, Ikai L (Google) ika...@google.com wrote:

 Hey Toby! Have you tried the #io2010 hashtag (and other hashtags) on
 Twitter? There are many App Engine developers trickling into town that would
 probably take you up on your offer.


 On Fri, May 14, 2010 at 11:47 AM, Toby toby.ro...@gmail.com wrote:

 Hello,

 I am going to I/O next week. I did not get a spot in the boot camp. So
 I got nothing to do on Tuseday. I wonder if any of you are going.
 Might be cool to meet up and to discuss around our projects.
 It is the first time I go there. Maybe also during the event there is
 some chance to have a chat.
 Looking forward to meet you.

 Toby

 --
 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.




 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter: http://twitter.com/ikai
 Delicious: http://delicious.com/ikailan

 
 Google App Engine links:
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine

  --
 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: [appengine-java] Re: elegant way of implementing sequence generator

2010-05-17 Thread Ikai L (Google)
Memcache is shared across your application instances. It's a separate
process.

On Fri, May 14, 2010 at 7:01 PM, Thomas mylee...@gmail.com wrote:

 Hi Jaroslav:

 GAE is currently single-homed
 according to
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/cccb943347b3c6a7/338eede3100f366

 On 5月14日, 下午7時41分, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
  ...I just want to be sure. I had the impression that two 'my' JVMs
  might not even reside in the same 'data-center', which would make the
  sharing quite a challenge, at least according to my n00b measures. :)
 
  Regards
J. Záruba

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] Java Uploader

2010-05-17 Thread Ikai L (Google)
Use a POST - the 2000 character limit is there because some browsers can't
handle URLs that long. It might also be easier to write your code in a
servlet and not a JSP. Can you post it for people to look at?

On Sun, May 16, 2010 at 2:11 PM, Erich erich.re...@gmail.com wrote:

 Hi All.

 I'm completely illiterate in Python, so I've created a workaround in
 Java to upload Java Object to the datastore.

 I have a deployed JSP which receives data and uses reflection and
 various magic to take the incoming URL, create the objects dynamically
 and add them to the store. I've built my uploader and receiver to take
 advantage of bulk operations to save URL and datastore calls.

 There are some serious drawbacks to this method:
 1 - The maximum URL length before a 414 error is 2000. This really
 limits how many objects can be passed per URL.
 2 - I haven't figure out a way to do this using securely. (without
 exposing the JSP publicly)

 The good things about it:
 1 - All Java (no installing a second google app program and mucking
 around in Python)
 2 - No need to create intermediate files on your system. Plain Object -
  Datastore

 I would like to improve this if possible. Does anyone know how the
 python uploader works? Is a special URL or connection I can make to
 pass more data or do it securely?

 Thanks,
 Erich

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] MD4?

2010-05-17 Thread Ikai L (Google)
Is there a reason you need to use MD4? MD4 is a weak hash and has been
compromised:

http://en.wikipedia.org/wiki/MD4

http://en.wikipedia.org/wiki/MD4Take a look at SHA1 instead.

On Mon, May 17, 2010 at 1:52 AM, Elchin elchin.asga...@gmail.com wrote:

 I need to calculate an MD4 has of a string for a project I am working
 on. When I try to use MD4 class from Sun, it tells me that it is not
 supported. I cannot use MessageDigest.getInstance()  because MD4 is
 not included in any standard providers. So is there a way to include
 MD4 from java.sec to my project or do I have to implement is
 separately?

 I am even not sure whether I will have a permission to add new
 provider as described in

 http://www.java2s.com/Open-Source/Java-Document/6.0-JDK-Modules-sun/security/sun/security/provider/MD4.java.htm

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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: [appengine-java] Typing mistake in Java Application Configuration documentation: Inbound Services?

2010-05-17 Thread Ikai L (Google)
It's a typo. I've fixed it. The change should go live sometime in the near
future.

On Mon, May 17, 2010 at 7:02 AM, Fred Janon fja...@gmail.com wrote:

 I think (I hope!) there is a slight mistake on this page:

 http://code.google.com/appengine/docs/java/config/appconfig.html

 in the paragraph:

 *Inbound Services*

 Before an application can receive email and XMPP messages, the application
 must be configured to enable those services. You enable these services for a
 *Python *app by including an inbound-services element in the
 appengine-web.xml file.

 I think it should say Java instead of Python. Can someone confirm?

 Thanks

 Fred

 --
 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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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.



[appengine-java] Re: Best way to perform search on DataStore - Design Question

2010-05-17 Thread niraj
Here is workaround to the problem.

http://practicingengineer.blogspot.com/2010/05/another-approach-to-full-text-search-on.html

Summary:
1. Utilize the search capability on Amazon simpleDB.
2. I use heroku free account to look up on amazon simple db


On Apr 6, 2:55 am, John Patterson jdpatter...@gmail.com wrote:
 Yes fulltextsearchis on the road map.  It can't be far away because  
 some of the implementation has already slipped into the current  
 release.  See the protected method Query.setFullTextSearch()

 On 6 Apr 2010, at 16:04, Toby wrote:



  Hello,

  I am wondering iftextsearchis actually on the official road map and
  if so when it will be available. If not, would it make sense to start
  a google code project to do our own implementation?  I am thinking of
  something simple and light without the need of lots of jar. I think it
  is quite some work and it would be worthless if GAE will have this
  feature in the near future. Also I guess it can be implemented more
  efficiently on google side reusing all the infrastructure that they
  have already in place.

  Cheers,
  Toby

  On Mar 29, 6:32 am, Tristan tristan.slomin...@gmail.com wrote:
  another way is to implement a full-textsearchyourself...
  implementing this would work:

 http://www.miislita.com/term-vector/term-vector-3.html(use tri-grams
  instead of full words as tokens)

  i would recommend low-level datastore api for that, also, your index
  term entities will blow up beyond 1MB, i built mindash-datastore to
  handle that

  :) or you can wait for a few months for Google

  On Mar 25, 3:05 pm,nirajnjun...@gmail.com wrote:

  I am debating if I should use Compass or wait for Google to release
  something.

  I can wait for 3-4 months as my website is going to take that amount
  of time to complete.

 Niraj

  On Mar 16, 3:16 am, Toby toby.ro...@gmail.com wrote:

  I am using compass as well and it works fine. The indexing part is
  costly and you might need to do task queue if you reindex large  
  amount
  of data. Starting thesearchmanager is slow and it happens a lot due
  to the suspend policy.

  You can also take a look at this 
  project:http://code.google.com/p/gaelucene/

  I hope there will be a native solution by GAE one day (is there an
  issue to vote for?)

  On Mar 16, 10:21 am, yjun hu itswa...@gmail.com wrote:

  haha, up to now,i use compass okay!

  On Tue, Mar 16, 2010 at 8:53 AM, objectuser  
  kevin.k.le...@gmail.com wrote:
  I think there are a lot of posts here that conclude Compass is  
  not
  viable.  Has that changed?

  On Mar 15, 12:23 am, yjun hu itswa...@gmail.com wrote:
  you can try compass to make you project searchable. a simple  
  demo
  herehttp://hapeblog.appspot.com/blog.shtml?id=7002

  On Sun, Mar 14, 2010 at 8:36 PM, John Patterson  
  jdpatter...@gmail.com
  wrote:

  Interesting to see the existence protected
  Query.setFullTextSearch(String)
  method when you open the Query class in Eclipse.  I suppose  
  it won't be
  too
  far away.  I can't wait to see if they just give us a
  take-it-or-leave-it
  solution or also the tools required to roll your own.

  On 14 Mar 2010, at 15:05, Robert Lancer wrote:

   Haha, like many of us you probably thought that GOOGLE app  
  engine
  would have decenttextsearchcapabilities.

  It looks like your doing all you can do by creating the  
  inverse table,
  you may just want to star
 http://code.google.com/p/googleappengine/issues/detail?id=217

  On Mar 13, 8:59 pm,nirajnjun...@gmail.com wrote:

  My case:
  I am building a website that has several searchable fields  
  from
  various entities (example Artist names from artist entity ,  
  Album
  names from album entity). To have an  
  efficientsearchcapability I
  have defined another Entity - SearchType which carries the  
  Searchable
  string and the Foreign key to the Entity. Instead of  
  querying all the
  Entities one my one - I query SearchType.

  My preliminary tests indicate that the query  performance on
  SearchType is not great (the names are indexed) . I need  
  google
  suggest like quick results in a drop down. What is the best  
  way to
  design this.

  I have considered Memcache , but I dont think I can run  
  queries on
  Memcache . i.e I am running a startsWith() query on JDO  
  today.

  Any best practices .

  --
  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%2B unsubscr...@googlegroups.com
  google-appengine-java%2bunsubscr...@googlegroups.comgoogle-
  appengine-java %252bunsubscr...@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
  

[appengine-java] 1MB limit and multi-put in datastore bug?

2010-05-17 Thread Mouseclicker
Hi,

it seems that the put() in the datastore call with the Iterable
parameter does not work as documented:

From what I read in the documentation it should be possible to store
at most 500 entities in one put()-call and each entity having a max.
size of 1MB.

But it seems to be implemented in a way that the sum of all entities
passed in the put call must not exceed 1MB. Is that intended?

I split large files in chunks of almost 1 MB and for efficiency
reasons I want to store multiple Blobs in one put call. But this even
fails for two of them with a RequestTooLargeException.

(done on local dev server)

Can someone confirm this behavior?

-- 
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.



[appengine-java] Upload to Blob Storage from Silverlight 4

2010-05-17 Thread Patrick Brown
Hello

   I have a silverlight application hosted in my Index.html page that
I am able to upload blobs through to the DevAppServer.  Last week I
enabled billing in my application, when I attempt in production I
receive a Not Found exception after post but prior to my success
handler being called.  To make this work I am creating a multipart
form in silverlight and posting to an attach servlet ( shown here ),
I see all the log messages but my upload handler is not hit running
under the AppEngine.  Any ideas where I am going wrong or is there a
better approach?

  I should say, I am very new to all of the technologies I am using
here so I am sorry if my description is a bit rough.

Thank you for your time and ideas.
Patrick


public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException
{
  log.info(Post attachment started);
  BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
  String uploadUrl = blobstoreService.createUploadUrl(/upload);

  log.info(Upload URL created);
  RequestDispatcher dispatcher =
req.getRequestDispatcher(uploadUrl);
  log.info(String.format(dispatcher for %s retrieved, uploadUrl));

  try {
 log.info(forwarding);
 dispatcher.forward(req, resp);
 log.info(forwarded);
  } catch (ServletException e) {
 e.printStackTrace();
 log.info(e.getMessage());
  }
}

-- 
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.



[appengine-java] List all entitie kinds from the datastore

2010-05-17 Thread Laco Skokan
Hello,

did anybody tried to list all entity kinds from the datastore? How can
this be done?
I try to use Datastore statistics, but it does not seems to be useful
for this task.

Any ideas? Thank you, Ladislav.

-- 
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.



[appengine-java] Re: 1MB limit and multi-put in datastore bug?

2010-05-17 Thread Tristan
I've been able to multiput 2GB split into 500 entity batches on the
dev server before. If it's breaking then this would be new.

On May 17, 2:12 pm, Mouseclicker jens.h...@googlemail.com wrote:
 Hi,

 it seems that the put() in the datastore call with the Iterable
 parameter does not work as documented:

 From what I read in the documentation it should be possible to store
 at most 500 entities in one put()-call and each entity having a max.
 size of 1MB.

 But it seems to be implemented in a way that the sum of all entities
 passed in the put call must not exceed 1MB. Is that intended?

 I split large files in chunks of almost 1 MB and for efficiency
 reasons I want to store multiple Blobs in one put call. But this even
 fails for two of them with a RequestTooLargeException.

 (done on local dev server)

 Can someone confirm this behavior?

 --
 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 
 athttp://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.



[appengine-java] Re: Accessing the last committed timestamp using datastore API?

2010-05-17 Thread brendan
Thanks Ikai, but I'm not using JDO or JPA.

Instead I'm trying to enhance the objectify (http://code.google.com/p/
objectify-appengine/) library to provide similar functionality.

To reduce the amount of data stored per entity, I was hoping to use
the last committed timestamp instead of an additional version field.

When using the JDO/JPA @Version annotation, does each root entity
store two versions (the last committed timestamp  a custom version
field), or just one version (by reusing the last committed timestamp)?

Brendan

On May 18, 5:13 am, Ikai L (Google) ika...@google.com wrote:
 This isn't available in the low level API. Transactions are already using
 the implementation you've described via optimistic locking.

 There's an article written by Max Ross about using the @Version annotation
 to achieve the same thing. Check it out:

 http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-w...





 On Thu, May 13, 2010 at 11:54 PM, brendan brendanpdohe...@gmail.com wrote:
  Slide 54 of Under the Covers of the Google App Engine Datastore by
  Ryan Barrett states that the last committed timestamp co-located with
  root entity.  Is it possible to access this last committed timestamp
  using the low level datastore API?

  I'd like to be able to access it to create an enhancement to objectify
  that provides optimistic locking.

  My idea is:
  - On get(), populate a field in the entity just read with the
  timestamp.  Probably the field would have an @Lock annotation.
  - Send entity to gwt client over rpc.
  - Receive entity back from gwt client over rpc.
  - On put(), before update check the timestamp and fail if their is a
  difference.

  --
  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%2B 
  unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter:http://twitter.com/ikai
 Delicious:http://delicious.com/ikailan

 
 Google App Engine links:
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 --
 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 
 athttp://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.



[appengine-java] XStream and JasperReports support

2010-05-17 Thread Marcos Vinícius Soares
Does anyone know when appengine will provide support for XStream and
JasperReports?

-- 
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.



[appengine-java] Re: 1MB limit and multi-put in datastore bug?

2010-05-17 Thread Timofey Koolin
Each api request have limit 1MB. You can send 1 object about 1MB, or
10 objects about 100KB. Gae have limit for request-response, not for
object size.

On 17 май, 23:12, Mouseclicker jens.h...@googlemail.com wrote:
 Hi,

 it seems that the put() in the datastore call with the Iterable
 parameter does not work as documented:

 From what I read in the documentation it should be possible to store
 at most 500 entities in one put()-call and each entity having a max.
 size of 1MB.

 But it seems to be implemented in a way that the sum of all entities
 passed in the put call must not exceed 1MB. Is that intended?

 I split large files in chunks of almost 1 MB and for efficiency
 reasons I want to store multiple Blobs in one put call. But this even
 fails for two of them with a RequestTooLargeException.

 (done on local dev server)

 Can someone confirm this behavior?

 --
 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 
 athttp://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.



[appengine-java] Re: 1MB limit and multi-put in datastore bug?

2010-05-17 Thread Mouseclicker
Thanks Timofei,

that matches what I have seen. It would be nice if the documentation
would clarify this.

On May 18, 6:42 am, Timofey Koolin timo...@koolin.ru wrote:
 Each api request have limit 1MB. You can send 1 object about 1MB, or
 10 objects about 100KB. Gae have limit for request-response, not for
 object size.

 On 17 май, 23:12, Mouseclicker jens.h...@googlemail.com wrote:



  Hi,

  it seems that the put() in the datastore call with the Iterable
  parameter does not work as documented:

  From what I read in the documentation it should be possible to store
  at most 500 entities in one put()-call and each entity having a max.
  size of 1MB.

  But it seems to be implemented in a way that the sum of all entities
  passed in the put call must not exceed 1MB. Is that intended?

  I split large files in chunks of almost 1 MB and for efficiency
  reasons I want to store multiple Blobs in one put call. But this even
  fails for two of them with a RequestTooLargeException.

  (done on local dev server)

  Can someone confirm this behavior?

  --
  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 
  athttp://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 
 athttp://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.



[appengine-java] Re: 1MB limit and multi-put in datastore bug?

2010-05-17 Thread Mouseclicker
This means you make one put() call containing 500 entities summing up
to 2GB, means sending one 2GB RPC internally?

I would love to see this code... I will try to strip down mine to a
test case and post here for further comments in another reply to this
thread

On May 18, 12:31 am, Tristan tristan.slomin...@gmail.com wrote:
 I've been able to multiput 2GB split into 500 entity batches on the
 dev server before. If it's breaking then this would be new.

 On May 17, 2:12 pm, Mouseclicker jens.h...@googlemail.com wrote:



  Hi,

  it seems that the put() in the datastore call with the Iterable
  parameter does not work as documented:

  From what I read in the documentation it should be possible to store
  at most 500 entities in one put()-call and each entity having a max.
  size of 1MB.

  But it seems to be implemented in a way that the sum of all entities
  passed in the put call must not exceed 1MB. Is that intended?

  I split large files in chunks of almost 1 MB and for efficiency
  reasons I want to store multiple Blobs in one put call. But this even
  fails for two of them with a RequestTooLargeException.

  (done on local dev server)

  Can someone confirm this behavior?

  --
  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 
  athttp://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 
 athttp://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.