[appengine-java] Re: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: Or filters cannot be applied to multiple properties

2010-07-15 Thread Vikas Hazrati
Hi John, I quickly skimmed over the twig project, it seems that it
works directly on top of the datastore. Does that mean that I do not
need to use datanucleus or does twig work in conjunction with that and
I would need both.

On Jul 14, 9:30 pm, John Patterson jdpatter...@gmail.com wrote:
 Twig Persist has support for OR queries on multiple properties.

 http://code.google.com/p/twig-persist/

 You example is coded like this:

 TypedFindCommand command =
         datastore.find().type(Person.class).addFilter)active, EQUAL, true);
 command.addChildQuery().addFilter(firstName, EQUAL, aFirstName);
 command.addChildQuery().addFilter(lastName, EQUAL, aLastName);
 IteratorPerson people = command.returnResultsNow();

 On 14 Jul 2010, at 19:10, Vikas Hazrati wrote:



  Further to my previous question
 http://groups.google.com/group/google-appengine/browse_thread/
  thread/...
  in which we were getting the following error 
  'or' filters can only check equality
  Now for the sake of datanucleus and datastore we changed the
  functionality to be equality for the time being
  so the query reads like
  @NamedQuery(name=User.findActiveByUsernamePattern,
                 query=SELECT DISTINCT user  +
                                 FROM User as user  +
                                 WHERE (firstName = :pattern OR
  lastName = :pattern)  +
                                 AND (active = true)  +
                                 ORDER BY firstName, lastName)
  and now I get
  org.datanucleus.store.appengine.query.DatastoreQuery
  $UnsupportedDatastoreFeatureException: Problem with query SELECT
  FROM
  User as user WHERE (user.firstName = :pattern OR user.lastName
  = :pattern) AND (user.active = true) ORDER BY user.firstName,
  user.lastName: Or filters cannot be applied to multiple properties
  (found both firstName and lastName).
  A search on the net does not show too many results for the problem
  that we are facing.
  Are we the only ones facing this issue? No one else is trying to port
  a legacy application to GAE? Isn't this quite a normal routine
  query in JPA???
  @datanucleus, @gae please respond.
  Regards | Vikas
 www.inphina.com
 www.thoughts.inphina.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-java@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: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: How long is my application state hold on the app engine?

2010-07-15 Thread l.denardo
I can also add that a new deployment does not clear memcache (it was
an issue for me since it was hiding all changes in my upload).
Memcache on the other hand can expire in any moment, so you must be
ready to accept some data loss if you don't want to back it using the
dataastore.

Regards
Lorenzo

On Jul 14, 6:08 pm, Ingo Jaeckel ingo.jaec...@googlemail.com wrote:
 aah alright. thanks Don for the clarification!

 kind regards,
 ingo

 2010/7/14 Don Schwarz schwa...@google.com:

  That is correct.  You can not maintain state within the JVM and expect to
  get any long-term persistence or coherency.

  You should use either memcache (which provides coherency) or the datastore
  (which provides both).

  On Wed, Jul 14, 2010 at 3:38 PM, Ingo Jaeckel ingo.jaec...@googlemail.com
  wrote:

  hello everyone,

  i just had a look into the documentation
 http://code.google.com/intl/de-DE/appengine/docs/java/runtime.html

  App Engine uses multiple web servers to run your application, and
  automatically adjusts the number of servers it is using to handle
  requests reliably. A given request may be routed to any server, and it
  may not be the same server that handled a previous request from the
  same user.

  does this mean that there are n jvms on n servers running my
  application. thus if i want to collect profiling information about my
  server code i will always have to persist it in the db. it would not
  be sufficient just to hold it within the app (thus within the jvm).
  because i will have different application stats across the different
  servers running my application in parallel and independently..

  can anyone confirm this claim?

  kind regards,
  ingo

  2010/7/13 ingo ingo.jaec...@googlemail.com:
   hello everyone,

   i want to collect some performance figures of my app on the server
   side. but i do not want to persist them in the database, i only want
   to collect them by changing the state of some class (i.e. changing
   class members like number of requests, number of method calls, etc). i
   want to read these values on the client side and display them in an
   administration panel (or a profiler-like ui).

   but currently i think the application state is at least lost after
   each new deployment. is this the only time the state is resetted? does
   a jvm holding my application state run all the time between each
   deployment?

   i have the same question regarding static members. i use singletons or
   static variables on server side to make sure they are constructed only
   once whenever their construction is expensive. so i want to make sure
   that the jvm holding the instances is running for a very long time to
   avoid reconstruction of them. however, it feels like the jvm is
   restarted relatively often (due to very low load on my app maybe) and
   thus the singletons are recreated during the jvm startup.

   kind regards,
   ingo

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

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



[appengine-java] Re: PDF Files

2010-07-15 Thread dovm
Hi,

Check this one
http://www.pdfjet.com/java/index.html

They claim to support Google App Engine

=Dov



On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote:
 But it says that on Will it play in App Engine

 That its incompatible:

 iText
 Version(s): ?
 Status: INCOMPATIBLE

     * iText relies on several classes not in the JRE class whitelist
 including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
 filed 
 athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g

 On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:

  Chris,

  Did you want to generate a PDF File on the GAE?
  If yes, you can use the iText library for generating the pdfs on the
  app engine. You can have a servlet to download the PDF file you
  generated.

  Thanks,
  Shyam Visamsetty

  On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:

   Helle every body,
   I am working on a Google App Engine Project that consists of uploading
   PDF files and displaying it after.
   I use a Blob to store the PDF file
   i want to do a process to download this PDF file by giving the a
   specifics name.
   Is there a way to generaye PDF files with GAE?
   i have a process to display the PDF but i want to download it direcly
   from an URL.

-- 
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: Or filters cannot be applied to multiple properties

2010-07-15 Thread John Patterson
Yes, it is a replacement for Datanucleus designed specifically for the  
datastore.  There are also other alternative frameworks such as Slim3,  
Objectify and SimpleDS all with their own unique features.


Twig is the only one to support these merged OR queries you asked about.

One more point - Twig executes the two branches of the OR query in  
*parallel* and then merges the results.  It can do this because it has  
support for async (non-blocking) datastore operations.  this means  
that even if you have hundreds of branches to your query they should  
return in roughly the same amount of time.


On 15 Jul 2010, at 13:52, Vikas Hazrati wrote:


Hi John, I quickly skimmed over the twig project, it seems that it
works directly on top of the datastore. Does that mean that I do not
need to use datanucleus or does twig work in conjunction with that and
I would need both.

On Jul 14, 9:30 pm, John Patterson jdpatter...@gmail.com wrote:

Twig Persist has support for OR queries on multiple properties.

http://code.google.com/p/twig-persist/

You example is coded like this:

TypedFindCommand command =
datastore.find().type(Person.class).addFilter)active,  
EQUAL, true);

command.addChildQuery().addFilter(firstName, EQUAL, aFirstName);
command.addChildQuery().addFilter(lastName, EQUAL, aLastName);
IteratorPerson people = command.returnResultsNow();

On 14 Jul 2010, at 19:10, Vikas Hazrati wrote:




Further to my previous question
http://groups.google.com/group/google-appengine/browse_thread/
thread/...
in which we were getting the following error 
'or' filters can only check equality
Now for the sake of datanucleus and datastore we changed the
functionality to be equality for the time being
so the query reads like
@NamedQuery(name=User.findActiveByUsernamePattern,
   query=SELECT DISTINCT user  +
   FROM User as user  +
   WHERE (firstName = :pattern OR
lastName = :pattern)  +
   AND (active = true)  +
   ORDER BY firstName, lastName)
and now I get
org.datanucleus.store.appengine.query.DatastoreQuery
$UnsupportedDatastoreFeatureException: Problem with query SELECT
FROM
User as user WHERE (user.firstName = :pattern OR user.lastName
= :pattern) AND (user.active = true) ORDER BY user.firstName,
user.lastName: Or filters cannot be applied to multiple properties
(found both firstName and lastName).
A search on the net does not show too many results for the problem
that we are facing.
Are we the only ones facing this issue? No one else is trying to  
port

a legacy application to GAE? Isn't this quite a normal routine
query in JPA???
@datanucleus, @gae please respond.
Regards | Vikas
www.inphina.com
www.thoughts.inphina.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-java@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-java@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.



[appengine-java] Re: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: problem with storing data in datastore

2010-07-15 Thread Vishakha
I did use printstacktrace but it is not giving any exceptions.
I did try logging and was getting garbage value for the stream but
what i cant understand is why is it happening only when i deploy my
app since everything works perfectly fine on local datastore.

On Jul 13, 11:30 pm, Shyam Visamsetty shyamsunder...@gmail.com
wrote:
 So, if you are directly accessing the stream, it is still in memory
 and not stored anywhere. I think you should try logging the stream you
 receive. I think it is hitting a null ptr exception for some reason.
 did you use printstacktrace in your catch block?

 Thanks,
 Shyam.

 On Jul 13, 1:47 am, Vishakha vish0...@gmail.com wrote:

  Hi I am akriti's team member.

  This is part of my servlet code.

  public void doPost(HttpServletRequest request, HttpServletResponse
  response)  throws ServletException, IOException {
                  {
          ServletFileUpload upload = new ServletFileUpload();

          try{
              FileItemIterator iter = upload.getItemIterator(request);

              while (iter.hasNext()) {
                  FileItemStream item = iter.next();
                  String name = item.getFieldName();
                  InputStream stream = item.openStream();
                 // try{
                   Kml kml = Kml.unmarshal(stream);

                  //if (kml == null)
                          {
                                  Feature feature = kml.getFeature();
                                  processFeature(null, feature);
                          }

  On Jul 13, 12:31 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:

   Could it be that the file upload tries to store the file in a temporary
   directory somewhere?

   --
   Pieter Coucke
   Onthoo BVBAhttp://www.onthoo.comhttp://www.koopjeszoeker.be-Hide quoted 
   text -

  - Show quoted text -

-- 
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: Documentation amendment request: allowed sender E-mail addresses

2010-07-15 Thread Ian Marshall
Is this the right place to make a documentation amendment request? If
not, should I raise an issue instead?



On Jul 14, 1:48 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 In the GAE/J documentation at Google App Engine | Java | Services |
 Mail | (Mail Java API) Overview | Sending Mail with URL

  http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

 it states

 ... the sender address of a message must be the email address of an
 administrator for the application, the Google Account email address of
 the current user who is signed in, or any valid email receiving
 address for the app (see Receiving Mail).

 In contrast, in the documentation at Google App Engine | Java |
 Services | Mail | Using JavaMail to Send Mail | Senders and
 Recipients with URL

  http://code.google.com/intl/en/appengine/docs/java/mail/usingjavamail...

 it states

 The sender must be either the address of a registered developer for
 the application, or the address of the user for the current request
 signed in with a Google Account.

 Please can these two texts be unified by including any valid email
 receiving address for the app in both parts?

 (On a more minor point: the overview is very extensive with many of
 the details repeated in the sections following. Again, Google might
 care to eliminate duplication here.)

-- 
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: Documentation request: case sensitivity of sender E-mail addresses

2010-07-15 Thread Ian Marshall
Is this the right place to make a documentation amendment request? If
not, should I raise an issue instead?



On Jul 14, 2:09 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 In the GAE/J documentation at Google App Engine | Java | Services |
 Mail | (Mail Java API) Overview | Receiving Mail with URL

  http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

 it states

 Your app can receive email at addresses of the following form:
 'str...@appid.appspotmail.com'

 I want my app to send E-mails with the sender address of this form,
 but I have discovered the hard way that this form of sender E-mail
 address must(?) be fully in lower case after the @. Trying to send
 from

   administrat...@[myappid].appspotmail.com

 fails with the exception

 javax.mail.SendFailedException: Send failure
 (javax.mail.MessagingException: Illegal Arguments
 (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized
 sender))

 whilst sending from

   administrat...@[myappid].appspotmail.com

 is permitted by GAE/J.

 Jason's post in unable to send email, got
 javax.mail.SendFailedException dated 13 July 2009 with URL

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 mentions this case sensitivity.

 In the interests of continuous improvement, please could the
 documentation be amended to point out the case sensitivity
 requirements of (the various components of) sender addresses?

-- 
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] Converting String to BlobKey... in SCALA!

2010-07-15 Thread Alexander Orlov
I want to delete blobs, so I wrote a method and don't thought about
that it could be that difficult.

  def deleteBlobs(keys: ArrayList[String]) {
keys.toArray.foreach {
  key =
  blobstoreService.delete(new BlobKey(key.toString)) // doesn't
work
  blobstoreService.delete(new BlobKey(key)) // doesn't work
  blobstoreService.delete(key) // doesn't work
  blobstoreService.delete(key.asInstanceOf[BlobKey]) // doesn't
work
  blobstoreService.delete((BlobKey) key) // doesn't work
}
}

Sometimes I get java.lang.String cannot be cast to
com.google.appengine.api.blobstore.BlobKey exceptions and sometimes
the compiler refuses to compile because of wrong types. I'm desperate!

-- 
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: Documentation amendment request: allowed sender E-mail addresses

2010-07-15 Thread Peter Ondruska
Raise an issue for that please and send the link, I'd start it right
away.

On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote:
 Is this the right place to make a documentation amendment request? If
 not, should I raise an issue instead?

 On Jul 14, 1:48 pm, Ian Marshall ianmarshall...@gmail.com wrote:



  In the GAE/J documentation at Google App Engine | Java | Services |
  Mail | (Mail Java API) Overview | Sending Mail with URL

   http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

  it states

  ... the sender address of a message must be the email address of an
  administrator for the application, the Google Account email address of
  the current user who is signed in, or any valid email receiving
  address for the app (see Receiving Mail).

  In contrast, in the documentation at Google App Engine | Java |
  Services | Mail | Using JavaMail to Send Mail | Senders and
  Recipients with URL

   http://code.google.com/intl/en/appengine/docs/java/mail/usingjavamail...

  it states

  The sender must be either the address of a registered developer for
  the application, or the address of the user for the current request
  signed in with a Google Account.

  Please can these two texts be unified by including any valid email
  receiving address for the app in both parts?

  (On a more minor point: the overview is very extensive with many of
  the details repeated in the sections following. Again, Google might
  care to eliminate duplication here.)

-- 
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: Documentation request: case sensitivity of sender E-mail addresses

2010-07-15 Thread Peter Ondruska
:-) Raise an issue for that please and send the link, I'd start it
right away as well.

On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote:
 Is this the right place to make a documentation amendment request? If
 not, should I raise an issue instead?

 On Jul 14, 2:09 pm, Ian Marshall ianmarshall...@gmail.com wrote:



  In the GAE/J documentation at Google App Engine | Java | Services |
  Mail | (Mail Java API) Overview | Receiving Mail with URL

   http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

  it states

  Your app can receive email at addresses of the following form:
  'str...@appid.appspotmail.com'

  I want my app to send E-mails with the sender address of this form,
  but I have discovered the hard way that this form of sender E-mail
  address must(?) be fully in lower case after the @. Trying to send
  from

    administrat...@[myappid].appspotmail.com

  fails with the exception

  javax.mail.SendFailedException: Send failure
  (javax.mail.MessagingException: Illegal Arguments
  (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized
  sender))

  whilst sending from

    administrat...@[myappid].appspotmail.com

  is permitted by GAE/J.

  Jason's post in unable to send email, got
  javax.mail.SendFailedException dated 13 July 2009 with URL

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

  mentions this case sensitivity.

  In the interests of continuous improvement, please could the
  documentation be amended to point out the case sensitivity
  requirements of (the various components of) sender addresses?

-- 
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: Documentation request: case sensitivity of sender E-mail addresses

2010-07-15 Thread Ian Marshall
I have raised a Google App Engine issue number 3466 (Documentation
request: case sensitivity of sender E-mail addresses) which can be
found at:

 
http://code.google.com/p/googleappengine/issues/detail?id=3466can=5colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

Thanks for this,

Ian



On Jul 15, 1:02 pm, Peter Ondruska peter.ondru...@gmail.com wrote:
 :-) Raise an issue for that please and send the link, I'd start it
 right away as well.

 On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote:

  Is this the right place to make a documentation amendment request? If
  not, should I raise an issue instead?

  On Jul 14, 2:09 pm, Ian Marshall ianmarshall...@gmail.com wrote:

   In the GAE/J documentation at Google App Engine | Java | Services |
   Mail | (Mail Java API) Overview | Receiving Mail with URL

    http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

   it states

   Your app can receive email at addresses of the following form:
   'str...@appid.appspotmail.com'

   I want my app to send E-mails with the sender address of this form,
   but I have discovered the hard way that this form of sender E-mail
   address must(?) be fully in lower case after the @. Trying to send
   from

     administrat...@[myappid].appspotmail.com

   fails with the exception

   javax.mail.SendFailedException: Send failure
   (javax.mail.MessagingException: Illegal Arguments
   (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized
   sender))

   whilst sending from

     administrat...@[myappid].appspotmail.com

   is permitted by GAE/J.

   Jason's post in unable to send email, got
   javax.mail.SendFailedException dated 13 July 2009 with URL

  http://groups.google.com/group/google-appengine-java/browse_thread/th...

   mentions this case sensitivity.

   In the interests of continuous improvement, please could the
   documentation be amended to point out the case sensitivity
   requirements of (the various components of) sender addresses?

-- 
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: Documentation amendment request: allowed sender E-mail addresses

2010-07-15 Thread Ian Marshall
I have raised a Google App Engine issue number 3465 (Documentation
amendment request: allowed sender E-mail addresses) which can be found
at:

 
http://code.google.com/p/googleappengine/issues/detail?id=3465can=5colspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

Thanks for this,

Ian


On Jul 15, 1:01 pm, Peter Ondruska peter.ondru...@gmail.com wrote:
 Raise an issue for that please and send the link, I'd start it right
 away.

 On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote:

  Is this the right place to make a documentation amendment request? If
  not, should I raise an issue instead?

  On Jul 14, 1:48 pm, Ian Marshall ianmarshall...@gmail.com wrote:

   In the GAE/J documentation at Google App Engine | Java | Services |
   Mail | (Mail Java API) Overview | Sending Mail with URL

    http://code.google.com/intl/en/appengine/docs/java/mail/overview.html...

   it states

   ... the sender address of a message must be the email address of an
   administrator for the application, the Google Account email address of
   the current user who is signed in, or any valid email receiving
   address for the app (see Receiving Mail).

   In contrast, in the documentation at Google App Engine | Java |
   Services | Mail | Using JavaMail to Send Mail | Senders and
   Recipients with URL

    http://code.google.com/intl/en/appengine/docs/java/mail/usingjavamail...

   it states

   The sender must be either the address of a registered developer for
   the application, or the address of the user for the current request
   signed in with a Google Account.

   Please can these two texts be unified by including any valid email
   receiving address for the app in both parts?

   (On a more minor point: the overview is very extensive with many of
   the details repeated in the sections following. Again, Google might
   care to eliminate duplication here.)

-- 
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: What is the best option for RPC (web services) on App engine?

2010-07-15 Thread dilbert
This may be a new shiny valid alternative:
http://googlewebtoolkit.blogspot.com/2010/07/gwtrpccommlayer-extending-gwt-rpc-to-do.html?utm_source=feedburnerutm_medium=feedutm_campaign=Feed:+blogspot/NWLT+(Google+Web+Toolkit+Blog)utm_content=Google+Reader

I wonder if it will work on Android.

On Jun 16, 10:44 am, dilbert dilbert.elbo...@gmail.com wrote:
 I posted a new bug report:http://bugs.caucho.com/view.php?id=4080
 I would like to move further discussion about this issue to the proper
 place:http://groups.google.com/group/google-appengine-java/browse_thread/th...
 D.

 On Jun 16, 12:12 am, Jeff Schnitzer j...@infohazard.org wrote:

  I would close the old issue and create a new one cut down to just the
  exception issue.

  *Are* there any serious RPC alternatives right now?  Sounds like
  gwt-syncproxy isn't quite ready for prime time (and makes me nervous
  since it's not using a published protocol), the *-WS stuff is a
  trainwreck, and *-RS is not really convenient as an RPC layer.  I
  would like alternatives.

  Jeff

  On Tue, Jun 15, 2010 at 2:41 PM, dilbert dilbert.elbo...@gmail.com wrote:
   At the time I thought the issues were connected since they threw the
   same exception so I posted them together. So should I post the issue
   with exceptions again on the Caucho bug tracker? If this issue is
   solved I would recommend Hessian as the best RPC mechanism for GAE at
   this time.
   Apologies to other readers for the offtopic with bugs.
   D.

   On Jun 15, 11:24 pm, Jeff Schnitzer j...@infohazard.org wrote:
   I think you did yourself a disservice by wrapping these two issues
   into a single message - it ends up being way too much text to read and
   otherwise eager volunteers just skip it.

   The first issue looks like you're not detaching your entities before
   serializing them.  This is a JDO issue.  I suggest dropping JDO and
   using something simpler like Objectify ;-)

   The issue with exceptions looks more serious.  This is something that
   will need to be fixed in Hessian (or your custom serializer).  If you
   cut down your issue to just this, you might get better results from
   Caucho.

   Jeff

   On Tue, Jun 15, 2010 at 1:55 PM, dilbert dilbert.elbo...@gmail.com 
   wrote:
Hi Jeff. I was hoping to hear from You since I saw that You solved
some GAE issues on the hessian-interest list. I already posted the
issue on the hessian-interest list here:
   http://maillist.caucho.com/pipermail/hessian-interest/2010-June/00090...
I also posted several forum questions:
   http://forum.caucho.com/showthread.php?t=
   http://groups.google.com/group/google-appengine-java/browse_thread/th...
And a few bug reports:
   http://bugs.caucho.com/view.php?id=4061
   http://code.google.com/p/googleappengine/issues/detail?id=3305
The posts actually describe two issues one with arraylist
serialization and the other with exception serialization. The posts
also include test projects with code that reproduces the issues. I
also managed to solve the issue today by using a custom serializer.
Here is how. First the Serializer:

public class ThrowableSerializer extends AbstractSerializer {
  �...@override
   public void writeObject(Object obj, AbstractHessianOutput out)
throws IOException {
       if (obj != null) {
           final Class cl = obj.getClass();
           if (out.addRef(obj))
               return;
           int ref = out.writeObjectBegin(cl.getName());
           Throwable tr = (Throwable) obj;
           ByteArrayOutputStream bos = new ByteArrayOutputStream();
           ObjectOutputStream oos = new ObjectOutputStream(bos);
           try {
               oos.writeObject(tr);

               if (ref  -1) {
                   out.writeString(value);
                   out.writeBytes(bos.toByteArray());
                   out.writeMapEnd();
               } else {
                   if (ref == -1) {
                       out.writeInt(1);
                       out.writeString(value);
                       out.writeObjectBegin(cl.getName());
                   }
                   out.writeBytes(bos.toByteArray());
               }
           } finally {
               oos.close();
               bos.close();
           }
       } else
           out.writeNull();
   }
}

The other class we need is the Deserializer:
public class ThrowableDeserializer extends AbstractDeserializer {
   //private static final Logger l =
Logger.getLogger(ThrowableDeserializer.class.getName());

  �...@override
   public Class getType() {
       return Throwable.class;
   }

  �...@override
   public Object readMap(AbstractHessianInput in) throws IOException
{
       int ref = in.addRef(null);
       byte[] initValue = null;
       while (!in.isEnd()) {
           String 

[appengine-java] Unable to execute query for a large number of entities

2010-07-15 Thread Ice13ill
I uploaded about 100.000 entities into datastore and I need to execute
a type of query that shouldn't require composite indexes.
But i get this:

The built-in indices are not efficient enough for this query and your
data. Please add a composite index for this query..  An index is
missing but we are unable to tell you which one due to a bug in the
App Engine SDK

My entity has three fields (String): type, value, parent so i created
an index like this:

datastore-indexes autoGenerate=true
   datastore-index kind=DbAddressEntry ancestor=false
source=auto
property name=value direction=asc /
property name=parent direction=asc /
property name=type direction=asc /
/datastore-index
/datastore-indexes

The query uses only equality filters but sometimes only 2 params are
used (type and value, let's say)

Does that meen that i have to create another index ?
Or can something else help ?

-- 
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: PDF Files

2010-07-15 Thread Shyam Visamsetty
Yes, it says that iText does not work on AppEngine. But, it works for
me. I was able to generate a pdf using that on AppEngine.
PDFjet is good.. but i think it is not free.

Thanks,
Shyam.

On Jul 15, 12:25 am, dovm dovm...@gmail.com wrote:
 Hi,

 Check this onehttp://www.pdfjet.com/java/index.html

 They claim to support Google App Engine

 =Dov

 On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote:



  But it says that on Will it play in App Engine

  That its incompatible:

  iText
  Version(s): ?
  Status: INCOMPATIBLE

      * iText relies on several classes not in the JRE class whitelist
  including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
  filed 
  athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g

  On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:

   Chris,

   Did you want to generate a PDF File on the GAE?
   If yes, you can use the iText library for generating the pdfs on the
   app engine. You can have a servlet to download the PDF file you
   generated.

   Thanks,
   Shyam Visamsetty

   On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:

Helle every body,
I am working on a Google App Engine Project that consists of uploading
PDF files and displaying it after.
I use a Blob to store the PDF file
i want to do a process to download this PDF file by giving the a
specifics name.
Is there a way to generaye PDF files with GAE?
i have a process to display the PDF but i want to download it direcly
from an URL.

-- 
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: PDF Files

2010-07-15 Thread Shyam Visamsetty
See this link for more details.

http://blog.rubypdf.com/2009/12/17/how-to-run-itext-on-google-app-engine/

May be we should update the Will it play on App Engine page.

Thanks,
Shyam Visamsetty

On Jul 15, 12:25 am, dovm dovm...@gmail.com wrote:
 Hi,

 Check this onehttp://www.pdfjet.com/java/index.html

 They claim to support Google App Engine

 =Dov

 On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote:



  But it says that on Will it play in App Engine

  That its incompatible:

  iText
  Version(s): ?
  Status: INCOMPATIBLE

      * iText relies on several classes not in the JRE class whitelist
  including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
  filed 
  athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g

  On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:

   Chris,

   Did you want to generate a PDF File on the GAE?
   If yes, you can use the iText library for generating the pdfs on the
   app engine. You can have a servlet to download the PDF file you
   generated.

   Thanks,
   Shyam Visamsetty

   On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:

Helle every body,
I am working on a Google App Engine Project that consists of uploading
PDF files and displaying it after.
I use a Blob to store the PDF file
i want to do a process to download this PDF file by giving the a
specifics name.
Is there a way to generaye PDF files with GAE?
i have a process to display the PDF but i want to download it direcly
from an URL.

-- 
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] What is entity detached yet this operation requires it to be attached?

2010-07-15 Thread Sekhar
I pretty frequently get an error for my JPA entities saying an entity
is is detached yet this operation requires it to be attached and the
transaction is rolled back:
com.google.apphosting.utils.servlet.TransactionCleanupFilter
handleAbandonedTxns: Request completed without committing or rolling
back transaction with id 6520345908250195886.  Transaction will be
rolled back.

What does this error mean and how do I get rid of this? I did check
the DataNucleus docs and didn't really get any info on this. I have
datanucleus.NontransactionalRead and datanucleus.NontransactionalWrite
both set to true and open the transactions only to do the merge - is
that the problem? E.g., something like:

ListMyEntity list = query.getResultList();
MyEntity e0 = list.get(0);
e0.setWhatever(whatever);

tx.begin();
entityManager.merge(e0);
tx.commit();

-- 
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] Can't create a new app (SMS already verified) Options

2010-07-15 Thread Colin Chambers
I want to create a new GAE app under my Google Apps account.  When I
go to https://appengine.google.com/ and try to create a new app, I
keep getting the SMS verification screen.

If I try to verify, it tells me the phone number has already been
used. That's true because I used it for my first app. I
still have the SMS message to prove it.  I still can't make it
through
that screen, though.

replied on another thread
http://groups.google.com/group/google-appengine-java/browse_frm/thread/a724574b2248572e/aeb4d3ceb02d18ad?lnk=gstq=gmail+verified#
but reply didn't seem to show up.

-- 
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] Problems with returning data from datastore

2010-07-15 Thread Matewis
Hallo

I've got a basic site that just display objects within a table inside
the datastore. The site works when I use the demo server packaged with
the eclipse plugin, but not when I deploy the site live at the google
app engine.

As soon as I return the data from the servlet to my jsp I get the
following traceback:

Uncaught exception from servlet
java.lang.StackOverflowError
at java.util.HashMap.removeEntryForKey(Unknown Source)
at java.util.HashMap.remove(Unknown Source)
at org.mortbay.util.AttributesMap.removeAttribute(AttributesMap.java:
51)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.setAttribute(Dispatcher.java:441)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.removeAttribute(Dispatcher.java:461)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.setAttribute(Dispatcher.java:441)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.removeAttribute(Dispatcher.java:461)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.setAttribute(Dispatcher.java:441)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.removeAttribute(Dispatcher.java:461)
at org.mortbay.jetty.servlet.Dispatcher
$ForwardAttributes.setAttribute(Dispatcher.java:441)

and it just loop the above till the page is full.

my JSP file:

%@ page language=java contentType=text/html; charset=ISO-8859-1
pageEncoding=ISO-8859-1%
%@ page import=com.google.appengine.api.users.User %
%@ page import=net.qsens.healthwindow.webmonitor.object.Log %
%@ page import=java.util.List %

%
  User user = (User) request.getAttribute(user);
  String authURL = (String) request.getAttribute(authURL);
%
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://
www.w3.org/TR/html4/loose.dtd
html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1
titleQSENS Web Monitor/title
/head
body
div align=right
Hi there, %= user.getNickname() % | a href=%= authURL %Log
out/a
  /div

  form action= method=POST enctype=multipart/form-data
Report Type: select name=share
  option value=privateSDE/option
  option value=publicSWE/option
/selectbr/
Last 10 Logs:br
table border=1
tr
tdDate/td
tdSystem/td
tdMessage/td
/tr
%
 ListLog logs =
   (ListLog) request.getAttribute(logs);
 if (logs.size()  0) {
   for (int i = 0; i  logs.size(); i++) {
 Log log = logs.get(i);
  %
tr
td%=log.getDate()%/td
td%=log.getSystem()%/td
td%=log.getMessage()%/td
/tr
  %
   }
 }
  %
  /table
  /form

  hr
  a href=/Back/a
/body
/html

My servlet:

package net.qsens.healthwindow.webmonitor.servlet;

import java.io.IOException;

import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.qsens.healthwindow.webmonitor.datastore.PMF;
import net.qsens.healthwindow.webmonitor.object.Log;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

@SuppressWarnings(serial)
public class ReportServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws
IOException, ServletException {
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();

String authURL = (user != null) ?
userService.createLogoutURL(/)
  : userService.createLoginURL(/);

PersistenceManager pm = PMF.get().getPersistenceManager();

Query query = pm.newQuery(Log.class);
query.declareImports(import
com.google.appengine.api.users.User);
query.declareParameters(User userParam);

ListLog results = (ListLog) query.execute(user);

String[] errors = req.getParameterValues(error);
if (errors == null) errors = new String[0];

req.setAttribute(errors, errors);
req.setAttribute(logs, results);
req.setAttribute(authURL, authURL);
req.setAttribute(user, user);
RequestDispatcher dispatcher =
  req.getRequestDispatcher(WEB-INF/pages/Report.jsp);
dispatcher.forward(req, resp);
}
}

I already stepped 

[appengine-java] ClassNotFoundException after i deploy it for the first time

2010-07-15 Thread Alex
im getting ClassNotFoundException


java.lang.ClassNotFoundException: xwordbot.XWordBotServlet

i have checked that XWordBotServlet class is in the package xwordbot

this is fragment of my web.xml

servlet
servlet-nameXWordBot/servlet-name
servlet-classxwordbot.XWordBotServlet/servlet-class
/servlet
servlet-mapping
servlet-nameXWordBot/servlet-name
url-pattern/_wave/*/url-pattern
/servlet-mapping

so what is wrong?

-- 
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] ClassNotFoundException after i deploy it for the first time

2010-07-15 Thread Ronmell Fuentes
hi Alex.

it's a very common error when the .jar files used by your app are not in
copied in the right directory, so please make sure all the jars are copied
also to the directory:  war/WEB-INF/lib

here is a similar issue.

http://groups.google.com/group/google-appengine-java/browse_thread/thread/f6f40411a076aa30#


Rgds.

R

2010/7/14 Alex monsterno...@gmail.com

 im getting ClassNotFoundException


 java.lang.ClassNotFoundException: xwordbot.XWordBotServlet

 i have checked that XWordBotServlet class is in the package xwordbot

 this is fragment of my web.xml

servlet
servlet-nameXWordBot/servlet-name
servlet-classxwordbot.XWordBotServlet/servlet-class
/servlet
servlet-mapping
servlet-nameXWordBot/servlet-name
url-pattern/_wave/*/url-pattern
/servlet-mapping

 so what is wrong?

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




-- 
ausencia de evidencia  ≠  evidencia de ausencia
http://culturainteractiva.blogspot.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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Check capability API for write-access?

2010-07-15 Thread Ikai L (Google)
I'd appreciate if members of this group didn't bump topics - it creates
noise, and we do make an effort to respond to topics, even older ones.

There's capabilities API, unfortunately, this is Python only for now.

http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app-engine-availability-during-read-only-periods

http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app-engine-availability-during-read-only-periods
On Wed, Jul 14, 2010 at 9:48 PM, coltsith conla...@gmail.com wrote:

 bump bump pump it up!

 On Jul 8, 6:01 am, coltsith conla...@gmail.com wrote:
  Is there a way to do this? I've like to be able to check if the data
  store is read only before I start all the work, rather than catch the
  CapabilityAPI exception.
 
  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 at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
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: Check capability API for write-access?

2010-07-15 Thread Don Schwarz
This will be supported in Java in the next release.

On Thu, Jul 15, 2010 at 6:10 PM, Ikai L (Google) ika...@google.com wrote:

 I'd appreciate if members of this group didn't bump topics - it creates
 noise, and we do make an effort to respond to topics, even older ones.

 There's capabilities API, unfortunately, this is Python only for now.


 http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app-engine-availability-during-read-only-periods


 http://www.slideshare.net/jasonacooper/strategies-for-maintaining-app-engine-availability-during-read-only-periods
 On Wed, Jul 14, 2010 at 9:48 PM, coltsith conla...@gmail.com wrote:

 bump bump pump it up!

 On Jul 8, 6:01 am, coltsith conla...@gmail.com wrote:
  Is there a way to do this? I've like to be able to check if the data
  store is read only before I start all the work, rather than catch the
  CapabilityAPI exception.
 
  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 at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 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.



[appengine-java] Re: Eclipse Plugin and Proxy Server

2010-07-15 Thread senderj
In Eclipse, goto WindowPerferenceGeneralNetwork Connection, set up
the proxy host name and port there.

But for Netbeans, although I set up similarly, I still have connection
timeout when I deploy. I don't know if the proxy setup is incorrect or
the google credential is incorrect. So I need help too.

On Jul 15, 2:40 am, ogbigpo...@verizon.net ogbigpo...@verizon.net
wrote:
 I can't deploy my application from work because we are behind a proxy
 server. How do I configure the plugin to use the proxy server ?

-- 
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] Dance Dance Robot error / Channel API

2010-07-15 Thread Daniel Guermeur
Hello there,

I am building a GWT+ GAE app based on Dance Dance Robot app, the demo
Google IO demo app showcased at Google IO.

I am using the Channel API (Java AppEngine 1.3.5) . I am almost there
but there is one hick up on the GWT client side (Java):

When running the app I get an error:
==
- Uncaught exception escaped.
com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is
undefined.
==

This comes from the ChannelFactory.java on the client side. Here it
is:

public class ChannelFactory {
public static final native Channel createChannel(String
channelId) /*-{
  return new $wnd.goog.appengine.Channel(channelId);
}-*/;
}

Again this is straight from the Dance Dance Robot demo app.

I am pretty sure it is a stupid mistake on my part but can't find it.

Any suggestion would be greatly appreciated.


Daniel

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