[appengine-java] Re: Incoming Email Service
Hi It is likely to parse message Sorry It doesn't examine it in detail. mimeMessage = new MimeMessage(session, req.getInputStream()); - DataHandler dataHandler = mimeMessage.getDataHandler(); DataSource dataSource = dataHandler.getDataSource(); MimeMultipart mimeMultipart = new MimeMultipart(dataSource); or InputStream inputStream = (InputStream)mimeMessage.getContent(); String ContentType = mimeMessage.getContentType(); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource (inputStream,ContentType); Multipart mimeMultipart = new MimeMultipart(byteArrayDataSource); - //message parse Part part1 = wkMulti.getBodyPart(0); part1.getContentType(); Part part2 = wkMulti.getBodyPart(1); part2.getContentType(); Try that please --~--~-~--~~~---~--~~ 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: Incoming Email Service
Hi message can parse it by either method or both Sorry It doesn't examine it in detail. MimeMessage mimeMessage = new MimeMessage(session, req.getInputStream ()); - DataHandler dataHandler = mimeMessage.getDataHandler(); DataSource dataSource = dataHandler.getDataSource(); MimeMultipart mimeMultipart = new MimeMultipart(dataSource); or InputStream inputStream = (InputStream)mimeMessage.getContent(); String ContentType = mimeMessage.getContentType(); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource (inputStream,ContentType); Multipart mimeMultipart = new MimeMultipart(byteArrayDataSource); - //message parse Part part1 = mimeMultipart.getBodyPart(0); part1.getContentType(); Part part2 = mimeMultipart.getBodyPart(1); part2.getContentType(); Try that please --~--~-~--~~~---~--~~ 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.lang.OutOfMemoryError when reading inbound mail on production
Hi It examined it a little. I think that there is a part where [MimeMultipart#getCount] is used in places other than this source. How compatible. -- System.setProperty("mail.mime.multipart.ignoremissingendboundary", "true"); -- This setting allows you to be tolerant and think MimeMultipart rigorous checks Sorry Details are not examined. what influence you exist Please try. --~--~-~--~~~---~--~~ 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.lang.OutOfMemoryError when reading inbound mail on production
Hi Does the problem still occur? Without any of the above settings Today, I invite you to feel like the error no longer occurs Though it had been certainly generated yesterday Please teach if it is still generated. --~--~-~--~~~---~--~~ 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.lang.OutOfMemoryError when reading inbound mail on production
Hi. Thank you for your reply. Looks like I was thinking too hard. Please luck. --~--~-~--~~~---~--~~ 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] 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: XMPP Message Length limit
Hi, Though it is thought that it is 100 kilobytes that not is when it tries http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html Please look at the chapter of [Quotas and Limits. ] --~--~-~--~~~---~--~~ 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: Sending bulk emails - what are the limitations?
Hi I think that mail section is a detailed content. http://code.google.com/intl/en/appengine/docs/quotas.html There seems to be an limit in the processing that can be done in one minute. 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
I'm sorry very much. It examined. ServletContextListener#contextDestoryed was not called. It was necessary to examine it accurately. Nichole. Thank you for advice. Does not the page access speed become early? When you access that I think access speed is open in since the second times always because by the thing that keeps being accessed with cron If the display speed is still slow, the cause might be different. thanks, On Nov 9, 11:30 pm, "zhiw...@gmail.com" wrote: > i set the time to 5min , but i can still find the contextInitialized > info, seems gae's time-out is very short, now i test set it to 3min > > On Nov 9, 10:18 pm, Joseph Stano wrote: > > > have you noticed if that solves the timeout issue? > > > On Mon, Nov 9, 2009 at 5:04 AM, zhiw...@gmail.com wrote: > > > > it seems only contextInitialized method can be executed, and > > > contextDestroyed never be executed. so i can not get the time my app > > > alive after it was actived. i have use cron job to access a servlet > > > in my app every 10min to avoid app be inactive, if necessary i will > > > turn the time to 5min or less > > > > On Nov 9, 11:40 am, "zhiw...@gmail.com" wrote: > > > > thanks , i will try it > > > > > On Nov 9, 10:18 am, philburk wrote: > > > > > > > The logging/query idea is probably the best workaround, but I don't > > > have > > > > > > such a client to do this querying. If I did, I'd just host my app > > > > > > on > > > it :) > > > > > > You could schedule a cron job in GAE that tickled your app. If it ran > > > > > often enough it might keep it resident. > > > > > >http://code.google.com/appengine/docs/java/config/cron.html --~--~-~--~~~---~--~~ 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
Thank you for useful information. Though various situations are thought I think that a detailed analysis might be necessary to decrease the CPU TIME. thunks 2009/11/10 zhiw...@gmail.com : > > now i set the schedule time to 3min, it seems work, every time i > access my app, i can hardly feel slow. my cron job access a servlet > that do nothing and just for active my app. set the schedule time to > 1min is better i think,although it will take some cpu time. > > On Nov 9, 11:31 pm, m seleron wrote: >> I'm sorry very much. >> >> It examined. >> ServletContextListener#contextDestoryed was not called. >> It was necessary to examine it accurately. >> >> Nichole. >> Thank you for advice. >> >> Does not the page access speed become early? >> >> When you access that I think access speed is open in since the second >> times always >> because by the thing that keeps being accessed with cron >> >> If the display speed is still slow, the cause might be different. >> >> thanks, >> >> On Nov 9, 11:30 pm, "zhiw...@gmail.com" wrote: >> >> >> >> > i set the time to 5min , but i can still find the contextInitialized >> > info, seems gae's time-out is very short, now i test set it to 3min >> >> > On Nov 9, 10:18 pm, Joseph Stano wrote: >> >> > > have you noticed if that solves the timeout issue? >> >> > > On Mon, Nov 9, 2009 at 5:04 AM, zhiw...@gmail.com >> > > wrote: >> >> > > > it seems only contextInitialized method can be executed, and >> > > > contextDestroyed never be executed. so i can not get the time my app >> > > > alive after it was actived. i have use cron job to access a servlet >> > > > in my app every 10min to avoid app be inactive, if necessary i will >> > > > turn the time to 5min or less >> >> > > > On Nov 9, 11:40 am, "zhiw...@gmail.com" wrote: >> > > > > thanks , i will try it >> >> > > > > On Nov 9, 10:18 am, philburk wrote: >> >> > > > > > > The logging/query idea is probably the best workaround, but I >> > > > > > > don't >> > > > have >> > > > > > > such a client to do this querying. If I did, I'd just host my >> > > > > > > app on >> > > > it :) >> >> > > > > > You could schedule a cron job in GAE that tickled your app. If it >> > > > > > ran >> > > > > > often enough it might keep it resident. >> >> > > > > >http://code.google.com/appengine/docs/java/config/cron.html > > > --~--~-~--~~~---~--~~ 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 Mail Problems
Hi I want to hear of a detailed content. Cannot the source for which Sernder is made be taught? --~--~-~--~~~---~--~~ 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: Query not working
Hi, Query query = pm.newQuery(CurrencyPair.class); query.declareParameters("String currency_name"); query.setFilter(" currencyPair == currency_name"); String currency_name = "AUD.USD"; List l = (List)query.execute (currency_name); It is likely already to have tried. thanks. On 11月12日, 午後5:18, David Brown wrote: > Have you tried using an outside tool like TOAD or DBVIS to run your query > first as a test? Or can you JUnit your query? > > On Thu, Nov 12, 2009 at 2:11 AM, dukha wrote: > > I have a pojo CurrencyPair which I have successfully saved in the > > database using jdo. > > CurencyPair has a field currencyPair. > > > Now trying to select in jdo the query works fine so long as there are > > no conditions/filters involved. ie I can select all currency pairs > > like this > > > PersistenceManager pm= getPersistenceManager(); > > Query query = pm.newQuery(CurrencyPair.class); > > List l = (List)query.execute(); > > > This gives > > USD.JPY > > GBP.JPY > > EUR.GBP > > EUR.USD > > USD.CAD > > AUD.USD > > USD.CHF > > EUR.JPY > > EUR.CHF > > GBP.USD > > > PersistenceManager pm= getPersistenceManager(); > > Query query = pm.newQuery(CurrencyPair.class,"currencyPair == > > 'AUD.USD'"); > > List l = (List)query.execute(); > > > returns no data. > > > I've tried all all combinatioins of setting a filter and declaring a > > parameter or putting the whole query in 1 String according to the gae > > getting started guide. > > I have no idea what I'm doing wrong. any help would be appreciated. > > > Thanks. > > Dukha > > > -- > > > 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=. > > -- 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=.
[appengine-java] Re: Query not working
Though different sources think Could you try this in simple ? PersistenceManager pm= getPersistenceManager(); String JDOQL = CurrencyPair.class.getName() + " where currencyPair =='AUD.USD' "; Query query = pm.newQuery(JDOQL); List l = (List)query.execute(); thanks. On 11月13日, 午前9:09, dukha wrote: > Thanks for the reply. > Yes I have tried this, with a query.declareParameters() in the middle. > > On Nov 12, 8:55 pm, m seleron wrote: > > > Hi, > > > Query query = pm.newQuery(CurrencyPair.class); > > > query.declareParameters("String currency_name"); > > query.setFilter("currencyPair== currency_name"); > > String currency_name = "AUD.USD"; > > > List l = (List)query.execute > > (currency_name); > > > It is likely already to have tried. > > thanks. > > > On 11月12日, 午後5:18, David Brown wrote: > > > > Have you tried using an outside tool like TOAD or DBVIS to run your query > > > first as a test? Or can you JUnit your query? > > > > On Thu, Nov 12, 2009 at 2:11 AM, dukha wrote: > > > > I have a pojoCurrencyPairwhich I have successfully saved in the > > > > database using jdo. > > > > CurencyPair has a fieldcurrencyPair. > > > > > Now trying to select in jdo the query works fine so long as there are > > > > no conditions/filters involved. ie I can select all currency pairs > > > > like this > > > > > PersistenceManager pm= getPersistenceManager(); > > > > Query query = pm.newQuery(CurrencyPair.class); > > > > List l = (List)query.execute(); > > > > > This gives > > > > USD.JPY > > > > GBP.JPY > > > > EUR.GBP > > > > EUR.USD > > > > USD.CAD > > > > AUD.USD > > > > USD.CHF > > > > EUR.JPY > > > > EUR.CHF > > > > GBP.USD > > > > > PersistenceManager pm= getPersistenceManager(); > > > > Query query = pm.newQuery(CurrencyPair.class,"currencyPair== > > > > 'AUD.USD'"); > > > > List l = (List)query.execute(); > > > > > returns no data. > > > > > I've tried all all combinatioins of setting a filter and declaring a > > > > parameter or putting the whole query in 1 String according to the gae > > > > getting started guide. > > > > I have no idea what I'm doing wrong. any help would be appreciated. > > > > > Thanks. > > > > Dukha > > > > > -- > > > > > 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=. > > -- 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=.
[appengine-java] Re: JPA problem - I want to persist an entity and then select all the entities from the table
Hi If it is unquestionable even if the Nano second is lost I think that I can do normal registration by using "java.util.Date". thanks. On 11月13日, 午後7:13, Zaske wrote: > Hi all, > I have a problem with using JPA & Google App engine > > Here is my entity: > > @Entity > public class UserEntity { > > public String getUserName() { > return userName; > } > > public void setUserName(String userName) { > this.userName = userName; > } > > public Timestamp getTimestamp() { > return timestamp; > } > > public void setTimestamp(Timestamp timestamp) { > this.timestamp = timestamp; > } > > private String userName; > private Timestamp timestamp; > /** > * > */ > public UserEntity() { > // TODO Auto-generated constructor stub > } > > public void setID(Long iD) { > ID = iD; > } > > �...@id > �...@generatedvalue(strategy = GenerationType.IDENTITY) > public Long getID() { > return ID; > } > > private Long ID; > > } > > I then perform inside the code: > > UserEntity entity = new UserEntity(); > entity.setTimestamp(new Timestamp(System.currentTimeMillis > ())); > entity.setUserName(user.getNickname()); > > try > { > em.getTransaction().begin(); > em.persist(entity); > em.getTransaction().commit(); > > } > catch (Exception ex) > { > String msg = "Error in persisting user"; > log.severe(msg); > writer.print(msg); > ex.printStackTrace(); > return; > } > finally > { > if (em.getTransaction().isActive()) > { > em.getTransaction().rollback(); > } > > } > > And in order to select the entities , I did: > > StringBuilder sb = new StringBuilder(); > sb.append("select u from "); > sb.append(UserEntity.class.getSimpleName()); > sb.append(" u "); > Query q = em.createQuery(sb.toString()); > q.setMaxResults(5); > List alreadyLoggedInUsers = (List) > q.getResultList(); > > Turns out that java.sql.Timestamp is not a supported type, in contrast > to JPA with hibernate implementation (I'm using JBoss 3.2.1 GA as J2EE > server, and I can persist entities with timestamps) > What are the supported types? -- 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=.
[appengine-java] Re: How to filter the entities with null value of a property with JDQL?
Hi I want to confirm it. What is the type that you are using for propertyA? Thanks. On 11月14日, 午前1:14, Jason wrote: > I would like to query for the entities with null value of a property, > how to write the JDQL queryFilter code? > I have tried the code like - query.setFilter("propertyA == null"), > however, it seems not work right. > > 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=.
[appengine-java] Re: Query not working
Hi.dukha It was not assumed that the cause was a definition of the entity. Sorry for not providing useful information Hi.datanucleus Thank you for teaching an important idea. I also study. Because a new version have been JDO/JPA preview released 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=.
[appengine-java] Re: Email .csv attachment in UTF-8 charset
Hi, As an another way. How about this technique ? 1. import import javax.mail.util.ByteArrayDataSource; import javax.activation.DataHandler; import javax.activation.DataSource; 2.modify //attachment.setContent(attachmentData, "text/comma-separated-values; charset=UTF-8"); ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource (attachmentData, "text/comma-separated-values; charset=UTF-8"); attachment.setDataHandler(new DataHandler(byteArrayDataSource)); 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=.
[appengine-java] Re: XMPP getPresence response not valid?
Hi. Though it is likely already to have tried. If the state is [is not available] please invite it from GMailchat or GTalk to XMPP Addresses ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.) Please confirm Gtalk display that XMPP Addresses ([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.) is online and confirm presence status on the GppEngine side. Please refer to the following links for details of XMPP Addresses. http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html Thanks. On 11月18日, 午前1:52, timzon wrote: > Is anybody having problem with xmpp.getPresence not providing valid > presence information for GTalk clients? > > Using very simple function to check the availability of a GTalk > client: > > XMPPService xmpp = XMPPServiceFactory.getXMPPService(); > if (xmpp.getPresence(agentJid).isAvailable()) { > log.info(agentJid.toString() + " is available (added to > list)");} else { > > log.info(agentJid.toString() + " is not available"); > > } > > getPresence always returns the same presence status for a user > regardless of the user real status. > > I've tried this with GTalk clients on both GMail and Apps domains. The > result is exactly the same. > > This is extremely blocking for our application as we need to validate > the presence of a group of GTalk clients to determine what to do with > a request. > > Thanks in advance for your help, > Jerome. -- 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=.
[appengine-java] Re: GAE Mail Problems
Thank you for replay. I was able to confirm the message that you had done post. Though you might already have tried. Was this method tried? msg.setSubject(text,"Big5"); 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=.
[appengine-java] Re: out of memory on javax.mail.internet.MimeMultipart.getCount
Hi, I want you to teach the value of [javax.mail.internetMimeMessage.getContentType() ] for confirmation. thanks. On 11月25日, 午前3:57, david ruescas wrote: > When receiving email I get an out of memory error when calling > getCount on the MimeMultipart object. > > Heres the stack trace: > > Error for /_ah/mail/rev...@reviewengine.appspotmail.com > java.lang.OutOfMemoryError: Java heap space > at java.util.Arrays.copyOf(Unknown Source) > at java.io.ByteArrayOutputStream.write(Unknown Source) > at > javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:244) > at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:181) > at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109) > at com.dr.reviewengine.MailServlet.doPost(MailServlet.java:85) > 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.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) -- 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: Filtering by Date using the Datastore Low Level API
Hi, Though it might be unrelated. I think that Date and Time Patterns of SimpleDateFormat is [MM] Month in year [mm] Minute in hour. thanks. On 11月27日, 午後7:22, dflorey wrote: > The filter will just do string comparison (how should it know that you > are comparing dates??) > To get proper sorting/filtering just store the date as time in millis > and it will work. > > Cheers, > Daniel > > On 27 Nov., 04:25, Doug wrote: > > > Good Evening Everyone, > > > I am working on creating an event calendar type of page and am having > > trouble using the low level API and applying a filter to select events > > that occur in the future. The data that I am selecting has a property > > of "display_until" that holds a date in -mm-dd hh:mm:ss format. > > > To select future events I started with the following code: > > SimpleDateFormat formatter; > > formatter = new SimpleDateFormat("-mm-dd hh:mm:ss"); > > Date date = new Date(); > > String query_date = formatter.format(date); > > > query.addSort("display_until", > > Query.SortDirection.ASCENDING); > > query.addFilter("display_until", > > com.google.appengine.api.datastore.Query.FilterOperator.GREATER_THAN, > > query_date); > > > When I ran this code it did select future events, but not all of > > them. Currently I have some 2009 and some 2010 events. It selected > > the 2010 events, but not the December 2009 events. > > > Anyone have any suggestions for how I can select all of the future > > events? > > > Thanks, > > Doug -- 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 in XMPP sendMessage()
Hi. I tested execution by the following source. JID jid = new JID("x...@gmail.com"); // set your send gmail address Message msg = new MessageBuilder().withRecipientJids(jid) .withFromJid(new JID("x...@appspot.com") ) // set your ap...@appspot.com .withMessageType(MessageType.NORMAL) .withBody("send-message").build(); //set msg String boolean messageSent = false; XMPPService xmpp = XMPPServiceFactory.getXMPPService(); if (xmpp.getPresence(jid).isAvailable()) { SendResponse status = xmpp.sendMessage(msg); messageSent = (status.getStatusMap().get(jid) == SendResponse.Status.SUCCESS); } I executed about ten times. My Gtalk is seem to receive it normally. Though various possibilities are thought. If it is possible Please execute it by the fixed value as much as possible to simplify a problem. Though something only has to be able to be useful. thanks. On 11月29日, 午前2:52, Sahil Mahajan wrote: > I removed .withFromJid(new JID(recipientJid[0].getId()) ) > but I am still facing problem. > > The servlet works correctly for first two messages. But problem starts > when servlet receives third message. > > I find this strange. Initially it works fine, but gives problem from > third message. > > Regards > Sahil Mahajan > > On Nov 28, 8:19 pm, Ravi Sharma wrote: > > > I am not sure, but i think you dont need to(should not) set fromJid, as > > message will be sent from your application JID. > > I am running following code and its working . > > > JID jid = new JID(responseJid); > > Message msg = new MessageBuilder() > > .withRecipientJids(jid) > > .withBody(msgBody) > > .build(); > > > boolean messageSent = false; > > XMPPService xmpp = XMPPServiceFactory.getXMPPService(); > > if (xmpp.getPresence(jid).isAvailable()) { > > SendResponse status = xmpp.sendMessage(msg); > > messageSent = (status.getStatusMap().get(jid) == > > SendResponse.Status.SUCCESS); > > } > > > On Sat, Nov 28, 2009 at 2:51 PM, sahil mahajan wrote: > > > I am using XMPP and getting following error when I try > > > /CODE*/ > > > Message msg = new MessageBuilder() > > > .withRecipientJids(receiverJid) > > > .withFromJid(new JID(recipientJid[0].getId()) ) > > > .withMessageType(MessageType.NORMAL) > > > .withBody(msgBody) > > > .build(); > > > > SendResponse status =xmpp.sendMessage(msg); > > > > My JID's are correct. msgBody is not null > > > Problem occures at xmpp.sendMessage(msg); > > > I don't understand what is null? > > > > /***ERROR > > > DETAILS/ > > > > Uncaught exception from servlet > > > java.lang.NullPointerException > > > at > > > com.google.appengine.api.xmpp.XMPPServiceImpl.createMessageRequest(XMPPServiceImpl.java:120) > > > at > > > com.google.appengine.api.xmpp.XMPPServiceImpl.sendMessage(XMPPServiceImpl.java:105) > > > at > > > com.ChatRoom.server.XMPPReceiverServlet.doPost(XMPPReceiverServlet.java:165) > > > 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.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(
[appengine-java] Re: NPE trying to create JPA EntityManagerFactory in integration tests
Hi, Please arrange persistence.xml in the [war/WEB-INF/classes/META-INF] folder. Please try. thanks. On 12月1日, 午後7:42, Felipe Cypriano wrote: > Hello, > > I'm trying to do integrations tests in my app, but I get a > NullPointerException when this line is executed: > > private static final EntityManagerFactory instance = > Persistence.createEntityManagerFactory("transactions-optional") > > See: > Caused by: java.lang.NullPointerException > at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF > (EntityManagerFactoryImpl.java:452) > at org.datanucleus.jpa.EntityManagerFactoryImpl. > (EntityManagerFactoryImpl.java:355) > at > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory. > (DatastoreEntityManagerFactory.java:63) > at > org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory > (DatastorePersistenceProvider.java:35) > at javax.persistence.Persistence.createEntityManagerFactory > (Persistence.java:51) > at javax.persistence.Persistence.createEntityManagerFactory > (Persistence.java:33) > at javax.persistence.Persistence$createEntityManagerFactory.call > (Unknown Source) > at org.grails.appengine.AppEngineEntityManagerFactory. > (AppEngineEntityManagerFactory.groovy:13) > > Has anybody any ideas of why I'm getting NullPointerException in > datanucleos jpa EntityManagerFactoryImpl? Any advice that help me to > find how to solve the problem is very welcome, for example what line > 452 of EntityManagerFactoryImpl expects? > > Regards, > Felipe Cypriano -- 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: TimeZone
Hi, It is likely to possibly solve it by this. Please refer to the following links. http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html?page=3 The page in the back and forth might be also related. thanks. On 12月4日, 午前4:08, Nour Ahmed wrote: > Can anyone help me to know how to configure the Timezone in the web > application that i run localy on my mmachine? > > Thanks in advance! -- 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: Processing incoming email
Hi.Peter, As one example. When you use InputStream inputStream = message.getInputStream(); // ByteArrayDataSource inboundDataSource = new ByteArrayDataSource(inputStream, message.getContentType()); Multipart inboundMultipart = new MimeMultipart(inboundDataSource); Please switch the processing of each type by using MimeMessage#isMimeType. (In the offered source it is variable [message]. ) MimeMessage#isMimeType("multipart/*") == true Convert into MimeMultipart. MimeMessage#isMimeType("text/plain") == true MimeMessage#isMimeType("text/html") == true Need not convert into MimeMultipart. Of course, Jeremy Blythe have provided us information that [contentType.indexOf ( "multipart")] also Behave the same. Thanks Jeremy Blythe. Ikai. Thank you variously for useful information as for processing concerning the attached file to datastore ,etc. Though it noticed now. MimeMessage#isMimeType("multipart/*") == true The return value of MimeMessage#getContent() seems to have changed into Multipart. (SDK-1.2.8) (The real thing environment has been updated recently. ) http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes When you use [message.getContent() ] Such a method might be able to be used. Object content = message.getContent(); if ( content instanceof Multipart){ MimeMultipart mmp = (MimeMultipart)content; } else{ //plain text/html part .etc } Though there might be an insufficient condition. Please try. thanks. On 12月5日, 午前3:24, Peter Ondruska wrote: > OK. now I am really puzzled. message.getContent() is very much > dependent on how message is sent, e.g. email from Gmail: > message.getContent().getClass().getName() is > javax.mail.internet.MimeMultipart > > email from Hotmail and Yahoo mail: > message.getContent().getClass().getName() throws: > Uncaught exception from servlet > 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) > > On Dec 4, 6:38 pm, Peter Ondruska wrote: > > > Ikai, my code looks same as yours to me: > > > package eu.kaibo.server; > > > import java.io.ByteArrayInputStream; > > import java.io.IOException; > > import java.io.InputStream; > > import java.util.Properties; > > import java.util.logging.Level; > > import java.util.logging.Logger; > > > import javax.mail.Address; > > import javax.mail.MessagingException; > > import javax.mail.Multipart; > > import javax.mail.Part; > > import javax.mail.Session; > > import javax.mail.internet.MimeMessage; > > import javax.mail.internet.MimeMultipart; > > import javax.mail.util.ByteArrayDataSource; > > import javax.servlet.ServletException; > > import javax.servlet.http.HttpServlet; > > import javax.servlet.http.HttpServletRequest; > > import javax.servlet.http.HttpServletResponse; > > > import com.google.appengine.api.labs.taskqueue.QueueFactory; > > import com.google.appengine.api.labs.taskqueue.TaskOptions; > > > public class MailHandler extends HttpServlet { > > > private static final long serialVersionUID = 895612806305910032L; > > > private final Logger logger = > > Logger.getLogger(getClass().getName()); > > > @Override > > protected void doPost(HttpServletRequest request, > > HttpServletResponse > > response) throws ServletException, IOException { > > > Session session = Session.getDefaultInstance(new > > Properties(), > > null); > > > try { > > > MimeMessage message = new MimeMessage(session, > > request.getInputStream()); > > > StringBuffer sb = new StringBuffer(); > > > sb.append("From: "); > > Address[] senders = message.getFrom(); > > for (int i = 0; i < senders.length; i++) > > sb.append(senders[i].toString()).append("; > > "); > > sb.append("\n"); > > > sb.append("To: "); > > Address[] receivers = message.getAllRecipients(); > > for (int i = 0; i < receivers.length; i++) > > > > sb.append(receivers[i].toString()).append("; ")
[appengine-java] Re: File Access on App Engine
Hi, Follow this thread. http://groups.google.com/group/google-appengine-java/browse_thread/thread/ef91a0e8c32c576e/3358e5877c6ef30e?lnk=gst&q=FileInputStream#3358e5877c6ef30e thanks. On 12月9日, 午前7:49, mattkrae34 wrote: > I'm using 1.2.8 SDK and on both local and the app engine I get the > following exception: > > java.security.AccessControlException: access denied > (java.io.FilePermission file.xml read) > > When I ever I try to open a FileInputStream > > XMLEventReader r = factory.createXMLEventReader(new FileInputStream("/ > test.xml")); > > My appengine-web.xml contains the following: > > > > > > > > > > The file is located in the WEB-INF directory. -- 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: Querying "parent" side of unowned relationship
Hi, Though it doesn't understand how to register I think that I can be likely to do if it is not JDO but lowlevelAPI. Please examine [com.google.storage.onestore.v3.OnestoreEntity.Entity#getParent]. If this is not good, it might have to change the model. thanks. On 12月6日, 午前2:36, Jeffrey wrote: > What is the most efficient way of querying the "many" side of an > unowned relationship. E.g., assuming the standard JDO annotations are > applied: > > class Person > { > Set foods; > > } > > classFood > { > Key key; > String name; // unique > > } > > Given the name of aFood, how can I best get the list of Person > objects that reference it in it'sfoodSet? -- 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: BlobstoreService, No image data is available.
Hi, I tried a little. I think that it is issue though I can try only with local. In oldImage of the return value of makeImageFromBlob, oldImage#imageData is null. As a result, I think that ImageImpl#updateDimensions is causing an exception. It is called in getWidth etc. thanks. On 12月16日, 午前9:53, Andreas Oesterer wrote: > I'm trying to scale an image after upload (in the doPost method). The > blob key seems to be ok and the image is served ok after the upload. > > Image oldImage = ImagesServiceFactory.makeImageFromBlob(bk); > double aspectRatio = (double) oldImage.getWidth() / (double) > oldImage.getHeight(); > > -> > > java.lang.UnsupportedOperationException: No image data is available. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: error 409
Hi. Somewhere of the message I think the display as appcfg rollback. Follow this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/7beadad55307cca5/fa488c86eca1a788?hl=en&lnk=gst&q=rollback+deploy#fa488c86eca1a788 If 409 is generated by rollback Please execute it again for a while after time. Please try thanks. On 12月16日, 午後11:23, megha saddi wrote: > I cancel the deployment of application inbetween and now whenever i > try to redeploy the application on google appengine , an error message > occurs > 409 Conflict and saying another transaction is in process.. > Kindly tell me how to resolve this issue and redeploy that application -- 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: Finding abandoned child entities
Hi, If you specify kind if it is lowlevelapi I think that it is possible to acquire list of entity How about the following examples? String kindName = "kindName"; // abandoned children kindname DatastoreService service = DatastoreServiceFactory.getDatastoreService (); Query query = new Query(kindName); PreparedQuery pq = service.prepare(query); List list = pq.asList(FetchOptions.Builder.withOffset(0)); for (Entity e : list) { e.getProperty("xx"); //get property } Please try . thanks. On 12月17日, 午後1:56, Brian Hayward wrote: > So I read in the documentation that deleting parents via the admin > console will create abandoned children because owned relationships are > managed by JDO. Is there a query that can find abandoned children of > a given kind? > > Thanks, > Brian -- 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: Finding abandoned child entities
Sorry, did not have enough explanation. I corrected it a little. I think that the method of confirming the parent existence is simple. It uses Entity#getParent() How about the following examples? String parentKindName = "parentKind"; //Parent Kindname String kindName = "kindName"; // Child Kindname DatastoreService service = DatastoreServiceFactory.getDatastoreService (); Query query = new Query(kindName); PreparedQuery pq = service.prepare(query); List list = pq.asList(FetchOptions.Builder.withOffset(0)); for (Entity e : list) { e.getProperty("xx"); //get childproperty //Parent check PreparedQuery parentPq = service.prepare(new Query (parentKindName,e.getParent())); int parentCount = parentPq.countEntities(); if (parentCount == 0){ //abandoned children } } Please try. Thanks, seleronm -- 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: Finding abandoned child entities
Hi. Thank you for following. Movement might be different depending on the entry method in JDO. 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: Help with reading file
Hi, I think that I become normal if [web-inf/gr17.tsp] is corrected to [WEB-INF/gr17.tsp]. Please Try. thanks. On 12月21日, 午後1:25, sebas tan wrote: > Hello, I have a simple application to read from afileand carry out > operations on it. However, when deployed to appspot, it keepsreading > thefileas null and doesn't execute. gr17.tsp is a textfile > containing a travelingsalesman problem. > > It works fine on localhost so i really don't see what's the problem > here. Really appreciate anyhelp, thanks. The application is > athttp://helloworldureca.appspot.com/ > > import java.io.*; > @SuppressWarnings("serial") > public class TSP_gr17Servlet extends HttpServlet { > public void doGet(HttpServletRequest req, HttpServletResponse resp) > throws ServletException, IOException { > Matrix m1 = new Matrix(); > > resp.setContentType("text/plain"); > PrintWriter writer = resp.getWriter(); > String filename = "web-inf/gr17.tsp"; > ServletContext context = getServletContext(); > > // First get thefileInputStream using > ServletContext.getResourceAsStream() method. > InputStream is = context.getResourceAsStream(filename); > > if (is != null) { > m1.readMatrix(is); > m1.displayMatrix(writer); > m1.insertionCal(writer); > writer.println("reached"); > } -- 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: So I found out I can't simulate "post" in a cron job and pass parameters after "?" in URL
Hi, About [user=test&rank=1] I think it is possible if '&' is processed in HTMLescape. ?user=test&rank=1 Please Try. thanks. On 12月24日, 午後3:43, Tb wrote: > I know it kinda looks ugly since I had to add a doGet method to my > servlet to call doPost with the request and response objects... but > it was going to get the job done! Or so I thought... > I'm getting a > "com.google.apphosting.utils.config.AppEngineConfigException: XML > error validating" exception when GAE tries to match my cron.xml to the > xsd file. The url looks something like this "/doCall? > user=test&rank=1". > > Am I missing something or there's no way to set-up a "real" cron job > with command-line arguments and that kind of stuff? We can just do a > dumb get to a servlet? > Like I said, I may be missing something... -- 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 message
Hi, I tested the source code that you had contributed. It seems to operate normally. I think that the setting or the environment in the mail address is a cause. Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gst&q=seleronm#97d7c0492c2270bb Please Try. thanks. On 12月24日, 午後4:34, venkat satyanarayana wrote: > Hi , i ma tring to send mail with google app engine with java > > my code : > > Properties props = new Properties(); > Session session = Session.getDefaultInstance(props, null); > > String msgBody = "test"; > > try { > Message msg = new MimeMessage(session); > try { > msg.setFrom(new > InternetAddress("nidadavolu.ven...@gmail.com", > "Example.com Admin")); > } catch (UnsupportedEncodingException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > try { > msg.addRecipient(Message.RecipientType.TO, > new > InternetAddress("nidadavolu.ven...@gmail.com > ", "Mr. User")); > } catch (UnsupportedEncodingException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > msg.setSubject("Your Example.com account has been > activated"); > msg.setText(msgBody); > Transport.send(msg); > > } catch (AddressException e) { > // ... > } catch (MessagingException e) { > // ... > } > > but i didn't get any error , but we are not receaving mail > > 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] mail message
Hi, I tried with Production environment. Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gst&q=seleronm#97d7c0492c2270bb (see the second comment) works for you? I think that I cannot use the third comment in the Development environment using Java-SDK. And, I think that the setting to the mail server is unnecessary in the prodction environment. Another cause might exist if the mail transmitted in the production environment cannot be normally received. Please Try. Thanks. 2009/12/26 venkat satyanarayana : > HI Thank you, > > i didn't see any setting in the link , > can you please tell me setting > > > Thanks > venkat > > On Thu, Dec 24, 2009 at 1:04 PM, venkat satyanarayana > wrote: >> >> Hi , i ma tring to send mail with google app engine with java >> >> my code : >> >> Properties props = new Properties(); >> Session session = Session.getDefaultInstance(props, null); >> >> String msgBody = "test"; >> >> try { >> Message msg = new MimeMessage(session); >> try { >> msg.setFrom(new >> InternetAddress("nidadavolu.ven...@gmail.com", >> "Example.com Admin")); >> } catch (UnsupportedEncodingException e) { >> // TODO Auto-generated catch block >> e.printStackTrace(); >> } >> try { >> msg.addRecipient(Message.RecipientType.TO, >> new >> InternetAddress("nidadavolu.ven...@gmail.com >> ", "Mr. User")); >> } catch (UnsupportedEncodingException e) { >> // TODO Auto-generated catch block >> e.printStackTrace(); >> } >> msg.setSubject("Your Example.com account has been >> activated"); >> msg.setText(msgBody); >> Transport.send(msg); >> >> } catch (AddressException e) { >> // ... >> } catch (MessagingException e) { >> // ... >> } >> >> but i didn't get any error , but we are not receaving mail >> >> >> 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. > -- 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, 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 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.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, Supplement is As another solution, I think sessionCleanupServlet also useful for examining things. Thanks. On 12月28日, 午後12:56, m seleron 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 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Robot copy to clipboard
Hi, I think that I should evade using the one not explained in the whitelist. Please refer to this link. http://code.google.com/intl/us/appengine/docs/java/jrewhitelist.html I think it's possible to request the following links helpful. http://groups.google.com/group/google-appengine-java/browse_thread/thread/8a64ae454f758435/b0484413bcedc38c?lnk=gst&q=awt#b0484413bcedc38c Please confirm. thanks. On 12月28日, 午前4:48, Thomas Jungblut wrote: > Hey, > > I've build a form in a robot reply and there is a button, which should > copy the content of the event's blip to the clipboard. > > Now I get this error in my Logs: > java.lang.NoClassDefFoundError: Could not initialize class > com.google.apphosting.runtime.security.shared.stub.java.awt.datatransfer.StringSelection > > Isn't it possible to copy to the clipboard of the "button's > submitter"? It seems, that this is restricted... > > My robot is port...@appspot.com and the copy code is similar to that > one here:http://www.javapractices.com/topic/TopicAction.do?Id=82 > > Thanks for your help guys :-) -- 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: WARNING: No file found for:
Hi, If you do not use GWT Please confirm it accesses by "/" and index.html is displayed If you can display index.html I think the link to default servlet to be displayed. When PojectName is [App2] servlet-mapping made with default seems to be made from the name of [app2]. (at least that was my experience) Please refer to the following links for details of servlet-mapping http://code.google.com/intl/us/appengine/docs/java/config/webxml.html Please try . tnaks. On 12月29日, 午前10:31, Dana wrote: > Can't seem to get a simple app running. > > I am using Eclipse 3.4 with the Google plugin. > > I created a (default) app called App2. I have made no changes to the > default code provided by the wizard. > > First I got the error that favicon.ico was not found. So I added an > icon to the war folder. > Now I am getting the error "WARNING: No file found for /App2". Both > of these errors are resulting in a 404 error in the browser. > > What am I missing? Is there some additional configuration that is > required to get started? > > The Google "Getting Started" pages don't seem to mention these issues > or other special requirements. > > Thanks, > -db -- 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: Could not fetch URL with URLFetchService but with HttpClient
Hi, I'm sorry for being not able to explain adequately. I tried. cfm?fuseaction=Reports.SetReport ^ I think that this sign is a cause in the development where the Exception occurs. However, even if this sign is included I do not think that production garish excetion is generated. The appearance is seen for a while. If there is no workaround There might be a necessity for doing post to the Issue list. thanks. 2010/1/3 derkent : > hey thanks, you seem to be right. > > It seems a bug in the sdk, in production the problem "goes away". > > I am not sure what you mean though when you say, when value of the url > paramater dot is included. > > Thanks again, > > On Jan 1, 8:42 pm, seleronm wrote: >> 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?fusea... >> >Reports.SetReport&rptname=1&reportSelectDate=12%2F2009&ta=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.SetReport&rptname=1&reportSelectDate=12%2F2009&ta=Submits >> >"; >> >HttpClient httpclient = new DefaultHttpClient >> >(); >> >httpclient.getParams().setBooleanParameter >> >( >> > "http.protocol.handle-redirects", >> >true); >> >HttpGet httpGet = new HttpGet >> >(url); >> >ResponseHandler 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 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. > > > -- 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 accessing a file on file system
Hi, Though it doesn't confirm so much. I put the file in /WEB-INF directly. I think if you can access this form. "WEB-INF/myfile.dat" Please Try Thanks. On 1月5日, 午後4:57, Steph wrote: > I am using a RandomAccessFile, which is whitelisted on Google App > Engine. > > My simple code looks like: > > RandomAccessFile file = new RandomAccessFile("/WEB-INF/classes/ > myfile.dat", "r"); > > which gets a > > java.security.AccessControlException: access denied > (java.io.FilePermission \WEB-INF\classes\myfile.dat read) > at java.security.AccessControlContext.checkPermission > (AccessControlContext.java:323) > at java.security.AccessController.checkPermission > (AccessController.java:546) > at java.lang.SecurityManager.checkPermission(SecurityManager.java: > 532) > > Same thing if I put the file in /WEB-INF directly. > > Am I missing something? Thanks for your help. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-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: File path in App Engine
Hi, It might be solved by this though is not a direct answer. Follow this thread: http://groups.google.co.jp/group/google-appengine-java/browse_thread/thread/474203bfe0936636/080b511624096ba8#080b511624096ba8 Please Try. thanks. > Hello, > > I have recently started using App Engine for a project I am working > on, and I have a simple question. > > I have a file in the war/WEB-INF directory of my app . > When I try BufferedReader b = new BufferedReader(new FileReader(new > File())); I get a FileNotFoundException. > > What path should I use when trying to access files in the war/WEB-INF > directory? I have tried what seem to me to be the obvious ones and I > have read the faq on this (which just tells you to put files in that > directory). > > Thanks, > > Finbarr -- 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: Purge _ah_SESSION ???
Hi, Though it is likely already to have tried. You might solve the problem by examining sessionCleanupServlet. thanks. On 1月7日, 午後1:18, Jorge wrote: > Is there a way to delete old _ah_SESSION entities? I found a post > about deleting all sessions, both from the datastore and from > memcache, but I am looking a clean way to delete past sessions and > preserve the active ones. > > Thanks, > > Jorge Gonzalez -- 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: Upload of images
Hi, Is the following links useful though I am not looking in detail. http://stackoverflow.com/questions/1513603/how-to-upload-and-store-an-image-with-google-app-engine-java Please try. thanks. On 1月3日, 午前6:13, Hárley Diniz wrote: > Hi, would like to know as to make upload of images for bigtable. I am not > obtaining to find examples. > Regards > > -- > -- > []'s Hárley Diniz > -- -- 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: Purge _ah_SESSION ???
Hi, I am sorry for not understanding easily. I retrieved this Group Is this thread useful http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a/875921846a160b52?lnk=gst&q=sessionCleanupServlet+%23875921846a160b52&pli=1 You may find more useful information . Please look for it. Thanks. > Where should I look for this sessionCleanupServlet? > > On Jan 7, 6:01 am, m seleron wrote: > > > Hi, > > > Though it is likely already to have tried. > > You might solve the problem by examining sessionCleanupServlet. > > > thanks. > > > On 1月7日, 午後1:18, Jorge wrote: > > > > Is there a way to delete old _ah_SESSION entities? I found a post > > > about deleting all sessions, both from the datastore and from > > > memcache, but I am looking a clean way to delete past sessions and > > > preserve the active ones. > > > > Thanks, > > > > Jorge Gonzalez > > -- 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: File path in App Engine
I tried a little. I put the file(names.txt) in /WEB-INF directly The following are sources that I tested. String FileName = "names.txt"; File file = new File(FileName); BufferedReader bufferedReader = new BufferedReader(new FileReader (file)); The processing seems in my test for normality. I might not correctly understand the content of the question or There is a possibility it is not in the cause for the source code not to be able to read a file but in the cause with the environment, too. Please Confirm. thanks. > Hello, > > I have tried this but I always get a > java.security.AccessControlException: access denied > (java.io.FilePermission /names.txt read) > > Anyone know how to resolve this? > > Thanks, > > Finbarr > > On Jan 7, 3:32 am, m seleron wrote: > > > Hi, > > > It might be solved by this though is not a direct answer. > > > Follow this > > thread:http://groups.google.co.jp/group/google-appengine-java/browse_thread/... > > > Please Try. > > thanks. > > > > Hello, > > > > I have recently started using App Engine for a project I am working > > > on, and I have a simple question. > > > > I have a file in the war/WEB-INF directory of my app . > > > When I try BufferedReader b = new BufferedReader(new FileReader(new > > > File())); I get a FileNotFoundException. > > > > What path should I use when trying to access files in the war/WEB-INF > > > directory? I have tried what seem to me to be the obvious ones and I > > > have read the faq on this (which just tells you to put files in that > > > directory). > > > > Thanks, > > > > Finbarr > > -- 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] The error occurs by registering QueueName again.
Hi, Server Error (500) occurs as follows. Is there a workaround or something 1.queue.xml to upload my app the following file. default 1/s deleteTasks 10/s 10 2.queue.xml to upload my app the following file. default 1/s 3.[deleteTasks] to Delete Queue the admin console. (Before deleting the state deleteTasks on admin console) Maximum:[paused] RateBucketSize:[paused] TaskskinQueueRun:[blank] in Last Minute:[0] 4.First used queue.xml to upload my app the following file. default 1/s deleteTasks 10/s 10 The following errors occur at deploy. [Error Details](eclipse deplydialog) Unable to update app: Error posting to URL: http://appengine.google.com/api/queue/update?app_id=xxx&version=xxx&; 500 Internal Server Error Server Error (500) A server error has occurred. See the deployment console for more details Unable to update app: Error posting to URL: http://appengine.google.com/api/queue/update?app_id=xxx&version=xxx&; 500 Internal Server Error Server Error (500) A server error has occurred. [Error Details](eclipse appengine-deployXXX.log) Server Error (500) A server error has occurred. 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:522) at com.google.appengine.tools.admin.AppVersionUpload.updateQueue (AppVersionUpload.java:255) at com.google.appengine.tools.admin.AppVersionUpload.doUpload (AppVersionUpload.java:134) 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:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 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: Statistics Query returns null Entity for statistic entity on Development Server
Hi, I found the thread that looked like. http://groups.google.com/group/google-appengine-java/browse_thread/thread/f2595bcaa2256a93/68a5a9a28502410b?lnk=gst&q=Statistics#68a5a9a28502410b In Development Server, statistics seems to return NULL. thanks. On 1月19日, 午前2:00, Stuart Moffatt wrote: > Cannot get statistics for an entity on the dev server: > > DatastoreService datastore = > DatastoreServiceFactory.getDatastoreService(); > Entity globalStat = datastore.prepare(new Query > ("__Stat_Total__")).asSingleEntity(); > Long totalBytes = (Long) globalStat.getProperty("bytes"); > > OS: Mac OS X 10.5.8, Eclipse 3.5.1, AppEngine SDK: 1.30 as part of > Google Plugin for Eclipse com.google.appengine.eclipse.sdkbundle. > 1.3.0_1.3.0.v200912141120/app > engine-java-sdk-1.3.0/lib/agent/appengine-agent.jar, GWT SDK: 2.0.0 > > Also posted issue regarding null __Stat_Kind__ before I realized it > applied to all statistics, not just Kind -- 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: Deleting unused indices
Hi, I do not think the Java SDK version to be being offered at present. star the issue here http://code.google.com/p/googleappengine/issues/detail?id=1893 Certainly, I think that Web admin interface is also useful. thanks. On 1月19日, 午後7:36, George Moschovitis wrote: > The Python SDK provides a method to delete unused indices: > > http://code.google.com/appengine/docs/python/tools/uploadinganapp.htm... > > I cannot find the equivalent in the Java SDK. Is there a way to delete > unused indices? > > It would be great if the web admin interface provided an option to > delete each index. > > kind regards, > George. > > --http://www.appenginejs.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-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: Test data
Hi, Though 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/fb2b9dda42a475e7/937e0f42d0dd25c6 Please try Thanks. On 1月21日, 午後10:51, Daniel Dacila wrote: > Hi All, > > I am writing some junit tests for a GAE application. > Can anybody suggest the best approach to create a test-data file and > populate from that the GAE database? > > Thanks, > Daniel Dacila -- 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] Key question
Hi, I think that I cannot use Object as Key. Please refer to the following links http://code.google.com/intl/us/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys thanks. 2010/1/25 jopaki : > Can I represent a primary key (Key) in an entity class as an Object > ref? In other words, can I do: > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public Class AnEntity { > > �...@primarykey > �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Object pk; > > } > > 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.
Re: [appengine-java] Re: can't send attachment via Java Mail API supported by GAE
Hi. I'm sorry for being not able to explain well. Please try the following sources. 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); 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 : > Can you please explain what you mean? > > On Feb 4, 6:38 am, seleronm wrote: >> 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. >> >> > >> > 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); >> > >> >> >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 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. > > -- 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: Unable to upload application - Total refill rate must not exceed 20 per second
HI, I'm sorry my information is useful in that no. I do not think that I limit a unique queuename if app-id is different. 2010/2/14 Ronin : > I dont think it is related to queue configuration. All the queue rates > are below 20. I cant upload this as a second application ( with a new > app id ). But I can upload this as the first application. There is > some connection between app ids & queue configs. Should the queuenames > be unique across multiple applications ? > > > On Feb 6, 3:18 pm, seleronm wrote: >> hi. >> >> I guessed because I paid attention to the following parts. >> [Invalid queue configuration. Totalrefillratemust not exceed 20 per second >> (is 24.0).] >> >> queue.xml the 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-test&ve... >> >400 Bad Request >> >Invalid queue configuration. Totalrefillratemust 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.(AppCfg.java:130) >> > at com.google.appengine.tools.admin.AppCfg.(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-test&version=1& >> >400 Bad Request >> >Invalid queue configuration. Totalrefillratemust 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.(AppCfg.java:130) >> > at com.google.appengine.tools.admin.AppCfg.(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-test&ve... >> >400 Bad Request >> >Invalid queue configuration. Totalrefillratemust 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 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. > > -- 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] Cron is not working
Hi. What is output to [admin console]-[Logs]-[Requests only]? please Confirm. thanks. 2010/2/25 Sowji > Hi to all, > > Crons in google app engine is not working for me. > > could you please help me. > > cron.xml > - > > xml version=*"1.0"* encoding=*"UTF-8"*?> > > > > > > /*emailing* > > repeated every one hour > > every 1 hours > > > > > > > * > > my application have the servlet for url emailing > > My admin console show status as follows > > Cron Job Schedule/Last Run/Last Status (All times are UTC) /emailing > > repeated every one hour every 1 hours (UTC) >2010-02-25 07:11:16 on time Too many continues > > > > Please anybody tell me what was my mistake. > > > > Thanks, > > Lakshmi. > > > * > > > > -- > 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] Configure the password for the account of Google App Engine in Eclipse
Hi, I think that the input of the password is necessary for deploy with plugin of eclipse. Though it might be a little difficult I think that I can decrease the input frequency of the password if deply that uses [appcfg] . Please Try thanks. > Hello, How can I, to avoid tedious re-enter password when deploying in > an Eclipse application, configure the password for the account "google > app engine> once and for all. > > -- > 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] Got a problem index when quering data with key.
Hi, Can you execute the query in the development? I think that [datastore-indexes-auto.xml] is made when you execute query with development. You might straighten out that problem by comparing datastore-indexes-auto.xml and datastore-indexes.xml. Or, please confirm the status of INDEX. It exists in [Datastore Indexes] of the admin console. Please try thanks. 2010/3/11 thierry Le conniat : > Hello, > I Got a problem when quering data with the key . The error > is below : > > com.google.appengine.api.datastore.DatastoreNeedIndexException: no > matching index found.. > > > > > The index is not found, but i have declared it in the file indexes.xml> like this : > > > > > > > > > The query is : > > PersistenceManager pm = PMF.get().getPersistenceManager(); > javax.jdo.Query query = pm.newQuery(Picture.class); > query.setOrdering("fileName desc"); > List Pictures = (List) > pm.newQuery(query).execute(); > > The java class Picture is : > > �...@persistencecapable(identityType = IdentityType.APPLICATION) > public class Picture { > private static final Logger log = > Logger.getLogger(Picture.class.getName()); > > @PrimaryKey > private String fileName; > ... > > } > > thanks for your help > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-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] Tasks will not run automatically
Hi, This link may help. http://code.google.com/intl/us/appengine/docs/java/taskqueue/overview.html#Task_Queues_and_the_Development_Server Please Try. thanks. 2010/3/19 Torquester : > In the development console I get the message: > > Tasks will not run automatically. Select a queue to run tasks > manually. > > I can't get the task queue to run tasks automatically in development > mode. > > -- > 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: Tasks will not run automatically
Hi, Thank you for trying. Please confirm the following return values. System.getProperty("task_queue.disable_auto_task_execution"); If the return value is false can not be executed automatically, I think I might need to find another cause. Plase try. thanks. 2010/3/19 Torquester : > I have not turned off automatic execution. I tried to use > Dtask_queue.disable_auto_task_execution=false, but it doesn't help. > I'm using appengine 1.2.6 on OSX. > > On Mar 19, 9:39 am, m seleron wrote: >> Hi, >> >> This link may help. >> >> http://code.google.com/intl/us/appengine/docs/java/taskqueue/overview... >> >> Please Try. >> thanks. >> >> 2010/3/19 Torquester : >> >> >> >> > In the development console I get the message: >> >> > Tasks will not run automatically. Select a queue to run tasks >> > manually. >> >> > I can't get the task queue to run tasks automatically in development >> > mode. >> >> > -- >> > 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. > > -- 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: Tasks will not run automatically
Thank you for trying various Cheers, 2010/3/20 Torquester : > I tried that, the property is not set. The call returns null. > > Seems to be an issue with appengine 1.2.6. I've now upgraded to 1.3.1 > and it works there. > > Thanks a lot for your help! > > On Mar 19, 4:11 pm, m seleron wrote: >> Hi, >> Thank you for trying. >> >> Please confirm the following return values. >> System.getProperty("task_queue.disable_auto_task_execution"); >> >> If the return value is false can not be executed automatically, I >> think I might need to find another cause. >> >> Plase try. >> thanks. >> >> 2010/3/19 Torquester : >> >> >> >> > I have not turned off automatic execution. I tried to use >> > Dtask_queue.disable_auto_task_execution=false, but it doesn't help. >> > I'm using appengine 1.2.6 on OSX. >> >> > On Mar 19, 9:39 am, m seleron wrote: >> >> Hi, >> >> >> This link may help. >> >> >>http://code.google.com/intl/us/appengine/docs/java/taskqueue/overview... >> >> >> Please Try. >> >> thanks. >> >> >> 2010/3/19 Torquester : >> >> >> > In the development console I get the message: >> >> >> > Tasks will not run automatically. Select a queue to run tasks >> >> > manually. >> >> >> > I can't get the task queue to run tasks automatically in development >> >> > mode. >> >> >> > -- >> >> > 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 >> > 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. > > -- 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] adding new variable to persistent class
Hi, I think the following links useful. http://groups.google.com/group/google-appengine-java/browse_thread/thread/d13d469752c825e7 http://groups.google.com/group/google-appengine-java/browse_thread/thread/79a53aba561effc8 Hope this helps, thanks. 2010/3/26 Zac Witte : > I have a persistent class called Location, which already exists in the > datastore and I'm trying to add a new variable called numCheckins. Is > this possible without wiping out all the existing objects? My attempts > so far have resulted in the following error whenever I try to retrieve > one of the existing objects: > > WARNING: Error getting location from hash. Datastore entity with kind > Location and key Location(1) has a null property named numCheckins. > This property is mapped to is.loc.dataobjects.Location.numCheckins, > which cannot accept null values. > > I tried giving it a default value in the definition (ie. int > numCheckins = 0;) which had no effect. > > I tried adding the nullValue = NullValue.DEFAULT property to the > @Persistent annotation, but I get a message saying default values not > supported > > I'm still new to GAE - what is the correct way of handling 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. > > -- 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] CPU Quota Exceeded on Startup
Hi, The previous benchmark was carried out may be useful to you http://groups.google.com/group/google-appengine/browse_thread/thread/11b2f2b425e10e38/ In the future, in the roadmap [Ability to reserve instances to reduce application loading overhead] By and expects to be alleviated. thanks. 2010/3/27 Hanshew : > I have uploaded a Ruby on Rails app that is very difficult to get > going because of the CPU quota. I can sometimes get access by hitting > refresh multiple times. After it gets going I can use it, but if I > wait too long I begin to get the "Internal Server Error" message > again. This is a very simple Rails app. This feature of appengine > will make it incompatible with Rails apps if it persists. > > -- > 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 AppStats
Hi, I tried. After successfully running the following was added to the web.xml. appstats com.google.appengine.tools.appstats.AppstatsServlet appstats /appstats/* /appstats/* admin appstats com.google.appengine.tools.appstats.AppstatsFilter logMessage Appstats available: /appstats/details?time={ID} appstats /* I think that I should confirm the environment such as jar files when there is no difference compared with your web.xml . please try. thanks. 2010/3/27 George Tang : > Hey Everyone, > > I just downloaded the new SDK and i was excited to use app stats. > After following the instructions to set it up, I tried testing it on > my localdev server and I got a nullpointerexception > > WARNING: /appstats/stats > java.lang.NullPointerException > at java.io.Reader.(Reader.java:61) > at java.io.InputStreamReader.(InputStreamReader.java:80) > at > com.google.appengine.tools.appstats.TemplateTool.loadTemplateSource(TemplateTool.java: > 115) > at com.google.appengine.tools.appstats.Renderer > $1.loadTemplateSource(Renderer.java:41) > at > com.google.appengine.tools.appstats.TemplateTool.getTemplate(TemplateTool.java: > 142) > at > com.google.appengine.tools.appstats.TemplateTool.format(TemplateTool.java: > 100) > at com.google.appengine.tools.appstats.Renderer > $1.format(Renderer.java:51) > at > com.google.appengine.tools.appstats.Renderer.renderSummaries(Renderer.java: > 66) > at > com.google.appengine.tools.appstats.AppstatsServlet.doGet(AppstatsServlet.java: > 99) > 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: > 511) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1166) > at > com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java: > 92) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: > 51) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: > 43) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: > 122) > at org.mortbay.jetty.servlet.ServletHandler > $CachedChain.doFilter(ServletHandler.java:1157) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: > 388) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: > 216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: > 182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: > 765) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 418) > at > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: > 70) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: > 152) > at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:349) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: > 152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 542) > at org.mortbay.jetty.HttpConnection > $RequestHandler.headerComplete(HttpConnection.java:923) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: > 409) > at org.mortbay.thread.QueuedThreadPool > $PoolThread.run(QueuedThreadPool.java:582) > > Anyone have any idea why? > > -- > 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 t
Re: [appengine-java] Re: AuthSub InvalidToken problem
Hi, I made a simple sample. Please try. I hope I can be of some help to you. thanks. 2010/3/31 nicanor.babula : > Hmm? No idea? ;) > Thanks in advance. > > On Mar 30, 10:06 am, "nicanor.babula" > wrote: >> That's all the code that deals with google services in my whole >> application. The exception is raised on the following instruction: >> [code] >> CalendarEventFeed resultFeed = calendarService.query(myQuery, >> CalendarEventFeed.class); >> [/code] >> >> What about the environment? You are saying that I might have included >> jars that could interfere with auth sub? Are there any known >> conflictual libraries? I have simply included all the jars shipped >> with the gdata-samples package. >> >> On Mar 30, 4:51 am, seleronm wrote: >> >> > 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" >> > > 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 >> > > > >> > > > >> > > > Tokeninvalid-InvalidAuthSubtoken. >> > > > >> > > > >> > > > Tokeninvalid-InvalidAuthSubtoken. >> > > > Error 401 >> > > > >> > > > >> >> > > > 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.interce
Re: [appengine-java] does gae4java 1.3.3 not suppote flag --use_sqlite.
Hi, I think the offer only to SDK of the python edition of [--use_sqlite]. thanks. > I got error > --- > > Usage: [options] > > Options: > --help, -h Show this help message and exit. > --server=SERVER The server to use to determine the latest > -s SERVER SDK version. > --address=ADDRESS The address of the interface on the local > machine > -a ADDRESS to bind to (or 0.0.0.0 for all > interfaces). > --port=PORT The port number to bind to on the local > machine. > -p PORT > --sdk_root=root Overrides where the SDK is located. > --disable_update_check Disable the check for newer SDK versions. > - > > when add --use_sqlite=true to arguments; > > -- > 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] String datatype
Hi. I guess this covers the question. http://code.google.com/p/googleappengine/issues/detail?id=2519 thanks. > http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html > short text string is 500 characters or 500 bytes? > > For example Russian characters encoded by two bytes of UTF-8. > > -- > 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: JAXB
Hi, I think that it is possible by using memcache or datastore. Though you might already have seen I think that the link where post was done by Duong BaTien is useful. Please try variously. thanks. > Thanks saleronm > I share your sample application adn its working. > I have question, whether is there a possibility that we store file as xml on > Google app engine??? > If a have file as xml so can i marshal/unmarshal or modify it ?? > Your example is wery helpful but can i save result in file ?? > > Thanks for your help > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-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] Delete all Data from Datastore
Hi, I think that there is variously method. I guess this covers the question http://groups.google.com/group/google-appengine-java/browse_thread/thread/77421e08fcb42a9a/ http://groups.google.com/group/google-appengine-java/browse_thread/thread/ba5de74a507d0f9e/ http://groups.google.com/group/google-appengine-java/browse_thread/thread/28cf5dd91ee099a0/ It might be ..the other... Please try. thanks. > I had an data model Agent and stored around 230,000+ records. I want > to delete all the data together. How would I do that. > > Query q = pm.newQuery(Agent.Class); > q.deletePersistentAll(); > > The application is timing out with a > > google.appengine.runtime.DeadlineExceededError. > > On the otherhand if I try to delete one at a time, it is taking long > time to delete the records one by one. What is the best way to delete > all the records from the Datastore. > > Thanks. > > Regards, > Kannaiyan > > -- > 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] JSP code debug: Compiled JSP location in local environment
Hi, The following threads might be useful though it depends on the operation system that you are using. http://groups.google.com/group/google-appengine-java/browse_thread/thread/e63281b3e3d1b05/9b12a70f5172c6c1 Hope some of this helps. thanks. > Hi > > I got following error in my local enviroment of Google App Eng with > Eclipse plugin: > at org.apache.jsp.scoreresult_jsp._jspService(scoreresult_jsp.java: > 161) > > I would like to see the code on line 161 of compiled scoreresult.jsp > file. But I can't find out the location of it. Anyone can tell me > where the default folder locatoin for compiled .jsp files and also how > you debug jsp code when error is on .jsp but no error on your .java > file? > > -- > 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] Custom location for local_db.bin?
Hi, It might be solved by this thought is not a direct answer. http://groups.google.com/group/google-appengine-java/browse_thread/thread/3647a2d262386b41 please try thanks. 2011/1/16 A. Stevko : > Why not just back it up or check-in to version control? > Another option is to use ln -s to move it. > On Sat, Jan 15, 2011 at 10:29 AM, Daniel Kvasnicka jr. > wrote: >> >> Hey, >> is it possible to customize the location of local_db.bin? I need it to be >> somewhere outside the application, so that it doesn't get harmed. >> I'm using NetBeans to develop apps and Clean & Build always destroys my >> data. >> There must be some option for this, e.g. in appengine-web.xml, right? >> >> -- >> 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. > > > > -- > -- A. Stevko > === > "If everything seems under control, you're just not going fast enough." M. > Andretti > > > > > -- > 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. > -- 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.