[appengine-java] Re: The index for this query is not ready to serve

2010-06-07 Thread Manjoor
The problem has be solved. I need to wait for 4 hours.

Here is the story

There were about 300 test records in the table.
We deleted those records and deployed new version.
In console pannle it was displaying total 2 indexes.
1 was completed instantly but 1 was in queue.

I was getting error because the index was not build instantly.
It is strange it takes 4 hours to build.



On Jun 5, 8:08 am, John Patterson jdpatter...@gmail.com wrote:
 This would be one of the most explicit error messages I have ever  
 seen.  Are you saying that the admin page said the index is not  
 building?

 On 5 Jun 2010, at 21:28, Manjoor wrote:



  Just uploaded an app and got the error

  Uncaught exception from servlet
  com.google.appengine.api.datastore.DatastoreNeedIndexException: The
  index for this query is not ready to serve. See the Datastore Indexes
  page in the Admin Console..      datastore-index kind=UserMaster
  ancestor=false source=manual
         property name=__key__ direction=desc/
     /datastore-index

  any idea?

  --
  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
  .- 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: The index for this query is not ready to serve

2010-06-07 Thread Manjoor


The problem has been solved. I need to wait for 4 hours.

Here is the story


There were about 300 test records in the table.
We deleted those records and deployed new version.
In console pannle it was displaying total 2 indexes.
1 was completed instantly but 1 was in queue.


I was getting error because the index was not build instantly.
It is strange it takes 4 hours to build.
On Jun 5, 8:08 am, John Patterson jdpatter...@gmail.com wrote:
 This would be one of the most explicit error messages I have ever  
 seen.  Are you saying that the admin page said the index is not  
 building?

 On 5 Jun 2010, at 21:28, Manjoor wrote:



  Just uploaded an app and got the error

  Uncaught exception from servlet
  com.google.appengine.api.datastore.DatastoreNeedIndexException: The
  index for this query is not ready to serve. See the Datastore Indexes
  page in the Admin Console..      datastore-index kind=UserMaster
  ancestor=false source=manual
         property name=__key__ direction=desc/
     /datastore-index

  any idea?

  --
  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
  .- 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] application search!

2010-06-07 Thread Muhammad Ijaz Khan
Hi,
Is the applications during development is searchable by other users?
like, can someone come game1.appspot.com although it isnt advertised yet?
Please elighten.
regards,
Ijaz

-- 
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] How to stop development server from command line?

2010-06-07 Thread shekhar
Hi,

I am not able to stop development server. I am starting it from
command prompt using ANT script. I have created ANT script (build.xml)
according to tutorial given by Google itself.

 My development App server starts successfully and I am able to
test my app also. But when I press Ctrl+C, only ANT script stops and
development server keeps running in background. I have to stop it
manually by killing the process using Windows  Task Manager.

Does anyone knows how to stop server through ANT script?

-- 
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 use the google's Key class

2010-06-07 Thread Konstantin Solomatov
I have a simple data class with the google's Key as a primary key.
When I try to get an object by Key from a persistent manager, I get an
exception. However if I wrap the key in
ObjectIdentity(ClassName.class, key), everything works fine. Is it
intended to be so or did I misconfigure something?

Konstantin

-- 
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: GAE and Google Apps

2010-06-07 Thread i...@ontologycentral.com
Hi,

On Jun 7, 1:51 am, i...@ontologycentral.com
i...@ontologycentral.com wrote:
 However, I get a:

 This webpage is not available.

 The webpage 
 athttps://appengine.google.com/_ah/login?continue=https://appengine.goo..

 when I try to accept the admin invite.

ok, hitting reload a couple of times helped.  The joys of Google's
account magic...

Cheers,
Andreas.

-- 
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: Performance issue for GAE auto-restart

2010-06-07 Thread Jake
Hey,

The logs show what is being GET for any message.  When loading some
pages, I noticed that, beyond the initial delay of the page, I saw an
8s delay on one of the javascript files that was referenced in the
code.  When I checked the GAE logs, I saw a startup request for the
initial GET for the HTML and then one immediately following GET for
the javascript file.  I suppose it is possible that this was a new
instance spawning (instead of a restart), but I find that unlikely
since I was the only user of my application.  Or, if it is the case
that GAE needs to spawn multiple JVMs to support one full page
request, I think that is a problem :)

Anyways, end result is that from a period of inactivity with no
instances running, I went to my homepage once and saw two loading
requests in the logs right after one another for that single page
load.  This has happened more than once.  Granted, it's now been a
couple of weeks since I last tested this behavior, but I haven't heard
any feedback on my issue to suggest that it has changed.

Jake

On Jun 5, 8:45 pm, Thomas mylee...@gmail.com wrote:
 Hi Jake:

     I am curious about how do you know there were 2 startup during one
 request? Did you submit an issue about the phenomenon?

 On 6月6日, 上午2時34分, Jake jbrooko...@cast.org wrote:

  Hey Thomas,

  I get it all the time - to the point where all of my demonstration
  applications are using the development server hosted on a non-GAE
  machine :)  Anyways, Ikai is (was) aware of the issue from awhile
  back, but I'm not sure it's taking priority.

  Jake

-- 
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: Performance issue for GAE auto-restart

2010-06-07 Thread Jake
Hey,

Here's a concrete example.  One page load, 3 loading requests: one for
the library page, another for a CSS file for that page, and a third
for an image on that page.  The end result, after a lot of
optimization, is 24 seconds from initial page arrival to full
display.  And, it's likely that by the time the page has displayed,
the JVM instance has shut down and the next user interaction will
cause another loading request.

05-27 08:59AM 16.068 /resources/indira/img/buttons/share_o.png 200
4665ms 4160cpu_ms 1kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5;
en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe)
05-27 08:59AM 20.707
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

05-27 08:59AM 05.109 /resources/org.apache.wicket.Application/css/
tht.css 200 4014ms 3946cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac
OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe)
05-27 08:59AM 09.100
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

05-27 08:58AM 56.380 /library;jsessionid=fU8dpFQMEe1Ec3BqNEY2vQ 200
8394ms 8142cpu_ms 170api_cpu_ms 3kb Mozilla/5.0 (Macintosh; U; Intel
Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/
3.6.3,gzip(gfe)
05-27 08:59AM 04.773
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

Thanks!

Jake

On Jun 7, 9:40 am, Jake jbrooko...@cast.org wrote:
 Hey,

 The logs show what is being GET for any message.  When loading some
 pages, I noticed that, beyond the initial delay of the page, I saw an
 8s delay on one of the javascript files that was referenced in the
 code.  When I checked the GAE logs, I saw a startup request for the
 initial GET for the HTML and then one immediately following GET for
 the javascript file.  I suppose it is possible that this was a new
 instance spawning (instead of a restart), but I find that unlikely
 since I was the only user of my application.  Or, if it is the case
 that GAE needs to spawn multiple JVMs to support one full page
 request, I think that is a problem :)

 Anyways, end result is that from a period of inactivity with no
 instances running, I went to my homepage once and saw two loading
 requests in the logs right after one another for that single page
 load.  This has happened more than once.  Granted, it's now been a
 couple of weeks since I last tested this behavior, but I haven't heard
 any feedback on my issue to suggest that it has changed.

 Jake

 On Jun 5, 8:45 pm, Thomas mylee...@gmail.com wrote:

  Hi Jake:

      I am curious about how do you know there were 2 startup during one
  request? Did you submit an issue about the phenomenon?

  On 6月6日, 上午2時34分, Jake jbrooko...@cast.org wrote:

   Hey Thomas,

   I get it all the time - to the point where all of my demonstration
   applications are using the development server hosted on a non-GAE
   machine :)  Anyways, Ikai is (was) aware of the issue from awhile
   back, but I'm not sure it's taking priority.

   Jake

-- 
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: Performance issue for GAE auto-restart

2010-06-07 Thread Thomas
Hi Jake:

   By default, all css/image files should be treated as static files.
It seems that your css/image files were not served as static files. I
think you should check your static files setting. Please refer to
http://code.google.com/intl/en/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files

   Hope it helps!

-- 
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: Performance issue for GAE auto-restart

2010-06-07 Thread Tin
Hi Jack:

I suggest that maybe you can write a ServletContextListener to monitor
the web instance reloading issue, for our testing we just put a info
logging in the contextInitialized(..) method:

public void contextInitialized(ServletContextEvent evt) {
  log.info(Web context inited.);
}

And modify the DEFAULT logging level to INFO in the logging.properties
file. If the web instance was reloaded, we could trace this in the
logging messages.

-- 
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: Performance issue for GAE auto-restart

2010-06-07 Thread Jake
Hi all,

@Thomas:  I will look into that, thank you.  The way we generate our
pages in this framework, however, involves some interesting dynamic
generation of image URLs that are mounted within the application
itself.  It ends up being a bit more complicated than just displaying
one string or another for the src attribute.  Whether this is a good
practice on GAE is certainly up for debate, but I presume this
wouldn't help the frequent restart issue, correct?  It just means that
fewer files would be able to trigger a restart?

@Tin:  I'm not sure I understand what I will learn from this.  From
what I understand, contextDestroyed() is never called so all I would
see is an additional log statement near GAE's loading request logging
line?  I've never used a ServletContextListener, so perhaps it has
other features that I'm not aware of?

Thanks!

Jake

On Jun 7, 11:41 am, Tin tin.c...@gmail.com wrote:
 Hi Jack:

 I suggest that maybe you can write a ServletContextListener to monitor
 the web instance reloading issue, for our testing we just put a info
 logging in the contextInitialized(..) method:

 public void contextInitialized(ServletContextEvent evt) {
   log.info(Web context inited.);

 }

 And modify the DEFAULT logging level to INFO in the logging.properties
 file. If the web instance was reloaded, we could trace this in the
 logging messages.

-- 
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: JSONMarshaller on GAE

2010-06-07 Thread Marc Guillemot

Hi François,

does the problem occur in unit tests too? Do you custom types?

JSONMarshaller has some problems with classloaders and custom types:
http://code.google.com/p/jsonmarshaller/issues/detail?id=25

Cheers,
Marc.
--
Blog: http://mguillem.wordpress.com

François wrote:

This is happening locally. I'm using eclipse galileo.

I tested all the tips i found on this page
http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f
but i'm still stuck.

Thank you for your time.

On 2 juin, 00:42, Ikai L (Google) ika...@google.com wrote:

Is this exception happening locally or in production? Are you using an IDE?
Which one?



On Tue, Jun 1, 2010 at 7:01 AM, François francois.poi...@gmail.com wrote:

I'm trying to add the jar of jsonmarshaller to my application but i'm
getting the classdefnotfound exception even though my jar is inside
the web-inf/lib folder and has been added to the build path.
here is the jar i'm adding
http://code.google.com/p/jsonmarshaller/downloads/detail?name=json-0
--
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.



[appengine-java] Custom settings aplication

2010-06-07 Thread Maxi Melvin
Hi,

I'm starting to develop an application in AppEngine with Java. I have
a question that has not been resolved by searching the Web.
My application needs a table or file to save settings as general for
the entire application. Try creating a class Administration which
was persistent, but could not, because JDO and JPA is meant to save
entities, not tables key-value. What would be the right way to fix
this?

Sorry for my english, it's very bad, i know and thanks!

Maxi

-- 
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] Class guestbook.Greeting does not seem to have been enhanced

2010-06-07 Thread naveen shan
Hello all,

I am working on persistence in Google app engine. When I tried doing
the same with the simple guestbook app provided I land into this
error..

---
Class guestbook.Greeting does not seem to have been enhanced
You may want to rerun the enhancer and check for errors in the
output. has no table in the database, but the operation requires it.
Please check the specification of the MetaData for this class.
-

I am sure many of you here who had worked on this would have found a
way out of this, It will be great if one of you can guide me out of
this..

Regrads
Naveen

-- 
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.lang.NoClassDefFoundError: org/apache/tools/ant/ExitException

2010-06-07 Thread Ray Valley
java.lang.NoClassDefFoundError: org/apache/tools/ant/ExitException
can anyone tell why this happen?

-- 
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] Sending XMPP message with HTML anchor tag

2010-06-07 Thread Greg
Hello.  I can send XMPP messages to the Google Talk client using the
API provided with GAE.  However, I'd like to send a link that people
can click on, as well as do some simple formatting.  These links
contain a lot of request parameters, so they are long and messy-
looking.  I'd prefer to hide that detail in an HTML anchor tag.  How
do I use the API to format a message to accomplish this?  Does the API
support generating messages with embedded XHTML as described in
http://xmpp.org/extensions/xep-0071.html  ?  Does the Google Talk
client recognize XHTML?  When building the Message, I've tried various
combinations of html and body tags in an attempt to make the resulting
Message look something like Example 1 in the document above.  If I
don't build the Message with .asXml(true) , then all the html tag
information gets printed in the Google Talk client as text.  If I try
to use .asXml(true), then that section of the message body is ignored
in the Google Talk client.  For example, I try generating message
text as follows:

StringBuilder buffer = new StringBuilder(); // Will hold message
text
buffer.append(html xmlns=\http://jabber.org/protocol/xhtml-im
\);
buffer.append(body xmlns=\http://www.w3.org/1999/xhtml\;);
// ...   some XHTML is generated here, including a/a
tags ...
buffer.append(/body);
buffer.append(/html);

The toString() result of this buffer is then fed in as messageText
in :

Message msg = new MessageBuilder()
.withRecipientJids(jid)
.withBody(messageText)
 //   .asXml(true)
.build();

(The code just follows the examples in the documentation.  Note
asXml(true) was commented out).

 The result in the Google Talk client doesn't recognize the XHTML, so
it looks too messy.









-- 
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] Custom settings aplication

2010-06-07 Thread Maxi Fernández
Hi,

I'm starting to develop an application in AppEngine with Java. I have a
question that has not been resolved by searching the Web.
My application needs a table or file to save settings as general for the
entire application. Try creating a class Administration which was
persistent, but could not, because JDO and JPA is meant to save entities,
not tables key-value. What would be the right way to fix this?

Sorry for my english, it's very bad, i know and thanks!

Maxi

-- 
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] Frontend Auth Redirect not working.

2010-06-07 Thread NPickle
I started with the the basic GWT/GAE project in Eclipse.  This ends up
with just the basic enter your name and then a dialog pop up.

Now if I try and put in the front end authentication in the deployment
xml file, the performance is this.  The page will load but none of the
dynamic code will be presented.  The title is there and little else
but it does not redirect to a login page.

If you manually open a login page, login and then refresh the app it
works just fine.

Here is my web.xml:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classcom.example.empGwtGae.server.GreetingServiceImpl/
servlet-class
  /servlet
  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/emptygwtgae/greet/url-pattern
  /servlet-mapping
  !-- Default page to serve --
  welcome-file-list
welcome-fileEmptyGwtGae.html/welcome-file
  /welcome-file-list
  security-constraint
web-resource-collection
  web-resource-nameHome/web-resource-name
  url-pattern/emptygwtgae/*/url-pattern
/web-resource-collection
auth-constraint
  role-name*/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
/web-app

Likewise if you try and access the page with http instead of https it
only shows the html of the page and none of the dynamic members.

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



Re: [appengine-java] Need help on java.security.AccessControlException: access denied

2010-06-07 Thread Ikai L (Google)
Can you try placing the file into WEB-INF and setting filename to
WEB-INF/ssma_std.txt?

On Sat, Jun 5, 2010 at 4:42 PM, Nick lgfr...@gmail.com wrote:

 Hi,

 I'm new to GoogleAppEngine,
 please help me on resolving following erro...


 1. I would like to  read a ssma_stud.txt file as an input file.
This file resides in a path  web/ssma_stud.txt


 2. As well, updated appengine-web.xml with following...
system-properties
  property name=com.google.gdata.DisableCookieHandler
 value=true/
  /system-properties

 3.  My objective is to read a text file and generate a HashMap which I
 can use into my servlet


   Code:
String fileName = /ssma_stud.txt;

ArrayList arrayListLineReadData = new
 ArrayList();
try
{
BufferedReader inBuffReader = new
 BufferedReader(new
 FileReader(fileName));
if (!inBuffReader.ready())
throw new IOException();

 4. on this line   BufferedReader inBuffReader = new
 BufferedReader(new FileReader(fileName));
I get following error..:

 java.security.AccessControlException: access denied
 (java.io.FilePermission \ssma_stud.txt read)
at

 java.security.AccessControlContext.checkPermission(AccessControlContext.java:
 323)
at
 java.security.AccessController.checkPermission(AccessController.java:
 546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)
at com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.FileInputStream.init(FileInputStream.java:100)
at java.io.FileInputStream.init(FileInputStream.java:66)
at java.io.FileReader.init(FileReader.java:41)
at

 com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.getArrayListLineReadData(C_Stud_Comb_Axial_Bend_Servlet.java:
 411)
at

 com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.doPost(C_Stud_Comb_Axial_Bend_Servlet.java:
 114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
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)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:349)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)


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

[appengine-java] App Engine datastore does not support operator max.

2010-06-07 Thread Iván Navarro
Hi,
I'm trying to get a max value using jdoql. My query is:

Query query = pm.newQuery(select max(timeStamp) from  +
DBPrettyThing.class.getName());

But I'm getting this trace insted:

Service method 'public abstract
com.polillaSoft.prettyThingsTracker.client.PrettyThing
com.polillaSoft.prettyThingsTracker.client.UserGService.getLastPrettyThing(long)'
threw an unexpected exception:
org.datanucleus.store.appengine.query.DatastoreQuery
$UnsupportedDatastoreOperatorException: Problem with query SELECT
max(timeStamp) FROM
com.polillaSoft.prettyThingsTracker.server.DBPrettyThing: App Engine
datastore does not support operator max.

Is the app engine jdo not supporting max aggregate?

Thanks,

Iván

-- 
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] Datastore design

2010-06-07 Thread Marcel Overdijk
I've the following scenario.

a) Registered users can post recipes (we anticipate on 5000 different
recipes)
b) Each recipe is part of 1 or more categories (we anticipate 100
different categories)
c) Registered users can vote for recipes
d) Registered users must select the country they live in

1) The site will display a list of recipes ordered on popularity.
Including paging, so users would be able to browse all recipes
2) The same as 1 but based on a chosen category
3) Popular recipes by users in a specific country What is the most
popular recipe in a given country. Including paging, so users would
be able to browse all recipes
4) Same a 3 but based on chosen category

I wonder how I can design this scnario using the Google datastore.

In a relational database I would use some group by functions.


Cheers,
Marcel

-- 
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: Datastore design

2010-06-07 Thread Marcel Overdijk
Thanks, do you know if there is a demo site using thoughtsite?

On Jun 7, 9:06 pm, Ikai L (Google) ika...@google.com wrote:
 Thoughtsite does something similar. Have you taken a look yet?

 http://google-opensource.blogspot.com/2010/05/open-sourcing-thoughtsi...

 On Mon, Jun 7, 2010 at 11:48 AM, Marcel Overdijk
 marceloverd...@gmail.comwrote:





  I've the following scenario.

  a) Registered users can post recipes (we anticipate on 5000 different
  recipes)
  b) Each recipe is part of 1 or more categories (we anticipate 100
  different categories)
  c) Registered users can vote for recipes
  d) Registered users must select the country they live in

  1) The site will display a list of recipes ordered on popularity.
  Including paging, so users would be able to browse all recipes
  2) The same as 1 but based on a chosen category
  3) Popular recipes by users in a specific country What is the most
  popular recipe in a given country. Including paging, so users would
  be able to browse all recipes
  4) Same a 3 but based on chosen category

  I wonder how I can design this scnario using the Google datastore.

  In a relational database I would use some group by functions.

  Cheers,
  Marcel

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



[appengine-java] Re: many to many relation with additional attribut

2010-06-07 Thread Anna
Thank you very much Ian! I've implemented your solution but now I
struggle with adding a Link to the database: A record of entity 1 and
one of entity 2 are stored in the database. How can I get them out of
the database to put their keys into a new link? I don't know the keys
of both entities because I never use them to identify the objects (I
use Long values instead).

Regards, Anna

-- 
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] Need help on java.security.AccessControlException: access denied

2010-06-07 Thread 时强
I encountered the same problem. I have a configuration file and It contained
same information for my app. If the file is located in /war/, everything is
OK. However, some other paths , such as /war/config/, are not available for
reading. Is there anybody who can explain this issue for me ? I will be
appropriate.

On Tue, Jun 8, 2010 at 2:38 AM, Ikai L (Google) ika...@google.com wrote:

 Can you try placing the file into WEB-INF and setting filename to
 WEB-INF/ssma_std.txt?

 On Sat, Jun 5, 2010 at 4:42 PM, Nick lgfr...@gmail.com wrote:

 Hi,

 I'm new to GoogleAppEngine,
 please help me on resolving following erro...


 1. I would like to  read a ssma_stud.txt file as an input file.
This file resides in a path  web/ssma_stud.txt


 2. As well, updated appengine-web.xml with following...
system-properties
  property name=com.google.gdata.DisableCookieHandler
 value=true/
  /system-properties

 3.  My objective is to read a text file and generate a HashMap which I
 can use into my servlet


   Code:
String fileName = /ssma_stud.txt;

ArrayList arrayListLineReadData = new
 ArrayList();
try
{
BufferedReader inBuffReader = new
 BufferedReader(new
 FileReader(fileName));
if (!inBuffReader.ready())
throw new IOException();

 4. on this line   BufferedReader inBuffReader = new
 BufferedReader(new FileReader(fileName));
I get following error..:

 java.security.AccessControlException: access denied
 (java.io.FilePermission \ssma_stud.txt read)
at

 java.security.AccessControlContext.checkPermission(AccessControlContext.java:
 323)
at
 java.security.AccessController.checkPermission(AccessController.java:
 546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)
at com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.FileInputStream.init(FileInputStream.java:100)
at java.io.FileInputStream.init(FileInputStream.java:66)
at java.io.FileReader.init(FileReader.java:41)
at

 com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.getArrayListLineReadData(C_Stud_Comb_Axial_Bend_Servlet.java:
 411)
at

 com.lgframe.design.C_Stud_Comb_Axial_Bend_Servlet.doPost(C_Stud_Comb_Axial_Bend_Servlet.java:
 114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
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)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:349)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 

[appengine-java] Datastore stats

2010-06-07 Thread keyurva
I am querying the __Stat_Kind__ kind. It does not return me entities
about kinds that currently exist in the datastore but it includes
entities about kinds that I had deleted more than a week ago.

I am not so much concerned about it returning me the non-existent
kinds - the doc does mention this scenario after all.

But I am concerned that it does not return me info about my current
kinds. Is this a known issue or am I doing something wrong?

---

Also, on the dev server neither __Stat_Kind__ nor __Stat_Total__
return any entities. Which means I need to deploy my app to appspot
before I can test this behavior. It would be nice if the dev server
did return some basic info.

Thanks,
Keyur

-- 
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: Class guestbook.Greeting does not seem to have been enhanced

2010-06-07 Thread Greg
Annotation problems will definitely do that.  Other times, I've found
that I need to
do a Project - Clean from the Eclipse menu.  I think that in some
cases, the enhancement
process just doesn't work quite right, and clean rebuilds it and the
problem is solved.  (This seemed to happen more often when
accidentally editing and saving while a session was running in the
development environment, but I never really investigated it.  Not
surprisingly, it happens mainly when adding or removing persisted
properties, rather than when changing other code.)
   - Greg

On Jun 7, 2:01 pm, Ikai L (Google) ika...@google.com wrote:
 Are you using Eclipse? Can you post your Greeting class? This type of error
 is likely a result of not annotating your Greeting class with
 @PersistenceCapable correctly.

 On Mon, Jun 7, 2010 at 3:54 AM, naveen shan naveenshang...@gmail.comwrote:





  Hello all,

  I am working on persistence in Google app engine. When I tried doing
  the same with the simple guestbook app provided I land into this
  error..

  ---
  Class guestbook.Greeting does not seem to have been enhanced
  You may want to rerun the enhancer and check for errors in the
  output. has no table in the database, but the operation requires it.
  Please check the specification of the MetaData for this class.
  -

  I am sure many of you here who had worked on this would have found a
  way out of this, It will be great if one of you can guide me out of
  this..

  Regrads
  Naveen

  --
  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 Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine- 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] Version not ready error (but it's ready)

2010-06-07 Thread Tristan
I keep on getting this during deployment:

Deploying new version.
Will check again in 1 seconds
Will check again in 2 seconds
Will check again in 4 seconds
Will check again in 8 seconds
Will check again in 16 seconds
Will check again in 32 seconds
Will check again in 64 seconds
Will check again in 128 seconds
Rolling back the update.
java.lang.RuntimeException: Version not ready.

This happens almost every time I deploy. The thing is, the application
code deploys just fine, but this error prevents any updates to indexes
or queues.

In summary, the new version gets deployed to the app engine just fine.
I can set it as default version and it works. What breaks is that any
queues or indexes are not updated because they never get uploaded due
to the above error.

Please 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] SDK 1.3.4 Development Mode showing import error blob/user

2010-06-07 Thread Perry Dykes
Use Eclipse (Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-
TiEn9hNYgDWg1XN8ulH_JvCNGB), develop within it, have 1.3.4 app engine
sdk, using JPA.

I have recently upgraded to app engine 1.3.4. Since upgrade, the
Validating newly complied units in Development Mode window in
Eclipse gives me new errors. That window is reporting errors (normal
eclipse view does not show errors).

My com.google.appengine.api.datastore.Blob is not found according to
the error, and all Blob References fails. Also, I created an EMF like
static class, and also the javax.persistence.EntityManagerFactory, and
they also can't be found now (this application actually worked a while
ago).

I have checked the project build path, and libraries in the GWT SDK
(using GWT), App Engine and JRE 6 jar are included. I tried to
explicitly include the jpa and geronimo jars where these exist, but no
luck with that approach.

Anybody hit something like this?

Perry

-- 
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: Uploading to blobstore gives OutOfMemoryError

2010-06-07 Thread Jean Hsu
Anyone NOT getting an outOfMemory error?  I tried to deploy to
appengine, and don't get an outofmemory error, but instead eventually
get a methodNotFound.  Anyone have a small working example?

Jean

On Jun 5, 5:22 pm, Luai kassar luai.kas...@gmail.com wrote:
 I am getting OutOfMemoryError too for any file i try to upload .
 can someone explain what the problem is please?

 Thanks
 Luai.

 On Jun 3, 12:14 am,JeanHsu jeanhs...@gmail.com wrote:

  Hi all,

  I am trying to set up a basic file upload to blobstore,  but I get
  this OutOfMemoryError:

  WARNING: Error for /_ah/upload/
  aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
  java.lang.OutOfMemoryError: Java heap space
          at java.util.Arrays.copyOf(Arrays.java:2786)
          at 
  java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
          at
  javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
  316)
          at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
          at 
  javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
          at
  com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java:
  135)
          at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
  $000(UploadBlobServlet.java:72)
          at com.google.appengine.api.blobstore.dev.UploadBlobServlet
  $1.run(UploadBlobServlet.java:100)
          at java.security.AccessController.doPrivileged(Native Method)
          at
  com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java:
  98)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
          at 
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  511);

  I used the Memory Analyzer on Eclipse and it said that the memory leak
  suspect is QueuedThreadPool.  I found this information about a memory
  leak bug:

 http://jira.codehaus.org/browse/JETTY-1188

  How can I figure out what release of jetty is running locally?  It
  looks like they fixed this in version 6.1.23:

 http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...

  Has anyone else had this issue?

  Thanks,
 Jean

-- 
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: Uploading to blobstore gives OutOfMemoryError

2010-06-07 Thread Jean Hsu
Here's what I get from live http headers when I deploy and try to
upload.  It tries to do a get on the uploadUrl, for test.nocache.js,
and also later for css.  I get a 405 Method Not Allowed for these.
Any ideas why it's trying to do a get??


POST /_ah/upload/
AMmfu6ZRpZf67ospmbfJKHd0AKnI9LFkWSDeDuGECy_md0wTVCgPaA9nVuqSg3MUlLJM26dP9I421TDZriqztBSoT7vDEq_Eeel0lhoWwoD1JgFj2pA7bSI/
ALBNUaYATA2SyHej3Q3PwRuq5WJuE0QxgQPHYGMk/ HTTP/1.1

...


HTTP/1.1 200 OK

Server: Upload Server Built on May 19 2010 13:39:25 (1274301565)

Etag: N3jo2g

Date: Tue, 08 Jun 2010 00:36:01 GMT

Expires: Fri, 01 Jan 1990 00:00:00 GMT

Cache-Control: no-cache, no-store, must-revalidate

X-AppEngine-Estimated-CPM-US-Dollars: $0.52

X-AppEngine-Resource-Usage: ms=2 cpu_ms=0 api_cpu_ms=0

Content-Type: text/html

Pragma: no-cache

Content-Length: 2590

--

http://app-name.appspot.com/_ah/upload/AMmfu6ZRpZf67ospmbfJKHd0AKnI9LFkWSDeDuGECy_md0wTVCgPaA9nVuqSg3MUlLJM26dP9I421TDZriqztBSoT7vDEq_Eeel0lhoWwoD1JgFj2pA7bSI/ALBNUaYATA2SyHej3Q3PwRuq5WJuE0QxgQPHYGMk/test/test.nocache.js



GET /_ah/upload/
AMmfu6ZRpZf67ospmbfJKHd0AKnI9LFkWSDeDuGECy_md0wTVCgPaA9nVuqSg3MUlLJM26dP9I421TDZriqztBSoT7vDEq_Eeel0lhoWwoD1JgFj2pA7bSI/
ALBNUaYATA2SyHej3Q3PwRuq5WJuE0QxgQPHYGMk/test/test.nocache.js HTTP/
1.1

Host: app-name.appspot.com

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:
1.9.2.3) Gecko/20100401 Firefox/3.6.3

Accept: */*

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 115

Connection: keep-alive

Referer:
http://app-name.appspot.com/_ah/upload/AMmfu6ZRpZf67ospmbfJKHd0AKnI9LFkWSDeDuGECy_md0wTVCgPaA9nVuqSg3MUlLJM26dP9I421TDZriqztBSoT7vDEq_Eeel0lhoWwoD1JgFj2pA7bSI/ALBNUaYATA2SyHej3Q3PwRuq5WJuE0QxgQPHYGMk/



HTTP/1.1 405 Method Not Allowed

Server: Upload Server Built on May 19 2010 13:39:25 (1274301565)

Allow: POST

Date: Tue, 08 Jun 2010 00:36:01 GMT

Pragma: no-cache

Expires: Fri, 01 Jan 1990 00:00:00 GMT

Cache-Control: no-cache, no-store, must-revalidate

Content-Length: 0

Content-Type: text/html



On Jun 7, 5:10 pm, Jean Hsu jeanhs...@gmail.com wrote:
 Anyone NOT getting an outOfMemory error?  I tried to deploy to
 appengine, and don't get an outofmemory error, but instead eventually
 get a methodNotFound.  Anyone have a small working example?

 Jean

 On Jun 5, 5:22 pm, Luai kassar luai.kas...@gmail.com wrote:

  I am getting OutOfMemoryError too for any file i try to upload .
  can someone explain what the problem is please?

  Thanks
  Luai.

  On Jun 3, 12:14 am,JeanHsu jeanhs...@gmail.com wrote:

   Hi all,

   I am trying to set up a basic file upload to blobstore,  but I get
   this OutOfMemoryError:

   WARNING: Error for /_ah/upload/
   aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
   java.lang.OutOfMemoryError: Java heap space
           at java.util.Arrays.copyOf(Arrays.java:2786)
           at 
   java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
           at
   javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
   316)
           at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
           at 
   javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
           at
   com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java:
   135)
           at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
   $000(UploadBlobServlet.java:72)
           at com.google.appengine.api.blobstore.dev.UploadBlobServlet
   $1.run(UploadBlobServlet.java:100)
           at java.security.AccessController.doPrivileged(Native Method)
           at
   com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java:
   98)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
           at 
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   511);

   I used the Memory Analyzer on Eclipse and it said that the memory leak
   suspect is QueuedThreadPool.  I found this information about a memory
   leak bug:

  http://jira.codehaus.org/browse/JETTY-1188

   How can I figure out what release of jetty is running locally?  It
   looks like they fixed this in version 6.1.23:

  http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...

   Has anyone else had this issue?

   Thanks,
  Jean

-- 
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] On cron job - Request was aborted after waiting too long to attempt to service your request

2010-06-07 Thread Didier Durand
Hi,

On a cron job scheduled each minute, I get the following message 20-30
times a day on a very regular basis:

Request was aborted after waiting too long to attempt to service your
request. This may happen sporadically when the App Engine serving
cluster is under unexpectedly high or uneven load. If you see this
message frequently, please contact the App Engine team.

As it says, contact the App Engine team, it is what I do here.

My cron job is not executed in that case

N.B: for today, I had it 20+ times around 1 PM (time of server)

Is there anything that can be done to make sure that my cron job gets
really executed every minute ?

regards
didier

-- 
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: SDK 1.3.4 Development Mode showing import error blob/user

2010-06-07 Thread Perry Dykes
Well, for those like me who hit this, just a few things I have
learned:

a) Writing an application with GWT and App Engine support is trickier
than app engine by itself with some html front end (which I had
working). You have to really keep track of the new folders created.
b) I was hoping I could mix JPA objects between GWT and App Engine,
and put my JPA enabled files into shared folder. This was a key
problem took me a bit to understand, refering to the gwt xml file
which looks there for dependencies by default.
c) When one does this, and does understand that GWT expects things in
shared to be consumed by GWT, more care is required. GWT could not
resolve the libraries as it appears to use a different build library
path than the app engine server code.
d) I have (for now) recreated my GWT and App Engine project, and put
my JPA related files in the server path (I know, Duh, well, ah well, I
was in a hurry, you know the speel...)
e) Whew, i'm working again, but with brain dead GWT UI... work on that
tomorrow morning.

The project now runs the the default GWT support, and my JPA objects
are ready to be used in the project. I have to read a few more
articles on how to transfer objects between the app engine proper and
GWT (so far is seems complicated), and I was hoping to use my JPAs as
POJOs even in GWT, but well, that I'm not clear on yet. This should
help a searcher who hit my problem, and save several hours scratching
their head, looking at web pages, and messing with the eclipse build
path settings.

Perry

On Jun 7, 5:01 pm, Perry Dykes pdy...@gmail.com wrote:
 Use Eclipse (Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-
 TiEn9hNYgDWg1XN8ulH_JvCNGB), develop within it, have 1.3.4 app engine
 sdk, using JPA.

 I have recently upgraded to app engine 1.3.4. Since upgrade, the
 Validating newly complied units in Development Mode window in
 Eclipse gives me new errors. That window is reporting errors (normal
 eclipse view does not show errors).

 My com.google.appengine.api.datastore.Blob is not found according to
 the error, and all Blob References fails. Also, I created an EMF like
 static class, and also the javax.persistence.EntityManagerFactory, and
 they also can't be found now (this application actually worked a while
 ago).

 I have checked the project build path, and libraries in the GWT SDK
 (using GWT), App Engine and JRE 6 jar are included. I tried to
 explicitly include the jpa and geronimo jars where these exist, but no
 luck with that approach.

 Anybody hit something like this?

 Perry

-- 
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] indexes and Eclipse plugin

2010-06-07 Thread Philip Tucker
I'm getting some very confusing behavior regarding indexes in my app.
Maybe someone can help me figure out what's going on.

I have a persistent entity, GameDataV1. I'd pushed several versions of
my app to appspot with no issues until last week. Then, after a push,
all indexes for GameDataV1 were gone. I could still query it based on
the index in a dependent object, but all queries on fields in
GameDataV1 failed. I tried pushing a new version to no avail.

This evening I tried inspecting the datastore-indexes-auto.xml file
running locally out of eclipse. I deleted the DB and indexes to start
with a clean slate. In general, the first time I execute a query
requiring an index, I see that index show up in the XML file. But
periodically I'll run a query and the file will collapse to an empty
datastore-indexes element. Queries continue to execute without error,
but return 0 entries.



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