[appengine-java] Re: Total Stored Data billing is misleading
For the past few days, I start to use DeferredTask extensively for numerical calculation. Results of my numerical calculation are good, but there is one huge problem. The 'Total Stored Data' increases from 3.00 GBytes to 11.50 GBytes. Since my numerical calculation does not save entities into datastore, the large increase in 'Total Stored Data' must be caused by DeferredTask. Instead of using DeferredTask, I have changed my code to use task queue directly. For each cycle of my numerical calculation, the increase in 'Total Stored Data' drops from 0.73 GBytes to 0.02 GBytes. My billing 'Total Stored Data' should decrease from 11.50 GBytes to 3.00 GBytes. So far there is no sign of such observation. DeferredTask should delete stored entities after task queue job is completed. Is there a method to clear entities stored by DeferredTask? -- 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] Total Stored Data billing is misleading
My admin console shows 'Size of all entities' is 1 GByte. My Billing Status show 'Total Stored Data' is 9.45 GBytes. It seems the billable 'Total Stored Data' is affected by datastore entities, indexes, memcache, task queue and other background mechanism. I will be a much happier customer if I know why I'm paying for the unknown 8.45 GBytes. Please at least give me enough confidence that the unknown 8.45 GBytes is not a system error. Thanks! http://gochild2009.appspot.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] Re: Reverse proxy won't allow Google Accounts sign in
Solution has been found. 1) Sign up for Google Apps. 2) Buy a domain name gochild2011.com 3) Add gochild2009.appspot.com as a service of gochild2011.com 4) Add new URL web.gochild2011.com for gochild2009.appspot.com 5) Modify host records with web point to 50.56.75.253 as A(Address) record type. 6) Modify Nginx reverse proxy configuration file at 50.56.75.253 as shown below. Location / { proxy_redirect off; proxy_set_header Host $host; proxy_pass http://ghs.google.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } Now users in China should be able to sign in by Google Accounts and play. http://web.gochild2011.com On Mar 1, 9:43 am, GoSharp Lite gosharpl...@gmail.com wrote: A reverse proxy positioned in front of Google Apps may record access logs, and these logs may be mined for usage information. Could above statement the reason that Google Accounts don't allow sign in through a reverse proxy? On Feb 28, 11:21 pm, GoSharp Lite gosharpl...@gmail.com wrote: In order to give users in China access tohttp://gochild2009.appspot.com , a reverse proxy has been set up athttp://50.56.75.253usingNginx. When I try to sign in fromhttp://50.56.75.253, Google Accounts will re-direct back tohttp://50.56.75.253withoutsign in. Is it possible to have a reverse proxy and a working Google Accounts sign in service? p.s. Sign in link is currently disable inhttp://50.56.75.253inorder not to confuse users. -- 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] Reverse proxy won't allow Google Accounts sign in
In order to give users in China access to http://gochild2009.appspot.com , a reverse proxy has been set up at http://50.56.75.253 using Nginx. When I try to sign in from http://50.56.75.253 , Google Accounts will re-direct back to http://50.56.75.253 without sign in. Is it possible to have a reverse proxy and a working Google Accounts sign in service? p.s. Sign in link is currently disable in http://50.56.75.253 in order not to confuse users. -- 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: 1.4 eclipse plugin
) 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.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) 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) On Dec 3, 6:30 pm, GoSharp Lite gosharpl...@gmail.com wrote: I have just upgraded Eclipse Galileo with AppEngine version 1.4.0. There seems to be a mismatch of Tomcat versions between pre- compilation and execution. Does anyone have a solution with jsp compilation issue? Local server shows below logs with SDK 1.4.0 - HTTP ERROR 500 Problem accessing /. Reason: Unable to compile class for JSP: An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:8: org.apache.jsp.GoChildWeb_jsp is not abstract and does not override abstract method getDependants() in org.apache.jasper.runtime.JspSourceDependent [javac] public final class GoChildWeb_jsp extends org.apache.jasper.runtime.HttpJspBase [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent; attempting to use incompatible return type [javac] found : java.lang.Object [javac] required: java.util.List [javac] public Object getDependants() { [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol [javac] symbol : method getJspApplicationContext(javax.servlet.ServletContext) [javac] location: class javax.servlet.jsp.JspFactory [javac] _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext( )).getExpressionFactory(); [javac] ^ [javac] 3 errors On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote: GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the delay. On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote: My apologies. We plan to have it up before the end of the day today. On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com wrote: When will the Eclipse plugin update site be updated? The plugin is now version 1.4, but the SDK is still version 1.3.8. On Dec 3, 2:59 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Dance dance robot is a bit older and the API may have changed slightly (not sure, I have not done a visual check), but it's a good
[appengine-java] Re: 1.4 eclipse plugin
) 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.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) 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) On Dec 3, 6:30 pm, GoSharp Lite gosharpl...@gmail.com wrote: I have just upgraded Eclipse Galileo with AppEngine version 1.4.0. There seems to be a mismatch of Tomcat versions between pre- compilation and execution. Does anyone have a solution with jsp compilation issue? Local server shows below logs with SDK 1.4.0 - HTTP ERROR 500 Problem accessing /. Reason: Unable to compile class for JSP: An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:8: org.apache.jsp.GoChildWeb_jsp is not abstract and does not override abstract method getDependants() in org.apache.jasper.runtime.JspSourceDependent [javac] public final class GoChildWeb_jsp extends org.apache.jasper.runtime.HttpJspBase [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent; attempting to use incompatible return type [javac] found : java.lang.Object [javac] required: java.util.List [javac] public Object getDependants() { [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol [javac] symbol : method getJspApplicationContext(javax.servlet.ServletContext) [javac] location: class javax.servlet.jsp.JspFactory [javac] _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext( )).getExpressionFactory(); [javac] ^ [javac] 3 errors On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote: GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the delay. On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote: My apologies. We plan to have it up before the end of the day today. On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com wrote: When will the Eclipse plugin update site be updated? The plugin is now version 1.4, but the SDK is still version 1.3.8. On Dec 3, 2:59 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Dance dance robot is a bit older and the API may have changed slightly (not sure, I have not done a visual check), but it's a good
[appengine-java] Re: 1.4 eclipse plugin
I have just upgraded Eclipse Galileo with AppEngine version 1.4.0. There seems to be a mismatch of Tomcat versions between pre- compilation and execution. Does anyone have a solution with jsp compilation issue? Local server shows below logs with SDK 1.4.0 - HTTP ERROR 500 Problem accessing /. Reason: Unable to compile class for JSP: An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:8: org.apache.jsp.GoChildWeb_jsp is not abstract and does not override abstract method getDependants() in org.apache.jasper.runtime.JspSourceDependent [javac] public final class GoChildWeb_jsp extends org.apache.jasper.runtime.HttpJspBase [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:18: getDependants() in org.apache.jsp.GoChildWeb_jsp cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent; attempting to use incompatible return type [javac] found : java.lang.Object [javac] required: java.util.List [javac] public Object getDependants() { [javac] ^ An error occurred at line: -1 in the generated java file [javac] D:\Profiles\LOCALS~1\Temp\Jetty_0_0_0_0__warmasbuh \jsp\org\apache\jsp\GoChildWeb_jsp.java:23: cannot find symbol [javac] symbol : method getJspApplicationContext(javax.servlet.ServletContext) [javac] location: class javax.servlet.jsp.JspFactory [javac] _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); [javac] ^ [javac] 3 errors On Dec 4, 6:30 am, Alex Humesky ahume...@google.com wrote: GPE's AppEngine SDK bundle version 1.4.0 is now up. Sorry for the delay. On Dec 3, 11:02 am, Don Schwarz schwa...@google.com wrote: My apologies. We plan to have it up before the end of the day today. On Fri, Dec 3, 2010 at 9:26 AM, Royce Fullerton roy...@gmail.com wrote: When will the Eclipse plugin update site be updated? The plugin is now version 1.4, but the SDK is still version 1.3.8. On Dec 3, 2:59 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Dance dance robot is a bit older and the API may have changed slightly (not sure, I have not done a visual check), but it's a good example of how to use JSNI with the Channel API: http://code.google.com/p/dance-dance-robot/ -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Thu, Dec 2, 2010 at 3:50 PM, emerix rafa...@gmail.com wrote: Great release! Are there some libraries/docs for GWT and the Channel API ? On Dec 2, 10:17 pm, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: They're still rolling out: http://code.google.com/appengine/docs/java/channel/ If you see an error, wait a bit and refresh. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Thu, Dec 2, 2010 at 1:10 PM, Ikai Lan (Google) ikai.l+gro...@google.com ikai.l%2bgro...@google.com ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com wrote: The docs aren't live yet. They'll be live later in the day. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger:http://googleappengine.blogspot.com Reddit:http://www.reddit.com/r/appengine Twitter:http://twitter.com/app_engine On Thu, Dec 2, 2010 at 1:05 PM, Guillaume Laforge glafo...@gmail.com wrote: I don't see any Java API in the javadocs about the Channel API. Is it normal?? On Thu, Dec 2, 2010 at 21:50, Guillaume Laforge glafo...@gmail.com wrote: Actually, one can download the SDK here at least: http://code.google.com/p/googleappengine/downloads/list On Thu, Dec 2, 2010 at 21:50, Guillaume Laforge glafo...@gmail.com wrote: It's not yet on the download area either, nor the documentation been updated. I guess the blog post was a bit in advance, and we'll see the artifacts shortly. We're all too excited and impatient :-) -- Guillaume http://gaelyk.appspot.com On Thu, Dec 2, 2010 at 21:45, Matt Farnell mfarn...@gmail.com wrote: It seems 1.4 isn't yet available as on the eclipse plugin url http://dl.google.com/eclipse/plugin/3.6 Is this an error or do we have to wait for a few extra days like last time?
[appengine-java] Re: Dance Dance Robot error / Channel API
Wonderful! It seems multiple channels can be created with channel API. Wish we can try it on production server. On Jul 27, 11:14 pm, Don Schwarz schwa...@google.com wrote: Sorry, to be clear, I meant that you should create an /_ah/channel directory at the top of your war and copy dev-channel-js.js so it is a file named 'jsapi' in that /_ah/channel directory. This is the path that will work automatically in the 1.3.6 DevAppServer and in prod when this feature launches publicly. If you name the script something else (as you've done), that will work fine for now but you'll need to remember to adjust the path later. On Mon, Jul 26, 2010 at 9:47 PM, GoSharp Lite gosharpl...@gmail.com wrote: Thanks, Don. It works like a charm after I include below line in html. script src=/_ah/channel/jsapi/dev-channel-js.js/script On Jul 26, 11:03 pm, Don Schwarz schwa...@google.com wrote: Yes, this feature isn't launched in the production server yet. You can try it out in the 1.3.5 DevAppServer, but it requires a slightly workaround: Extract the apphosting/tools/dev-channel-js.js file from appengine-api-1.0-sdk-1.3.5.jar and move it to /_ah/channel/jsapi in your war directory (as if it were a static file). Your HTML should then use script src=/_ah/channel/jsapi. You should not referencehttp://talkgadget.google.com/talkgadget/channel.jsdirectly. That path will never work in the DevAppServer. The dance-dance-robot sample will be updated when 1.3.6 is launched and this works in the DevAppServer without the above workaround. On Mon, Jul 19, 2010 at 10:13 PM, GoSharp Lite gosharpl...@gmail.com wrote: I have the same error using dev server. If you deploy your app to production server, below error log shows channel service is not enable. exception: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The channel service is not enabled. It seems we have to patiently wait:) On Jul 20, 10:36 am, Daniel Guermeur superco...@gmail.com wrote: Thanks for the tip about channel.js. This is what I needed. Now I get an error when pushing a message to a client. I get this: com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. Caused by: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: Here is the stack trace. Let me know of any ideas you might have. Thanks! Daniel SEVERE: Failed to push the message com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel- a4kt0t-stalkrappt...@example.com-1 com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. at com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServiceImpl.java: 59) at com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServer.java: 82) at com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServiceImpl.java: 283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter.java: 31) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43
[appengine-java] Re: Dance Dance Robot error / Channel API
Thanks, Don. It works like a charm after I include below line in html. script src=/_ah/channel/jsapi/dev-channel-js.js/script On Jul 26, 11:03 pm, Don Schwarz schwa...@google.com wrote: Yes, this feature isn't launched in the production server yet. You can try it out in the 1.3.5 DevAppServer, but it requires a slightly workaround: Extract the apphosting/tools/dev-channel-js.js file from appengine-api-1.0-sdk-1.3.5.jar and move it to /_ah/channel/jsapi in your war directory (as if it were a static file). Your HTML should then use script src=/_ah/channel/jsapi. You should not referencehttp://talkgadget.google.com/talkgadget/channel.jsdirectly. That path will never work in the DevAppServer. The dance-dance-robot sample will be updated when 1.3.6 is launched and this works in the DevAppServer without the above workaround. On Mon, Jul 19, 2010 at 10:13 PM, GoSharp Lite gosharpl...@gmail.comwrote: I have the same error using dev server. If you deploy your app to production server, below error log shows channel service is not enable. exception: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The channel service is not enabled. It seems we have to patiently wait:) On Jul 20, 10:36 am, Daniel Guermeur superco...@gmail.com wrote: Thanks for the tip about channel.js. This is what I needed. Now I get an error when pushing a message to a client. I get this: com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. Caused by: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: Here is the stack trace. Let me know of any ideas you might have. Thanks! Daniel SEVERE: Failed to push the message com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel- a4kt0t-stalkrappt...@example.com-1 com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. at com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServiceImpl.java: 59) at com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServer.java: 82) at com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServiceImpl.java: 283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter.java: 31) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) 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
[appengine-java] Re: Dance Dance Robot error / Channel API
I have the same error using dev server. If you deploy your app to production server, below error log shows channel service is not enable. exception: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException: The channel service is not enabled. It seems we have to patiently wait:) On Jul 20, 10:36 am, Daniel Guermeur superco...@gmail.com wrote: Thanks for the tip about channel.js. This is what I needed. Now I get an error when pushing a message to a client. I get this: com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. Caused by: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: Here is the stack trace. Let me know of any ideas you might have. Thanks! Daniel SEVERE: Failed to push the message com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel- a4kt0t-stalkrappt...@example.com-1 com.google.appengine.api.channel.ChannelFailureException: An unexpected error occurred. at com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServiceImpl.java: 59) at com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServer.java: 82) at com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServiceImpl.java: 283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter.java: 31) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) 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: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) Caused by: com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 2: at
[appengine-java] Re: Dance Dance Robot error / Channel API
I believe you are using script src='/_ah/channel/jsapi'/script, which gives $wnd.goog is undefined. Try script src='http://talkgadget.google.com/talkgadget/channel.js'/ script. On Jul 16, 9:11 am, Daniel Guermeur superco...@gmail.com wrote: Hello there, I am building a GWT+ GAE app based on Dance Dance Robot app, the demo Google IO demo app showcased at Google IO. I am using the Channel API (Java AppEngine 1.3.5) . I am almost there but there is one hick up on the GWT client side (Java): When running the app I get an error: == - Uncaught exception escaped. com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is undefined. == This comes from the ChannelFactory.java on the client side. Here it is: public class ChannelFactory { public static final native Channel createChannel(String channelId) /*-{ return new $wnd.goog.appengine.Channel(channelId); }-*/; } Again this is straight from the Dance Dance Robot demo app. I am pretty sure it is a stupid mistake on my part but can't find it. Any suggestion would be greatly appreciated. Daniel -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Dance Dance Robot error / Channel API
I did not get your error on running below code. public static final native Channel createChannel(String channelId) /*- { return new $wnd.goog.appengine.Channel(channelId); }-*/; I have successfully create a channelId string on server side. The format looks like channel--9iwvs5-testing. Then I use the channelId string in below code on the client side. Channel channel = ChannelFactory.createChannel(channelId); Unluckily below message is shown in the browser. Invalid token.Error 401 Anyone has solve this token issue? On Jul 16, 9:11 am, Daniel Guermeur superco...@gmail.com wrote: Hello there, I am building a GWT+ GAE app based on Dance Dance Robot app, the demo Google IO demo app showcased at Google IO. I am using the Channel API (Java AppEngine 1.3.5) . I am almost there but there is one hick up on the GWT client side (Java): When running the app I get an error: == - Uncaught exception escaped. com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is undefined. == This comes from the ChannelFactory.java on the client side. Here it is: public class ChannelFactory { public static final native Channel createChannel(String channelId) /*-{ return new $wnd.goog.appengine.Channel(channelId); }-*/; } Again this is straight from the Dance Dance Robot demo app. I am pretty sure it is a stupid mistake on my part but can't find it. Any suggestion would be greatly appreciated. Daniel -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Changing default encryption policy of GAE
Hi All, My webapp works on my notebook and can handle encryption/decryption with higher strength keys. This is possible because I have downloaded the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. And installed these Policy Files in my notebook. Unluckily GAE seems to have the default policy setting of Java, and not capable of handling encryption/decryption with higher strength keys. The max allowed key length is only 128 with transformation shown below. int keyLenght = Cipher.getMaxAllowedKeyLength(AES/CBC/PKCS5Padding); I am trying to cross over from C# to Java. My program is ready but can't figure out how to change encryption policy of GAE. Anyone has a solution to this issue? Regards, GoSharpLite --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---