[appengine-java] Index Size
Hello, I was wondering, why the statistics screen is showing that the database size of all my entities is 119mb (Size of all Entities: 119 mb) but the dashboard screen is showing that my application is using 0.93 of 9.00 GBytes, i.e ~930 mb ? Regards, Miroslav -- 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: Unable to execute query for a large number of entities
I created and uploaded an index for those 2 params: datastore-index kind=DbAddressEntry ancestor=false source=auto property name=parent direction=asc / property name=type direction=asc / /datastore-index After building it i can now execute the query i needed, but i have another problem: the retrieved data is incomplete :( I run an GQL query in Datastore viewer and the data is there, it seems that the app engine sdk does not serve it even with the composite indexes. Could it help if I reupload the data ? Or if i use low level api to get the entities ? (theoretically, it should work right? because it seams that the information is not indexed as it should) On Jul 15, 6:28 pm, Ice13ill andrei.fifi...@gmail.com wrote: 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
The patch seems to be incompatible with IText license, as you can read in comments at http://sourceforge.net/tracker/?func=detailaid=2810312group_id=15255atid=365255 PDFJet has both a free limited version and a paid one, which adds functions like tables formatting and pagination. I used the free version succesfully for simple tasks. It lacks complexity (like handling layout) but you can use the basic API to build such advanced features. Looks like IText can work on GAE also without the patch if you limit the functionalities you use. Such limitations make IText very similar to PDFJet with respect to API flexibility and level of abstraction, since advanced Itext features are the ones using AWT, so I decided to go directly with PDFJet for my project. Regards Lorenzo On Jul 15, 5:35 pm, Shyam Visamsetty shyamsunder...@gmail.com wrote: See this link for more details. http://blog.rubypdf.com/2009/12/17/how-to-run-itext-on-google-app-eng... 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] Re: ClassNotFoundException after i deploy it for the first time
but all my jar file are already in there. and when i change my package name from xwordbot to bot and update my web.xml to servlet servlet-nameXWordBot/servlet-name servlet-classbot.XWordBotServlet/servlet-class /servlet servlet-mapping servlet-nameXWordBot/servlet-name url-pattern/_wave/*/url-pattern /servlet-mapping then there is no exception and also the 500 internal server error that i was getting previously why can't my package name be the same as my project name? On Jul 16, 1:38 am, Ronmell Fuentes ringe...@gmail.com wrote: 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/th... 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 ausenciahttp://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: ClassNotFoundException after i deploy it for the first time
are you sure the servlet class is right? I mean, the name is correct and is in the right package? R 2010/7/16 Alex monsterno...@gmail.com but all my jar file are already in there. and when i change my package name from xwordbot to bot and update my web.xml to servlet servlet-nameXWordBot/servlet-name servlet-classbot.XWordBotServlet/servlet-class /servlet servlet-mapping servlet-nameXWordBot/servlet-name url-pattern/_wave/*/url-pattern /servlet-mapping then there is no exception and also the 500 internal server error that i was getting previously why can't my package name be the same as my project name? On Jul 16, 1:38 am, Ronmell Fuentes ringe...@gmail.com wrote: 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/th... 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- ausencia de evidencia ≠ evidencia de ausenciahttp:// 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.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.
[appengine-java] Re: Geomodel in Java
Hi Mahsa, You have these imports: import com.beoui.geocell.GeocellManager; import com.beoui.geocell.model.BoundingBox; import com.beoui.geocell.model.CostFunction; import com.beoui.geocell.model.GeocellQuery; import com.beoui.geocell.model.Point; So, one obvious question since you are getting NoClassDefFoundError: com/beoui/geocell/model/Point is: Did you put the appropriate JAR file in WEB-INF/lib or if these classes are not in a JAR, did you put them in WEB-INF/classes directory? Stephen Johnson On Jul 13, 1:13 pm, Mahsa mahsa.ghafour...@gmail.com wrote: Hello, I am developing a simple GIS cloud application using Google App Engine Geomodel. In this application, I would like to store latitude and longitude of points from user, later on query them using boundingbox proximity queries. I am experiencing problem while trying to access the server through a browser. I appreciate it if someone help me with this regard. I am using Eclipse, and here is what I did: 1) Created a Web application project enabling only Google App Engine (1.3.4)(as Google SDK) 2) Created a simple jsp file in war folder to get latitude longitude from user 3) Created two java classes, UseGeocell and ObjectToSave. UseGeocell class is similar to the code inhttp://code.google.com/p/javageomodel/source/browse/trunk/geocell/src... ObjectToSave is exactlyhttp://code.google.com/p/javageomodel/source/browse/trunk/geocell/src... 4)In my Servlet I defined an object of type UseGeocell and called testHowToSaveGeocellsInDatabase function in order to save latitude longitude that are obtained from the input Here is my code: My UseGeocell class: package edu.pitt.Test8_Geomodel_GAE; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.jdo.PersistenceManager; import junit.framework.Assert; import junit.framework.TestCase; import com.beoui.geocell.GeocellManager; import com.beoui.geocell.model.BoundingBox; import com.beoui.geocell.model.CostFunction; import com.beoui.geocell.model.GeocellQuery; import com.beoui.geocell.model.Point; /** * Unit test also used to explain how to use Geocell class. * * @author Alexandre Gellibert alexandre.gellib...@gmail.com * */ public class UseGeocell extends TestCase { private final Logger log = Logger.getLogger(com.beoui.utils); public ObjectToSave obj; /** * First step is to save your entities. * In database, you don't save only latitude and longitude of your point but also geocells around this point. */ public void testHowToSaveGeocellsInDatabase(double lat, double lon) { // Incoming data: latitude and longitude (Bordeaux for instance) //double lat = 44.838611; //double lon = -0.578333; // Transform it to a point Point p = new Point(lat, lon); // Generates the list of GeoCells ListString cells = GeocellManager.generateGeoCell(p); // Save your instance obj = new ObjectToSave(); obj.setLatitude(lat); obj.setLongitude(lon); obj.setGeocells(cells); //objDao.save(obj); // Just checking that cells are not empty Assert.assertTrue(cells.size() 0); // Show in the log what cells are going to be saved log.log(Level.INFO, Geocells to be saved for Point(+lat +,+lon+) are: +cells); } /** * Second step, now entities are in database, we can query on them. * Here is the example of a bounding box query. * */ public void testHowToQueryOnABoundingBox(double latSW, double lonSW, double latNE, double lonNE) { // Incoming data: latitude and longitude of south-west and north-east points (around Bordeaux for instance =) ) //double latSW = 44.8; //double lonSW = -0.6; // double latNE = 44.9; // double lonNE = -0.7; // Transform this to a bounding box BoundingBox bb = new BoundingBox(latNE, lonNE, latSW, lonSW); // Calculate the geocells list to be used in the queries (optimize list of cells that complete the given bounding box) ListString cells = GeocellManager.bestBboxSearchCells(bb, null); // OR if you want to use a custom cost function ListString cells2 = GeocellManager.bestBboxSearchCells(bb, new CostFunction() {
[appengine-java] Re: Dance Dance Robot error / Channel API
The Channel API for Google App Engine is not out yet! On Jul 15, 6:11 pm, Daniel Guermeur superco...@gmail.com wrote: 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.
Re: [appengine-java] Re: memcache best practice or framework
What's the usage for in-memory caching via stick-cache? It now supports bulk gets for all caches - i.e. memcache and datastore using their respective bulk get methods Aaah, stick-cache has dependencies on twig and http://code.google.com/p/guava-libraries/ The utilities from twig can be pulled out easily but I haven't looked at guava-libraries/ I don't wonder if having fewer jars in the classpath at cold start time is more than the savings from using local/memcache over strictly datastore for session storage. In other words, is loading guava worth it. Maybe I can just snip out the relevant code. Shawn -- 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: memcache best practice or framework
On 17 Jul 2010, at 08:33, Shawn Brown wrote: Aaah, stick-cache has dependencies on twig and http://code.google.com/p/guava-libraries/ The utilities from twig can be pulled out easily but I haven't looked at guava-libraries/ Sorry the Twig ones slipped in by mistake. I'e just pushed an update to remove them. Mainly it was a class to help reduce the size of serialized instances by no including a class descriptor. Now it uses plain Java serialization. -- 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: ClassNotFoundException after i deploy it for the first time
yup im sure of it, somehow the project name in eclipse 3.5 cannot be the same as package name (same thing happens to me when i was making a wave gadget with cobogwave) On Jul 17, 12:04 am, Ronmell Fuentes ringe...@gmail.com wrote: are you sure the servlet class is right? I mean, the name is correct and is in the right package? R 2010/7/16 Alex monsterno...@gmail.com but all my jar file are already in there. and when i change my package name from xwordbot to bot and update my web.xml to servlet servlet-nameXWordBot/servlet-name servlet-classbot.XWordBotServlet/servlet-class /servlet servlet-mapping servlet-nameXWordBot/servlet-name url-pattern/_wave/*/url-pattern /servlet-mapping then there is no exception and also the 500 internal server error that i was getting previously why can't my package name be the same as my project name? On Jul 16, 1:38 am, Ronmell Fuentes ringe...@gmail.com wrote: 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/th... 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- ausencia de evidencia ≠ evidencia de ausenciahttp:// 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.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 ausenciahttp://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.