[appengine-java] Re: Error handler for 403 Forbidden error
Hi, I tried a little. It seems not to operate in production though it is normal in the develop (403. Jsp displays it). If you are the same phenomenon, you might have also to do post to issue list. thanks. Hi, all I have an application, that allows only administrator to enter it, but I want to have my own error message for other users, Here is web.xml listing: --- security-constraint web-resource-collection url-pattern//url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection url-pattern/403.jsp/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint error-page error-code403/error-code location/403.jsp/location /error-page --- and403.jsp is in root folder The problem is that my page is not shown, it always shows default forbidden page. And next interesting thing is, for example , if I change location of my403.jsp in error handling block (for exmaple I will name it 4031.jsp) and I don't have this file- when403error occures I get 404 errir (cannot find file 4031.jsp). Can anyone help me with 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-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] Re: JAXB
Hi, Though it is likely already to have known I think that I can use jaxb by using memcache or datastore instead of the filesystem. The following links might be useful for marshal/unmarshal. http://stackoverflow.com/questions/1955396/whats-the-easiest-way-to-persist-java-objects Plese try. thanks. Hi Anybody know wher i can find tutorial about using jaxb in google app engine ??( I'm using netbeans plugin ) I need know how marshalling/unmarshalling and modify xml document in google app engine :)) Thank you -- 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.
Re: [appengine-java] Has anyone got actually got tag files to work?
Hi, How about this example? taglib taglib-uri/WEB-INF/tags/taglib-uri taglib-location/WEB-INF/xxx.tld/taglib-location /taglib Hope some of this helps. Please try. thanks. Hi, I'm a fairly longtime Java developer, but a real novice with App Engine, and I have been trying for the last day to get even the simplest tag file to work with a new Java App Engine project. The last mention I have seen of this issue in these forums is over a year ago - did everyone just give up or is no-one having a problem now? To be clear, I am talking about reusable JSP fragments, as shown here: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPTags5.html#wp89664 so there are no TLD files involved. I'm using the '%@ taglib tagdir=/WEB-INF/tags prefix=h %' directive, which has worked absolutely fine for me in the past, but the prefix is not being recognised in Eclipse, and the tags are clearly not working. The error message in Eclipse for the unrecognised prefix is 'taglib directive for h does not exist or TLD is not found. I have also tried adding the following snippet to web.xml, but that felt very much like clutching at straws: taglib taglib-prefixh/taglib-prefix taglib-tagdir/WEB-INF/tags/taglib-tagdir /taglib Is there some secret I should know, or is this just one of those things that don't work in App Engine? Regards, Nello -- 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.
Re: [appengine-java] Any further Tutorials? Basic questions
Hi, Hello, i am a quite expierenced programmer in java, but i am totally new to web apps, especially gae. I have worked through the guestbook tutorial, but now i still cant start to program any comprehensive app. Are there any more how-to oder tutorials where i can learn more about fundamental functionalities? The following links might be useful. http://gaejexperiments.wordpress.com/gaej-experiments-ebook/ Please try. 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: Deploy Connection Refused
Hi, Though it doesn't examine in detail. If the cause is a setting of proxy I guess this covers the question http://groups.google.com/group/google-appengine-java/browse_thread/thread/15d3dc0edd0af574 Hope some of this helps. Please try. thanks. On 4月27日, 午前12:16, Paul robopa...@gmail.com wrote: I have been using the Google App plugin with Eclipse 3.5 to make my first app, and I have no problems running it as a Web Application on my local machine. However, when I try to deploy the app, I get an error with the message Unable to update app: Connection refused: connect. The exception stack trace is: com.google.appengine.tools.admin.AdminException: Unable to update app: Connection refused: connect at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(UnknownSource) at sun.net.www.http.HttpClient.openServer(UnknownSource) at sun.net.www.protocol.https.HttpsClient.init(Unknown Source) at sun.net.www.protocol.https.HttpsClient.New(UnknownSource) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClien... Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 340) at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 133) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 559) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 376) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) I get a connection refused error whether I'm trying to deploy with Eclipse or via command line. Same issue if I try to deploy one of the demo projects. I would imagine it is because of a proxy issue; however, I'm not sure how to properly set the proxy for Google Apps. Since I am behind a corporate firewall, I have to deal with proxy settings for other Java projects. Before making a URLConnection, I generally use the following: Properties systemSettings = System.getProperties(); systemSettings.put(proxySet,PROXY_SET); systemSettings.put(proxyHost, PROXY_HOST); systemSettings.put(proxyPort, PROXY_PORT); I haven't found any solution out there yet, so any help would be appreciated. -- 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
[appengine-java] Re: JDO unowned relationship
Hi, It is not in JDO and if lowlevelAPI is used, it might be possible. Please examine [com.google.appengine.api.datastore.Entity#getParent] http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Entity.html#getParent() thanks. Hope some of this helps. Hi, I’m a beginner in JDO. So I read the google tutorialhttp://code.google.com/intl/de/appengine/docs/java/datastore/relation... Well, I understand how to make a owned relationship. Bur I didn’t understand how I should make a unowned relation. So here’s the google example for unowned one-to-one relationship: @PersistenceCapable public class Person { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private Key favoriteFood; // ... } @PersistenceCapable public class Food { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; // ... } So a Person can have a favored Food. But a Food is not linked to only one Person, but can be the favored Food of more than one Person. Ok, I understand that we don’t have a Food-Object in the class Person, but instead we have the Key to the food. Ok, now I want to get the favored Food Object of a Person. How do I get now the Food Object? Is the only way to get it by calling the getObjectById() or to make a query like “SELECT FROM Food WHERE key = person.getFavoredFoodKey()” Is there another fully automatically way to get the Food-Object? -- 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] Re: Updating data class resets data fields
Hi, I think that this thread is useful. http://groups.google.com/group/google-appengine-java/browse_thread/thread/d13d469752c825e7 Look for past threads It may have useful information Hope this helps, thanks. No, this is not expected behavior. Try rolling back your application and seeing if this still occurs. I suspect something else is wrong - you just need to narrow down the version of your application that causes this to happen. 2010/4/27 Marcos Vinícius Soares mavsoa...@gmail.com I believe this is not allowed. Once you change a class you cannot retrieve the older objects anymore. In this case, you added a field to a class, but, what if you had removed two fields!? How is the framework supposed to treat this!? Try rolling back your class and see if you can retrieve the old objects. I believe you will only be able to get them this way. On Tue, Apr 27, 2010 at 4:22 PM, kghate kgh...@gmail.com wrote: any ideas on what I am doing wrong? Please help! On Apr 27, 12:31 am, kghate kgh...@gmail.com wrote: I am storing some persistent data and all is working fine, I have a simple data class per examples provided in the Storing Data section. However, I noticed that all my stored data got reset to null when I added a couple new fields to be stored. To give an example, my employee data class was storing firstName and DOB and had 5 entries. I added two more fields, lastName and isPermanent and found that my earlier 5 entries got reset to null. The new data class is working fine and all new entries are being stored as expected, but I lost existing entries. What am I doing wrong here? Is this expected behavior? How do I ensure that existing data does not get reset when new persistent fields are added to the data class? Please 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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: JSP showing new DB data problem.
Hi, If the previous data is displayed, I clear the browser cash when simply thinking. They might be other causes. I think that it is useful to check the content by log adminconsole. thanks. When data is changed from the DB the JSP shows it to the user. The problem is that the JSP doesn't reload with the new data until I close session and start it again. My flow is like this: USer sign in (start session) - goes to XXX.jsp and fetchs data from the DB - data is changed from the DB - XXX.jsp does not show the new data until I stop session and start it again. How can I make the JSP show me the new data? 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 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.
Re: [appengine-java] Guice filter
Hi, On local machine I use guice for servlet-injection and map url to servlets: serve(/api).with(RemoteAPIImpl.class); serve(/shoplist/api).with(RemoteAPIImpl.class); and it work. On appengine servers it serve don't work and I have 404 error. What is the version of SDK that you are using? Though I am not trying in detail It is likely to be corrected with SDK 1.3.3.1. http://code.google.com/p/googleappengine/downloads/list Please try. 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. -- 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: Cannot persist a HashMap
Hi, I was useful referring to this thread. You might be also useful for it. http://groups.google.com/group/google-appengine-java/browse_thread/thread/fd8043e63ff6c22e/ Hope some of this helps. thanks. I am not able to persist a HashMap field. This is how I define it: @Persistent(serialized = true, defaultFetchGroup = true) private MapString, Integer items; When I create the Object which the Map is a field of, I instantiate the Map as follows: items = new HashMapString, Integer(); When I update the items HashMap I try to persist the object by doing the following: PersistenceManager pm = PMF.get().getPersistenceManager(); // Query for Object (HashMap is a field of this Object) // Update HashMap pm.makePersistent(objectContainingHashMap); However, when I attempt to retrieve the object after persisting it and read the HashMap it is always empty, as though I never updated it. Has anyone experienced this before? 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 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] Re: Clear particular session manually
Hi, Though it is not a question to me I think that the following sources might be useful for the acquisition of the key used with memcache. DatastoreService service = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(_ah_SESSION); PreparedQuery pq = service.prepare(query); ListEntity list = pq.asList(FetchOptions.Builder.withOffset(0)); String keyValue = ; for (Entity e : list) { keyValue += e.getKey().toString() + \n; //get property(This might be useful. ) } Hope some of this helps! Plase try. Thanks. Hi david: Could you finally remove a complete session manually? Because I'm trying to do the same. What's the key that should be used in the memcache? Thanks, Esteban On Mon, Dec 28, 2009 at 1:32 AM, m seleron seler...@gmail.com wrote: Hi, Supplement is As another solution, I think sessionCleanupServlet also useful for examining things. Thanks. On 12月28日, 午後12:56, m seleron seler...@gmail.com wrote: Hi, In detail though it doesn't examine I think that the following content serves as a reference. http://code.google.com/intl/us/appengine/docs/java/config/appconfig.html Please look at the chapter of[Enabling Sessions] and [prefix of _ahs] I think that key of memcache turns out by the value of getKey of [_ah_SESSION] and this link. Please Try, thanks. On 12月24日, 午後3:59, David hyrv...@gmail.com wrote: I need to clear a session manually from a servlet which has only the id of the session which needs to be cleared (long story short this is to overcome some limitation with flash not supporting cookies). I need to delete both the session from datastore and memcache. How can this be done ? (is the name of the entity in _ah_session table the id of the session ? ) What is the key of the particular session for memcache ? can it be derived from the session id ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group 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] Re: java.awt.Color is a restricted class
Hi, The following link is not a solution I think it answers the same question. http://groups.google.com/group/google-appengine-java/browse_thread/thread/8017df29f14ed98e/ thanks. Hi, I am using JSF2.0 on AppEngine. I get the error below when I try to use a colorpicker utility. Is there a work around this error? Cheers CHINUA WARNING: /pages/addtemp.faces java.lang.NoClassDefFoundError: java.awt.Color is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at org.primefaces.component.colorpicker.ColorPickerRenderer.getConvertedValue(ColorPickerRenderer.java: 179) at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1008) at javax.faces.component.UIInput.validate(UIInput.java:934) at javax.faces.component.UIInput.executeValidate(UIInput.java:1189) at javax.faces.component.UIInput.processValidators(UIInput.java:691) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java: 1080) at javax.faces.component.UIForm.processValidators(UIForm.java:243) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java: 1080) at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java: 1080) at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java: 1180) at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java: 76) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java: 118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) 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.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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) -- 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: AuthSub InvalidToken problem
Hi, I was not able to have them reproduce behavior though I tried a little. (It was possible to execute it normally). Can post do you the source code further? I want to confirm behavior. Or, the environment might be a cause. thank. Come on! Anyone, anything? Thanks. On Mar 26, 12:54 pm, nicanor.babula nicanor.bab...@gmail.com wrote: Hi all, I am facing a strange problem in with my app in GAE and I can't seem to figure it up by myself, so I hope you'll help me.. Here we are: I do : [code] String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, http://www.google.com/calendar/feeds/default/private/full;, false, true); response.sendRedirect(authSubUrl); [/code] in my servlet in order to get an auth subtoken. And the servlet at nextUrl does: [code] String oneTimeUseToken = AuthSubUtil.getTokenFromReply(request.getQueryString()); if(oneTimeUseToken != null){ String sessionToken = AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null); // persist the sessiontoken} // redirect to the page using google services [/code] in order to retrieve and persist the sessiontokenalong with other user information. The problem is that when later I do: [code] URL feedUrl = new URL(http://www.google.com/calendar/feeds/default/ private/full); CalendarQuery myQuery = new CalendarQuery(feedUrl); CalendarService calendarService = new CalendarService(some-app- name); calendarService.setAuthSubToken(currentUser.authSubToken, null); CalendarEventFeed resultFeed = calendarService.query(myQuery, CalendarEventFeed.class); [/code] It says that thetokenisinvalid, and raises this exception: [code] cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev: null com.google.gdata.util.AuthenticationException: OK HTML HEAD TITLETokeninvalid-InvalidAuthSubtoken./TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Tokeninvalid-InvalidAuthSubtoken./H1 H2Error 401/H2 /BODY /HTML at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData Request.java: 596) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG DataRequest.java: 563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques t.java: 550) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java : 530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. java: 535) at com.google.gdata.client.Service.getFeed(Service.java:1102) at com.google.gdata.client.Service.getFeed(Service.java:1044) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java: 662) at com.google.gdata.client.Service.query(Service.java:1204) at com.google.gdata.client.Service.query(Service.java:1145) at cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE ventsServiceImpl.java: 133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_ $1.run(Method_.java:165) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.privilegedInvoke(Method_.java: 163) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke_(Method_.java: 124) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke(Method_.java: 43) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 188) at cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java : 12) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.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.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo bUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler
[appengine-java] Re: GAEJ Access to Google Calendar, How to Authenticate ?
Hi, I am glad to be useful for you. Moreover, in the near future I am looking forward to [Built-in support for OAuth OpenID]. thanks. Thank'sSeleronm, the AuthSubUtil was my missing part to fix my problem. Regards Stephan On 26 Mrz., 08:53,seleronmseler...@gmail.com wrote: Hi, Though I am not an expert. If you use not UserService but [com.google.gdata.client.http.AuthSubUtil] the problem might be solved. I think that this link is useful.http://code.google.com/intl/us/apis/gdata/docs/auth/authsub.html Please try. thanks. Hi GAEJ Experts, I like to access (Read/Write) a GoogleCalendarfrom the Google App Engine. To learn how it works I have Up my Java Google App Application and on my PC a smallCalendartest program. Now I need the missing link how to combine both application's. In my GAEJ servlet I get the current user with : UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); (after successfully login ) And have access to the user Nickname, email address ... To access thecalendarI need the user and password. CalendarService myService = new CalendarService( exampleCo- exampleApp-1); myService.setUserCredentials( myAccount, myPassword ); I understand that I have no access to the User Password. For this reason I think there must be a other way around to access the usercalendar's. I can't believe there is no other way to access the CalendarService ? Any Idea ? Magic Cookies ? Regards Stephan -- 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: Problem with login when testing locally
Hi, I think I want to try it. Can post do you the source? thanks. I'm getting this exception trying to use GAE to login in my local environment. java.lang.NullPointerException at com.google.appengine.api.users.dev.LoginCookieUtils.encodeEmailAsUserId(LoginCookieUtils.java: 89) at com.google.appengine.api.users.dev.LoginCookieUtils.createCookie(LoginCookieUtils.java: 41) at com.google.appengine.api.users.dev.LocalLoginServlet.doPost(LocalLoginServlet.java: 90) 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: 487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) 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.servlet.Dispatcher.forward(Dispatcher.java:268) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at net.sourceforge.stripes.action.ForwardResolution.execute(ForwardResolution.java: 110) at net.sourceforge.stripes.controller.DispatcherHelper $7.intercept(DispatcherHelper.java:508) at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java: 158) at net.sourceforge.stripes.controller.HttpCacheInterceptor.intercept(HttpCacheInterceptor.java: 99) at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java: 155) at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java: 113) at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java: 155) at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java: 74) at net.sourceforge.stripes.controller.DispatcherHelper.executeResolution(DispatcherHelper.java: 502) at net.sourceforge.stripes.controller.DispatcherServlet.executeResolution(DispatcherServlet.java: 286) at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java: 170) 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 net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java: 247) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) 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.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
Re: [appengine-java] XMPP : Sendinvitation failed with xx...@gmail.com
Hi, I tried. The following source think that it was able to execute it normally. String sendEmail = @gmail.com; JID jid = new JID(sendEmail); XMPPService xmpp = XMPPServiceFactory.getXMPPService(); xmpp.sendInvitation(jid); When this source doesn't operate normally, it is likely to have to think about other causes. Good luck Please try. thanks. I was trying to send an invitation to a gmail id and the gmail user is logged in through GTALK and i am getting following message, what can be the reason for this ? Nested in javax.servlet.ServletException: java.lang.IllegalArgumentException: Invalid jabber ID: JID: x...@gmail.com: java.lang.IllegalArgumentException: Invalid jabber ID: JID: x...@gmail.com at com.google.appengine.api.xmpp.XMPPServiceImpl.sendInvitation(XMPPServiceImpl. java: 82) Thanks, Rahul -- 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.
Re: [appengine-java] Problem with using Apache HttpClient
Hi. Though I do not understand the content of processing in detail. If it is possible to substitute it I recommend the use of [com.google.appengine.api.urlfetch]. Please try. thanks. Hi Group, I have a problem. I want to make a HTTP Post request using Apache HttpClient. In the development environment everything works fine. But in the production environment I get the following exception: Uncaught exception from servlet java.lang.NoClassDefFoundError: javax.net.ssl.HttpsURLConnection is a restricted class. Please see the Google App Engine developer's guide for more details. at javax.net.ssl.HttpsURLConnection.clinit(HttpsURLConnection.java) at org.apache.http.conn.ssl.SSLSocketFactory.init(SSLSocketFactory.java: 255) at org.apache.http.conn.ssl.SSLSocketFactory.clinit(SSLSocketFactory.java: 166) at org.apache.http.impl.client.DefaultHttpClient.createClientConnectionManager (DefaultHttpClient.java: 219) at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager (AbstractHttpClient.java: 312) at org.apache.http.impl.client.DefaultHttpClient.createHttpContext (DefaultHttpClient.java: 254) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient. java: 618) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient. java: 576) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient. java: 554) The problem is, that I'm not trying to use SSL. It is a very normal HTTP request (in fact I try uploading a photo to Flickr). Does anyone know how to get rid of this problem? Thank you, Moritz -- 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.
Re: [appengine-java] Issue with updating owned one to many relationship
Hi, Though it is a guess System.out.println(--Update--); //parent = read(parentId); //You comment here parent.getChildren().add(new Child(childId2)); I think that it can register two children by this method. Please try. thanks. Hi, I am having problem with updating an owned one-to-many relationship. It seems to me that the relationship is not updated when add a child during update. The same during create is working fine. Here is a sample code about which I am talking about, Parent class: @PersistenceCapable(detachable=true) public class Parent { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String parentId; @Persistent ListChild children; public Parent(String parentId, ListChild children) { this.parentId = parentId; this.children = children; } // ... } Child Class: @PersistenceCapable(detachable=true) public class Child { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String childId; public Child(String childId) { super(); this.childId = childId; } // ... } Test Class: String parentId = parentId3; ListChild children = new ArrayListChild(); children.add(new Child(childId1)); Parent parent = new Parent(parentId, children); System.out.println(--Create--); persist(parent); // There is only one child now - childId1 System.out.println(--Update--); parent = read(parentId); parent.getChildren().add(new Child(childId2)); // There are two children - childId1, childId2 persist(parent); System.out.println(--Verify--); read(parentId); // ERROR: There is only one child - childId1 In the third step when I try to verify the existence of two children, I am getting only one!. Note: I am explicitly detaching the object in both read and persist methods. Any help regarding this will be much appreciated. I can zip the complete code and send if needed. Thanks, Anoop -- 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] Re: A user need to be register to gtalk to send a message to a XMPP App engine application?
Please invite it by using [XMPP Addresses] from gtalk for appengine. Please refer to the following links for details of [XMPP Addresses]. http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html#XMPP_Addresses Please try. Thanks. On 3月5日, 午前4:21, nicolas melendez nfmelen...@gmail.com wrote: Hi There, i have a small question: I user need to be register in gtalk to send a message to a XMPP App engine application? Thanks! NM -- 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: Compare keys with JDO ?
Hi. This might be useful. Follow this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/2acea43161d8ac5/ Please try. thanks. Hy... I'm using a JDO Query to retrieve some objects of type Contact witch contains: Key key; Key parentKey; String name; ... parentKey is the key of the User that owns that Contacts. Si if want to retrieve all contacts that belong to a certain user i'd have to make a query that returns all Contact objects with parentKey == user.key But i have a problem comparing the keys if I pass them (the keys...) as String, it will retrieve all contacts. If i pass them as Key, it will retrieve nothing. So what is the problem ? I can't use JDO to make a Query that uses a key equality constraint ? Is it mandatory to use datastore Query? or at least can I compose the string query my self ? How ? -- 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: Help needed with Error
Hi, This might be useful. Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/685d2e9db4063a69 Please confirm. thanks. On 2月24日, 午後11:25, Sandeep sandeep.ba...@gmail.com wrote: I have been getting this error since my last deployment. Everything works fine in my local setup but on the server it throws this exception. Caused by: java.io.NotSerializableException: org.datanucleus.store.appengine.query.DatastoreQuery$2 at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.HashMap.writeObject(Unknown Source) Check outwww.medavakkam.com/eGrocery On click of Create new Order I get this error. The same datastore calls are made in another flow and that is working fine. Thanks Regards, Sandeep -- 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: How to get the size of my cache object to avoid pass over the 1M limitation?
Hi. This method might be useful though I am not examining in detail. http://code.google.com/intl/us/appengine/docs/java/javadoc/com/google/appengine/api/memcache/Stats.html com.google.appengine.api.memcache.Stats#getTotalItemBytes() Please try. thanks. On 2月22日, 午後8:15, opok vir...@gmail.com wrote: I want to know the size of my cache object because I found there are some errors on the admin console said that GCache.put failed because some kind of policy. I thought that maybe caused by the size limitation(only 1M of cache object allowed). My question is how can I know the actual size of my cached object? Is there a simple list to show all my cached object just like data viewer? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: java.io.IOException: Truncated quoted printable data (in 1.3.0 and 1.3.1)
Hi, Receive mail there are various conditions for Can you give me more information 1.Can you correctly receive it in case of gmail? (I'm sorry in the idle question. ) 2.Do you do with mail including the attachment? 3.What value is stored in javax.mail.internetMimeMessage.getContentType()? Please teach though it apologizes because of a trivial question. thanks. I started by reading this thread, but still encountered the same problem. (Truthfully i thought i was adding a reply to that thread but seems i started a new one.) I am quite confident i am not doing the wrong thing. It appears that hotmail may not be encoding quoted-printable chars correctly (at least as far as the decoder is concerned) and i found the problem to be the occasional escaping of newlines with an =newline. The decoder appears to want a two digit hex after the equal sign. The decoder fails at this point as does the apache decoder which i also tested. I worked around this problem by accessing the RawInputStream and decoding the text message myself. However MimeMessage.getContent() throws an exception and i believe this to be a bug in the GAE implementation, if not that it could be more lenient in parsing quoted- printable streams. I would be glad to share my workaround, but would also like to see a fix in the GAE code. My workaround looks something like this: // email arriving from hotmail Object content; try { content = mimeMessage.getContent(); // or mimeBodyPart } catch (Exception e) { // when quoted-printable decoding IOException: Truncated quoted printable data content = LenientQuotedPrintableDecoder.decode( mimeMessage.getRawInputStream()); // returns String } On Feb 12, 3:12 am, seleronm seler...@gmail.com wrote: Hi, It is likely already to have tried. This might be useful. Follow this thread:http://groups.google.com/group/google-appengine-java/ browse_thread/th... Please try. thanks. On 2月11日, 午前10:36,mocajwein...@gmail.com wrote: I am receiving the error below when receiving an email from Hotmail to an App Engine email Servlet. The same code works fine when receiving emails from Gmail and my cell for instance. gui.EMailReceiverServlet doPost: Truncated quoted printable data java.io.IOException: Truncated quoted printable data at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decodeNonspaceChar (Quo tedPrintableEncoder.java: 597) at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decode (QuotedPrintable Encoder.java: 584) at org.apache.geronimo.mail.util.QuotedPrintableDecoderStream.read (QuotedPrint ableDecoderStream.java: 80) at org.apache.geronimo.mail.handlers.TextHandler.getContent(TextHandler. java: 107) at javax.activation.DataSourceDataContentHandler.getContent (Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeMessage.getContent(MimeMessage.java: 927) Fails early when sending email from Hotmail using Plain Text try { Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); MimeMessage message = new MimeMessage(session, request.getInputStream()); Address[] messageFrom = message.getFrom(); Address messageSender = message.getSender(); Address[] messageReplyTo = message.getReplyTo(); String messageSubject = message.getSubject(); Date messageSentDate = message.getSentDate(); String messageContentType = message.getContentType(); LOGGER.info(received email message.from: + Arrays.toString(messageFrom) + message.sender: + messageSender + message.replyTo: + Arrays.toString(messageReplyTo) + message.subject: + messageSubject + message.sentDate: + messageSentDate + message.contentType: + messageContentType); Object messageContent; try { messageContent = message.getContent(); // THIS SHOULD WORK } catch (Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); ByteArrayOutputStream out = new ByteArrayOutputStream(); message.writeTo(out); A Snippet of what is printed by message.writeTo() (Notice the Content-Transfer-Encoding: quoted-printable and the exception: java.io.IOException: Truncated quoted printable data) Date: Wed, 10 Feb 2010 17:16:32 -0800 Importance: Normal Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 11 Feb 2010 01:16:33.0369 (UTC) FILETIME=[D93A3C90:01CAAAB7] app =20 FYI: My message was app My
[appengine-java] Re: Mail with ODT attachment
Hi, I think it is a good idea. On 2月13日, 午前1:34, Peter Ondruska peter.ondru...@gmail.com wrote: Shall we file a bug report for enhancement to include open document formats? What do you think? On Feb 12, 12:05 pm, seleronm seler...@gmail.com wrote: Hi. ODTmight not be able to be used. Please refer to the following links [http://code.google.com/intl/us/appengine/docs/java/mail/ overview.html] [SendingMailwith Attachments] section thanks. On 2月12日, 午前10:25, Geert van Leemputten geert.van.leemput...@gmail.com wrote: I am trying to send amailcontaining an openoffice text document with mimetype application/vnd.oasis.opendocument.text, but I cant seem to get it through. So far Ive tried both JavaMail API and googles low-level API unsuccessfully. Caused by: java.lang.IllegalArgumentException: InvalidAttachment Type: Invalidattachmenttype at com.google.appengine.api.mail.MailServiceImpl.doSend(MailServiceImpl.java: 107) at com.google.appengine.api.mail.MailServiceImpl.send(MailServiceImpl.java: 32) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.j ava: 247) ... 47 more -- 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: Mail with ODT attachment
Hi. ODT might not be able to be used. Please refer to the following links [http://code.google.com/intl/us/appengine/docs/java/mail/ overview.html] [Sending Mail with Attachments] section thanks. On 2月12日, 午前10:25, Geert van Leemputten geert.van.leemput...@gmail.com wrote: I am trying to send a mail containing an openoffice text document with mimetype application/vnd.oasis.opendocument.text, but I cant seem to get it through. So far Ive tried both JavaMail API and googles low-level API unsuccessfully. Caused by: java.lang.IllegalArgumentException: Invalid Attachment Type: Invalid attachment type at com.google.appengine.api.mail.MailServiceImpl.doSend(MailServiceImpl.java: 107) at com.google.appengine.api.mail.MailServiceImpl.send(MailServiceImpl.java: 32) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java: 247) ... 47 more -- 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: java.io.IOException: Truncated quoted printable data (in 1.3.0 and 1.3.1)
Hi, It is likely already to have tried. This might be useful. Follow this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/34fc6354a923e6af/c01e478a169b2e8f?#c01e478a169b2e8f Please try. thanks. On 2月11日, 午前10:36, moca jwein...@gmail.com wrote: I am receiving the error below when receiving an email from Hotmail to an App Engine email Servlet. The same code works fine when receiving emails from Gmail and my cell for instance. gui.EMailReceiverServlet doPost: Truncated quoted printable data java.io.IOException: Truncated quoted printable data at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decodeNonspaceChar(QuotedPrintableEncoder.java: 597) at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decode(QuotedPrintableEncoder.java: 584) at org.apache.geronimo.mail.util.QuotedPrintableDecoderStream.read(QuotedPrintableDecoderStream.java: 80) at org.apache.geronimo.mail.handlers.TextHandler.getContent(TextHandler.java: 107) at javax.activation.DataSourceDataContentHandler.getContent(Unknown Source) at javax.activation.DataHandler.getContent(Unknown Source) at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927) Fails early when sending email from Hotmail using Plain Text try { Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); MimeMessage message = new MimeMessage(session, request.getInputStream()); Address[] messageFrom = message.getFrom(); Address messageSender = message.getSender(); Address[] messageReplyTo = message.getReplyTo(); String messageSubject = message.getSubject(); Date messageSentDate = message.getSentDate(); String messageContentType = message.getContentType(); LOGGER.info(received email message.from: + Arrays.toString(messageFrom) + message.sender: + messageSender + message.replyTo: + Arrays.toString(messageReplyTo) + message.subject: + messageSubject + message.sentDate: + messageSentDate + message.contentType: + messageContentType); Object messageContent; try { messageContent = message.getContent(); // THIS SHOULD WORK } catch (Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); ByteArrayOutputStream out = new ByteArrayOutputStream(); message.writeTo(out); A Snippet of what is printed by message.writeTo() (Notice the Content-Transfer-Encoding: quoted-printable and the exception: java.io.IOException: Truncated quoted printable data) Date: Wed, 10 Feb 2010 17:16:32 -0800 Importance: Normal Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 11 Feb 2010 01:16:33.0369 (UTC) FILETIME=[D93A3C90:01CAAAB7] app =20 FYI: My message was app My message comes in, but it is not correctly parsed by the mail implementation. Does anyone know how to work around 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: can't send attachment via Java Mail API supported by GAE
Hi. It is great. I was able also to receive attached mail. Congratulations. Thanks everything is working now. Now attachment is working. Flex base video to image capture application hosted on google app engine http://clickpicture.appspot.com/Video.html Hi. I'm sorry for being not able to explain well. Please try the following sources. code MimeMessage msg = new MimeMessage(session); Multipart mp = new MimeMultipart(); //attachmentPart MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(videoimage.jpeg); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource(theByteArray, image/jpeg); javax.activation.DataHandler datahandler = new javax.activation.DataHandler(byteArrayDataSource); attachment.setDataHandler(datahandler); mp.addBodyPart(attachment); //MessagePart(body) MimeBodyPart body = new MimeBodyPart(); body.setText(Message_sample); //set message mp.addBodyPart(body); msg.setContent(mp); msg.setFrom(fromIaddress); // set from msg.addRecipient(Message.RecipientType.TO, toIaddress); // set to msg.setSubject(subject_sample); //set subject Transport.send(msg); /code I confirm that I received in Gmail. If it is useless in this method The value of theByteArray might have to be confirmed. thanks. 2010/2/5 Nehul neh...@gmail.com: Can you please explain what you mean? Hi. I think that I can transmit if it is shape that stores msg and attachement in each Part Please try. thanks. Multi-Part Messages I can't send attachment (simple image file) to email but normal text email is working. code (session); -- 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.
Re: [appengine-java] Running a cron job within a time span of work days
Hi, May be possible if the following way 1.Taskqueue that operates every four hours and two minutes is made. 2.Cron that calls the Taskqueue at 10:00 is made. Please try. thanks. Hi, I want to configure a cron job for running every 2 minutes from (e.g.) 1000 to 1600 hours. Firstly, can I use something as follows? Secondly, how can I specify how long the cron job will run? cron url/update/url descriptionRepopulate data every 2 minutes from 10:00 AM/ description scheduleevery 2 minutes sun,mon,tue,wed,thu 10:00/schedule timezoneAsia/Dhaka/timezone /cron Thank you in advance, Imran -- 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.
Re: [appengine-java] queue.xml question
Hi, Maybe the following thread may help http://groups.google.co.uk/group/google-appengine/browse_thread/thread/3d64511a517cffc1/64fe290597597511 Hope this helps, The bucket size and rate seem to have no effect when running my application in eclipse. The tasks added to my queue are processed at the default rate. Is there something I need to know? ?xml version=1.0 encoding=UTF-8? queue-entries queue nameetfease/name rate0/m/rate bucket-size1/bucket-size /queue /queue-entries -- 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.
Re: [appengine-java] Unable to upload application - Total refill rate must not exceed 20 per second
hi. I guessed because I paid attention to the following parts. [Invalid queue configuration. Total refill rate must not exceed 20 per second (is 24.0).] queue.xml the rate numbers may have to decrease Please try. thanks. hi, I'm unable to upload the application to GAE. Check logs Unable to update: java.io.IOException: Error posting to URL: http://appengine.google.com/api/queue/update?app_id=nsecharts-testversion=1; 400 Bad Request Invalid queue configuration. Total refill rate must not exceed 20 per second (is 24.0). at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 143) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 81) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 427) at com.google.appengine.tools.admin.AppVersionUpload.updateQueue (AppVersionUpload.java: 157) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload. java: 121) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.tools.admin.AppCfg $UpdateAction.execute(AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: http://appengine.google.com/api/queue/update?app_id= nsecharts-testversion=1 400 Bad Request Invalid queue configuration. Total refill rate must not exceed 20 per second (is 24.0). at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) at com.google.appengine.tools.admin.AppCfg $UpdateAction.execute(AppCfg.java:521) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54) Caused by: java.io.IOException: Error posting to URL: http://appengine.google.com/api/queue/update?app_id=nsecharts-testversion=1; 400 Bad Request Invalid queue configuration. Total refill rate must not exceed 20 per second (is 24.0). at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 143) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 81) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 427) at com.google.appengine.tools.admin.AppVersionUpload.updateQueue (AppVersionUpload.java: 157) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload. java: 121) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more -- 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.
Re: [appengine-java] can't send attachment via Java Mail API supported by GAE
Hi. I think that I can transmit if it is shape that stores msg and attachement in each Part Please try. thanks. Multi-Part Messages I can't send attachment (simple image file) to email but normal text email is working. code MimeMessage msg = new MimeMessage (session); Multipart mp = new MimeMultipart(); MimeBodyPart attachment = new MimeBodyPart(); attachment.setFileName(videoimage.jpeg); attachment.setContent(theByteArray, image/jpeg); attachment.setText(request.getParameter(msg)); mp.addBodyPart(attachment); msg.setContent(mp); msg.setFrom(new InternetAddress (neh...@gmail.com,Reply to)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(toe,1.3 users)); msg.setSubject(request.getParameter(subject)); Transport.send(msg); /code I am using GAE 1.3.0 for Java. -- 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] Re: Can't run the Java version of GAE.
Hi. Though it might be unrelated Please refer to the following links http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044 Please Try. thanks. On 2月3日, 午前4:23, Don Schwarz schwa...@google.com wrote: Sorry, I don't really have any theories. No one else has ever reported this, so lets start with what makes your machine unique. What JRE are you running? Can you try a Sun 1.5 or 1.6 VM if you're not already using one? Is there anything special about the networking on your machine? IPv6 support? Multiple IPv4 networks? etc. Does specifying an alternate port with -p work? On Fri, Jan 29, 2010 at 1:36 PM, Tordek ked...@gmail.com wrote: Tordek wrote: I wanted to try out Clojure in GAE, so I downloaded the Java SDK, but I can't run the demo apps: I get this error. ~/src/JavaGae$ ./appengine-java-sdk-1.3.0/bin/dev_appserver.sh appengine-java-sdk-1.3.0/demos/guestbook/war/ 26-Jan-2010 19:00:50 com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed selectchannelconnec...@127.0.0.1:8080 java.net.SocketException: Invalid argument at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind (ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:188) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:120) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:217) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) 26-Jan-2010 19:00:50 com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed ser...@7eb1cc87 java.net.SocketException: Invalid argument at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind (ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:188) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:120) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:217) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) java.net.SocketException: Invalid argument at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind (ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:188) at
Re: [appengine-java] Problema Index en JDO
Hi, What state is [Datastore Indexes] of your Admin Console ? thanks. Hola mi aplicacion funciona muy bien a modo local sin embargo en el Servidor real App Engine obtengo esta pila de error Que me falta configurar ? My application run very good in localhost but in appengine error: Uncaught exception from servlet com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Ubicacion ancestor=false source=manual property name=idUser direction=asc/ property name=fecha direction=desc/ /datastore-index at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:39) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall (DatastoreApiHelper.java:60) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:388) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.asQueryResultList(DatastoreServiceImpl.java:318) at org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery (DatastoreQuery.java:355) at org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery (DatastoreQuery.java:265) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreQuery.java:228) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:85) at org.datanucleus.store.query.Query.executeQuery(Query.java:1489) at org.datanucleus.store.query.Query.executeWithArray(Query.java: 1371) at org.datanucleus.store.query.Query.execute(Query.java:1344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221) at com.ubicacion.action.UbicarAction.ultimaUbicacion (UbicarAction.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:42) at org.apache.struts.actions.DispatchAction.dispatchMethod (DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute (DispatchAction.java:170) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 462) 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: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter (ParseBlobUploadFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest (JettyServletEngineAdapter.java:135) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java:235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5235) at
Re: [appengine-java] Re: Deleting unused indices
Hi, Incidentally, I isuue list http://code.google.com/p/googleappengine/issues/detail?id=1893 link that is also listed in the http://groups.google.com/group/google-appengine-java/browse_thread/thread/c8a7888438efeb9/cdbaeb27befcfd75 vacuum_indexes I think that the steps listed. Please try thanks. (2010/01/20 5:18), John Patterson wrote: On 20 Jan 2010, at 03:14, George Moschovitis wrote: On Jan 19, 3:19 pm, John Patterson jdpatter...@gmail.com wrote: You need to download the python sdk and use appcfg.py on your Java app. I am on a mac and after downloading the sdk I ran the AppEngineLanucher and created a new app with my Java app's id then I ran appcfg.py vacuum_indexes /path/to/dummy_python_app/ do I need to have an index.yaml file for this to work? Yes that is why you create the dummy python app. -- 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.
Re: [appengine-java] Re: jsp work directory
Hi, When it searches c:/Users/[username]/AppData/Local/Temp/ It might be found. Please try variously. thanks. I am having the question with trying to find the work directory. I am running eclipse on a windows (vista) machine. I explored reference provided by sleeronm without any luck on my machine. Any suggestions? Hi, The following links might serve as a reference though it is thought that it differs depending on OS that you are using. http://groups.google.com/group/google-appengine-java/browse_thread/th... Please try. thanks. the directory where the jsps are translated into java files and compiled. like in tomcat. What do you mean by work directory? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- 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.- 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. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: jsp work directory
Hi, The following links might serve as a reference though it is thought that it differs depending on OS that you are using. http://groups.google.com/group/google-appengine-java/browse_thread/thread/e63281b3e3d1b05/9b12a70f5172c6c1 Please try. thanks. the directory where the jsps are translated into java files and compiled. like in tomcat. What do you mean by work directory? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- 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.
Re: [appengine-java] unable to delete cron job
Hi, Please refer to the following links http://code.google.com/intl/us/appengine/docs/java/config/cron.html [Uploading Cron Jobs] section Please try. Thanks. I created a sample cron job with an excution frequency of 2 minutes just to experiment with the working of cron on GAE. After a few invocations, I decided to remove the job. I deleted cron.xml and deployed my app on GAE. However, the cron continues to execute. How do I remove the job? -- 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.
Re: [appengine-java] Could not fetch URL with URLFetchService but with HttpClient
Hi, I tried a little. ( SDK 1.3.0) The condition that IOException is generated when value of the URL parameter .(dot) is included. This is not generated in production. I think that the possibility of bug of development environment(SDK). thanks. I have an url which is redirecting: http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/index.cfm?fuseaction= Reports.SetReportrptname=1reportSelectDate=12%2F2009ta=Submits org.apache.http.client.HttpClient can follow the redirect without any problem and get the content. However URLFetchService has problems following the redirects, java.io.IOException: Could not fetch URL. Clearly the implementations are different, but I wonder how I can get the URLFetchService to also read in that url. Could this be a bug? If I ask HttpClient not to follow the redirect, it comes back with temporarily moved, which I believe is HTTP Error 302. Any help would be very kind. The code using the URLFetchService: URL url = new URL(urlStr); URLFetchService urlFetchService = URLFetchServiceFactory.getURLFetchService(); HTTPRequest httpRequest = new HTTPRequest(url, HTTPMethod.GET,followRedirects()); HTTPResponse response = urlFetchService.fetch(httpRequest); The code using HTTPClient String url = http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/ index.cfm? fuseaction=Reports.SetReportrptname=1reportSelectDate=12%2F2009ta=Submits ; HttpClient httpclient = new DefaultHttpClient (); httpclient.getParams().setBooleanParameter ( http.protocol.handle-redirects, true); HttpGet httpGet = new HttpGet (url); ResponseHandlerString responseHandler = new BasicResponseHandler (); String responseBody; try { responseBody = httpclient.execute(httpGet, responseHandler); System.out.println (responseBody); } catch (ClientProtocolException e) { e.printStackTrace (); } catch (IOException e) { e.printStackTrace (); } -- 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.