[appengine-java] Re: receiving mail demo
Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); Message message = new MimeMessage(session, request.getInputStream()); String subject = message.getSubject(); DataHandler dataHandler = message.getDataHandler(); DataSource dataSource = dataHandler.getDataSource(); MimeMultipart mimeMultipart = new MimeMultipart (dataSource); Part part1 = mimeMultipart.getBodyPart(0); // get the content use common io, i use chinese, so i set the encoding gb2313 String content = IOUtils.toString((InputStream) part1.getContent(), "gb2312"); it is receiving mail demo, it works well On Nov 8, 12:48 pm, m seleron wrote: > Hi > > GAE's getContent (or javamailAPI current version ?) is > message.isMimeType ( "multipart / *") even when the > ByteArrayInputStream so to return. > > When the isMimeType is multipart try to convert this source > > InputStream inputStream = (InputStream)mimeMessage.getContent(); > String ContentType = mimeMessage.getContentType(); > ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource > (inputStream,ContentType); > Multipart mimeMultipart = new MimeMultipart(byteArrayDataSource); > > Please try variously. > > 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] Re: Problem with Constraints (JPA + grails)
You may need to call the validate() method on the domain instance. On Nov 7, 3:26 am, Jeremiah Elliott wrote: > I am working on a project that is evaluating the use of grails and gae. We > are unable to specify constraints that are actually enforced. > > We have tried a grails style like: > static constraints = { > id(visible:false) > userName(blank: false) > firstName(blank: false) > middleName(blank:false, nullable:false) > lastName(blank: false) > } > > and annotations such as: > @Basic(optional = false) > �...@column(nullable = false) > > but either way we can insert data that should not be allowed. In particular > we are trying to specify that a field can not be null or empty. --~--~-~--~~~---~--~~ 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: receiving mail demo
Hi GAE's getContent (or javamailAPI current version ?) is message.isMimeType ( "multipart / *") even when the ByteArrayInputStream so to return. When the isMimeType is multipart try to convert this source InputStream inputStream = (InputStream)mimeMessage.getContent(); String ContentType = mimeMessage.getContentType(); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource (inputStream,ContentType); Multipart mimeMultipart = new MimeMultipart(byteArrayDataSource); Please try variously. 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] Re: Which datastore exceptions are appropriate for Re-try
ApiProxy.UnknownException (sometimes) On Nov 6, 5:22 pm, Diana Cruise wrote: > There are only 5 exceptions documented for the datastore at the link > below: > > http://code.google.com/appengine/docs/java/javadoc/com/google/appengi... > > From the descriptions, it appears only 2 of 5 are conditions where a > re-try may succeed. They are: > > DatastoreFailureException > DatastoreTimeoutException > > Can anyone confirm from their experience that these are the only > appropriate to re-try a transaction? > > For example, when you hit the 30s timeout limit I assume the timeout > exception above is triggered. Or, what if your transaction fails due > to another update in-progress on the same entity group...what > exception gets thrown for that? Clearly, you would want to re-try in > that case! > > 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] Re: why my app on GAE first access is so slow
yes, i think so. GAE is an exciting concept but this issue is so bad. if the app is an official business app, nobody can tolerate the first time access, it is too slow On Nov 8, 7:00 am, Joseph Stano wrote: > I have the same problem with my grails app. GAE is an exciting > concept but this issue is so bad that I'm going to seek a different > service to host my app. GAE+grails is too new at this point for an > actual grails-based production site. > > On 11/7/09, m seleron wrote: > > > > > > > Hi > > > ServletContextListener I do know the approximate time of use. > > > example > > ServletContextListener#contextInitialized Been called from time to be > > called doPost/doGet. > > When I called to check ServletContextListener#contextDestoryed. --~--~-~--~~~---~--~~ 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] Installation Path
I am new to Google App Engine development and I am trying to setup my development environment. Can someone suggest a base path to install the App Engine Java SDK? If anyone also have any additional tips, I would surely appreciate it. 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] Re: Delete without getting, using JDO
You can use DatastoreService.delete(Key...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...) On Nov 7, 11:05 am, Peter Recore wrote: > Is there a way to delete an entity without having to fetch it from the > datastore first? > Ideally, there would be a deleteObjectById analogue to getObjectById > on PersistenceManager. > > The closest I can think of is using Query.deletePersistentAll() and > specifying a keys only query, but I can't tell if that is going to > fetch the entity before deleting it. > > -peter --~--~-~--~~~---~--~~ 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: Delete without getting, using JDO
You can use DatastoreService.delete(Key...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...) On Sat, Nov 7, 2009 at 11:05 AM, Peter Recore wrote: > > Is there a way to delete an entity without having to fetch it from the > datastore first? > Ideally, there would be a deleteObjectById analogue to getObjectById > on PersistenceManager. > > The closest I can think of is using Query.deletePersistentAll() and > specifying a keys only query, but I can't tell if that is going to > fetch the entity before deleting it. > > -peter > > > --~--~-~--~~~---~--~~ 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] ability to implement queue or wrapper to queue with an internal latch
Hello, Thanks for use of the app engine! I'm wondering if there are future plans to implement something like the ability to use a concurrent count down latch with a wrapper to or within a queue implementation? It would be nice to be able to set a condition upon which multiple processors operating on the same task are done and the next in a sequence of tasks can be started. I'm implementing this in other ways currently... --~--~-~--~~~---~--~~ 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: receiving mail demo
Same issue: what I expected to be of type Multipart is of type ByteArrayInputStream... public static String getText(Part message) throws MessagingException, IOException { Object content = message.getContent(); if (message.isMimeType("text/*")) { return (String) content; } if (message != null && message.isMimeType("multipart/*")) { if (!content instanceof Multipart) { // *** This stream contains the non parsed multipart version ! *** // *** content instanceof ByteArrayInputStream *** return ""; } Multipart multipart = (Multipart) content; for(int i = 0; i < multipart.getCount(); i++) { Part part = multipart.getBodyPart(i); String text = getText(part); if (!"".equals(text)) { return text; } } } return ""; } Any hint? On Oct 23, 9:29 pm, Kyle Roche wrote: > Same here. Started a few threads on it. No replies yet. > > Sent from my iPhone > > On Oct 23, 2009, at 11:04 AM, vs wrote: > > > > > I'm having the same issue Can someone please help me with this? > > > On Oct 19, 12:44 pm, Prashant wrote: > >> yes, every thing is working fine except that I am not able to fetch > >> message > >> body in suitable format. --~--~-~--~~~---~--~~ 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] Problem with Data Store using JDO Query
Can you please any one help me.I am using Good Data store in my application. when i try to write the query in JDO like this select from " + Address.class.getName()+" where designation=="+search +" || suburb=="+suburb It is not working and display the error message in console : 06/11/2009 11:42:59 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /addressInfo org.datanucleus.store.appengine.query.DatastoreQuery $UnsupportedDatastoreOperatorException: Problem with query : App Engine datastore does not support operator OR at org.datanucleus.store.appengine.query.DatastoreQuery.checkForUnsupportedOperator (DatastoreQuery.java:1197) at org.datanucleus.store.appengine.query.DatastoreQuery.addExpression (DatastoreQuery.java:706) at org.datanucleus.store.appengine.query.DatastoreQuery.addFilters (DatastoreQuery.java:663) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreQuery.java:214) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:84) 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.matchmaking.ContactDAOImpl.listContacts(ContactDAOImpl.java: 29) at com.matchmaking.AddressInfo.listContacts(AddressInfo.java:174) at com.matchmaking.AddressInfo.doPost(AddressInfo.java:103) at com.matchmaking.AddressInfo.doGet(AddressInfo.java:28) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) 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.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:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:342) 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) --~--~-~--~~~---~--~~ 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] batik
Can the batik library for svg be used with the GAE java? regards, black_13 --~--~-~--~~~---~--~~ 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: why my app on GAE first access is so slow
I have the same problem with my grails app. GAE is an exciting concept but this issue is so bad that I'm going to seek a different service to host my app. GAE+grails is too new at this point for an actual grails-based production site. On 11/7/09, m seleron wrote: > > Hi > > ServletContextListener I do know the approximate time of use. > > example > ServletContextListener#contextInitialized Been called from time to be > called doPost/doGet. > When I called to check ServletContextListener#contextDestoryed. > > > > --~--~-~--~~~---~--~~ 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: Recommendations for GWT +GAE
I think you'll get better answers in the GWT group http://groups.google.com/group/google-web-toolkit?hl=en On Sat, Nov 7, 2009 at 7:25 PM, Vik wrote: > Hie > > I am a newbie in GWT and so very much confused for what to use for > desigining my ui. I mean should i use the widgets comes with GWT or other > open source libs available. > > Few things: > 1. Please suggest which is compatible with GAE as my APP is gonna be on GAE > only. > 2. Right now I do not have very high-fi or a super cool UI requirements but > definitely then one which has great widgets and does not easily break GAE > free app file limits > will be great for me to start with. > > Please advise > > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Recommendations for GWT +GAE
Hie I am a newbie in GWT and so very much confused for what to use for desigining my ui. I mean should i use the widgets comes with GWT or other open source libs available. Few things: 1. Please suggest which is compatible with GAE as my APP is gonna be on GAE only. 2. Right now I do not have very high-fi or a super cool UI requirements but definitely then one which has great widgets and does not easily break GAE free app file limits will be great for me to start with. Please advise Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Form Widget
Hie Is there any form widget for GWT ? Looking for something which marks mandatory fields with proper error etc on submitting blank Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] free GWT plugin for eclipse
hie anyone aware of a free WYSWYG plugin for GWT development for eclipse? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Delete without getting, using JDO
And you can also look here: http://code.google.com/intl/en/appengine/docs/java/datastore/queriesandindexes.html#Delete_By_Query To google guys: By the way, there's a typo in the last link of that paragraph, which doesn't have an anchor. On Sat, Nov 7, 2009 at 3:29 PM, Rusty Wright wrote: > > Have a look at the Query class; you can use the id/key in the query. > http://xrl.in/3m1e http://xrl.in/3m1f > > > Peter Recore wrote: > > Is there a way to delete an entity without having to fetch it from the > > datastore first? > > Ideally, there would be a deleteObjectById analogue to getObjectById > > on PersistenceManager. > > > > The closest I can think of is using Query.deletePersistentAll() and > > specifying a keys only query, but I can't tell if that is going to > > fetch the entity before deleting it. > > > > -peter > > > > > > > --~--~-~--~~~---~--~~ 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: Delete without getting, using JDO
Have a look at the Query class; you can use the id/key in the query. http://xrl.in/3m1e http://xrl.in/3m1f Peter Recore wrote: > Is there a way to delete an entity without having to fetch it from the > datastore first? > Ideally, there would be a deleteObjectById analogue to getObjectById > on PersistenceManager. > > The closest I can think of is using Query.deletePersistentAll() and > specifying a keys only query, but I can't tell if that is going to > fetch the entity before deleting it. > > -peter > > --~--~-~--~~~---~--~~ 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] once per deployment?
Hi, I want to run a piece of code only once, every time I deploy a new version. How do I do that? --~--~-~--~~~---~--~~ 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: java doubt : is there any way to get class instance from class' qualified name?
got it. thanks a ton... --~--~-~--~~~---~--~~ 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: java doubt : is there any way to get class instance from class' qualified name?
yes it can be done. Search for reflections and java on Google and follow the sun tutorial. Tim On Nov 7, 9:53 am, Prashant wrote: > Hi, > > Suppose, I have a list of Qualified Names of a set of classes (say, in a > property or text file) and I want to call a method (pre-decided), from one > of the listed class, when required. Is there any way to do that? My > knowledge of java says NO, if you have any idea please reply. > > 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] Re: GAE status / availalbility problems?
I'm troubled by this lack of help for GAE apps...I see MANY forum entries with NO reply lately whereas in earlier months there seemed to be more quality responses. Who are the Google reps assisting with this forum? Am I missing something? On Nov 6, 11:47 pm, Dmitry Anipko wrote: > After some more experimentation, it looks like there is something in > the data store that is surfaced by our application: > > if I clean up the store for the application completely, using the web > interface, then for the first ~100 request it works fine, but after > some time, it starts producing those errors I wrote before - it can't > query objects by index (and that problem persists until I clean the > store again). > > The second observation - although I don't know if it is related or not > - is when the store for my app is in such state, and I try to view > objects through the web interface, the web interfaces crashes with the > error 500: > > Server Error > A server error has occurred. > > Return to Applications screen » > > GAE folks, can someone please take a look - this is a blocking issue > for my team, and I don't know how to proceed here without your help. > > Everything works just fine when I run it on a local development > server. > > Thank you. > > On Nov 6, 11:05 am, Diana Cruise wrote: > > > > > I see NO reply from GAE here regarding such a critical issue!!! > > > Is your app still down, what is the status of your app? How are we > > supposed to put an application in production with GAE if such a > > problem can occur with NO response for 3 days? Is there another > > channel to raise such high-priority issues to get proper helpdesk > > response? > > > On Nov 4, 1:58 am, Dmitry Anipko wrote: > > > > It is 11:56 Pacific 11/3/2009, are there any known issues withGAE > > > right now? > > > > My application that has been working for a couple of months now today > > > started producing failures for some queries from the data store > > > (basically an object which has just been stored cannot be retrieved > > > after that by key), and after some time started producing even > > > > > > > > > > 500 Server Error > > > > > > > > > Error: Server Error > > > The server encountered an error and could not complete your > > > request.If the problem persists, please report your problem and > > > mention this error message and the query that caused it. > > > > > > > > > > The same application executes just fine in the localGAEdevelopment > > > environment. Can folks fromGAEcomment if there is any maintenance > > > going on right now or how could I get more details on what causing the > > > failures (again the same code worked for quite some time now, so I > > > think it is unlikely the code is the issue here). Thanks for your help.- > > > Hide quoted text - > > > - Show quoted text -- 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-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] Can't send mail with attachment using JavaMail API
I keep getting this exception : javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Converting attachment data failed) Seems related to issue : http://code.google.com/p/googleappengine/issues/detail?id=1764 (please star) Does anybody knows if there is fix or workaround available ? Thanx for your help. François Bordeaux, FRANCE --~--~-~--~~~---~--~~ 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] java doubt : is there any way to get class instance from class' qualified name?
Hi, Suppose, I have a list of Qualified Names of a set of classes (say, in a property or text file) and I want to call a method (pre-decided), from one of the listed class, when required. Is there any way to do that? My knowledge of java says NO, if you have any idea please reply. 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] Re: why my app on GAE first access is so slow
Hi ServletContextListener I do know the approximate time of use. example ServletContextListener#contextInitialized Been called from time to be called doPost/doGet. When I called to check ServletContextListener#contextDestoryed. --~--~-~--~~~---~--~~ 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] ClassNotFound on deployed application
Hello, I keep getting Uncaught exception from servlet java.lang.NoClassDefFoundError: javax/jdo/JDOHelper at com.schleinzer.stinto.jdo.PMF.(PMF.java:10) at com.schleinzer.stinto.jdo.SessionFilter.doFilter (SessionFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite (RuleChain.java:164) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java: 141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest (UrlRewriter.java:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter (UrlRewriteFilter.java:406) 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:139) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java:239) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5135) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5133) 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:814) at com.google.tracing.LocalTraceSpanRunnable.run (LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan (LocalTraceSpanBuilder.java:516) at com.google.net.rpc.impl.Server.startRpc(Server.java:769) at com.google.net.rpc.impl.Server.processRequest(Server.java:351) at com.google.net.rpc.impl.ServerConnection.messageReceived (ServerConnection.java:437) 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: 436) at com.google.net.async.EventDispatcher.processNetworkEvents (EventDispatcher.java:762) at com.google.net.async.EventDispatcher.internalLoop (EventDispatcher.java:207) 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 (JavaRuntime.java:396) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: javax.jdo.JDOHelper at com.google.appengine.runtime.Request.process-8d55e7f1ac4da8d0 (Request.java) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 45 more on a *deployed* application - it is working ok locally. What did I miss? Shouldn't "javax.jdo.JDOHelper" be always available on the live app engine? 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:
[appengine-java] Re: why my app on GAE first access is so slow
yes, your guess is right. if your app is inactive then app engine will remove your app servlets from memory and reloads from datastore (or wherever it is stored) when you access it first time. --~--~-~--~~~---~--~~ 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] why my app on GAE first access is so slow
i deploy my app on gae. every time i access it , it may take 10~20 second to open the page on the first time, then i access other link in my app or simply refresh it, it is normal ,very fast only take few second. but then i stop access the page, after some time, i access the page again, it will also like what i descirbe before; it is as if every time my first access, gae restart the server ,reinit the jsp file . does someone else met the same like me ?? --~--~-~--~~~---~--~~ 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: the question in ubuntu9.10 and eclipse 3.5
Yes, they work completely, I advise you use ubuntu strongly. If you fear something, you can use wubi, o(∩_∩)o.Enjoy it. On Sat, Nov 7, 2009 at 10:41 AM, Rick wrote: > > Did you get Ubuntu 9.10, Eclipse 3.5 and App Engine to work > completely? I was hoping to use Ubuntu. > > On Nov 6, 5:45 am, James Young wrote: > > HI > > > > Thank you very much, matthieu! > > > > Best regards! > > > > On Fri, Nov 6, 2009 at 4:32 PM, matthieu vidal >wrote: > > > > > > > > > > > > > Hi > > > > > Have you seen this workaround about Eclipse < 3.6 and Ubuntu 9.10 ? > > > > > You have to set this env variable before lauching eclipse > > > > > export GDK_NATIVE_WINDOWS=1 > > > > > see here : > > >http://www.norio.be/blog/2009/10/problems-eclipse-buttons-ubuntu-910 > > > > > Regards > > > --~--~-~--~~~---~--~~ 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] Delete without getting, using JDO
Is there a way to delete an entity without having to fetch it from the datastore first? Ideally, there would be a deleteObjectById analogue to getObjectById on PersistenceManager. The closest I can think of is using Query.deletePersistentAll() and specifying a keys only query, but I can't tell if that is going to fetch the entity before deleting it. -peter --~--~-~--~~~---~--~~ 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: Cannot retrieve value of the newly created attribute in a JDO
I have fixed this problem. Thanks. On Nov 6, 11:05 am, delightwjk wrote: > Thank you Jorge, > > I checked the document you mentioned, but i'm still not sure what is > the reason of my issue. I added a field in JDO (Boolean successFlag), > and stored several entities in datastore, I was able to see the > entities with successFlag property from admin console "Datastore" -> > "Data Viewer", and the values of successFlag properties were correct. > The entities have the property successFlag with correct value, and the > JDO class has the corresponding field, but why I could not retrieve > the values of successFlag via JDO? > > Jiakuan > > On Nov 5, 9:57 pm, Jorge wrote: > > > You may want to check the rules that apply in this case as documented > > at the bottom of this page:: > > http://code.google.com/appengine/docs/java/datastore/dataclasses.html > > > Jorge Gonzalez > > > On Nov 4, 8:06 am, delightwjk wrote: > > > > Hi All, > > > > I created a JDO class, which had some attributes, and I created some > > > CRUD operations, all of them worked correctly. > > > > Then I added a new attribute in the JDO class, and then set value to > > > it and persisted it as usual when I executed CRUD operations. The > > > problem is that I cannot retrieve the value of the new attribute in > > > program, the value is always null. But when I check the value in > > > "Datastore" -> "Data Viewer", the value is correct. So i'm wondering > > > why it cannot be retrieved in application. Is there some cache > > > mechanism? > > > > Thanks in advance! > > > Jiakuan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---