[appengine-java] Re: app engine server availability
Having the same issue. On Jan 27, 8:49 am, John Goche wrote: > Hello, > > Has anyone been experiencing availability problems when deploying to app > engine? > Here is what I am getting: > > Verifying availability: > Will check again in 1 seconds. > Will check again in 2 seconds. > Will check again in 4 seconds. > Will check again in 8 seconds. > Will check again in 16 seconds. > Will check again in 32 seconds. > Will check again in 60 seconds. > Will check again in 60 seconds. > Will check again in 60 seconds. > Will check again in 60 seconds. > Will check again in 60 seconds. > ... > > Anyone else having this issue? > > Regards, > > John Goche -- 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: Which java framework to use?
My suggestion: For datastore access use Objectify: http://code.google.com/p/objectify-appengine/ For your MVC framework go with AJAX/Javascript/HTML5 and use Backbone.js: http://documentcloud.github.com/backbone/ We've used Tapestry5 on App Engine before but without lazy loading and serious optimization you can have > 15 second cold starts. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/cKzdPhY0JPIJ. 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: Updating Eclipse
Filed an issue (#6334): http://code.google.com/p/googleappengine/issues/detail?id=6334&sort=-id&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log We need to star it to get it fixed... On Nov 14, 6:35 pm, jon stevens wrote: > Yea, that is obvious, but lame. > > Every time I restart the container, I get this big message saying that an > update is available, but I can't actually auto install it. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-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: Updating Eclipse
My guess is the app engine team has been busy with moving out of preview. I filed an issue #6334: http://code.google.com/p/googleappengine/issues/detail?id=6334&thanks=6334&ts=1321362902 Anyone reading this should star this issue. On Nov 14, 6:35 pm, jon stevens wrote: > Yea, that is obvious, but lame. > > Every time I restart the container, I get this big message saying that an > update is available, but I can't actually auto install it. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-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: SOAP-Samples and the Development Server
I solved the problem by changing the port number in the client projects launch configuration properties ("Server"-Settings). Now the SOAP-Server port number is (default) and the Client port number ist 8889. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/Wc7CQPkGX4YJ. 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] SOAP-Samples and the Development Server
Is it possible to run the soap-samples from within the development server? I changed the soap address location in the wsdl filt to http://localhost:/codelabex5part1"/> but it doesn't work... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/dKbYLnJ6glMJ. 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] Axis2 soap client implementation doesn't work
When I was researching WS clients for GAE, I found that Axis attempts to open network sockets directly, rather than using HttpUrlConnection. That was a while ago, perhaps a work-around has been found. The AccessControlException you are getting could be a result of that. Chris On 7/14/2011 4:16 PM, kamco wrote: > Hello, > > I am implementing SOAP client implementation on server side of > application. > > I am desperate right now, I allways get error. Does somebody have > suggestions? Thank you very much > > public String type_submit(String number, String type, String name) { > RPCServiceClient serviceClient; > try { > serviceClient = new RPCServiceClient(); > Options options = serviceClient.getOptions(); > EndpointReference targetEPR = new EndpointReference("http:// > lala.com"); > options.setTo(targetEPR); > QName methodName = new QName("ns","three"); > Class[] returnTypes = new Class[] { String.class }; > Object[] args = new Object[] { number, type, name }; > Object[] response = serviceClient.invokeBlocking(methodName, args, > returnTypes); > String ret = (String) response[0]; > return ret; > } catch (AxisFault e) { > e.printStackTrace(); > } > return null; > } > > > > I allways get error.. > > [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 > empty.local.hfu.client.rpc.UserTypePageService.type_submit(java.lang.String,java.lang.String,java.lang.String)' > threw an unexpected exception: java.security.AccessControlException: > access denied (java.io.FilePermission C:\Users\Kamil-hfu\Downloads > \eclipse_gwt\plugins > \com.google.appengine.eclipse.sdkbundle_1.5.0.r36v201105191508\appengine- > java-sdk-1.5.0.1\lib\impl\agent\appengine-agentruntime.jar read) > at > com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: > 385) > at > com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: > 588) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: > 208) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: > 248) > 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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: > 35) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > 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 > com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: > 94) > 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.h
[appengine-java] Re: looking for speakers for talks on App Engines
bump On Mar 25, 7:54 am, Chris Westin wrote: > Hello, I organize the speakers for the SF Bay Area Large-Scale > Production > Engineering Meetup (http://www.meetup.com/SF-Bay-Area-Large-Scale- > Production-Engineering/). > > For our event on the evening of Thursday April 21st, I'm looking for > speakers > who can tell us about their use of App Engines (sometimes called > "Application Containers") in their applications. We want to hear > about > your experience, limitations you encountered, management, monitoring, > or other > notable issues with using a public App Engine. Please see the event > page for > more details: > http://www.meetup.com/SF-Bay-Area-Large-Scale-Production-Engineering/... > . You can also look at the pages for past events to get a > feel for the kinds of topics we've covered in the past. > > If you will be in the Bay area on April 21st, and can come and speak > to us > about your experience with an App Engine such as Google App Engine, > the > Yahoo! Application Platform, AWS Elastic Beanstalk, or others I > haven't > listed, please message medirectly at cwestin (at) yahoo (dot) com. > > Thanks! > Chris Westin -- 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 some help with GWT / GAE and serialization - I'm missing something
I have an app that uses GWT and GAE. I recently looked at it after not having done anything with it for a long time. Since the App Engine SDK and the GWT SDK had new versions since the last time I looked at it I upgraded to the latest: GAE 1.4.2 and GWT 2.2.0. I'm able to run the app locally in development mode and everything is good. But when I deploy it to App Engine and try to run it I'm getting an error saying: "ERROR: The serialization policy file '/webtroopmanager/A5CAB72C510469B1D74BD9576D34BED3.gwt.rpc' was not found; did you forget to include it in this deployment?" I don't understand where this file is supposed to come from in the App Engine environment. I've got it on my dev system in war/. But the appengine-web.xml has "", which I think means it's not going to get deployed along with the app. I'm not clear on what the file is or what's in it, but the error messages suggest that it's supposed to be on the server and it isn't. How is it supposed to get there? Thanks for the 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.
[appengine-java] looking for speakers for talks on App Engines
Hello, I organize the speakers for the SF Bay Area Large-Scale Production Engineering Meetup (http://www.meetup.com/SF-Bay-Area-Large-Scale- Production-Engineering/). For our event on the evening of Thursday April 21st, I'm looking for speakers who can tell us about their use of App Engines (sometimes called "Application Containers") in their applications. We want to hear about your experience, limitations you encountered, management, monitoring, or other notable issues with using a public App Engine. Please see the event page for more details: http://www.meetup.com/SF-Bay-Area-Large-Scale-Production-Engineering/events/15481145/ . You can also look at the pages for past events to get a feel for the kinds of topics we've covered in the past. If you will be in the Bay area on April 21st, and can come and speak to us about your experience with an App Engine such as Google App Engine, the Yahoo! Application Platform, AWS Elastic Beanstalk, or others I haven't listed, please message medirectly at cwestin (at) yahoo (dot) com. Thanks! Chris Westin -- 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.2: Can't make https call from dev server
If you are seeing this problem: http://permalink.gmane.org/gmane.comp.systems.google-appengine.jre/18014 This is fixed in "1.4.2 - 2011-02-16", look closely at the Location of the App Engine SDK under Preferences -> Google -> App Engine and make sure you don't have v201102111811. Chris On Feb 15, 12:57 pm, Lior Harsat wrote: > HI All, > > I found a very dirty workaround but at least it works for me. > I was not aware of the doNotValidateCertificate() API that Fred > mentioned. > I made a very small change (one line of code) to the SDK appengine- > api.jar. > I have decompiled com.google.appengine.api.urlfetch.HTTPRequest and > added the call to doNotValidateCertificate() on the FetchOptions in > the constructor: > > public HTTPRequest(URL url, HTTPMethod method, FetchOptions > fetchOptions) { > payload = null; > this.url = url; > this.method = method; > this.fetchOptions = fetchOptions; > this.fetchOptions.doNotValidateCertificate(); \\ADDED BY ME > headers = new LinkedHashMap(); > } > > Then I repackaged the jar with my change and that solved the issue for > me - No certificate validation by default (Only on Dev server). > This way I don't have to change every piece of code that uses > URLFetchService with https and more important the production env still > makes sure the validation occurs. > Note that this solution will fix only flows where the URLFetchService > is used. > I do hope a better fix is provided by the App Engine team soon. > > Thanx, Lior > > On Feb 14, 11:22 pm, frew wrote:> Hey everybody, > > > In order to help me diagnose the problems, could you respond with what > > JDK (Platform, JDK manufacturer (e.g. Sun, OpenJDK), and version) > > you're running? As a temporary stopgap, if you're using URLFetch > > service, you can use the doNotValidateCertificate() method in > > FetchOptions (http://code.google.com/appengine/docs/java/javadoc/com/ > > google/appengine/api/urlfetch/FetchOptions.html) to disable > > validation. > > > -Fred > > > On Feb 13, 5:02 am, harri mauria wrote: > > > > I am having similar problems with the recently released version > > > com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811 > > > Problems happen with the development server, not in production. I am > > > performing Facebook login credentials authentication in the callback > > > url. Interrupt stack is below: > > > > HTTP ERROR 500 > > > Problem accessing /loginfacebookcallback. Reason: > > > > Could not verify SSL certificate > > > for:https://graph.facebook.com/oauth/access_token?omitted > > > > Caused by: > > > javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate > > > for:https://graph.facebook.com/oauth/access_token?omitted > > > at > > > com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc > > > eption(URLFetchServiceImpl.java: > > > 114) > > > at > > > com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService > > > Impl.java: > > > 41) > > > at > > > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler > > > $Connection.fetchResponse(URLFetchServiceStreamHandler.java:418) > > > at > > > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler > > > $Connection.getInputStream(URLFetchServiceStreamHandler.java:297) > > > atwww.superpass.de.server.UrlFetcher.get(UrlFetcher.java:60) > > > > Following message is printed to the console: > > > I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when > > > processing request: HTTPS hostname invalid: expected > > > 'graph.facebook.com', received '*.facebook.com' > > > Retrying request > > > > Regards, Harri > > > > On Feb 13, 11:27 am, Lior Harsat wrote: > > > > > I am having a similar problem with https: > > > > > I have been testing the SDK and I found one bug which seems critical. > > > > When I call the URLFetchService.fetch API with a https URL I get a > > > > javax.net.ssl.SSLHandshakeException. > > > > for example when I fetch "https://spreadsheets.google.com/feeds/ > > > > list/" I get > > > > javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate > > > > for:https://spreadsheets.google.com/feeds/list/... &
[appengine-java] Re: JSP compiling fails after upgrade from 1.3.8 to 1.4.0
Note that the previous post only applies to my local development environment. I just tried using the new version of the SDK on the production server, and it has no problems. -- 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] JSP compiling fails after upgrade from 1.3.8 to 1.4.0
I'm having issues using my GAE/GWT project after upgrading the GAE Java SDK from 1.3.8 to 1.4.0. It has issues compiling the JSPs, according to the error output. I've attached the stack trace. If I revert back to using 1.3.8, it compiles fine. (I'm using the Eclipse plugins.) It's entirely possible that this is a configuration error on my part, and that it just happens to work with 1.3.8, but I really don't know where to start debugging this. The answers I've found on the web so far are not GAE-specific, and point to classpath or read/write permissions issues. Because this is working with 1.3.8, I don't think either of those are my problem. Let me know if more information would be helpful. I'll continue using 1.3.8 for now. -- 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. [ERROR] Javac exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1079) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57) 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.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) [ERROR] Environment: Compile: javaFileName=C:\Users\Chris\AppData\Local\Temp\Jetty_0_0_0_0__warmasbuh\jsp\org\apache\jsp\WeasleyClock_jsp.java classpa
[appengine-java] Re: JDO update only happens if Entity is 'accessed' before makePersistent
Hi hari, Yes, calling account.isEnabled() before makePersistent() seems to be required for the update to happen, but I'm not sure how this relates to the issue of lazy-loading you mentioned. This is a detachable entity (pm.setDetachAllOnCommit(true) + annotation). Maybe that has something to do with it? - Chris On Sep 30, 4:56 am, Hariharan Anantharaman wrote: > Strange. > I remember reading that JDO does lazy loading. That means unless you access > the same, the object data is not physically loaded. But isn't set enabled > means accessing the object? > > ~hari > > On Sep 30, 2010 2:17 AM, "Chris" wrote: > > Hello. > > I have a strange issue where I occasionally fail to update the Account > object in this method. > > If I call the isEnabled() method (which returns true or false) before > I call makePersistent, the update always happens. > > But if I don't 'access' the account object before makePersistent(), > the update doesn't happen. > > I have no idea why this happens. > > public final boolean enableAccount(final String key) > { > PersistenceManager pm = > PersistenceManagerFactoryUtils.getPersistenceManager(pmf, true); > pm.setDetachAllOnCommit(true); > > final Query query = pm.newQuery(Account.class); > query.setFilter("enableKey == enableKeyP"); > query.declareParameters("String enableKeyP"); > > try > { > List results = (List) > query.execute(key); > if (results.iterator().hasNext()) > { > for (Account account : results) > { > if(!account.isEnabled()) > { > account.setEnabled(true); > pm.makePersistent(account); > pm.close(); > } > } > } > else > { > return false; > } > } > catch (Exception e) > { > LOGGER.warn("enableAccount() problem", e); > return false; > } > return true; > } > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group > athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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] JDO update only happens if Entity is 'accessed' before makePersistent
Hello. I have a strange issue where I occasionally fail to update the Account object in this method. If I call the isEnabled() method (which returns true or false) before I call makePersistent, the update always happens. But if I don't 'access' the account object before makePersistent(), the update doesn't happen. I have no idea why this happens. public final boolean enableAccount(final String key) { PersistenceManager pm = PersistenceManagerFactoryUtils.getPersistenceManager(pmf, true); pm.setDetachAllOnCommit(true); final Query query = pm.newQuery(Account.class); query.setFilter("enableKey == enableKeyP"); query.declareParameters("String enableKeyP"); try { List results = (List) query.execute(key); if (results.iterator().hasNext()) { for (Account account : results) { if(!account.isEnabled()) { account.setEnabled(true); pm.makePersistent(account); pm.close(); } } } else { return false; } } catch (Exception e) { LOGGER.warn("enableAccount() problem", e); return false; } return true; } -- 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] Execute CSS files as JSP
Hello, I need to dynamically generate CSS files and would like to do it with JSP. I know that there are various existing solutions to do this with servlets mapped to the .css extension and forwarding to JSPs to generate the content and that would technically work. However, I would like to maintain the css extension so that my IDE correctly loads the css editor with color coding and formatting. Ideally, I would like to map the css extension to the JSP "servlet". I did this with the Google developer container in Eclipse (mapped .css -> _ah_jsp servlet) and it worked fine. However, when I deployed the app to appengine, I got an error saying the _ah_jsp servlet did not exist. I expect this has to do with JSPs getting precompiled before the app is deployed to appengine. Is there anyway to get my CSS files to execute as JSPs or precompile as JSPs (while maintaining the css extension on my local filesystem for the IDE) for appengine? Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Urgent: Getting only Server Error (500) since ~12:30 am (September 28th)
Yes Guillaume, We're looking into that, as well as some of the recent outages such as Farmigo (that seems to be back up now). We're still investigating these occasional "request aborted" issues though. -Chris On Sep 28, 11:06 am, Guillaume Laforge wrote: > I'm seeing some messages like in my logs: > > Request was aborted after waiting too long to attempt to service your > request. This may happen sporadically when the App Engine serving > cluster is under unexpectedly high or uneven load. If you see this > message frequently, please contact the App Engine team. > > Are these the issues we're discussing here? > > Guillaume > > > > > > > > > > On Tue, Sep 28, 2010 at 19:29, oth wrote: > > Thankyou Chris (Google Employee) for chiming in. > > > It gives me a sense of relief just knowing that somebody is looking > > into it. > > > On Sep 28, 12:52 pm, "Chris (Google Employee)" > > wrote: > > > Hello, > > > > Just wanted to let you know that we are aware of the problem and are > > > working as fast as we can to address this issue that cropped up > > > overnight. > > > > We think were close to getting it resolved, so we'll be sending > > > periodic updates to let folks know where things stand. > > > > Thanks, > > > -Chris > > > > On Sep 28, 8:52 am, andy stevko wrote: > > > > > Ditto on the high error rate on my app too. > > > > > app_id=ninuku-archivist > > > > > Whats going on here?? > > > > > On Tue, Sep 28, 2010 at 8:08 AM, mscwd01 wrote: > > > > > I've been getting the second issue you mentioned for the last few > > > > > days. Sometimes the error rate is above 50%. Don't expect to get any > > > > > help from Google employees though, I've tried and got nowhere. It > > > > > makes you wonder if they care any more. > > > > > > On Sep 28, 10:37 am, Lior Harsat wrote: > > > > > > Hi , > > > > > > > Our production server (application id = farmigo-csa) is > > experiencing > > > > > > an alarming error rate (close to 100%) for any request processed by > > > > > > App Engine. > > > > > > The log shows a couple of repeating messages: > > > > > > 1. "A serious problem was encountered with the process that handled > > > > > > this request, causing it to exit. This is likely to cause a new > > > > > > process to be used for the next request to your application. If you > > > > > > see this message frequently, you should contact the App Engine > > team." > > > > > > 2. "Request was aborted after waiting too long to attempt to > > service > > > > > > your request. This may happen sporadically when the App Engine > > serving > > > > > > cluster is under unexpectedly high or uneven load. If you see this > > > > > > message frequently, please contact the App Engine team." > > > > > > > Our server is not under high load. > > > > > > Our customers are already reporting this issue. > > > > > > Please help as soon as possible. > > > > > > -- > > > > > 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 > > > > unsubscr...@googlegroups.com> > unsubscr...@googlegroups.com> > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine for Java" group. > > To post to this group, send email to > > google-appengine-j...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. > > -- > Guillaume Laforge > Groovy Project Manager > Head of Groovy Development at SpringSourcehttp://www.springsource.com/g2one -- 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: Urgent: Getting only Server Error (500) since ~12:30 am (September 28th)
Hello, Just wanted to let you know that we are aware of the problem and are working as fast as we can to address this issue that cropped up overnight. We think were close to getting it resolved, so we'll be sending periodic updates to let folks know where things stand. Thanks, -Chris On Sep 28, 8:52 am, andy stevko wrote: > Ditto on the high error rate on my app too. > > app_id=ninuku-archivist > > Whats going on here?? > > > > > > > > On Tue, Sep 28, 2010 at 8:08 AM, mscwd01 wrote: > > I've been getting the second issue you mentioned for the last few > > days. Sometimes the error rate is above 50%. Don't expect to get any > > help from Google employees though, I've tried and got nowhere. It > > makes you wonder if they care any more. > > > On Sep 28, 10:37 am, Lior Harsat wrote: > > > Hi , > > > > Our production server (application id = farmigo-csa) is experiencing > > > an alarming error rate (close to 100%) for any request processed by > > > App Engine. > > > The log shows a couple of repeating messages: > > > 1. "A serious problem was encountered with the process that handled > > > this request, causing it to exit. This is likely to cause a new > > > process to be used for the next request to your application. If you > > > see this message frequently, you should contact the App Engine team." > > > 2. "Request was aborted after waiting too long to attempt to service > > > your request. This may happen sporadically when the App Engine serving > > > cluster is under unexpectedly high or uneven load. If you see this > > > message frequently, please contact the App Engine team." > > > > Our server is not under high load. > > > Our customers are already reporting this issue. > > > Please help as soon as possible. > > > -- > > 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 > unsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JSF2
Hi Daniel, For a possible workaround, have you tried manually coding the JavaScript for the Ajax request call? For example, instead of: ... manually coding the JavaScript for the Ajax request call would be: This was taken from: http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#ajax-declarative Also, is this the only JSF2 tag that you've encountered that does't appear to be working in App Engine? -Chris On Sep 24, 8:31 am, Daniel wrote: > I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also.. > no ajax for me :/ > > On Sep 23, 9:22 pm, Daniel wrote: > > > > > > > > > Hi > > this does not help... same behavior... > > > i got my jsf jars from here > > :http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog... > > and followed the setting of web.xml from > > herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P... > > > maybe you used different sources? if you do please let me know, also > > maybe you can post your web.xml ? might be i missed something... > > > any other ideas are welcomed. > > > Thanks ahead > > > Daniel > > > On Sep 23, 3:24 pm, Jaziel Leandro wrote: > > > > I have the same error few times ago. > > > Try this, make you Bean implements Serializable. > > > > 2010/9/23 Daniel > > > > > I'm want to use the > > > without any luck > > > > > I tried some very simple examples taken from > > > > >http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj... > > > > > all of them works perfectly on local Tomcat (not GAE) > > > > > But when i try the same on GAE, nothing works, im not getting any > > > > errors.. its just do nothing... > > > > Here the simplest example > > > > > On each char type I'm supposed to sea the same char typed beneath and > > > > beneath it a counter of chars (text length) - again.. this works > > > > perfectly on tomcat server... (not GAE) > > > > > Any ideas what am i missing? > > > > > > > > > > > > > > > > > > > > listener="#{bean.countListener}"/> > > > > > > > > > > > > > > > > > > > > > > > > > java code: > > > > package general; > > > > > import javax.faces.bean.ManagedBean; > > > > import javax.faces.event.AjaxBehaviorEvent; > > > > > @ManagedBean(name = "bean") > > > > public class Bean { > > > > private String text; // getter and setter > > > > private Integer count; > > > > > public void countListener(AjaxBehaviorEvent event) { > > > > count = text.length(); > > > > } > > > > > public String getText() { > > > > return text; > > > > } > > > > > public void setText(String text) { > > > > this.text = text; > > > > } > > > > > public Integer getCount() { > > > > return count; > > > > } > > > > > public void setCount(Integer count) { > > > > this.count = count; > > > > } > > > > > } > > > > > Thanks ahead. > > > > > 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 > > > unsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill
Hi Mike, I think the reason we don't explicitly publish a list of "frontend frameworks that play well with App Engine" is because there really is no technical barrier between front end frameworks that work in the browser such as JQuery, etc and the backend (App Engine). Many App Engine users make full use of a myriad of front end technologies/ frameworks for UI creation ranging from HTML5/JS/CSS to flash etc. JQuery is especially popular for a variety of Web app usages, so if that works for you, I'd definitely continue trying it out. Hope this helps, -Chris On Sep 9, 10:43 am, tempy wrote: > Hello all, > > A little background... I'm mostly new to web frontend development, I > come from a mostly backend and desktop background. I have a GAEj app > that provides the backend for a rather sophisticated desktop/mobile > app. This backend will also drive a website in addition to the > desktop/mobile app. > > The website will show a small subset of the data in the system. I > started with GWT, but it doesn't seem to be quite right. The website > is for presentation of a small subset of the system's data only, and > users do not interact with the data in any way other than searching > for it. As the data is mostly unstructured text and some images, I > feel most comfortable formatting it with plain old html/css. In fact, > the layout of the site will be minimal and look a lot like a blog. As > such, the website should certainly not feel like a single-page "web > application" a la gmail. With GWT, I have little use for widgets and > find myself constantly fighting with it to get a non-application look- > and-feel. > > The only functionality that I thus really need from GWT is the RPC > component, the page should be AJAX, I don't want to do round trips to > the server for every navigation event. > > So, I'm not quite sure which framework to use with the GAEj backend. > At first GWT seemed like a natural fit, but now seems like overkill. > I'm doing some research on jquery, but I haven't seen a list of > "frontend frameworks that play well on GAEj" anywhere. > > Thanks for any advice, > Mike -- 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: Applets in GAE
Applets should be fine as long as the applet jar file(s) are not too big. (<10M) If they are bigger, you'll need to upload and deploy your app via the command line appcfg with option --enable_jar_splitting specified. For networking you should be able to send REST request from your applet to your server using standard Java networking. You could create a test servlet on the server to listen for your applet. Hope this helps, -Chris On Sep 2, 1:43 pm, GuruK wrote: > Does anyone have a good tutorial on how to use applets in gae? Also, > would it be possible to use the applet to send stuff to the datastore? > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Does JSF Session Bean are supported ?
Hi Hadrien, You should definitely make sure you've turned on session support in your app: http://appengine.google.com/ns/1.0";> 1 true In general you can see how JSF is supported in GAE by checking this page: https://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine?pli=1 There's also this page as well focuses purely on JSF and GAE. https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-appengine Hope this helps, -Chris On Sep 2, 2:00 pm, hadf wrote: > I'm a newbie in JSF and AppEngine technology. I've created a simple > form which redirect to a summary page that displays the form data. The > trouble is that form data is lost during redirect as if session beans > were not supported. So I would like to know how to deal with session > data. > > Here is my JSF config : > > user > fr.hadf.test.login.User > session > > > And my AppEngine config : > true -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
Hi, I've got a strange problem with (I believe) my servlet mapping. I'm trying to map all requests for "/mountain/*" to a JSP file called "mountain.jsp". It works fine when I run it on my localhost, but when I upload the project to AppEngine, I get errors like the following: /mountain/5429370/index.html/index.html/index.html/index.html/ index.html/index.html/index.html/index.html/...etc The "/index.html" is repeated over and over until Chrome gives me the following error: "Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects." Chrome suggests clearing the cookies for the site, but I there are no cookies to clear. Here is my web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> mountain mountain.jsp mountain /mountain/* PeakPeekSite.html Has anyone seen this problem or understand what is going on? Thanks much, Chris -- 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] Compiling JSP with gdata: java.lang.NoClassDefFoundError: com/google/gdata/data/DateTime
Hi, I've run through the example StockWatcher app, now attempting to extend it by turning it into a JSP to add some server side functionality with the java gdata client library. I can add a simple appengine User service based piece of code and even create a URL object: <%@ page import="com.google.appengine.api.users.User" %> <%@ page import="com.google.appengine.api.users.UserService" %> <%@ page import="com.google.appengine.api.users.UserServiceFactory" %> <%@ page import="java.net.URL" %> ... <% UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if (user != null) { %> Hello, <%= user.getNickname() %>! (You can sign out.) <% } URL feedUrl = new URL("http://www.google.com/calendar/feed/ @group.calendar.google.com/public/full"); %> However, when I go to add something from gdata, say something simple like: <%@ page import="com.google.gdata.data.DateTime" %> ... DateTime foo = new DateTime(); I get the exception below in runtime. The jar files are in the build path (I can build a straight-up java file with the gdata classes), and it seems to find the DateTime class file during compile (if I remove the import, I get a compile error). Is this some sort of runtime thing? I am using gdata 2.0, jvm 1.5, appengine 1.3. HTTP ERROR: 500 com/google/gdata/data/DateTime RequestURI=/StockWatcher.jsp Caused by: java.lang.NoClassDefFoundError: com/google/gdata/data/DateTime at org.apache.jsp.StockWatcher_jsp._jspService(StockWatcher_jsp.java: 106) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run (PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service (PrivilegedJspServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter (ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Thanks for any help! C -- 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-ja
[appengine-java] Re: Session problem
Is the object you're trying to save onto the session serializable? Does it implement serializable? (although just making the class implement serializable will not always work) I believe that you can have a class bypass validation for this when running locally - so you may not be seeing the serialization error because of this. In any case, I would definitely make sure you can actually serialize the object that you're saving. -Chris On Jan 5, 7:41 am, avdhesh wrote: > I got following exception wehn i deploy a application to google apps > engineEverything works fine with EclipsePlugin...May be > EclipsePlugin not able to catch this.. > > I filed a Bug report... > > http://code.google.com/p/googleappengine/issues/detail?id=2606 > > java.lang.RuntimeException: java.io.NotSerializableException: > com.google.apphosting.utils.jetty.AppEngineWebAppContext > $AppEngineServletContext > at > com.google.apphosting.runtime.jetty.SessionManager.serialize > (SessionManager.java:361) > at > com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession > (SessionManager.java:341) > at > com.google.apphosting.runtime.jetty.SessionManager > $AppEngineSession.save(SessionManager.java:162) > at > com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter > (SaveSessionFilter.java:41) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle > (AppVersionHandlerMap.java:238) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete > (HttpConnection.java:830) > at > com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable > (RpcRequestParser.java:76) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at > com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques t > (JettyServletEngineAdapter.java:135) > at > com.google.apphosting.runtime.JavaRuntime.handleRequest > (JavaRuntime.java:235) > at > com.google.apphosting.base.RuntimePb$EvaluationRuntime > $6.handleBlockingRequest(RuntimePb.java:5235) > at > com.google.apphosting.base.RuntimePb$EvaluationRuntime > $6.handleBlockingRequest(RuntimePb.java:5233) > at > com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest > (BlockingApplicationHandler.java:24) > at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: > 363) > at com.google.net.rpc.impl.Server$2.run(Server.java:838) > at > com.google.tracing.LocalTraceSpanRunnable.run > (LocalTraceSpanRunnable.java:56) > at > com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan > (LocalTraceSpanBuilder.java:536) > at com.google.net.rpc.impl.Server.startRpc(Server.java:793) > at com.google.net.rpc.impl.Server.processRequest(Server.java:368) > at > com.google.net.rpc.impl.ServerConnection.messageReceived > (ServerConnection.java:448) > at com.google.net.rpc.impl.RpcConnection.parseMessages > (RpcConnection.java:319) > at com.google.net.rpc.impl.RpcConnection.dataReceived > (RpcConnection.java:290) > at com.google.net.async.Connection.handleReadEvent(Connection.java: > 466) > at > com.google.net.async.EventDispatcher.processNetworkEvents > (EventDispatcher.java:759) > at com.google.net.async.EventDispatcher.internalLoop > (EventDispatcher.java:205) > at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: > 101) > at com.google.net.rpc.RpcService.runUntilServerShutdown > (RpcService.java:251) > at > com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run &
[appengine-java] Re: One To Many. JDO. Error while save data.
Here's some ideas to try... I see that you have a if statement in your JSP.. if(request.getContentLength() > 0) { ... Are you sure this condition is true in your case? Otherwise the JSP will never attempt to save the object. If that's not it, you could always create a new JSP and just drop the exact servlet code into the page via a scriptlet and work backwards from there. Hope this helps.. -Chris (Google) On Jan 3, 2:50 am, webus wrote: > Hi to all! I have problem. > I have JDO objects: > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public class MenuButton { > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Long uid; > > @Persistent > private String name; > > @Persistent(mappedBy="menuButton") > private List topicSets; > > @Persistent > private boolean isEnabled; > > @Persistent > private String toURL; > > public Long getUid() { > return uid; > } > > public void setUid(Long uid) { > this.uid = uid; > } > > public String getName() { > return name; > } > > public void setName(String name) { > this.name = name; > } > > public List getTopicSets() { > return topicSets; > } > > public void setTopicSets(List topicSets) { > this.topicSets = topicSets; > } > > public boolean isEnabled() { > return isEnabled; > } > > public void setEnabled(boolean isEnabled) { > this.isEnabled = isEnabled; > } > > public String getToURL() { > return toURL; > } > > public void setToURL(String toURL) { > this.toURL = toURL; > } > > } > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public class Topic { > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Key uid; > > @Persistent > private MenuButton menuButton; > > @Persistent > private String topicTheme; > > @Persistent > private Text topicText; > > public Key getUid() { > return uid; > } > > public void setUid(Key uid) { > this.uid = uid; > } > > public MenuButton getMenuButton() { > return menuButton; > } > > public void setMenuButton(MenuButton menuButton) { > this.menuButton = menuButton; > } > > public String getTopicTheme() { > return topicTheme; > } > > public void setTopicTheme(String topicTheme) { > this.topicTheme = topicTheme; > } > > public Text getTopicText() { > return topicText; > } > > public void setTopicText(Text topicText) { > this.topicText = topicText; > } > > } > > I have Manager class to help me save or update data. > > public class Manager { > > PersistenceManager pm = null; > > public Manager() { > pm = PMF.get().getPersistenceManager(); > } > > public PersistenceManager getPersistenceManager(){ > return pm; > } > > public boolean Save(Object obj) { > Transaction tx = null; > try { > tx = pm.currentTransaction(); > tx.begin(); > pm.makePersistent(obj); > tx.commit(); > System.out.println("õÓÐÅÛÎÏ ÓÏÈÒÁÎÉÌÉ ÔÒÁÎÚÁËÃÉÀ!"); > return true; > } > catch(Exception ex) { > System.out.println(ex.getMessage()); > System.out.println(ex.getLocalizedMessage()); > if(tx.isActive()) > tx.rollback(); > System.out.println("ïÔËÁÔÉÌÉ ÔÒÁÎÚÁËÃÉÀ ÐÏ > ÉÓËÌÀÞÅÎÉÀ"); > return false; > } > } > > public boolean Delete(Object obj){ > Transaction tx = null; > try { > tx = pm.currentTransaction(); > tx.begin(); >
[appengine-java] Re: Web based application in java.
Hi Yadav, I would recommend stepping through the "Getting Started" tutorial on the main docs pages for App Engine. In addition to providing some basic getting started info, you get to build a simple guestbook application that updates and queries data from the Datastore. http://code.google.com/appengine/docs/java/gettingstarted/introduction.html Hope this helps, -Chris On Jan 5, 1:22 am, yadav wrote: > Hi.. > I am trying to develop a small application in java on google apps.it > is mainly depends on data base.my question is how to create entities > and how to retrieve the data from it. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Error while deploying GWT application on google app engine.
Hi Reena, It looks like you have a problem with your web.xml file. I believe I had a similar issue where I can run locally, even with a slightly invalid web.xml file. You might want to doublecheck that your "war/WEB-INF/web.xml" file is syntactically correct. If you're curious what a clean one looks like, you can always just create a new project using the Eclipse plugin, and generate a new app with both GWT and GAE checkboxes checked. You could then compare and contrast between the two. Hope that helps, -Chris (Google) On Jan 7, 1:49 am, reena wrote: > Hi all, > > I have simply created a new GWT project (standard StockWatcher > application) and trying to deploy it on google app server. But I am > getting an error while deploying it. Error says -An internal error > occurred during: "Deploying StockWatcher to Google".Received > IOException parsing the input stream for C:/Documents and Settings/ > smartGWT/StockWatcher/war\WEB-INF/web.xml > > I am able to compile it and run it locally.But getting error while > deploying it on google app server. > Can you please help me here. -- 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] Creating an app with Fusion tables an Visualization
Hi App Engine community I am wanting to get some advice on an app I am looking to create. Basically the app is going to show analytics (google visualizations) to an authenticated user. These are the components that I am looking to employ. -send structured data from an external source into a google fusion table. -based on the user that logs in, query the data and display visualizations to them. Would fusion tables, GWT, GAE, Visualizations be the best components to use and are there any good code examples out there? I have stepped through a few other examples Stockwatcher example, gdata example, message board example, so have a basic grasp of the technologies Any thoughts? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Class Cast Exception: can't figure out what's wrong.
Looks like it was a temp error from not having billing set up. Not a very good error for figuring that out, though... - chris On Dec 22, 2009 12:24 PM, "Chris" wrote: Hi All, I was trying to play around with the blobstore API and am getting the following exception from the java api: java.lang.ClassCastException: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException cannot be cast to javax.servlet.ServletException I would assume that there is more information which the exception would give me about what's wrong, but it seems to be masked by the ClassCastException. Anyone seen this before and may be able to point me in the right direction as to what may be wrong? Thanks, -Chris -- 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. -- 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] Class Cast Exception: can't figure out what's wrong.
Hi All, I was trying to play around with the blobstore API and am getting the following exception from the java api: java.lang.ClassCastException: com.google.apphosting.api.ApiProxy $FeatureNotEnabledException cannot be cast to javax.servlet.ServletException I would assume that there is more information which the exception would give me about what's wrong, but it seems to be masked by the ClassCastException. Anyone seen this before and may be able to point me in the right direction as to what may be wrong? Thanks, -Chris -- 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: 5000 row query
So is there no way of getting around this scenario? Regards Chris On Nov 28, 1:44 am, James H wrote: > Seems intense transactions like yours are what GAE is trying to avoid > with high priority cycles reserved for the User Interface. The Task > Queue and Cron subsystems help with intense batch operations such as > this. But, even with those you have to breakdown the work into small > units. > > On Nov 27, 8:32 am, chris wrote: > > > > > Hi, > > > I'm trying to return 5000 rows by using 5 sets of 1000. However the > > CPU utlization is really high. I need to get the full 5000 to work > > out a calculation based on the data. This prevents me from performing > > any paging operations. I don't need to display all the data at once > > but simply getting the rows is causing some issues. I don't want the > > high cpu utilization to cause the requests to timeout. > > > Does anyone know of anything i could try? > > > Regards > > > Chris- Hide quoted text - > > - Show quoted text - -- 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] 5000 row query
Hi, I'm trying to return 5000 rows by using 5 sets of 1000. However the CPU utlization is really high. I need to get the full 5000 to work out a calculation based on the data. This prevents me from performing any paging operations. I don't need to display all the data at once but simply getting the rows is causing some issues. I don't want the high cpu utilization to cause the requests to timeout. Does anyone know of anything i could try? Regards Chris -- 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] I have deleted all indexes but can not add any new ones?
Hi, I have removed all indexes for an app but now when I come to add a new one it says I am over ym quota. What can I do to resolve this? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-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] ...appengine.api.users.User object missing getUserId method
I'm probably just overlooking something, but according to the API documentation located here (http://code.google.com/appengine/docs/java/ javadoc/com/google/appengine/api/users/User.html) the User object should have a public getUserId method on it. However, in my dev environment this method is unavailable for some reason. As far as I know my AppEngine SDK is up-to-date (version 1.2.2). Any ideas for fixing this issue? --~--~-~--~~~---~--~~ 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: Simplest web framework + ORM for GAE/J?
On Sep 7, 1:28 pm, datanucleus wrote: > Why do you want an ORM exactly ? Object - Relational Mapping ? The > datastore is BigTable. It isn't an RDBMS. True. But it's also not object-oriented. So your objects need to be mapped to the datastore somehow. I think of object/relational mappers performing that role even if it doesn't apply precisely in the case of a non-relational data store like Big Table. But I don't know if it's worth debating this point. I just want to know the best way to get up and running with a simple framework. Coming from the Ruby world, I'm used to have an ORM to translate my domain objects to relational structures in a way that I think is probably close to what Hibernate does. I was hoping there was a simple Ruby-like equivalent of Rails +ActiveRecord for the GAE/J world. > GAE/J comes with JDO/JPA implementations for persistence to that > datastore. Ok, thanks. I'm not familiar with JDO/JPA but since you make a point about there not being a need for an ORM, I will assume for now that these are some kind of data access objects that carry out the persistence operations for your domain layer. I have some reading to do obviously. --~--~-~--~~~---~--~~ 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] Simplest web framework + ORM for GAE/J?
What's the simplest web framework + ORM combination that works well on GAE/J? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---