Re: [appengine-java] Strange issue with a where condition in JPA query
I'm sorry, the error isn't with atpersand, but is with dot. Examples: Message id, name 1, t...@example.com 2, other_value 3, other_value 4, t...@example.com And the query that give me an empty resultset is: select m from Message m where m.confirmed = true and m.name = 't...@example.com' bye, Davide 2010/2/27 jesty davidece...@gmail.com Hi all, I have the follow table: Message id, name 1, t...@example 2, other_value 3, other_value 1, t...@example in my application I perform this simple query: select m from Message m where m.confirmed = true and m.name = 't...@example' But doesn't works, while select m from Message m where m.confirmed = true and m.name = 'other_value' works well. Why? I don't understand what happens :) Thank to everyone. Davide -- 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. -- -- Davide Cerbo --- http://davide.cerbo.born-to-co.de http://jesty.it --- http://www.exmachina.ch + 39 329 70 81 927 --- -- 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: lost sub entity
Hi, John and Karel, you are right about the placement of the commit statement. It worked in the test example because I only had one instance of MyEntity. I don't get any exception at all in the Eclipse console! When I add a second instance of MyEntity if fails with Transaction is not active as expected. Now I've changed the code in the try statement like this, but still the first sub entity is lost and no exception is thrown! (Of cause it would fail it the list is empty.) ListMyEntity results = (ListMyEntity) query.execute(); if (results.iterator().hasNext()) { tx.begin(); MyEntity e = results.iterator().next(); ListSubEntity list = e.getMyList(); SubEntity first = list.remove(0); boolean ok = list.add(first); if (!ok) { System.err.println(could not add first); } System.out.println(list); pm.makePersistent(e); tx.commit(); } On 28 Feb, 02:51, John Patterson jdpatter...@gmail.com wrote: This should be throwing an exception. The JavaDocs for Transaction.commit() say Commits the transaction. Whether this call succeeds or fails, all subsequent method invocations on this object will throw IllegalStateException. When something does not work as you expect the first place to look is the logs under your application console. On 28 Feb 2010, at 05:25, Karel Alvarez wrote: dont you get any exceptions stacktrace in the server console? it would help... also you are calling commit() inside the for loop, although the transactions is started only once... that would crash in the second iteration in a normal db server, I am not sure what GAE does with it, in any case I dont think it is what you intended... On Sat, Feb 27, 2010 at 2:52 PM, Gunnar gunnar@gmail.com wrote: Hi, I have problem with reordering a List. I created a test with an entity called MyEntity which have a ListSubEntity. First I persist one instance of MyEntity with a list containing 3 SubEntity. This works fine. Then I call a reorder servlet that moves the first SubEntity to the last position in the list. The result is that the first SubEntity is lost and the datastore only contains 2 SubEntity instances. What can be wrong? Here is the reorder code: package com.google.appengine.demo; import java.io.IOException; import java.util.List; import javax.jdo.PersistenceManager; import javax.jdo.Query; import javax.jdo.Transaction; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @SuppressWarnings(serial) public class ReorderServlet extends HttpServlet { �...@suppresswarnings(unchecked) public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { PersistenceManager pm = PMF.get().getPersistenceManager(); Query query = pm.newQuery(MyEntity.class); Transaction tx = pm.currentTransaction(); try { tx.begin(); ListMyEntity results = (ListMyEntity) query.execute(); if (results.iterator().hasNext()) { for (MyEntity e : results) { ListSubEntity list = e.getMyList(); SubEntity first = list.remove(0); boolean ok = list.add(first); if (!ok) { System.err.println(could not add first); } System.out.println(list); pm.makePersistent(e); tx.commit(); } } } catch (Exception e) { e.printStackTrace(); } finally { if (tx.isActive()) tx.rollback(); query.closeAll(); pm.close(); } resp.setContentType(text/plain); resp.getWriter().println(reordered); } } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java
[appengine-java] Spreadsheets and GAE
Hi all, New here. My app requires users to upload spreadsheets. The server has to make the data available on a grid (GWT)..the user then makes changes if any and press import.. This is when the data is stored in the data store in appropriate entities. Questions . If this is not GAE, i would have stored the uploaded file in the filesystem; used Apache POI to parse the file from a GWT-RPC service and return it to a GWT grid. Then, upon user selection, commit the data to persistence. Are there better (read: easier) ways to do this under GAE? Can I make use of the Spreadsheet Data API to do this instead? Do I need to store the file at all in that case? Is there something in the Google Docs Upload API I should be using? Since I am already committed to GAE and GWT, I wanted to make things as simpler as it can be. If I can avoid other external libraries..great. Thoughts? Cheers praseed -- 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] Receiving Email: url-pattern problem
Hello there! I\m trying to setup a email reciever, with a little help of the following doc: http://code.google.com/appengine/docs/java/mail/receiving.html Everything looks fine except 1 annoying thing: I can only use url-pattern/_ah/mail/*/url-pattern setting. If I use the setting above, I CAN recieve email messages. But, if I try to specify an address, for example: str...@appid.appspotmail.com like this: url-pattern/_ah/mail/string/url-pattern or even url-pattern/_ah/mail/string*/url-pattern - I cannot process an email, and in my LOGs I see - error 404 (not found): It says , that /_ah/mail/str...@appid.appspotmail.com - not found. What am I doing wrong? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Need Keyboard Shortcut to run Deploy AppEngine Project and option to save password
Hi, I been trying to use eclipse + GWT plugins to create wave gadgets and robots and I must tell u, this is a really hard job when everytime you have to press the button in the toolbar using mouse. There is no option in the eclipse preferences to set the keyboad mapping for this command. Plus the credentials screen doesn't have any option to save the password, so u need to enter it every time. Can some one look into it. -- 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] Flash arcade game GAE based
hi all, I am writing a multiplayer flash arcade game in actionscript .. i have discovered GAE recently and thought that it might be a very good choice for building and hosting my server .. however, i realize that arcade games need an almost realtime responsive capacity from the server .. besides the server has to be looping on receiving position object of Client A, storing it in a DB, Fetching Client B position object and sending it back .. this will result in a huge number of DB requests either storing, fetching or deleting which will quickly exhaust the CPU quota for the application .. So, I was wondering if any one had an idea or a reference to come around these two problems of real time response and CPU exhaustion by DB calls best regards, A. Khalifa -- 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] error while deploying web appln in google appengine
How to resolve the following error while deploying java web appln in google appengine?? 8% Compiling jsp files. 11% Compiling java files. Error Details: Feb 28, 2010 9:21:57 AM org.apache.jasper.JspC processFile INFO: Built File: \index.jsp java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Exception in thread main Could not find the main class: com.sun.tools.javac.Main. Program will exit. Error while executing: C:\Program Files\Java\jre6\bin\javac.exe - classpath /C:/Program Files/appengine-java-sdk-1.3.0/lib/impl/ appengine-api-labs.jar;/C:/Program Files/appengine-java-sdk-1.3.0/lib/ impl/appengine-api-stubs.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-api.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-local-runtime.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\appengine-local-runtime- shared.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \geronimo-el_1.0_spec-1.0.1.jar;C:\Program Files\appengine-java- sdk-1.3.0\lib\shared\geronimo-jsp_2.1_spec-1.0.1.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\geronimo- servlet_2.5_spec-1.2.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib \shared\jsp\repackaged-appengine-ant-1.6.5.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-ant- launcher-1.6.5.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-commons-el-1.0.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-commons- logging-1.1.1.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-jasper-compiler-5.0.28.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-jasper- runtime-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\jdo2-api-2.3-eb.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jpa_3.0_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\appengine-api-1.0- sdk-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jta_1.1_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\appengine-api-labs-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- core-1.1.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- appengine-1.0.4.1.final.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- ant-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-ant- launcher-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-el-1.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-logging-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- compiler-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- runtime-5.0.28.jar; -d C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes -encoding UTF-8 C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \classes\org\apache\jsp\index_jsp.java com.google.appengine.tools.admin.JspCompilationException: Failed to compile the generated JSP java files. Unable to update app: Failed to compile the generated JSP java files. Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg8759329262789349213.log] for further information. -- 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
[appengine-java] error while deploying web appln in google appengine
I am facing the following error. any solution 8% Compiling jsp files. 11% Compiling java files. Error Details: Feb 28, 2010 9:21:57 AM org.apache.jasper.JspC processFile INFO: Built File: \index.jsp java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Exception in thread main Could not find the main class: com.sun.tools.javac.Main. Program will exit. Error while executing: C:\Program Files\Java\jre6\bin\javac.exe - classpath /C:/Program Files/appengine-java-sdk-1.3.0/lib/impl/ appengine-api-labs.jar;/C:/Program Files/appengine-java-sdk-1.3.0/lib/ impl/appengine-api-stubs.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-api.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-local-runtime.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\appengine-local-runtime- shared.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \geronimo-el_1.0_spec-1.0.1.jar;C:\Program Files\appengine-java- sdk-1.3.0\lib\shared\geronimo-jsp_2.1_spec-1.0.1.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\geronimo- servlet_2.5_spec-1.2.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib \shared\jsp\repackaged-appengine-ant-1.6.5.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-ant- launcher-1.6.5.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-commons-el-1.0.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-commons- logging-1.1.1.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-jasper-compiler-5.0.28.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-jasper- runtime-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\jdo2-api-2.3-eb.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jpa_3.0_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\appengine-api-1.0- sdk-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jta_1.1_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\appengine-api-labs-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- core-1.1.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- appengine-1.0.4.1.final.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- ant-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-ant- launcher-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-el-1.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-logging-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- compiler-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- runtime-5.0.28.jar; -d C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes -encoding UTF-8 C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \classes\org\apache\jsp\index_jsp.java com.google.appengine.tools.admin.JspCompilationException: Failed to compile the generated JSP java files. Unable to update app: Failed to compile the generated JSP java files. Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg8759329262789349213.log] for further information. -- 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] Unable to establish HTTPS communication
Hi All, I am new to Google app and trying to build an application that would load some data from other site over hppts. Below is my code that is working in other applications but i am getting some errors with google app engine. Initially compiler is throwing error like - sun.net.www.protocol.https.HttpsURLConnectionImpl is not supported by Google App Engine's Java runtime environment. My code is: java.net.URL requestURL = new URL(url); HttpsURLConnectionImpl h = (HttpsURLConnectionImpl)requestURL.openConnection(); and somehow i complied it using solution available at http:// 74.125.153.132/search?q=cache:http://blog.frankel.ch/tag/google; but i got error on local Development environment as mentioned below: com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler $Connection cannot be cast to sun.net.www.protocol.https.HttpsURLConnectionImpl java.lang.ClassCastException: com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler $Connection cannot be cast to sun.net.www.protocol.https.HttpsURLConnectionImpl I have also gone through http://code.google.com/appengine/docs/java/urlfetch/overview.html but no luck. Please let me know how can i solve it. 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.
[appengine-java] Local Datastore Issue when stopping server (With Objectify)
Hi, My application uses Objectify 2.0.2 to interact with datastore (great framework) My local datastore is about 65Mb When stopping the server and running it again in the environment development (eclipse), the local datastore seems to has been emptied even though the local_db.bin is always about 65Mb Looks like there is some sort of corruption issue but I don't know what I'm doing wrong since I'm only interacting with datastore with read queries. Any Ideas ? Olivier PS : here's my DAO : public class EdbDAO extends DAOBase { static { ObjectifyService.register(Attribute.class); ObjectifyService.register(Category.class); ObjectifyService.register(Group.class); ObjectifyService.register(Equipment.class); ObjectifyService.register(Effect.class); ObjectifyService.register(Bonus.class); ObjectifyService.register(Fit.class); ObjectifyService.register(FitProxy.class); ObjectifyService.setDatastoreTimeoutRetryCount(3); } public IterableFitProxy getFits(EsiShipFilter filter) { QueryFitProxy query = ofy().query(FitProxy.class); String groupName = filter.getGroupName(); String race = filter.getRace(); double dps = filter.getDps(); double effHp = filter.getEffHp(); boolean pvp = filter.getPvp(); boolean pve = filter.getPve(); long score = filter.getScore(); if (pvp) query.filter(pvp,true); if (pve) query.filter(pve, true); if (groupName!=null) query.filter(groupName, groupName); if (race!=null) query.filter(race, race); if (dps!=0) query.filter(maxDps = , dps); if (effHp!=0) query.filter(effectiveHp =, effHp); query.limit(filter.getLimit()); query.offset(filter.getOffset()); filter.setCountResult(query.countAll()); return query.fetch(); } } -- 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] Expires header automatically added (bug?)
I noticed that the (live) Google App Engine server automatically adds an Expires header to all responses in one of my apps. I am not sure, but I *think* this behavior was introduced some time in the last week. I am sure that I do not send the Expires header, and the header is not automatically added in the development server. any ideas? -g. -- 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] Strange issue with a where condition in JPA query
The datastore isn't a SQL database. Try this query: select from Message where confirmed = true and name http://m.name = something Alternatively, try programmatically setting your filters: Query q = new Query(Message.class); q.setFilter(confirmed, true); On Sun, Feb 28, 2010 at 4:33 AM, Davide Cerbo davidece...@gmail.com wrote: I'm sorry, the error isn't with atpersand, but is with dot. Examples: Message id, name 1, t...@example.com 2, other_value 3, other_value 4, t...@example.com And the query that give me an empty resultset is: select m from Message m where m.confirmed = true and m.name = 't...@example.com' bye, Davide 2010/2/27 jesty davidece...@gmail.com Hi all, I have the follow table: Message id, name 1, t...@example 2, other_value 3, other_value 1, t...@example in my application I perform this simple query: select m from Message m where m.confirmed = true and m.name = 't...@example' But doesn't works, while select m from Message m where m.confirmed = true and m.name = 'other_value' works well. Why? I don't understand what happens :) Thank to everyone. Davide -- 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. -- -- Davide Cerbo --- http://davide.cerbo.born-to-co.de http://jesty.it --- http://www.exmachina.ch + 39 329 70 81 927 --- -- 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 http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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] error while deploying web appln in google appengine
You'll have to point your IDE to a JDK install, not a JRE install. There are a couple of different solutions here: http://www.google.com/search?sourceid=chromeie=UTF-8q=java.lang.NoClassDefFoundError:+com/sun/tools/javac/Main On Sat, Feb 27, 2010 at 7:52 PM, shanthi ramabhadran 77can...@gmail.comwrote: I am facing the following error. any solution 8% Compiling jsp files. 11% Compiling java files. Error Details: Feb 28, 2010 9:21:57 AM org.apache.jasper.JspC processFile INFO: Built File: \index.jsp java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Exception in thread main Could not find the main class: com.sun.tools.javac.Main. Program will exit. Error while executing: C:\Program Files\Java\jre6\bin\javac.exe - classpath /C:/Program Files/appengine-java-sdk-1.3.0/lib/impl/ appengine-api-labs.jar;/C:/Program Files/appengine-java-sdk-1.3.0/lib/ impl/appengine-api-stubs.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-api.jar;/C:/Program Files/appengine-java- sdk-1.3.0/lib/impl/appengine-local-runtime.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\appengine-local-runtime- shared.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \geronimo-el_1.0_spec-1.0.1.jar;C:\Program Files\appengine-java- sdk-1.3.0\lib\shared\geronimo-jsp_2.1_spec-1.0.1.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\geronimo- servlet_2.5_spec-1.2.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib \shared\jsp\repackaged-appengine-ant-1.6.5.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-ant- launcher-1.6.5.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-commons-el-1.0.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-commons- logging-1.1.1.jar;C:\Program Files\appengine-java-sdk-1.3.0\lib\shared \jsp\repackaged-appengine-jasper-compiler-5.0.28.jar;C:\Program Files \appengine-java-sdk-1.3.0\lib\shared\jsp\repackaged-appengine-jasper- runtime-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\jdo2-api-2.3-eb.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jpa_3.0_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\appengine-api-1.0- sdk-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\geronimo- jta_1.1_spec-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \lib\appengine-api-labs-1.3.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- core-1.1.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\datanucleus- appengine-1.0.4.1.final.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- ant-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-ant- launcher-1.6.5.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-el-1.0.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine- commons-logging-1.1.1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- compiler-5.0.28.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\lib\repackaged-appengine-jasper- runtime-5.0.28.jar; -d C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg5666792600954450490.tmp\WEB-INF\classes -encoding UTF-8 C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg5666792600954450490.tmp\WEB-INF \classes\org\apache\jsp\index_jsp.java com.google.appengine.tools.admin.JspCompilationException: Failed to compile the generated JSP java files. Unable to update app: Failed to compile the generated JSP java files. Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp \appcfg8759329262789349213.log] for further information. -- You received this
[appengine-java] Re: Expires header automatically added (bug?)
I do use Expires header as well and it works as expected. For statis resources you define explicit expiration using appengine-web.xml. On Feb 28, 9:45 pm, George Moschovitis george.moschovi...@gmail.com wrote: I noticed that the (live) Google App Engine server automatically adds an Expires header to all responses in one of my apps. I am not sure, but I *think* this behavior was introduced some time in the last week. I am sure that I do not send the Expires header, and the header is not automatically added in the development server. any ideas? -g. -- 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] JSF 2 on GAE getting java.io.NotSerializableException: javax.faces.component.html.HtmlSelectManyListbox after trying to run from production
Hi I got a small JSF 2 application with 1 managed bean defined as @SessionScoped and i just added a HtmlSelectManyListbox and did binding to it from h:selectManyListbox all works 100% from local server, but after deploying im getting exception... and i did add implements Serializable to the class and added private static final long serialVersionUID my gae sdk version is: Your SDK: Release: 1.3.0 Timestamp: Mon Dec 14 20:47:37 IST 2009 API versions: [1.0] This the exception java.lang.RuntimeException: java.io.NotSerializableException: javax.faces.component.html.HtmlSelectManyListbox at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:162) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 41) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 363) at com.google.net.rpc.impl.Server$2.run(Server.java:837) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:792) at com.google.net.rpc.impl.Server.processRequest(Server.java:367) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 448) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 774) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 205) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 101) at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java: 251) at com.google.apphosting.runtime.JavaRuntime $RpcRunnable.run(JavaRuntime.java:394) at java.lang.Thread.run(Unknown Source) Caused by: java.io.NotSerializableException: javax.faces.component.html.HtmlSelectManyListbox at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.HashMap.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
[appengine-java] Scheduled Tasks aborted early
I have Java application deployed on the appengine and it has several job definitions. However I see that Scheduled Tasks are aborted within 10 seconds from the start, even so corresponding FAQ entry states 30 seconds. http://code.google.com/appengine/docs/java/runtime.html#Quotas_and_Limits This is a big problem for any applications using Springframework, which has startup time about 20 seconds. Here is corresponding entry from the log file for one of the executions of such scheduled task. --- 1. 02-28 02:45PM 39.147 /fetch.htm?... 500 10012ms 0cpu_ms 0kb See details 0.1.0.1 - - [28/Feb/2010:14:45:49 -0800] GET /fetch.htm?... HTTP/1.1 500 0 - - ipsc-stats.appspot.com 2. W 02-28 02:45PM 49.160 Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.html for more details. --- Can you please advise what could be done in such and if I am missing anything obvious? Thanks Eugene -- 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] Do I still need to use session if I use google user account to authenticate?
I currently use Google Account to authenticate and get the current user like this: UserService userAction = UserServiceFactory.getUserService(); User user = userAction.getCurrentUser(); I notice that the user service does not need HttpServletRequest to get the current context, is that reliable? What about my customer use another google id to login in another page of my app? Would the current user change when the customer returned to the first page to make some other requests ? In the past, I always use Session to storage user information to id current user, it looks like Google's user service can provide the same functionality, so I can abandon the session for that kind of usage, is that correct? -- 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] Do I still need to use session if I use google user account to authenticate?
Perhaps you'd better use your own userssion with one pojo class On Mon, Mar 1, 2010 at 9:49 AM, opok vir...@gmail.com wrote: I currently use Google Account to authenticate and get the current user like this: UserService userAction = UserServiceFactory.getUserService(); User user = userAction.getCurrentUser(); I notice that the user service does not need HttpServletRequest to get the current context, is that reliable? What about my customer use another google id to login in another page of my app? Would the current user change when the customer returned to the first page to make some other requests ? In the past, I always use Session to storage user information to id current user, it looks like Google's user service can provide the same functionality, so I can abandon the session for that kind of usage, is that correct? -- 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. -- dream or truth -- 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: EQUAL operator on string properties
I think you could use a int column replace On Sat, Feb 27, 2010 at 6:32 AM, Andriy Andrunevchyn diyko...@gmail.comwrote: I have the same problem How have You solved it? On 24 Лют, 00:36, keyurva keyu...@gmail.com wrote: This is where embarrassment becomes me. This issue was a false alarm. A case of corrupt data. Sorry for the trouble. == Keyur On Feb 23, 1:37 pm, keyurva keyu...@gmail.com wrote: This has to be the first query that works but somehow for me a simple EQUAL operator on a string propertydoesnotyield results. I'm using the low level datastore api. Now it could be that this is only a local datastore issue and once deployed on app engine itdoeswork. But I'd like someone to confirm this for me. To give an example for my issue - a query such as: SEX = MALEdoes notworkbut SEX = MALE AND SEX MALEadoes. (This first one of course translates to a query with one EQUAL filter while the second one translates to a query with 2 filters - GREATER_THAN_OR_EQUAL and LESS_THAN). 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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] Do I still need to use session if I use google user account to authenticate?
Perhaps you'd better use your own userssion with one pojo class I don't think you would sacrifice User service (and its scalability) to deal with the concern opok posted below. Hi opok, I notice that the user service does not need HttpServletRequest to get the current context, is that reliable? Your app might running on multiple VM's, so using Google service is more reliable than your own implementation, I guess. I think you might want to check docs on Google account ( http://code.google.com/appengine/docs/java/users/) and also on how to use session provided by App Engine ( http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions ) My thought is, your user logged on to your GAE app already, they would need to log out of your app first, in order to log on that app with another ID, using the same browser. In this thread, Ikai (Google) explained what was shared when you're using the service ( https://groups.google.com/group/google-appengine-java/browse_thread/thread/816f81da16ca4ce8/844655a8f604d980?lnk=raot ) and guidance on how to retain form data ( http://groups.google.com/group/google-appengine-java/browse_thread/thread/7b752a5dfabd4bd0/ed596f644d23a656?lnk=raot ) You just need to google the group... On Mon, Mar 1, 2010 at 9:20 AM, yjun hu itswa...@gmail.com wrote: Perhaps you'd better use your own userssion with one pojo class On Mon, Mar 1, 2010 at 9:49 AM, opok vir...@gmail.com wrote: I currently use Google Account to authenticate and get the current user like this: UserService userAction = UserServiceFactory.getUserService(); User user = userAction.getCurrentUser(); I notice that the user service does not need HttpServletRequest to get the current context, is that reliable? What about my customer use another google id to login in another page of my app? Would the current user change when the customer returned to the first page to make some other requests ? In the past, I always use Session to storage user information to id current user, it looks like Google's user service can provide the same functionality, so I can abandon the session for that kind of usage, is that correct? -- 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. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Writing Datastore Tests sample not working?
Looks like a class path problem. Did you add jars from a different version of app engine? On 28 Feb 2010, at 07:38, James wrote: I've copied pasted the local datastore test code from http://code.google.com/appengine/docs/java/tools/localunittesting.html and I get a runtime error: java.lang.VerifyError: class com.google.apphosting.api.DatastorePb $BeginTransactionRequest overrides final method isInitialized.()Z at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at com .google .appengine .tools .development .ApiProxyLocalImpl.getDispatchMethod(ApiProxyLocalImpl.java: 264) at com .google .appengine .tools .development.ApiProxyLocalImpl.makeSyncCall(ApiProxyLocalImpl.java: 116) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:83) at com .google .appengine .api .datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java: 52) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.countEntities(DatastoreServiceImpl.java:379) at com .ShiftSimple .Testing.LocalDatastoreFixture.doTest(LocalDatastoreFixture.java: 33) at com .ShiftSimple .Testing.LocalDatastoreFixture.testInsert1(LocalDatastoreFixture.java: 41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod $1.runReflectiveCall(FrameworkMethod.java:44) at org .junit .internal .runners.model.ReflectiveCallable.run(ReflectiveCallable.java: 15) at org .junit .runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java: 41) at org .junit .internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java: 20) at org .junit .internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org .junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org .junit .runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java: 73) at org .junit .runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java: 46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org .junit .internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org .junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org .eclipse .jdt .internal .junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java: 46) at org .eclipse .jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org .eclipse .jdt .internal .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 467) at org .eclipse .jdt .internal .junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 683) at org .eclipse .jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: 390) at org .eclipse .jdt .internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 197) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from
Re: [appengine-java] Scheduled Tasks aborted early
You get this message when you app is still starting while other requests come in. The only current solution is to reduce start up time - pinging is not a satisfactory solution because you still get frequent loading requests. With Guice I was able to reduce star up by using a non AOP version which did no bytecode enhancement. Also, try delaying initialising components until they are needed. On 1 Mar 2010, at 08:45, Eugene Kuleshov wrote: I have Java application deployed on the appengine and it has several job definitions. However I see that Scheduled Tasks are aborted within 10 seconds from the start, even so corresponding FAQ entry states 30 seconds. http://code.google.com/appengine/docs/java/runtime.html#Quotas_and_Limits This is a big problem for any applications using Springframework, which has startup time about 20 seconds. Here is corresponding entry from the log file for one of the executions of such scheduled task. --- 1. 02-28 02:45PM 39.147 /fetch.htm?... 500 10012ms 0cpu_ms 0kb See details 0.1.0.1 - - [28/Feb/2010:14:45:49 -0800] GET /fetch.htm?... HTTP/1.1 500 0 - - ipsc-stats.appspot.com 2. W 02-28 02:45PM 49.160 Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.html for more details. --- Can you please advise what could be done in such and if I am missing anything obvious? Thanks Eugene -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Spreadsheets and GAE
Hi Praseed, my application uses the google spreadsheet api for importing data. I have learned the following lessons from it: 1. performance is not great. the api runs over http and is limited to GAE request timeout (5 to 10) seconds. on some cases a single request exceed this time and you are required to handle these timeout (retry) 2. API inconsistencies. The API is not that stable. some of the examples posted on Google simply do not work. it could be very frustrating. 3. google spreadsheets are nice for low volume data. Handling masses of data is difficult. copy paste is limited. limited formulas (comparing to Excel) . very basic scripting support. you should really play with it and verify that your end user won't get frustrated with it. 4. accessing the spreadsheet requires authentication. it may be an overhead for your end users unless you handle it for them. Having said all of the above I still recommend it as it is free, doesn't require leaving the google API realm, and will probably mature over time. you need to make a deep analysis of your requirement to make sure the above limitation won't become showstoppers. Thanx, Lior On Feb 28, 6:41 pm, praseed prase...@gmail.com wrote: Hi all, New here. My app requires users to upload spreadsheets. The server has to make the data available on a grid (GWT)..the user then makes changes if any and press import.. This is when the data is stored in the data store in appropriate entities. Questions . If this is not GAE, i would have stored the uploaded file in the filesystem; used Apache POI to parse the file from a GWT-RPC service and return it to a GWT grid. Then, upon user selection, commit the data to persistence. Are there better (read: easier) ways to do this under GAE? Can I make use of the Spreadsheet Data API to do this instead? Do I need to store the file at all in that case? Is there something in the Google Docs Upload API I should be using? Since I am already committed to GAE and GWT, I wanted to make things as simpler as it can be. If I can avoid other external libraries..great. Thoughts? Cheers praseed -- 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: Spreadsheets and GAE
How complex are these spreadsheets? If all you need to do is upload some basic data, then have them save it as CSV and upload that into GAE. I'm assuming your spreadsheets are complex enough that you need them to actually be Microsoft Excel files. Lior's response made me consider your actual use case and it sounds like it could be worthwhile for you to try using the Google Spreadsheets API. I had considered it but my spreadsheet needs are slightly different, and you can read about my decision here: http://stephenhuey.wordpress.com/2010/01/01/docxgae/ Although I used the GaeVFS virtual file system in that blog post, you can actually do plenty of the typical file stuff in memory and just write out to the Blobstore. Basically, I needed my users to be able to download data in full-fledged Microsoft Excel spreadsheets, and since the traditional Java libraries out there aren't supported on GAE, I chose to use Microsoft's xlsx format which is a zip file consisting of text files and images. In case that sounds terrible, note that I'm using FreeMarker to help me modify template XML files, and that does make things a little bit cleaner. So in a nutshell, you can work with bona fide Microsoft Excel files on GAE if you use the xlsx file format and not the older xls file format. - Stephen Huey On Mar 1, 1:14 am, Lior Harsat lior.har...@gmail.com wrote: Hi Praseed, my application uses the google spreadsheet api for importing data. I have learned the following lessons from it: 1. performance is not great. the api runs over http and is limited to GAE request timeout (5 to 10) seconds. on some cases a single request exceed this time and you are required to handle these timeout (retry) 2. API inconsistencies. The API is not that stable. some of the examples posted on Google simply do not work. it could be very frustrating. 3. google spreadsheets are nice for low volume data. Handling masses of data is difficult. copy paste is limited. limited formulas (comparing to Excel) . very basic scripting support. you should really play with it and verify that your end user won't get frustrated with it. 4. accessing the spreadsheet requires authentication. it may be an overhead for your end users unless you handle it for them. Having said all of the above I still recommend it as it is free, doesn't require leaving the google API realm, and will probably mature over time. you need to make a deep analysis of your requirement to make sure the above limitation won't become showstoppers. Thanx, Lior On Feb 28, 6:41 pm, praseed prase...@gmail.com wrote: Hi all, New here. My app requires users to upload spreadsheets. The server has to make the data available on a grid (GWT)..the user then makes changes if any and press import.. This is when the data is stored in the data store in appropriate entities. Questions . If this is not GAE, i would have stored the uploaded file in the filesystem; used Apache POI to parse the file from a GWT-RPC service and return it to a GWT grid. Then, upon user selection, commit the data to persistence. Are there better (read: easier) ways to do this under GAE? Can I make use of the Spreadsheet Data API to do this instead? Do I need to store the file at all in that case? Is there something in the Google Docs Upload API I should be using? Since I am already committed to GAE and GWT, I wanted to make things as simpler as it can be. If I can avoid other external libraries..great. Thoughts? Cheers praseed -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Eclipse hangs at startup, Ubuntu
Did anyone ever resolve this in a consistent way? I recently upgraded from OSX 10.5 to 10.6, and now my Eclipse (Cocoa 64-bit, as I was using before) hangs on most startups. I see the Updating MyProje... - 1.3.1 in the bottom right corner and the entire window is locked up. Only way out is to Force Quit. It doesn't happen on every startup. I can often get it working after a few tries. This was a brand-new OS install on a new HD. I did, however, copy my eclipse directory over by hand, and the workspace was imported as part of my user data. Jeff On Jan 14, 12:49 am, pgoetz pgo...@pgoetz.de wrote: Hi group, I have a problem with the Google Eclipse Plugin. I am developing an application for the Google App Engine (Eclipse JEE Galileo, Google Plugin 1.2.0, Google App Engine SDK 1.3.0, OS Ubuntu 9.10). Yesterday I reinstalled the Google Plugin and Google App Engine SDK after I got the same problem with an older version of the SDK. Today I started Eclipse and after the workspace comes up, I see the message Updating myproject/...ne - 1.3.0 in the status bar of Eclipse. I suspect that it means Updating myproject/Google App Engine - 1.3.0. With this message my whole Eclipse freezes and I can only kill the process. Does anybody know why that happens? And how can I prevent the plugin from performing the update? I had the same problem yesterday with the old setup and the solution was to remove the folders for the plugin from Eclipse plugins and features directories and to reinstall the plugin. Then it worked yesterday and crashed this morning. Thank you very much for your help! Greetings, Peter -- 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.