[appengine-java] "SAXParseException: Premature end of file" on dev server

2010-10-21 Thread Ian Marshall
Hello All, I am running my web application on the GAE/J 1.3.8 development server on my local machine. I have just got the following log entry whilst testing: 21-Oct-2010 09:13:06 com.google.apphosting.utils.jetty.JettyLogger warn WARNING: fa...@null line:1 col:1 : org.xml.sax.SAXParseExceptio

Re: [appengine-java] "SAXParseException: Premature end of file" on dev server

2010-10-21 Thread Cyrille Vincey
Same issue for the past 3 days. Only occuring on the dev server. I have tried for hours to solve it. No clue... Fortunately, no impact on the production environment. On 21/10/10 11:50, "Ian Marshall" wrote: >Hello All, > >I am running my web application on the GAE/J 1.3.8 development server >on

[appengine-java] CreateProcess error=87

2010-10-21 Thread Peter
Hi I have a strange problem. Eclipse cannot clean and build my Google App Engine project. It says: DataNucleus Enhancer has encountered a problem. Cannot run program "C:\Program Files\Java\jdk1.6.0_20\bin \javaw.exe" (in directory "location_of_my_project"): CreateProcess error=87, The parameter i

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread alesj
I think you're confusing entity *group* with actual entities stored in datastore, as I doubt you'll have thousands of related entities. --> http://code.google.com/appengine/docs/java/datastore/transactions.html#Using_Transactions see "Entity groups" On Oct 20, 7:39 pm, "nicanor.babula" wrote: >

[appengine-java] Re: Automatic logout via Google Login Service ?

2010-10-21 Thread l.denardo
Hello, I don't know if this can work for you... In our app we authorize users recording email addresses in datastore. WE use a custom admin page where we add user emails (or entire domains) to allow users to access our app. When a user logs in, we check if he's authorized and we serve the applicati

[appengine-java] Re: Automatic logout via Google Login Service ?

2010-10-21 Thread l.denardo
An article with a sum up from the GWT team: http://googlewebtoolkit.blogspot.com/2010/10/using-dynamic-host-page-for-gwt-apps.html The way we serve our GWT app (embedded in JSP) is very similar, only we have one more filter. On Oct 21, 12:33 pm, "l.denardo" wrote: > Hello, I don't know if this c

[appengine-java] since 1.3.8 extreme performance drop during spin up

2010-10-21 Thread Toby
Hi, I think it is since 1.3.8 but I am not certain. I can observe that my requests take much longer than before. I am not certain why. Appstats gives the values that seem to correspond to what was normal (about 6-9s incl. spin-up): Appstats says: real=8226ms cpu=0ms api=0ms overhead=188ms But in

[appengine-java] Re: Automatic logout via Google Login Service ?

2010-10-21 Thread l.denardo
An article with a sum up from the GWT team: http://googlewebtoolkit.blogspot.com/2010/10/using-dynamic-host-page-for-gwt-apps.html The way we serve our GWT app (embedded in JSP) is very similar, only we have one more filter. On Oct 21, 12:33 pm, "l.denardo" wrote: > Hello, I don't know if this c

[appengine-java] Re: AsyncDatastoreService - ready for use?

2010-10-21 Thread l.denardo
Looks like sometimes experimental APIs are published way before they're ready for production. Channel API was defined in 1.3.4, before it was even announced :-) Good sign for me, since it shows good planning from the team, and the will to anticipate issues well before release time. Regards Lorenzo

[appengine-java] Re: How to count datastore queries for JUnit test

2010-10-21 Thread Jonas Gehring
Thanks for your reply, but I didn't find a solution in the test sources. The keyword "count" is only used to count the result entries. Second, I can't use a mock datastoreService because the queries are made too deep in your classes with the entityManager. I cannot rewrite the complete sources fo

[appengine-java] Re: CreateProcess error=87

2010-10-21 Thread Didier Durand
Hi, it's a knwon problem: too many classes in your appl.They don't have to be all jdo-enhanced for this to happen. The way I personnally fix it: remove the template in the ORM definition in Eclipse and replace it with an individual definition of classes to be enhanced. bit tedious but the proble

[appengine-java] doPost with ID and email to save Blob (image)

2010-10-21 Thread erikzamith
Hello, I have an image that would save the user (email) and a idimagen. I use a form to send email and idimagen (Book). But do not persistence. I also want to know how to limit the types of images (jpg, png and gif only). This is my public class Upload extends HttpServlet { @Override public void

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread Ian Marshall
How about my comments below? http://www.google.com/url?url=http://groups.google.com/g/f907f736/t/f81ea99ea7c010af/d/9fac9b668ea24068%3Fq%3D%239fac9b668ea24068&ei=oDjATIKTGY_D_QaQ8cDyCA&sa=t&ct=res&cd=7&source=groups&usg=AFQjCNHfdZa1EiQX24dQ-dp94o0b7kBZ_w Do they help you? On Oct 20, 6:39 pm, "n

[appengine-java] Re: "SAXParseException: Premature end of file" on dev server

2010-10-21 Thread pman
i faced similar problem b4. traced and found caused by datastore-indexes.xml existed b4 datastore is created. remove it then okay. On Oct 21, 5:56 pm, Cyrille Vincey wrote: > Same issue for the past 3 days. > Only occuring on the dev server. > I have tried for hours to solve it. No clue... > Fo

[appengine-java] TaskQueue TransientFailureException

2010-10-21 Thread James
Finally got tired of seeing this in my logs so I've logged an issue - http://code.google.com/p/googleappengine/issues/detail?id=3927 If you've been a victim too, star this. Thanks, James -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java"

[appengine-java] Re: AsyncDatastoreService - ready for use?

2010-10-21 Thread James
Exciting! I suppose it's beyond hope that JDO might somehow work w/ this? On Oct 21, 6:39 am, "l.denardo" wrote: > Looks like sometimes experimental APIs are published way before > they're ready for production. > Channel API was defined in 1.3.4, before it was even announced :-) > Good sign for

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread nicanor.babula
Thank you all for your responses. @alesj No, I am not confusing entity "group" with the actual entities stored in the datastore. @Ian Marshall Actually no, because I already did that kind of analysis. I have to use transactions in order to maintain data consistency and therefore I have to define

[appengine-java] Logging permitted from a TaskQueue worker servlet

2010-10-21 Thread andrew
I am trying to debug an issue with a worker url (servlet) of a TaskQueue. I seem to be able to enqueue tasks to it fine, and it get's invoked. The logs show the invokation: 10-21 08:03AM 34.074 /inspections/processor 405 19ms 38cpu_ms 0kb AppEngine-Google; (+http://code.google.com/appengine) 0.1

[appengine-java] Re: Logging permitted from a TaskQueue worker servlet

2010-10-21 Thread andrew
Solved, and my (obvious) error The task worker was being invoked with the (default it seems) POST method, but I had only implemented GET. The Dashboard log showed the servlet being invoked with no error and no output, but in fact it was trying to do the POST with no post doPost() method imple

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread Didier Durand
Hi, 1 info that is important to reach the value for this max number (if it exists) is the size of the entities: the bigger they are, the faster you will occupy the bandwith between the BigTable server and the processing server. So, if you want to go fast, you have to spread entities among many s

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread MasterGaurav
Instead of saving it in DataStore, I would recommend using BlobStore. I do it something like this: - Retrieve all data uploaded using BlobstoreService::getUploadedBlobs - Do all the validation, as may be required (with other form data) - if !valid => BlobstoreService::delete(...) else =>

[appengine-java] Re: Automatic logout via Google Login Service ?

2010-10-21 Thread MasterGaurav
Hi, I assume that your application can distinguish between the user who is logged (as Google Accounts user) is a part of your application or not. You can try doing something like this (for automatic logout)... String link = userService.createLo

[appengine-java] process: javax.jdo.JDOFatalUserException: Persistence Manager has been closed

2010-10-21 Thread Janka
Hi, I'm new to Google App Engine. I try to develop a Servlet using Java public class IsoServlet extends HttpServlet { final Logger log = Logger.getLogger(IsoServlet.class.getName()); public PersistenceManager pm = PMF.get().getPersistenceManager(); } I have implemented

[appengine-java] Re: a basic tutorial on using the new 1.3.8 datastore delete with a Java app

2010-10-21 Thread choozm
Thank you! It works for me. -- 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.

[appengine-java] Create entity and get ID

2010-10-21 Thread Cosmin Stefan
Hey, I have encountered a weird case while trying to create a new entity in the database: I have this code: Meeting meeting=new Meeting(...) pm.makePersistent(meeting); Long meetingID=meeting.getId(); if(meetingID==null) throw new Exception("meeti

[appengine-java] Re: Need advice on a design for an easily queryable key-value user preferences datamodel

2010-10-21 Thread speedplane
Very cool... I didn't know that existed. Is there a similar low level api for python? You have a doc link? On Oct 19, 2:19 pm, "Ikai Lan (Google)" wrote: > This is a problem that can probably be easily solved with the low-level API. > Entities are schemaless and you can treate properties like a M

[appengine-java] How to use Python Bulk uploader to import data in local_db.bin ?

2010-10-21 Thread cYr4X
Hi, Currently, I successfully download and upload data into my Java Application on Google App Engine in production environment using the python BulkUploader (I followed this nice tutorial : http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/) But I'm facing a problem using t

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
Thanks for looking into it Ikai. If you were to guess is this likely to be a quick fix or a lengthy drawn-out one? I've made many changes to my app now java.net.InetAddress has been supported and I cant launch the update because of this issue. On Oct 21, 12:38 am, "Ikai Lan (Google)" wrote: > Yo

Re: [appengine-java] Re: Need advice on a design for an easily queryable key-value user preferences datamodel

2010-10-21 Thread Ikai Lan (Google)
Yes, but you will have to dig a bit: in the source: http://www.google.com/codesearch/p?hl=en#Qx8E-7HUBTk/trunk/python/google/appengine/api/datastore.py&q=Entity&l=400 Schemaless entities are how datastore models are saved underneath the hood. -- Ikai Lan Developer Programs Engineer, Google App E

[appengine-java] [Eclipse Plugin] Problem with refreshing static files

2010-10-21 Thread hadf
I have a CSS file main.css in my war directory. I've modified it, but the trouble is that when I execute my project in Eclipse as a WebApplication, the server delivers the old version of the file. All works fine with the appserver command. I searched in the workspace, and even in my hole homedir,

Re: [appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread Ikai Lan (Google)
I've reproduced this. I'm following up. What is it you need this class for? You can't do host resolution yet, even in the dev app server. The extent of what you can do is this: InetAddress address = InetAddress.getLocalHost(); resp.getWriter().println("Address: " + address.getHostAddress()

[appengine-java] Re: Need advice on a design for an easily queryable key-value user preferences datamodel

2010-10-21 Thread tempy
And I thought that I had gotten to the finish line without ever needing the low-level API, guess I was wrong =). Thanks for the hint Ikai! On Oct 21, 7:39 pm, "Ikai Lan (Google)" wrote: > Yes, but you will have to dig a bit: in the source: > > http://www.google.com/codesearch/p?hl=en#Qx8E-7HUBTk

[appengine-java] Re: Need advice on a design for an easily queryable key-value user preferences datamodel

2010-10-21 Thread tempy
One more thing - your example is actually a perfect illustration of what I have in mind - users will sign up to be notified by email of all sorts of application events. I haven't read much about it yet, but I take it that sending out such mass-notifications is exactly the sort of task that the Map

[appengine-java] Re: Problem with refreshing static files

2010-10-21 Thread hadf
Mmmhh I thought it works fine with appserver command, but I have the same problem finally. On 21 oct, 19:42, hadf wrote: > I have a CSS file main.css in my war directory. I've modified it, but > the trouble is that when I execute my project in Eclipse as a > WebApplication, the server delivers th

Re: [appengine-java] Re: Datastore latencies problems

2010-10-21 Thread Ikai Lan (Google)
What does the query look like? Query performance can sometimes be affected by the "shape" of the data - that is, if the data changes, it may change the number of indexes we need to zig-zag over. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com

[appengine-java] Re: Problem with refreshing static files

2010-10-21 Thread hadf
Ok, I found the reason of my problem. The cache is the browser cache. http://code.google.com/intl/fr/appengine/docs/java/config/appconfig.html#expiration On 21 oct, 21:09, hadf wrote: > Mmmhh I thought it works fine with appserver command, but I have the > same problem finally. > > On 21 oct, 19

Re: [appengine-java] Re: Problem with refreshing static files

2010-10-21 Thread Guillermo Schwarz
Did you try to clear the cache in the browser? Saludos, Guillermo Schwarz. El 21-10-2010, a las 16:09, hadf escribió: Mmmhh I thought it works fine with appserver command, but I have the same problem finally. On 21 oct, 19:42, hadf wrote: I have a CSS file main.css in my war directory. I'v

[appengine-java] Re: Datastore latencies problems

2010-10-21 Thread Ice13ill
First of all, i realized that part of the problem was the range of the query (my data objects/entities grew very fast so i didn't that i was retrieving 1000 entities per query). But my pb is that i don't really "get it" ... the difference in time between queries is very different from moment to mom

[appengine-java] Re: process: javax.jdo.JDOFatalUserException: Persistence Manager has been closed

2010-10-21 Thread Ian Marshall
Since you are getting javax.jdo.JDOFatalUserException: Object Manager has been closed I presume that you might be using the same pm instance after you have closed it. After your pm.close(); your first time, did you obtain a new pm before your second time? On Oct 21, 2:07 pm, Janka wrote:

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread Ian Marshall
I guess that the limit is enormous. (That doesn't help you since you want to actually know!) Of course, you can only add entities to your entity group at a certain rate of transactions per unit time. This is a constraint on how the number of entities in any given entity group increases over time.

Re: [appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread Ikai Lan (Google)
So it looks like this will work if you add this to your appengine-web.xml: false Depending on how much you need it, you can enable it today by adding this - but you lose Java precompilation, so there may be some impact on your cold startup times. -- Ikai Lan Developer Programs Engineer, Google A

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
Thanks for the update, changing precompilation from true to false did indeed solve the problem. Is this considered a fix or a temporary work-around? I'm not sure if the new functionality I've added warrants removing precompilation. Oh and I need InetAddress as I'm using the Java API from MaxMind

Re: [appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread Don Schwarz
This is a temporary workaround only. We should have this fixed in a few hours. On Thu, Oct 21, 2010 at 4:29 PM, mscwd01 wrote: > Thanks for the update, changing precompilation from true to false did > indeed solve the problem. > > Is this considered a fix or a temporary work-around? I'm not sure

[appengine-java] Re: java.net.InetAddress present in new 1.3.8 SDK but not on live servers

2010-10-21 Thread mscwd01
Great! Thanks for attempting to fix this so quickly. On Oct 21, 10:32 pm, Don Schwarz wrote: > This is a temporary workaround only.  We should have this fixed in a few > hours. > > > > > > > > On Thu, Oct 21, 2010 at 4:29 PM, mscwd01 wrote: > > Thanks for the update, changing precompilation fro

Re: [appengine-java] Re: 1.3.8 upgrade delete datastore contents

2010-10-21 Thread Guillermo Schwarz
Same thing just happened to me... Any guess when this could be fixed? Cheers, Guillermo. On Wed, 2010-10-20 at 10:21 -0700, Yegor wrote: > Actually, I have seen this behaviour in several recent releases of the > SDK. At this point, every time I upgrade, I kinda half-expect that my > test data wi

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread Didier Durand
Hi Erik, To check (and then limit) the format, you can extract the picture from the mail as a byte[] and then use this byte[] to create an image via ImagesService.makeImage(byte[]) and then do Image.getFormat() to see if you accept the format or not. regards didier On Oct 21, 1:43 pm, erikzamith

[appengine-java] Expires header for ImageBundle: how to set it ?

2010-10-21 Thread Didier Durand
Hi, I would like to optimize the use of GWT ImageBundle as recommended by ttp://library.igcar.gov.in/readit2007/tutori/tools/gwt-windows-1.4.10/doc/html/com.google.gwt.doc.DeveloperGuide.UserInterface.ImageBundles.html It says "To make all image bundle files permanently cacheable, set up a rule

[appengine-java] google-appengine-java+unsubscr...@googlegroups.com

2010-10-21 Thread Omri Cohen
-- 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 mo

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread erikzamith
Not really what happens, apparently does not save the image (blob), or email, or the idimage. because when you try to display it, is null. This is the doGet public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread erikzamith
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String email = req.getParameter("email"); String bookid = req.getParameter("bookid"); BookImage imagen = getImage(email

[appengine-java] Re: Create entity and get ID

2010-10-21 Thread Ian Marshall
Have you tried replacing pm.makePersistent(meeting); Long meetingID=meeting.getId(); with meeting = pm.makePersistent(meeting); Long meetingID=meeting.getId(); and see if this solves your problem. You might also want to commit your transaction if you are doing this persistence in a tran

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread erikzamith
> Not really what happens, apparently does not save the image (blob), or > email, or the idimage. because when you try to display it, is null. > This is the doGet > public void doGet(HttpServletRequest req, HttpServletResponse resp) >                         throws ServletException, IOException {

[appengine-java] Re: doPost with ID and email to save Blob (image)

2010-10-21 Thread Didier Durand
Hi, I think the issue is when you store the image not when you retrieve it:the published code doesn't show how you store the image. regards didier On Oct 22, 8:29 am, erikzamith wrote: > > Not really what happens, apparently does not save the image (blob), or > > email, or the idimage. because