[appengine-java] log4j warning
Hello All, on the GAE production server I sometimes get the following warning: W 06-05 07:12AM 48.285 [...].stderr: log4j:WARN No appenders could be found for logger (DataNucleus.Connection). W 06-05 07:12AM 48.285 [...].stderr: log4j:WARN Please initialize the log4j system properly. can someone please tell me where I have what to add in the Eclipse project to get rid of this message; I have tried several approaches, but I always failed; thank you very much in advance; Best Regards Rudolf -- 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] GAE Task Queue and Google Spreadsheet Java API
Hello, I use Google Spreadsheet to store my data; I would like to use GAE to retrieve these data and perform calculations on it; I use the following code to get the data from the spreadsheet server - executed in a GAE task queue: ListFeed rows1[int_year - 1993] = getData_Query_ListFeed(( (zahlungsdatum = 01-01- + year + ) (zahlungsdatum = 31-12- + year + ) ),zahlungsdatum); private ListFeed getData_Query_ListFeed(String queryString, String orderByColumn) { ListFeed rowFeed = new ListFeed(); try { // get rows and cell data URL metafeedUrl = new URL(http://spreadsheets.google.com/feeds/ spreadsheets/private/full); SpreadsheetFeed feed = spreadsheetService.getFeed(metafeedUrl, SpreadsheetFeed.class); java.util.ListSpreadsheetEntry spreadsheets = feed.getEntries(); ListQuery query = new ListQuery(spreadsheets.get(spreadsheet_index).getWorksheets().get(worksheet_index).getListFeedUrl()); query.setSpreadsheetQuery(queryString); query.setSortColumn(orderByColumn); rowFeed = spreadsheetService.query(query, ListFeed.class); } catch(Exception ex){} return rowFeed; } with the following line I check, that I have received data from the Google spreadsheet server: res = rows1[int_year - 1993].getEntries().size(); if res is 0, I repeat the task; if res is greater 0, I move to the next task; when I run this code on my localhost GAE server within Eclipse everything works very well; when I execute the code on the GAE Web Server, I very often get res=0 back; that means, I have very often to repeat the task; I checked the log files on the GAE server - it looks like that the 30 sec limitation for a request is not touched; it looks like that the code of the task is not executed; nevertheless, sometimes it works fine; has someone an idea what I am doing wrong? is there a better way to access the Google Spreadsheets from GAE? thank you very much in advance for your help; Best Regards Rudolf -- 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: Serialization Error on GData Spreadhseet
Hello Ikai, I have a mix of functions which read or write data from/to a Spreadsheet; I fail on both; Best Regards Rudolf On 4 Mai, 11:06, Ikai L (Google) ika...@google.com wrote: Are you storing something in the session, such as an instance of the GData client? On Mon, May 3, 2010 at 7:20 PM, Rudolf rudolfstolz...@googlemail.comwrote: Hello, I am new on Google App Engine; I wrote some code which accesses a Google Spreadsheet through the provided GData Java API; everythings works well running in the Eclipse local Environment or running the code on a local Apache Tomcat Server; nevertheless, running the code on the Google App Engine (deployed through Elipse) fails with the following error: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. the App Engine log gives me the following information: Uncaught exception from servlet java.lang.RuntimeException: java.io.NotSerializableException: com.google.gdata.client.spreadsheet.SpreadsheetService at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) ... Any idea what I am doing wrong; thank you in advance for your help; Best Regards Rudolf -- 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 Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en.- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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: Serialization Error on GData Spreadhseet
Hello, I fixed above mentioned problem by a more accurate design of my Servlets; the code is now executing on GAE; nevertheless, now I face another problem; the data calculation for the response on the GAE takes more then 30 seconds; at about 30 seconds GAE kills my request; I found a lot of threads in the Web on this issue, but not the information I have looked for; is it possible to tell GAE, that a request takes more then 30 seconds? it is difficult to split my application into different requests, since within one request I have to get the data of a Spreadsheet (more than 6000 data records) for the calculation of a result; this event will eventually take more then 30 seconds; any idea how I can handle this; thanks in advance for your help; Best Regards Rudolf On 4 Mai, 18:10, Rudolf rudolfstolz...@googlemail.com wrote: Hello Ikai, I have a mix of functions which read or write data from/to a Spreadsheet; I fail on both; Best Regards Rudolf On 4 Mai, 11:06, Ikai L (Google) ika...@google.com wrote: Are you storing something in the session, such as an instance of the GData client? On Mon, May 3, 2010 at 7:20 PM, Rudolf rudolfstolz...@googlemail.comwrote: Hello, I am new on Google App Engine; I wrote some code which accesses a Google Spreadsheet through the provided GData Java API; everythings works well running in the Eclipse local Environment or running the code on a local Apache Tomcat Server; nevertheless, running the code on the Google App Engine (deployed through Elipse) fails with the following error: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. the App Engine log gives me the following information: Uncaught exception from servlet java.lang.RuntimeException: java.io.NotSerializableException: com.google.gdata.client.spreadsheet.SpreadsheetService at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) ... Any idea what I am doing wrong; thank you in advance for your help; Best Regards Rudolf -- 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 Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en.-Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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 athttp://groups.google.com/group/google-appengine-java?hl=en.- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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] Serialization Error on GData Spreadhseet
Hello, I am new on Google App Engine; I wrote some code which accesses a Google Spreadsheet through the provided GData Java API; everythings works well running in the Eclipse local Environment or running the code on a local Apache Tomcat Server; nevertheless, running the code on the Google App Engine (deployed through Elipse) fails with the following error: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. the App Engine log gives me the following information: Uncaught exception from servlet java.lang.RuntimeException: java.io.NotSerializableException: com.google.gdata.client.spreadsheet.SpreadsheetService at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) ... Any idea what I am doing wrong; thank you in advance for your help; Best Regards Rudolf -- 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.