[appengine-java] Re: Development AppEngine server quits with no warnings.
Created an issue for this: http://code.google.com/p/googleappengine/issues/detail?id=4712 -- 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.
[appengine-java] Query with several filters on same list property potential exploding index problem...
I handle a class MyClass that holds a list property myListProperty. I use the low-level API to query over this class, with a dynamic number of filters over this very single field. Those filters mainly use different kind of operators (inequality filters and in filters). Sample code: Query q = new Query(MyClass); q.addFilter(myListProperty, FilterOperator.IN, oneCollection); q.addFilter(myListProperty, FilterOperator.IN, anotherCollection); q.addFilter(myListProperty, FilterOperator.GREATER_THAN, oneString); q.addFilter(myListProperty, FilterOperator.LESS_THAN, anotherString); When executing this query in dev mode, it generates the following index in datastore-indexes-auto.xml: !-- Used 15 times in query history -- datastore-index kind=MyClass ancestor=false source=auto property name=myListProperty direction=asc/ property name=myListProperty direction=asc/ property name=myListProperty direction=asc/ /datastore-index You got it : this would generate a mega-exploding index problem when in productionŠ Can someone confirm that this kind of index is NOT REQUIRED when executing that query on the actual datastore ? -- 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.
[appengine-java] Need help trying to solve uploading to blobstore on the server side???
I'm frustrated with the blobstore upload on the server side. I can't seem to figure out whats going wrong. I'm posting the payload below. I need to figure out how to upload on the server side so I can resize a thumb and write the bytes into a blob. I'm using a servlet to setup a task to do the task so I don't get a deadline error. URLFetchService urlFetch = URLFetchServiceFactory.getURLFetchService(); FetchOptions fetchOptions = FetchOptions.Builder.withDefaults().setDeadline(1000.00); HTTPRequest request = new HTTPRequest(url, HTTPMethod.POST, fetchOptions); ... I write the payload below ... I'm testing the upload method and I'm getting an error. ***Header: name=Content-Type value=multipart/form-data; boundary=GoneVerticalBoundaryJ7mxnS1yC16DxAAC **PAYLOAD START** --GoneVerticalBoundaryJ7mxnS1yC16DxAAC Content-Disposition: form-data; name=File; filename=test.txt Content-Type: text/csv thisistextinfile --GoneVerticalBoundaryJ7mxnS1yC16DxAAC-- **END PAYLOAD** [WARN] /_ah/upload/ahNnb25ldmVydGljYWwtbGxjLXYzchwLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18Y0hcM java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload( UploadBlobServlet.java:380) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access$000( UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet$1.run( UploadBlobServlet.java:101) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost( UploadBlobServlet.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter( ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter( TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter( StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle( DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle( JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content( HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run( SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run( QueuedThreadPool.java:582) Any thoughts would be much appreciated :). Brandon Donnelson http://gwt-examples.googlecode.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-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.
[appengine-java] ROWID PSEDO Column and queries on rowid
Hi, I have a oracle query using rowid pseudo column, basically to fetch next 10 record each time for pagination. Is there any artifact that is equivalent in datastore ? if not what is my alternative. Appreciate your 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-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.
Re: [appengine-java] Could not initialize class PMF
Are you trying to reference PMF in your client side GWT code? This won't work. It has to be in your server side code. This is what the stack trace seems to indicate. If not, I'd say look to make sure PMF is in your classpath. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Tue, Mar 8, 2011 at 4:58 PM, Laci laszlo.bor...@gmail.com wrote: Hi! I am trying to use the persistancemanagerfactory, and always get the following error. I have searched over the internet for solutions, nothing helped so far. Any help is welcome. I am getting lost. When I try to use the instance, I get the error. PersistenceManager pm = PMF.get().getPersistenceManager(); try { pm.currentTransaction().begin(); pm.makePersistent(c); pm.currentTransaction().commit(); } catch (Exception ex) { pm.currentTransaction().rollback(); throw new RuntimeException(ex); } finally { pm.close(); } PMF implementation: import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; public final class PMF { private static PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory(transactions-optional); private PMF() {} public static synchronized PersistenceManagerFactory get() { if(pmfInstance == null) { pmfInstance = JDOHelper.getPersistenceManagerFactory( transactions-optional); } return pmfInstance; } } jdconfig.xml: ?xml version=1.0 encoding=utf-8? jdoconfig xmlns=http://java.sun.com/xml/ns/jdo/jdoconfig; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://java.sun.com/xml/ns/jdo/jdoconfig persistence-manager-factory name=transactions-optional property name=javax.jdo.PersistenceManagerFactoryClass value=org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory/ property name=javax.jdo.option.ConnectionURL value=appengine/ property name=javax.jdo.option.NontransactionalRead value=true/ property name=javax.jdo.option.NontransactionalWrite value=true/ property name=javax.jdo.option.RetainValues value=true/ property name=datanucleus.appengine.autoCreateDatastoreTxns value=true/ /persistence-manager-factory /jdoconfig Error: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.reference.client.GreetingService.addCompany(com.reference.shared.Company)' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class com.reference.server.PMF at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at
Re: [appengine-java] Could not initialize class PMF
Hi Laci, NoClassDefFoundError can mean one of two things: 1) You really didn't include the class in your webapp, so it can't be found. You should check the classes in WEB-INF/classes and the jars in WEB-INF/lib to make sure com.reference.server.PMF is present. 2) Your PMF class threw an exception in its static initializer the very first time the JVM tried to class load it. If this is the case, there should be an ExceptionInInitializerError somewhere in your logs. In this specific case, something could have failed in your initialization of pmfInstance. On Tue, Mar 8, 2011 at 7:58 PM, Laci laszlo.bor...@gmail.com wrote: Hi! I am trying to use the persistancemanagerfactory, and always get the following error. I have searched over the internet for solutions, nothing helped so far. Any help is welcome. I am getting lost. When I try to use the instance, I get the error. PersistenceManager pm = PMF.get().getPersistenceManager(); try { pm.currentTransaction().begin(); pm.makePersistent(c); pm.currentTransaction().commit(); } catch (Exception ex) { pm.currentTransaction().rollback(); throw new RuntimeException(ex); } finally { pm.close(); } PMF implementation: import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; public final class PMF { private static PersistenceManagerFactory pmfInstance = JDOHelper.getPersistenceManagerFactory(transactions-optional); private PMF() {} public static synchronized PersistenceManagerFactory get() { if(pmfInstance == null) { pmfInstance = JDOHelper.getPersistenceManagerFactory( transactions-optional); } return pmfInstance; } } jdconfig.xml: ?xml version=1.0 encoding=utf-8? jdoconfig xmlns=http://java.sun.com/xml/ns/jdo/jdoconfig; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://java.sun.com/xml/ns/jdo/jdoconfig persistence-manager-factory name=transactions-optional property name=javax.jdo.PersistenceManagerFactoryClass value=org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory/ property name=javax.jdo.option.ConnectionURL value=appengine/ property name=javax.jdo.option.NontransactionalRead value=true/ property name=javax.jdo.option.NontransactionalWrite value=true/ property name=javax.jdo.option.RetainValues value=true/ property name=datanucleus.appengine.autoCreateDatastoreTxns value=true/ /persistence-manager-factory /jdoconfig Error: [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.reference.client.GreetingService.addCompany(com.reference.shared.Company)' threw an unexpected exception: java.lang.NoClassDefFoundError: Could not initialize class com.reference.server.PMF at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at
[appengine-java] Timeout while adding an auto increment column in task queue
Hi all I am using mysql instance of google app engine. I have to add an auto increment column to a table name actions. This table already contains around 2 lacs of records. When i alter this table i am getting following exceptions Exception :class java.sql.SQLException: Timed out. at com.google.appengine.api.rdbms.RdbmsApiProxyClient $ApiProxyBlockingInterface.makeSyncCall(RdbmsApiProxyClient.java:103) at com.google.appengine.api.rdbms.RdbmsApiProxyClient $ApiProxyBlockingInterface.exec(RdbmsApiProxyClient.java:54) at com.google.storage.speckle.jdbc.internal.SpeckleProtoClient.executeSql(SpeckleProtoClient.java: 80) at com.google.storage.speckle.jdbc.internal.SpeckleProtoClient.executeSql(SpeckleProtoClient.java: 71) at com.google.storage.speckle.jdbc.SpeckleConnection.executeSql(SpeckleConnection.java: 400) at com.google.storage.speckle.jdbc.SpecklePreparedStatement.executeSqlImpl(SpecklePreparedStatement.java: 99) at com.google.storage.speckle.jdbc.SpeckleStatement.executeImpl(SpeckleStatement.java: 118) at com.google.storage.speckle.jdbc.SpeckleStatement.executeUpdateImpl(SpeckleStatement.java: 231) at com.google.storage.speckle.jdbc.SpeckleStatement.executeUpdate(SpeckleStatement.java: 241) I am executing the following query: Connection connection = ConnectionManager.getConnection(database); connection1.setAutoCommit(true); String updateQuery = alter table actions modify column _autoincrement_ bigint(20) unsigned auto_increment unique; PreparedStatement stmt = connection1.prepareStatement(updateQuery); stmt.executeUpdate(updateQuery, Statement.NO_GENERATED_KEYS); I am executing these lines in task queue. Its run fine on local server. Regards Rick -- 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.
Re: [appengine-java] Could not initialize class PMF
Hi! Everything is in place, and I could come over this error, but the app is stil not working, got the following error message: [WARN] /reference/greet javax.jdo.JDOFatalInternalException: No resources could be found to annotate error message key:MSG_NestedThrowablesStackTrace at javax.jdo.spi.I18NHelper.assertBundle(I18NHelper.java:269) at javax.jdo.spi.I18NHelper.msg(I18NHelper.java:147) at javax.jdo.JDOException.printStackTrace(JDOException.java:266) at com.google.apphosting.utils.jetty.AppEngineWebAppContext$AppEngineServletContext.log(AppEngineWebAppContext.java:75) at com.google.gwt.user.server.rpc.RPCServletUtils.writeResponseForUnexpectedFailure(RPCServletUtils.java:344) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doUnexpectedFailure(AbstractRemoteServiceServlet.java:110) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) [WARN] /reference/greet javax.jdo.JDOFatalInternalException: No resources could be found to annotate error message key:MSG_NestedThrowablesStackTrace at javax.jdo.spi.I18NHelper.assertBundle(I18NHelper.java:269) at javax.jdo.spi.I18NHelper.msg(I18NHelper.java:147) at javax.jdo.JDOException.printStackTrace(JDOException.java:266) at com.google.gwt.dev.util.log.PrintWriterTreeLogger.doLog(PrintWriterTreeLogger.java:88) at com.google.gwt.dev.util.log.AbstractTreeLogger.log(AbstractTreeLogger.java:213) at com.google.gwt.core.ext.TreeLogger.log(TreeLogger.java:281) at com.google.appengine.tools.development.gwt.AppEngineLauncher$LogAdapterHandler.publish(AppEngineLauncher.java:240) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source) at com.google.apphosting.utils.jetty.JettyLogger.warn(JettyLogger.java:58) at org.mortbay.log.Log.warn(Log.java:196) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:458) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at
[appengine-java] Re: Development AppEngine server quits with no warnings.
I'm also experiencing the exact same problem. I verified on two different macs. -- 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.
[appengine-java] Re: Need help trying to solve uploading to blobstore on the server side???
Wow, so far I got it working. So it is possible to do it on the server side. I had to fix request url to be absolute instead of relative, or at least I thought I had it fixed, and wasn't. Here is what I am doing so far: private void upload2_A(long fileThingId, long stuffId, String fileName, String contentType, byte[] filebytes) { String base = sp.getUrl(true); String surl = BlobstoreServiceFactory.getBlobstoreService().createUploadUrl(/upload); surl = base + surl; URL url = null; try { url = new URL(surl); } catch (MalformedURLException e) { log.warning(BlobJdo.upload2_A() Error, could not setup url + e.toString()); e.printStackTrace(); } String boundary = createBoundary(); URLFetchService urlFetch = URLFetchServiceFactory.getURLFetchService(); FetchOptions fetchOptions = FetchOptions.Builder.withDefaults().setDeadline(1000.00); HTTPRequest request = new HTTPRequest(url, HTTPMethod.POST, fetchOptions); request.addHeader(new HTTPHeader(Content-Type, multipart/form-data; boundary= + boundary)); request.addHeader(new HTTPHeader(Cookie, sp.getHeader(Cookie))); //request.addHeader(new HTTPHeader(Host, 127.0.0.1:)); //request.addHeader(new HTTPHeader(Origin, http://127.0.0.1:;)); //request.addHeader(new HTTPHeader(User-Agent, Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko ))); //request.addHeader(new HTTPHeader(Referer, http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997;)); //request.addHeader(new HTTPHeader(Accept, application/xml ,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png ,*/*;q=0.5)); //request.addHeader(new HTTPHeader(Accept-Language, en-us)); //request.addHeader(new HTTPHeader(Accept-Encoding, gzip, deflate)); //request.addHeader(new HTTPHeader(Connection, keep-alive)); ByteArrayOutputStream out = new ByteArrayOutputStream(); write(out, -- + boundary + \r\n); writeParameter(out, oid, Long.toString(sp.getUserThingId())); write(out, -- + boundary + \r\n); writeParameter(out, tid, Long.toString(fileThingId)); write(out, -- + boundary + \r\n); writeImage(out, fileName, contentType, filebytes); write(out, -- + boundary + --\r\n); // end boundary int len = out.toByteArray().length; request.addHeader(new HTTPHeader(Content-Length, + len)); request.setPayload(out.toByteArray()); // debug echo(request.getHeaders()); echo(request.getPayload()); // send request HTTPResponse res = null; try { res = urlFetch.fetch(request); } catch (IOException e) { e.printStackTrace(); } if (res == null) { log.warning(BlobJdo.Upload2_A() could not setup urlfetch); return; } InputStream in = new ByteArrayInputStream(res.getContent()); int data; try { data = in.read(); while(data != -1) { data = in.read(); } in.close(); } catch (IOException e) { log.warning(BlobJdo.Upload2_A() data write out error + e.toString()); e.printStackTrace(); } } private String getRandomStr() { return Long.toString(random.nextLong(), 36); } private String createBoundary() { return GoneVerticalBoundary + getRandomStr() + getRandomStr(); } private void write(OutputStream os, String s) { try { os.write(s.getBytes()); } catch (IOException e) { e.printStackTrace(); } } private void writeParameter(OutputStream os, String key, String value) { write(os, Content-Disposition: form-data; name=\ + key + \\r\n\r\n+ value + \r\n); } private void writeImage(OutputStream os, String fileName, String contentType, byte[] image) { write(os, Content-Disposition: form-data; name=\File\; filename=\ + fileName + \\r\n); write(os, Content-Type: + contentType + \r\n\r\n); try { os.write(image); } catch (IOException e) { e.printStackTrace(); } write(os, \r\n); } private void echo(ListHTTPHeader headers) { if (headers == null) { return; } IteratorHTTPHeader it = headers.iterator(); while (it.hasNext()) { HTTPHeader h = it.next(); String hh = h.getName(); String vv = h.getValue(); System.out.println(***Header: hh= + hh + vv= + vv); } } private void echo(byte[] b) { if (b == null) { System.out.println(Why is this null); return; } System.out.println(**PAYLOAD START**); //byte[] b = baos.toByteArray(); InputStream in = new ByteArrayInputStream(b); int data; try { data = in.read(); while(data != -1) { System.out.print((char)data); data = in.read(); } in.close(); } catch (IOException e) {
Re: [google-appengine] Deleted Developer Account In Google Apps
Anyone? Please, I don't want to lose any data! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: ABOUT with_cursor
Oh, I overlooked this description. I see I can't use with_cursor string in URL. Thank you! On 3月8日, 午前7:43, Robert Kluin robert.kl...@gmail.com wrote: Hi, It is fine to use a cursor as a query parameter. A cursor is an opaque base64-encoded string that represents the next starting position of a query after a fetch operation. The app can embed the cursor in web pages as HTTP GET or POST parameters. It is generally safe to pass a datastore cursor to a client, such as in a web form, and accept a cursor value from a client. A client cannot change the cursor value to access results outside of the original query. From: http://code.google.com/intl/en/appengine/docs/python/datastore/querie... Robert On Sun, Mar 6, 2011 at 10:38, legnabea legna...@gmail.com wrote: Nice to meet you. In Google's Document, using with_cursor with memcache API. (http://code.google.com/intl/en/appengine/docs/python/datastore/ queries.html) But I wanna use with_cursor method in URL. ex: If I can get String E9oDBWwoLZtZXJcmFGFjaGF03cHkaCFVzM... by query.cursor(), http://example.com/app?cursor=E9oDBWwoLZtZXJcmFGFjaGF03cHkaCFVzM... Then, Is it no problem ? What problem will be happen ? In security, in convenience, or in performance etc. Sorry for bad english, Please ask if you would like me to explain something. :) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Apps and Accounts
Scenario: I develop an application under mydomain.com Share the application to someone at theirdomain.com Promote that person to be an owner of the application One year later mydomain.com goes away. Does the person at theirdomain.com still have full access to the app or is it permanently tied to the original creator and, thus, will it be deleted from App Engine? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] JDO GUI Tools
Hey, does anybody know something about an GUI Tool for JDO Development especially for Google App Engine? Thanks for help -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] JDO Drop Columns/Attribute
Hey... I tried some tests with JDO and the Google App Engine. So I created a simple object: @PersistenceCapable(identityType = IdentityType.APPLICATION) @SuppressWarnings(serial) public class CareerDO extends CommonData { public CareerDO() { } public CareerDO(String key, Long sort) { this.key = key; this.sort = sort; } @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Unique protected Key id; @Persistent(nullValue = NullValue.NONE) @Index protected String key; @Persistent(nullValue = NullValue.NONE) protected Long sort; @Persistent protected SetKey races = new HashSetKey(); } It works fine and the Set of Keys is the reference for another object. But what will happen when I don't longer not a field? Ok, I delete the attributes and remove the annotation. But in my tests, the attribute ist still alive in the database. So how does it work with a drop or add column? Regards, Markus Unger -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] GAE/J mail goes into Junk folder of Yahoo and Hotmail
The message is a standard account activation email and goes like this: You've successfully signed up to foobar. To activate your account please click http://www.foobar.com/auth?activateu=165004k=98v7axdwiuiqdidw Thanks, the foobar team I've added the following TXT DNS entry in my domain. It seemed to work for hotmail but not for yahoo: v=spf1 mx include:_spf.google.com include:aspmx.googlemail.com ~all What should I do next? Is there a solution for 2011 or should I consider a third party mail service such as http://postmarkapp.com/? thanks a lot, Ioannis -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Searching logs in log viewer fails
So will this just end after a period of time or is there something you have to do? Also how long is the period? Thanks Tarush Sent via BlackBerry by ATT -Original Message- From: Ron Zalkind ron...@gmail.com Sender: google-appengine@googlegroups.com Date: Tue, 8 Mar 2011 19:25:34 To: google-appengine@googlegroups.comgoogle-appengine@googlegroups.com Reply-To: google-appengine@googlegroups.com Cc: Google App Enginegoogle-appengine@googlegroups.com Subject: Re: [google-appengine] Searching logs in log viewer fails I've experience this as well. a similar issue happens when you just use next several times. the log would 'end' at random times. Thanks, Ron On Mar 8, 2011, at 2:22 PM, Samuel samu.mor...@gmail.com wrote: Hello! I've had a little bug in my app and I'd like to retrieve some logs from a week ago. If I search in the log viewer with filters: - Show: all requests. - A regex with the path of the affected request. - Since: now. then it works fine. But, if I change the filter since and write a date 7 days ago, then I get no results and other strange behaviour, like next page link is clickable, but another empty result page is shown. I've been looking for a known issue, but I had no luck. Should I open it? Thanks, Samuel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Errors during downloading data using bulkloader
Hi, I am trying to download some from the datastore using the following command: appcfg.py download_data --config_file=bulkloader.yaml -- application=myappname --kind=mykindname --url=http:// myappname.appspot.com/_ah/remote_api -- filename=myappname_mykindname.csv When I didn't have much data in this particular kind/table I could download the data in one shot - occasionally running into the following error: .[ERROR ] [Thread-11] ExportProgressThread: Traceback (most recent call last): File C:\Program Files\Google\google_appengine\google\appengine\tools \bulkload er.py, line 1448, in run self.PerformWork() File C:\Program Files\Google\google_appengine\google\appengine\tools \bulkload er.py, line 2216, in PerformWork item.key_end) File C:\Program Files\Google\google_appengine\google\appengine\tools \bulkload er.py, line 2011, in StoreKeys (STATE_READ, unicode(kind), unicode(key_start), unicode(key_end))) OperationalError: unable to open database file When that error appeared I would simply re-run the download and things would work out well. Of late, I am noticing that as the size of my kind increases, the download tool fails much more often. For instance, with a kind with ~3500 entities I had to run to the command 5 times - only the last of which succeeded. Is there a way around this error? Previously, my only worry was I wouldn't be able to automate downloads in a script because of the occasional failures - now I am scared I won't be able to get my data out at all. This issue was discussed previously here: http://tinyurl.com/6yh9g5u , but the post is old and I am not sure what the suggested flag does - hence posting my similar query again. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Blobstore billing enabled but still get The Blobstore API will be enabled for this application once billing has been enabled in the admin console.
Hi All, I have enabled billing in the appengine console. Although I have only have a maximum billing of $1 a day i do not see why the blobstore api is still not enabled Billing Status: Enabled (Daily budget: $1.00) - Settings I am getting this error. javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String dev.mochameet.com.project.client.rpc_service.GreetingService.getBlobstoreUploadUrl()' threw an unexpected exception: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 261) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $2.handleRequest(RuntimePb.java:8440) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 454) at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java: 572) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java: 688) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: 326) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: 318) at com.google.tracing.TraceContext $TraceContextRunnable.run(TraceContext.java:446) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1110) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Caused by: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.net.rpc.RpcStub$RpcCallbackDispatcher $1.runInContext(RpcStub.java:1024) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java: 688) at com.google.tracing.TraceContext
[google-appengine] AppEngine exits after startup without warning (after Mac Java 6 Update 4)
Hi My computer automatically applied Mac OSX 10.6 Java 6 Update 4 today and since then I have been unable to start the development AppEngine server. It just exits without any warning, or error messages. I tried reinstalling Eclipse/AppEngine SDK/GWT SDK/Google Plugin, but no avail. Is anyone else having the same issue? Any hints on what can be done? Apple pulled all the older updates, so there seems to be no way of rolling back. This is running the vanilla Guestbook app... 2011-03-09 00:19:31.653 java[1797:a07] [Java CocoaComponent compatibility mode]: Enabled 2011-03-09 00:19:31.655 java[1797:a07] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.10 Initializing AppEngine server Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed /Users/roy/Developer/workspace/Guestbook/war/ WEB-INF/appengine-web.xml Successfully processed /Users/roy/Developer/workspace/Guestbook/war/ WEB-INF/web.xml The server is running at http://localhost:/ process exits Thx Roy -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] login for own domain
Hello, I have a requirement that my login should only authenticated with the domain name which I have mapped. for example, I have one domain name called www.abc.com . I have mapped this domain with google app engine. There is one login page. When the user not signed in it will be redirected to google login page. There it should check whether that particular user is having the email address of abc.com. (ad...@abc.com). That means only the users under the domain of abc.com.I dont want the user to provide the google login service. I can validate by using username and password. But does google app engine provide such a option? Thanks binu -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] [Help] How can i read a text file
Hi all, I've read old discussion but i can not find out what happened to my project. I want to read an .txt from a servlet from my java project. Like BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(data/cafe.txt), UTF8)); with appengine-web.xml like this static-files include path=/data/cafe.txt/ /static-files and my cafe.txt file is put under Web-INF/data/ but when my program run, the error file not found is raised? So where is the problem with my project?? Thank you all, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] appcfg.py download_data
Hello, I was reading the documentation on Uploading and Downloading Data[1]. The second part talks about appcfg.py's download_data and upload_data. The third part talks about configuring the Bulk Loader. When reading that part, when it talks about generating bulkloader.yaml specifically, I noticed it says Note that your datastore statistics can be up to 24 hours old, so if you change your schema, the generated file might not reflect the changes right away. I'm not sure about this, but I assume appcfg.py's download_data uses the bulkloader to achieve its goal. So, I was wondering if there could be any trouble using download_data on a recently changed schema. Should I wait 24hrs before doing a backup if I just changed the schema? Thank you, [1] http://code.google.com/appengine/docs/python/tools/uploadingdata.html -- Pablo Antonio (AKA crazy2k) http://www.pablo-a.com.ar/ -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: AppEngine exits after startup without warning (after Mac Java 6 Update 4)
http://code.google.com/p/googleappengine/issues/detail?id=4712 There's a thread in the GAE/J group about this as well. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] [Help] How can i read a text file
You need to get the real path using the ServletContext. For example, to get your WEB-INF: getServletContext().getRealPath(/WEB-INF/) Stephen On Tue, Mar 8, 2011 at 9:34 PM, Nguyen Trung Kien kiennguyen@gmail.comwrote: Hi all, I've read old discussion but i can not find out what happened to my project. I want to read an .txt from a servlet from my java project. Like BufferedReader in = new BufferedReader( new InputStreamReader( new FileInputStream(data/cafe.txt), UTF8)); with appengine-web.xml like this static-files include path=/data/cafe.txt/ /static-files and my cafe.txt file is put under Web-INF/data/ but when my program run, the error file not found is raised? So where is the problem with my project?? Thank you all, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Appengine app + naked domain Google results question
I already saw the many posts about naked domain appengine. So the solution is, seeing the posts contents, to point www.mydomain.com to myapp.appspot.com and then redirect mydomain.com to www.mydomain.com But, I would like to know... If I do this, will I have troubles with Google search results? Will I go to be banned by Google for using a redirect? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Searching logs in log viewer fails
For me it was totally random. One time i would page through and it would hit the end after 4 pages, another after 8 pages. On Tue, Mar 8, 2011 at 7:56 PM, Tarush Aggarwal tarush.aggar...@gmail.comwrote: So will this just end after a period of time or is there something you have to do? Also how long is the period? Thanks Tarush Sent via BlackBerry by ATT -Original Message- From: Ron Zalkind ron...@gmail.com Sender: google-appengine@googlegroups.com Date: Tue, 8 Mar 2011 19:25:34 To: google-appengine@googlegroups.comgoogle-appengine@googlegroups.com Reply-To: google-appengine@googlegroups.com Cc: Google App Enginegoogle-appengine@googlegroups.com Subject: Re: [google-appengine] Searching logs in log viewer fails I've experience this as well. a similar issue happens when you just use next several times. the log would 'end' at random times. Thanks, Ron On Mar 8, 2011, at 2:22 PM, Samuel samu.mor...@gmail.com wrote: Hello! I've had a little bug in my app and I'd like to retrieve some logs from a week ago. If I search in the log viewer with filters: - Show: all requests. - A regex with the path of the affected request. - Since: now. then it works fine. But, if I change the filter since and write a date 7 days ago, then I get no results and other strange behaviour, like next page link is clickable, but another empty result page is shown. I've been looking for a known issue, but I had no luck. Should I open it? Thanks, Samuel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Appengine app + naked domain Google results question
On Mar 9, 11:55 am, nacho vela.igna...@gmail.com wrote: I already saw the many posts about naked domain appengine. So the solution is, seeing the posts contents, to pointwww.mydomain.comto myapp.appspot.com and then redirect mydomain.com towww.mydomain.com But, I would like to know... If I do this, will I have troubles with Google search results? Will I go to be banned by Google for using a redirect? First of all, you never point anything to appspot; you use a CNAME to ghs.google.com. google.com, facebook.com, yahoo.com all redirect to www. Google isn't going to ban you for acting the same as the most successful sites, including their own. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Appengine app + naked domain Google results question
On Wednesday, March 9, 2011 2:13:01 PM UTC-3, Geoffrey Spear wrote: On Mar 9, 11:55 am, nacho vela.i...@gmail.com wrote: I already saw the many posts about naked domain appengine. So the solution is, seeing the posts contents, to pointwww.mydomain.comto myapp.appspot.com and then redirect mydomain.com towww.mydomain.com But, I would like to know... If I do this, will I have troubles with Google search results? Will I go to be banned by Google for using a redirect? First of all, you never point anything to appspot; you use a CNAME to ghs.google.com. You understood what I meant. Sorry for my un-technicism. google.com, facebook.com, yahoo.com all redirect to www. Google isn't going to ban you for acting the same as the most successful sites, including their own. That's what I needed to know. Thanks. PS: Sorry too by my english :D -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: GAE/J mail goes into Junk folder of Yahoo and Hotmail
I have noticed this as well. My GAE emails used to be delivered to Yahoo just fine. Recently I have noticed that many of them are not sent to spam at Yahoo. I don't know why. I am sending from user@app- id.appspotmail.com. On Mar 8, 4:56 pm, Ioannis Cherouvim ioannis.cherou...@gmail.com wrote: The message is a standard account activation email and goes like this: You've successfully signed up to foobar. To activate your account please clickhttp://www.foobar.com/auth?activateu=165004k=98v7axdwiuiqdidw Thanks, the foobar team I've added the following TXT DNS entry in my domain. It seemed to work for hotmail but not for yahoo: v=spf1 mx include:_spf.google.com include:aspmx.googlemail.com ~all What should I do next? Is there a solution for 2011 or should I consider a third party mail service such ashttp://postmarkapp.com/? thanks a lot, Ioannis -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] App Engine TOS question
I am trying to serve two different sub domains (www.domain.com and app.domain.com). The www domain is the primary web site. This will initially be basic html and/or jsp pages. As it evolves there may be some simple servlets driving it. The app domain is the main application I'm developing (and currently my primary focus). It is a standalone application but there will be links between the two sites (www app). My question is - Can I create two App Engine projects to support the sub domains? I understand that using multiple apps to spread out the quotas is not allowed. In this case I'm simply trying to divide up the functional units between the app and the web site. In the future there will likely be more than one application/project. Each of these will be linked from the www domain. In this case it makes even less sense for the sub domains to be combined as they will be unrelated apps. So I guess what I'm asking is if it is OK to create an app strictly for my WWW domain with links to my APP domain? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
I'm also interested in this. I have 300 million entities I no longer need, they cost $5 / day to store, but short test with the Datastore Admin seemed to show that they would cost $1500 to delete. Not a nice thing to discover since I'd like to delete them precisely because I need to save money. Isn't there any cheaper way to delete all entities of a type? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Unexpected errors importing Django 1.2
Can anyone identify what is causing the following error? class 'google.appengine.dist._library.UnacceptableVersionError': django 1.2 was requested, but 0.96.4.None is already in use Traceback (most recent call last): File /base/data/home/apps/nat-abbotts/17.348887611921242050/article.py, line 6, in module use_library('django', '1.2') File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 291, in use_library InstallLibrary(name, version, explicit=True) File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 250, in InstallLibrary CheckInstalledVersion(name, version, explicit=True) File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 194, in CheckInstalledVersion (name, desired_version, installed_version)) class 'google.appengine.dist._library.UnacceptableVersionError': django 1.2 was requested, but 0.96.4.None is already in use -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Session time out..
I am pretty much stuck here.. Any suggestions would be highly appreciated. On Mar 6, 10:59 pm, GWTNewbie venk...@gmail.com wrote: Hello: I am trying to implement a session time out logic for my application. In my Login Servlet I do the following: getThreadLocalRequest().getSession(true).setAttribute(sessionDetails, session); getThreadLocalRequest().getSession(false).setMaxInactiveInterval(30); This creates an _ah_SESSION entry. However as per the servlet specification I expect this session to be invalidated after 30 seconds. However this does not happen. Any suggestions as to how this can be implemented ? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] login for own domain
Hi Binu, You could use federated login, then use the domain they are coming from when you build the federated identity. http://code.google.com/appengine/docs/python/users/functions.html For an overview: http://code.google.com/appengine/articles/openid.html Robert On Wed, Mar 9, 2011 at 00:30, Binu vm binu...@gmail.com wrote: Hello, I have a requirement that my login should only authenticated with the domain name which I have mapped. for example, I have one domain name called www.abc.com . I have mapped this domain with google app engine. There is one login page. When the user not signed in it will be redirected to google login page. There it should check whether that particular user is having the email address of abc.com. (ad...@abc.com). That means only the users under the domain of abc.com.I dont want the user to provide the google login service. I can validate by using username and password. But does google app engine provide such a option? Thanks binu -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
Crossposting my reply from stackoverflow. I got advice on #appengine in IRC that simply getting the keys of 2000 entities at a time and spawning tasks to delete them in pieces (can pass keys as strings to tasks) may be cheaper than using the Datastore Admin tool. I am trying this now. I will try to remember to report back tomorrow if this seems to be cheaper or not. http://stackoverflow.com/questions/5252477/economically-deleting-data-from-app-engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
why would it be cheaper if at the end, the datastore admin creates a map reduce that iterates thru the model via splitting the index and loading each entity per key name ? Each map is a task queue so it is exactly the same :) On 9 March 2011 18:22, Bemmu bemmu@gmail.com wrote: Crossposting my reply from stackoverflow. I got advice on #appengine in IRC that simply getting the keys of 2000 entities at a time and spawning tasks to delete them in pieces (can pass keys as strings to tasks) may be cheaper than using the Datastore Admin tool. I am trying this now. I will try to remember to report back tomorrow if this seems to be cheaper or not. http://stackoverflow.com/questions/5252477/economically-deleting-data-from-app-engine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- http://about.me/david.mora -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
I've been given the impression from these forums that the datastore admin tool is so expensive for exactly the reason you've stated David - it loads each entity by key before deletion, whereas deleting purely on keys is much cheaper CPU-wise as you don't need to bother with the retrieval of the entire entity to carry out the delete. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] fetch limit?
Hey Andreas, I can easily fetch several thousand entities (over 5,000) in a single batch -- within a script. The issue is probably because you're doing the fetch from the remote api, all of the entities have to be transferred to the client. You might want fetch smaller batches and use cursors. http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_cursor Robert On Wed, Mar 9, 2011 at 12:23, andreas schmid a.schmi...@gmail.com wrote: hi, is there still a fetch limit somewhere? i cant really fetch more than 2100 items... if i try to do that i dont get any result in the remote api and i have to kill the query. why is that? ... 2100 is a pretty random number but im seeing this issue on all my apps. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
hmmm, well Wesley's option B was merely because the batch operations i think. One nice feature about the map reduce is the mutation pool which handles the logic of batching an operation while you yield thru iterations. I guess in a big dataset like yours make sense (the model retrieval vs key only). Anyways, interested case - i'll love to see where it ends :) On 9 March 2011 19:26, Simon Knott knott.si...@gmail.com wrote: I've been given the impression from these forums that the datastore admin tool is so expensive for exactly the reason you've stated David - it loads each entity by key before deletion, whereas deleting purely on keys is much cheaper CPU-wise as you don't need to bother with the retrieval of the entire entity to carry out the delete. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- http://about.me/david.mora -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Unexpected errors importing Django 1.2
Hi Nathanael, Did you try to search for the error? http://www.google.com/search?sourceid=chromeie=UTF-8q=django+1.2+was+requested%2C+but+0.96.4.None+is+already+in+use Read some of that material for more info, but you can try putting the following in appenginge_config.py: from google.appengine.dist import use_library use_library('django', '1.2') Robert On Wed, Mar 9, 2011 at 17:41, Nathanael Abbotts nat.abbo...@gmail.com wrote: Can anyone identify what is causing the following error? class 'google.appengine.dist._library.UnacceptableVersionError': django 1.2 was requested, but 0.96.4.None is already in use Traceback (most recent call last): File /base/data/home/apps/nat-abbotts/17.348887611921242050/article.py, line 6, in module use_library('django', '1.2') File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 291, in use_library InstallLibrary(name, version, explicit=True) File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 250, in InstallLibrary CheckInstalledVersion(name, version, explicit=True) File /base/python_runtime/python_lib/versions/1/google/appengine/dist/_library.py, line 194, in CheckInstalledVersion (name, desired_version, installed_version)) class 'google.appengine.dist._library.UnacceptableVersionError': django 1.2 was requested, but 0.96.4.None is already in use -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Deleting Data Really Expensive!
I've tried using the datastore admin to delete some very large datasets as well. The solution Bemmu is using will be *significantly* faster, and from my experience, should be more cost effective. I'm also eager to hear what Bemmu thinks after the delete has ran for a while. Robert On Wed, Mar 9, 2011 at 21:20, David Mora dla.m...@gmail.com wrote: hmmm, well Wesley's option B was merely because the batch operations i think. One nice feature about the map reduce is the mutation pool which handles the logic of batching an operation while you yield thru iterations. I guess in a big dataset like yours make sense (the model retrieval vs key only). Anyways, interested case - i'll love to see where it ends :) On 9 March 2011 19:26, Simon Knott knott.si...@gmail.com wrote: I've been given the impression from these forums that the datastore admin tool is so expensive for exactly the reason you've stated David - it loads each entity by key before deletion, whereas deleting purely on keys is much cheaper CPU-wise as you don't need to bother with the retrieval of the entire entity to carry out the delete. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- http://about.me/david.mora -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Problems copying entities to the high replication datastore.
I have about 2GB of data that I was copying between applications while porting from a master/slave datastore to a high replication one and the process has completely stopped in the middle. It's been about 12 hours so far and about $80 worth of CPU, and my mappers are stuck in a running state. There are five entity mappers that aren't doing anything that say they are still running. For the first 2 hours of the copy it looked like there was consistent progress and the number of running jobs kept going down and the number of successful shards kept going up, which was of course good. But now there are 5 mapper jobs left that haven't changed progress in 10 hours. The major ones still show about 3 shards left to complete and one shows 8 shards left to complete (out of 32 shards). So, do I need to start over with my copy? I'm ok with that except that I really don't want to spend another $80 just because it broke the first time. And does anyone know why the mapreduce jobs would just go idle? I'm afraid that if I start it over then the same thing will happen and I'll be out another $80 without any real progress. (updated: I just retried a few of the entities again and each of the 5 types of entities gets stuck at the same point, One entity I tried always gets stuck at 3 shards left out of 32 and another one instantly gets stuck on 1 shard out of 1 shard. I thought maybe the updates had gone through even though they said they didn't, but when I look at the datastore admin it shows a lower count for the number of entities and when I go to the app it throws an error saying a reference property failed to resolve, when the original app doesn't have that error with the same request) A side question: It looks like blobstore values are not copied over and I don't see a way to do that. Is there any way currently to do that? We have about 9GB of blobstore values that we need copied over and a lot of them are over 1MB in size so we can't use the urlfetch trick to do it. Please help as soon as you can because our database is stuck in read only mode until we can figure this out. We would rather not pay another $80 or more later by going back to the the master/slave database. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] How can i delete a column from my table from within my app engine account ?
loop the kind and empty the property 2011/3/10 Daniel vedm...@gmail.com Hi I have no use in a certain column in my table, and i don't need the data stored in that table also, How can I delete this column? Thanks ahead, Daniel. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- gr, Wim den Ouden Custom Google App Engine http://code.google.com/intl/nl/appengine/ based webapps https://neighborshare.appspot.com/. Free open source neighborshare framework http://code.google.com/p/relat/. Gae tips http://code.google.com/p/relat/wiki/gaetips Datastore (async)http://code.google.com/p/relat/wiki/gaetips?ts=1299673682updated=gaetips#Datastore_plus_(async) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.