[appengine-java] Re: email in yahoo junk - amazon ses

2011-07-08 Thread pac
I was also trying to contact yahoo, they get back to me and asked me
to do few things but I don't have access to do those , may be some
body from google can do this i.e.



Thank you for writing to Yahoo! Mail.

To further troubleshoot the issue, please send a test email (from the
affected server/IP) via a telnet session to see if you can recreate
the
problem.

The URL below describes how you can do a manual telnet test. Please
telnet to this host "a.mx.mail.yahoo.com" (i.e., "telnet
a.mx.mail.yahoo.com 25").

  
http://www.spamsoap.com/how-to-manually-send-an-email-message-via-telnet-to-port-25

Once you've followed the steps, please send us the transcript of the
telnet session when you reply to this email.

For assistance with delivery issues to Yahoo! Mail, please visit:

  http://help.yahoo.com/l/us/yahoo/mail/postmaster/

Please let us know if you need any assistance, so we may assist you
further.

Your patience is greatly appreciated.

Thank you again for contacting Yahoo! Mail.






I think ip address in that email case was

X-Originating-IP: [209.85.216.205]

but I guess that could be any e.g.
74.125.79.27
74.125.53.27
209.85.143.27
74.125.43.27
72.14.213.27
209.85.229.27
74.125.157.27

On Jul 8, 11:55 pm, pac  wrote:
> Is it possible to use amazon SES to send emails?
> Emails sent by application are going in yahoo's junk folder.
> My application hardly send few emails per day.
>
> Just looking various 
> posts:http://code.google.com/appengine/forum/?place=topic%2Fgoogle-appengin...http://code.google.com/p/googleappengine/issues/detail?id=3161
>
> It looks that people have used amazon SES with success.
>
> But I am unable to make it work in java, on connect I get error
>
>            Transport t = new AWSJavaMailTransport(session, null);
>             t.connect();
>
> Caused by: java.lang.NoClassDefFoundError:
> javax.net.ssl.KeyManagerFactory is a restricted class. Please see the
> Google  App Engine developer's guide for more details.
>         at
> com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
> 51)
>         at
> org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:
> 184)
>         at
> org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:
> 209)
>
> Any suggestions to solve this email issue.
>
> 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] email in yahoo junk - amazon ses

2011-07-08 Thread pac
Is it possible to use amazon SES to send emails?
Emails sent by application are going in yahoo's junk folder.
My application hardly send few emails per day.

Just looking various posts:
http://code.google.com/appengine/forum/?place=topic%2Fgoogle-appengine%2FazhX_BKiNiE%2Fdiscussion
http://code.google.com/p/googleappengine/issues/detail?id=3161

It looks that people have used amazon SES with success.

But I am unable to make it work in java, on connect I get error

   Transport t = new AWSJavaMailTransport(session, null);
t.connect();

Caused by: java.lang.NoClassDefFoundError:
javax.net.ssl.KeyManagerFactory is a restricted class. Please see the
Google  App Engine developer's guide for more details.
at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51)
at
org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:
184)
at
org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:
209)

Any suggestions to solve this email issue.

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] doGet: null

2011-06-29 Thread pac
In production log I see good few

 doGet: null

when a task servlet is executed.

Though I have code under try catch and handling Exception and printing
whole stack trace if anything is wrong, but nothing.

Any thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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] billing issue

2011-05-20 Thread pac
I think something wrong in my account for 2011-05-19 09:32:50
It shows CPU time used 62.61 hours and I don't see that much usage.
Where can I log/report this issue?

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: warmup requests going crazy (9850 requests in 15 hours)

2011-05-06 Thread pac
I also saw lots of warm request yesterday and few of them failed with
error:

EXCEPTION
com.google.apphosting.api.DeadlineExceededException: This request
(f508b2b459c9812c) started at


Today seems to be ok.


On May 6, 9:26 am, Aswath Satrasala 
wrote:
> I had this issue earlier.  I re-deployed the application and it is 
> gone.http://groups.google.com/group/google-appengine-java/browse_thread/th...
>
> Now, again, since 3-4 hrs, I don't have any /_ah/warmup requests. My
> application is normal :).
>
> -Aswathwww.AccountingGuru.in
>
> On Fri, May 6, 2011 at 7:17 AM, Aswath Satrasala 
>
>
>
>
>
>
> > wrote:
> > I have the same issue since yesterday.
> > *Current Load [image: 
> > help]
> > *      URI  Req/Min current  Requests last 19 hrs  Avg CPU (API) last hr % 
> > CPU last
> > 19 hrs
> > /_ah/warmup
> >  7.0  379  7630 (0)  84%
>
> > -Aswath
>
> > On Thu, May 5, 2011 at 5:50 AM, Matt Farnell  wrote:
>
> >> That url doesn't work, I'm assuming you mean
> >>http://code.google.com/p/googleappengine/issues/detail?id=4984
>
> >> On Wed, May 4, 2011 at 5:08 PM, Ikai Lan (Google) wrote:
>
> >>> Can anyone else experiencing this add details here?
>
> >>>http://code.google.com/p/googleappengine/issues/list?cursor=4984
>
> >>> Ikai Lan
> >>> Developer Programs Engineer, Google App Engine
> >>> Blog:http://googleappengine.blogspot.com
> >>> Twitter:http://twitter.com/app_engine
> >>> Reddit:http://www.reddit.com/r/appengine
>
> >>> On Wed, May 4, 2011 at 3:33 PM, Matt Farnell  wrote:
>
>  Hi there,
>
>  My app is going crazy with warmup requests, here's the dashboard
>
>   URI  Req/Mincurrent Requestslast 16 hrs Avg CPU (API)last hr % CPUlast
>  16 hrs
>  /_ah/warmup
>   26.0 9.85K 1876 (0) 98%
>  This has only started happening today?
>
>  --
>  thanks,
>  *Matt Farnell*
>  *follow on twitter *
>
>   --
>  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.
>
> >> --
> >> thanks,
> >> *Matt Farnell*
> >> *follow on twitter *
>
> >>  --
> >> 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.



[appengine-java] Re: warmup requests going crazy (9850 requests in 15 hours)

2011-05-06 Thread pac
Since yesterday, I am also seeing lots fo warm requests and some of
them are failing


2011-05-05 11:28:34.515 /_ah/warmup 500 248296ms 1540cpu_ms 0kb

0.1.0.3 - - [05/May/2011:11:28:34 -0700] "GET /_ah/warmup HTTP/1.1"
500 0 - - "1.350128199943308417.landofproperties.appspot.com"
ms=248297 cpu_ms=1540 api_cpu_ms=0 cpm_usd=0.042797 loading_request=1
exit_code=104

W 2011-05-05 11:25:43.406

EXCEPTION
com.google.apphosting.api.DeadlineExceededException: This request
(f508b2b459c9812c) started at 2011/05/05 18:25:13.781 UTC and was
still executing at 2011/05/05 18:25:43.224 UTC.
at com.google.appengine.runtime.Request.process-
f508b2b459c9812c(Request.java)
at java.io.FileInputStream.readBytes(Native Method)

On May 6, 9:26 am, Aswath Satrasala 
wrote:
> I had this issue earlier.  I re-deployed the application and it is 
> gone.http://groups.google.com/group/google-appengine-java/browse_thread/th...
>
> Now, again, since 3-4 hrs, I don't have any /_ah/warmup requests. My
> application is normal :).
>
> -Aswathwww.AccountingGuru.in
>
> On Fri, May 6, 2011 at 7:17 AM, Aswath Satrasala 
>
>
>
>
>
>
> > wrote:
> > I have the same issue since yesterday.
> > *Current Load [image: 
> > help]
> > *      URI  Req/Min current  Requests last 19 hrs  Avg CPU (API) last hr % 
> > CPU last
> > 19 hrs
> > /_ah/warmup
> >  7.0  379  7630 (0)  84%
>
> > -Aswath
>
> > On Thu, May 5, 2011 at 5:50 AM, Matt Farnell  wrote:
>
> >> That url doesn't work, I'm assuming you mean
> >>http://code.google.com/p/googleappengine/issues/detail?id=4984
>
> >> On Wed, May 4, 2011 at 5:08 PM, Ikai Lan (Google) wrote:
>
> >>> Can anyone else experiencing this add details here?
>
> >>>http://code.google.com/p/googleappengine/issues/list?cursor=4984
>
> >>> Ikai Lan
> >>> Developer Programs Engineer, Google App Engine
> >>> Blog:http://googleappengine.blogspot.com
> >>> Twitter:http://twitter.com/app_engine
> >>> Reddit:http://www.reddit.com/r/appengine
>
> >>> On Wed, May 4, 2011 at 3:33 PM, Matt Farnell  wrote:
>
>  Hi there,
>
>  My app is going crazy with warmup requests, here's the dashboard
>
>   URI  Req/Mincurrent Requestslast 16 hrs Avg CPU (API)last hr % CPUlast
>  16 hrs
>  /_ah/warmup
>   26.0 9.85K 1876 (0) 98%
>  This has only started happening today?
>
>  --
>  thanks,
>  *Matt Farnell*
>  *follow on twitter *
>
>   --
>  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.
>
> >> --
> >> thanks,
> >> *Matt Farnell*
> >> *follow on twitter *
>
> >>  --
> >> 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.



[appengine-java] Re: issue in serving xml file from blobstore

2011-04-28 Thread pac
It was changing during transformation.

ProcessingInstruction pi =
document.createProcessingInstruction(StreamResult.PI_DISABLE_OUTPUT_ESCAPING,"yes");
rootElement.appendChild(pi);

fixed it.


On Apr 28, 8:12 am, pac  wrote:
> Thanks for your response Brandon.
>
> But in my case, file is served from blobstore i.e.
>
>  blobstoreService.serve(blobKey, res);
>
> So file serving is not an issue but angular brackets get changed which
> I want to avoid i.e.
>
> <   to  <
>
> >   to  >
>
> Are you suggesting, I should fetch data from blobstore and write it to
> response?
>
> On Apr 28, 3:43 am, Brandon Donnelson  wrote:
>
>
>
>
>
>
>
> > Here is what I do:
>
> > public class Servlet_Index extends HttpServlet {
>
> >   public void doGet(HttpServletRequest req, HttpServletResponse res) throws 
> > IOException  {
>
> >     home(req, res);
>
> >   }
>
> >   public void home(HttpServletRequest req, HttpServletResponse res) throws 
> > IOException {
>
> >     res.setContentType("text/html");
> >     PrintWriter out = res.getWriter();
>
> >     drawTop(req, res, out);
>
> >     drawReferer(req, res, out);
>
> >     drawBottom(req, res, out);
>
> >   }
>
> >   private void drawTop(HttpServletRequest req, HttpServletResponse res, 
> > PrintWriter out) throws IOException {
> >     File file = new File("Index_Top.html");
> >     InputStream in = null;
> >     try {
> >       in = new BufferedInputStream(new FileInputStream(file));
> >       int ch;
> >       while ((ch = in.read()) !=-1) {
> >         out.print((char)ch);
> >       }
> >     }
> >     finally {
> >       if (in != null) in.close();
> >     }
> >   }
> > //...
>
> > }
>
> > Hope that helps.
>
> > Brandon Donnelsonhttp://gwt-examples.googlecode.comhttp://c.gawkat.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: issue in serving xml file from blobstore

2011-04-28 Thread pac
Thanks for your response Brandon.

But in my case, file is served from blobstore i.e.

 blobstoreService.serve(blobKey, res);

So file serving is not an issue but angular brackets get changed which
I want to avoid i.e.

<   to  <
>   to  >

Are you suggesting, I should fetch data from blobstore and write it to
response?




On Apr 28, 3:43 am, Brandon Donnelson  wrote:
> Here is what I do:
>
> public class Servlet_Index extends HttpServlet {
>
>   public void doGet(HttpServletRequest req, HttpServletResponse res) throws 
> IOException  {
>
>     home(req, res);
>
>   }
>
>   public void home(HttpServletRequest req, HttpServletResponse res) throws 
> IOException {
>
>     res.setContentType("text/html");
>     PrintWriter out = res.getWriter();
>
>     drawTop(req, res, out);
>
>     drawReferer(req, res, out);
>
>     drawBottom(req, res, out);
>
>   }
>
>   private void drawTop(HttpServletRequest req, HttpServletResponse res, 
> PrintWriter out) throws IOException {
>     File file = new File("Index_Top.html");
>     InputStream in = null;
>     try {
>       in = new BufferedInputStream(new FileInputStream(file));
>       int ch;
>       while ((ch = in.read()) !=-1) {
>         out.print((char)ch);
>       }
>     }
>     finally {
>       if (in != null) in.close();
>     }
>   }
> //...
>
> }
>
> Hope that helps.
>
> Brandon Donnelsonhttp://gwt-examples.googlecode.comhttp://c.gawkat.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] issue in serving xml file from blobstore

2011-04-27 Thread pac
I am creating xml file in blobstore but after serving from blobstore,
when saved through browser then

CDATA barckets get changed i.e



to

]]>

Thought elements brackets stay fine i.e.  remains as it is.

During file creation I use:

fileService.createNewBlobFile("text/xml",xmlFileType + ".xml");
new PrintWriter(Channels.newWriter(writeChannel, "UTF8"));

and when it is served then:

 res.setContentType("text/xml");
 res.setHeader("Content-Disposition","inline; filename=" + xmlFileType
+ ".xml");
//res.setHeader("Content-Disposition","attachment; filename=" +
xmlFileType + ".xml");
 blobstoreService.serve(blobKey, res);

Any suggestions to fix it?

Thanks.





-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: gae gwt - to serve compressed java script

2011-03-26 Thread pac
http://code.google.com/p/googleappengine/issues/detail?id=4788

-- 
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 gwt - to serve compressed java script

2011-03-25 Thread pac
Will appreciate any suggestions to fix this


On Mar 24, 12:02 pm, pac  wrote:
> Hi Didier,
>
> Yes, I have looked into this.
> It says if request has gzip then app engine will supply compressed
> contents.
>
> So in this case request does have gzip i.e.
>
> Accept-Encoding: gzip,deflate
>
> But it looks that it still does not send compressed data.
>
> I am not sure what can I do to fix it.
>
> Thanks.
>
> On Mar 24, 11:56 am, Didier Durand  wrote:
>
> > Hi,
>
> > It's depending on certain values in the header of the request: 
> > seehttp://code.google.com/appengine/docs/java/runtime.html#Responses
>
> > regards
>
> > didier
>
> > On Mar 24, 11:46 am, pac  wrote:
>
> > > It looks that app engine is not serving compressed contents.
> > > Is there something I need to configure? though it says that it does
> > > that automatically
>
> > >http://code.google.com/appengine/kb/general.html#compression
>
> > > I have application written in gwt and java scripts are served
> > > uncompressed from app engine as per Page Speed plugin of Chrome and
> > > FireFox. It suggests to enable compression.
>
> > > From Page Speed:
>
> > > Compressing ./4.cache.js could save 336.2KiB (77% reduction).
>
> > > From Live HTTP Headers plugin of Firefox:
>
> > > ./4.cache.js
>
> > > GET ./4.cache.js HTTP/1.1
> > > Host: 
> > > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:
> > > 1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729)
> > > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
> > > *;q=0.8
> > > Accept-Language: en-gb,en;q=0.5
> > > Accept-Encoding: gzip,deflate
> > > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > > Keep-Alive: 115
> > > Proxy-Connection: keep-alive
> > > Referer: 
> > > If-None-Match: "X3ERbg"
> > > Cache-Control: max-age=0
>
> > > HTTP/1.1 200 OK
> > > Via: 1.1 SRV-IE-GATEWAY
> > > Connection: Keep-Alive
> > > Proxy-Connection: Keep-Alive
> > > Transfer-Encoding: chunked
> > > Age: 598
> > > Expires: Thu, 22 Mar 2012 11:44:33 GMT
> > > Date: Wed, 23 Mar 2011 11:44:33 GMT
> > > Content-Type: application/x-javascript
> > > Etag: "X3ERbg"
> > > Server: Google Frontend
> > > Cache-Control: public, max-age=31536000
>
> > > May be I am wrong, but I am guessing that if app engine is serving
> > > compressed contents then in its response it will say something like
>
> > > Content-Encoding: gzip
>
> > > May be I am missing something, any suggestions to fix it?
>
> > > Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: gae gwt - to serve compressed java script

2011-03-24 Thread pac
Hi Didier,

Yes, I have looked into this.
It says if request has gzip then app engine will supply compressed
contents.

So in this case request does have gzip i.e.

Accept-Encoding: gzip,deflate


But it looks that it still does not send compressed data.

I am not sure what can I do to fix it.

Thanks.

On Mar 24, 11:56 am, Didier Durand  wrote:
> Hi,
>
> It's depending on certain values in the header of the request: 
> seehttp://code.google.com/appengine/docs/java/runtime.html#Responses
>
> regards
>
> didier
>
> On Mar 24, 11:46 am, pac  wrote:
>
> > It looks that app engine is not serving compressed contents.
> > Is there something I need to configure? though it says that it does
> > that automatically
>
> >http://code.google.com/appengine/kb/general.html#compression
>
> > I have application written in gwt and java scripts are served
> > uncompressed from app engine as per Page Speed plugin of Chrome and
> > FireFox. It suggests to enable compression.
>
> > From Page Speed:
>
> > Compressing ./4.cache.js could save 336.2KiB (77% reduction).
>
> > From Live HTTP Headers plugin of Firefox:
>
> > ./4.cache.js
>
> > GET ./4.cache.js HTTP/1.1
> > Host: 
> > User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:
> > 1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729)
> > Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
> > *;q=0.8
> > Accept-Language: en-gb,en;q=0.5
> > Accept-Encoding: gzip,deflate
> > Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive: 115
> > Proxy-Connection: keep-alive
> > Referer: 
> > If-None-Match: "X3ERbg"
> > Cache-Control: max-age=0
>
> > HTTP/1.1 200 OK
> > Via: 1.1 SRV-IE-GATEWAY
> > Connection: Keep-Alive
> > Proxy-Connection: Keep-Alive
> > Transfer-Encoding: chunked
> > Age: 598
> > Expires: Thu, 22 Mar 2012 11:44:33 GMT
> > Date: Wed, 23 Mar 2011 11:44:33 GMT
> > Content-Type: application/x-javascript
> > Etag: "X3ERbg"
> > Server: Google Frontend
> > Cache-Control: public, max-age=31536000
>
> > May be I am wrong, but I am guessing that if app engine is serving
> > compressed contents then in its response it will say something like
>
> > Content-Encoding: gzip
>
> > May be I am missing something, any suggestions to fix it?
>
> > Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] gae gwt - to serve compressed java script

2011-03-24 Thread pac
It looks that app engine is not serving compressed contents.
Is there something I need to configure? though it says that it does
that automatically

http://code.google.com/appengine/kb/general.html#compression

I have application written in gwt and java scripts are served
uncompressed from app engine as per Page Speed plugin of Chrome and
FireFox. It suggests to enable compression.

>From Page Speed:

Compressing ./4.cache.js could save 336.2KiB (77% reduction).



>From Live HTTP Headers plugin of Firefox:


./4.cache.js

GET ./4.cache.js HTTP/1.1
Host: 
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:
1.9.2.16) Gecko/20110319 Firefox/3.6.16 ( .NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Referer: 
If-None-Match: "X3ERbg"
Cache-Control: max-age=0

HTTP/1.1 200 OK
Via: 1.1 SRV-IE-GATEWAY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Transfer-Encoding: chunked
Age: 598
Expires: Thu, 22 Mar 2012 11:44:33 GMT
Date: Wed, 23 Mar 2011 11:44:33 GMT
Content-Type: application/x-javascript
Etag: "X3ERbg"
Server: Google Frontend
Cache-Control: public, max-age=31536000


May be I am wrong, but I am guessing that if app engine is serving
compressed contents then in its response it will say something like

Content-Encoding: gzip



May be I am missing something, any suggestions to fix it?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Cron job limit 30 sec or 10 minutes?

2011-02-11 Thread pac
  It says here
  http://code.google.com/appengine/docs/java/config/cron.html
 
  "A cron job will invoke a URL, using an HTTP GET request, at a given time 
of day. A URL invoked by cron is subject to the same limits and quotas as a 
normal HTTP request, including the request time limit."
 
 
  But here it says 
 
http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html<%20%20It%20says%20here%20%20%20http://code.google.com/appengine/docs/java/config/cron.html%20%20%20%20%20%22A%20cron%20job%20will%20invoke%20a%20URL,%20using%20an%20HTTP%20GET%20request,%20at%20a%20given%20time%20of%20day.%20A%20URL%20invoked%20by%20cron%20is%20subject%20to%20the%20same%20limits%20and%20quotas%20as%20a%20normal%20HTTP%20request,%20including%20the%20request%20time%20limit.%22%20%20%20%20%20%20%20But%20here%20it%20says%20%20%20%20http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html%20%20%20%20%20%22No%20more%2030-second%20limit%20for%20background%20work%20-%20With%20this%20release,%20we%E2%80%99ve%20significantly%20raised%20this%20limit%20for%20offline%20requests%20from%20Task%20Queue%20and%20Cron:%20you%20can%20now%20run%20for%20up%20to%2010%20minutes%20without%20interruption.%22%20%20Clarification/confirmation%20will%20be%20helpful.%20Thanks.>
 
  "No more 30-second limit for background work - With this release, we’ve 
significantly raised this limit for offline requests from Task Queue and *
Cron*: you can now run for up to 10 minutes without interruption."

Clarification/confirmation will be helpful.
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: data in xml format from data store

2010-12-06 Thread pac
Thanks for that Jeff.

On Dec 3, 7:37 pm, Jeff Schnitzer  wrote:
> I don't know what jacek had in mind, but since it sounds like you're
> making the request from a custom client, make sure you are making the
> request with Accept-Encoding: gzip.
>
> http://code.google.com/appengine/kb/general.html#compression
>
> Jeff
>
> On Fri, Dec 3, 2010 at 6:01 AM, pac  wrote:
> > Do you mean - remove extra whitespaces, comments and other unneeded
> > characters without breaking the content structure?
>
> > On Dec 3, 1:06 pm, "jacek.ambroziak" 
> > wrote:
> >> Also minify and/or compress your XML!
>
> >> On Dec 2, 5:06 am, pac  wrote:
>
> >> > That’s great then Stephen, appreciated the feedback. Thanks.
>
> >> > On Dec 2, 1:44 am, Stephen Johnson  wrote:
>
> >> > > I believe Ikai's statement "The 30 second limit is imposed on the time 
> >> > > it
> >> > > takes the servlet to finish." is confirming what I said.
>
> >> > > On Wed, Dec 1, 2010 at 5:52 PM, pac  wrote:
> >> > > > Hi Ikai,
>
> >> > > > If you could confirm this - from earlier Stephen's post:
>
> >> > > > "then I think you
> >> > > > will be safe even though it might take another minute or two for
> >> > > > Google's
> >> > > > infrastructure to stream it to the client. I have not tested this
> >> > > > though.
> >> > > > Can anyone confirm or deny this assumption on my part."
>
> >> > > > is download outside 30 sec limit i.e. after servlet finished in 30
> >> > > > seconds?
>
> >> > > > Thanks.
>
> >> > > > On Dec 1, 12:00 am, "Ikai Lan (Google)" 
> >> > > > 
>
> >> > > > wrote:
> >> > > > > The 30 second limit is imposed on the time it takes the servlet to
> >> > > > finish.
>
> >> > > > > --
> >> > > > > Ikai Lan
> >> > > > > Developer Programs Engineer, Google App Engine
> >> > > > > Blogger:http://googleappengine.blogspot.com
> >> > > > > Reddit:http://www.reddit.com/r/appengine
> >> > > > > Twitter:http://twitter.com/app_engine
>
> >> > > > > On Mon, Nov 29, 2010 at 10:13 AM, Stephen Johnson <
> >> > > > onepagewo...@gmail.com>wrote:
>
> >> > > > > > I believe the 30 second limit is imposed on the time it takes 
> >> > > > > > for your
> >> > > > > > servlet to finish. Thus, if your servlet finished generating and
> >> > > > returning
> >> > > > > > the file to the AppEngine infrastructure in 29 seconds, then I 
> >> > > > > > think
> >> > > > you
> >> > > > > > will be safe even though it might take another minute or two for
> >> > > > Google's
> >> > > > > > infrastructure to stream it to the client. I have not tested this
> >> > > > though.
> >> > > > > > Can anyone confirm or deny this assumption on my part.
>
> >> > > > > > On Mon, Nov 29, 2010 at 10:57 AM, pac 
> >> > > > wrote:
>
> >> > > > > >> Sorry, did not see your post earlier Stephen.
>
> >> > > > > >> I was not aware of this 10 minute feature to create a file, I 
> >> > > > > >> will
> >> > > > > >> look into.
>
> >> > > > > >> File size will be greater then 10MB, it is an existing website 
> >> > > > > >> which I
> >> > > > > >> am thinking to port to gae, file size already gets around 12MB 
> >> > > > > >> or so.
>
> >> > > > > >> So I guess more than 10MB download will be an issue and I guess
> >> > > > > >> download should also complete in 30 second, is that so?
>
> >> > > > > >> On Nov 29, 5:37 pm, pac  wrote:
> >> > > > > >> > A client will download a xml file instead of uploading.
> >> > > > > >> > Records will be created (or updated, deleted) in a table/kind 
> >> > > > > >> > over
> >> > > > > >> > time and all records f

[appengine-java] Re: data in xml format from data store

2010-12-03 Thread pac
Do you mean - remove extra whitespaces, comments and other unneeded
characters without breaking the content structure?

On Dec 3, 1:06 pm, "jacek.ambroziak" 
wrote:
> Also minify and/or compress your XML!
>
> On Dec 2, 5:06 am, pac  wrote:
>
> > That’s great then Stephen, appreciated the feedback. Thanks.
>
> > On Dec 2, 1:44 am, Stephen Johnson  wrote:
>
> > > I believe Ikai's statement "The 30 second limit is imposed on the time it
> > > takes the servlet to finish." is confirming what I said.
>
> > > On Wed, Dec 1, 2010 at 5:52 PM, pac  wrote:
> > > > Hi Ikai,
>
> > > > If you could confirm this - from earlier Stephen's post:
>
> > > > "then I think you
> > > > will be safe even though it might take another minute or two for
> > > > Google's
> > > > infrastructure to stream it to the client. I have not tested this
> > > > though.
> > > > Can anyone confirm or deny this assumption on my part."
>
> > > > is download outside 30 sec limit i.e. after servlet finished in 30
> > > > seconds?
>
> > > > Thanks.
>
> > > > On Dec 1, 12:00 am, "Ikai Lan (Google)" 
> > > > 
>
> > > > wrote:
> > > > > The 30 second limit is imposed on the time it takes the servlet to
> > > > finish.
>
> > > > > --
> > > > > Ikai Lan
> > > > > Developer Programs Engineer, Google App Engine
> > > > > Blogger:http://googleappengine.blogspot.com
> > > > > Reddit:http://www.reddit.com/r/appengine
> > > > > Twitter:http://twitter.com/app_engine
>
> > > > > On Mon, Nov 29, 2010 at 10:13 AM, Stephen Johnson <
> > > > onepagewo...@gmail.com>wrote:
>
> > > > > > I believe the 30 second limit is imposed on the time it takes for 
> > > > > > your
> > > > > > servlet to finish. Thus, if your servlet finished generating and
> > > > returning
> > > > > > the file to the AppEngine infrastructure in 29 seconds, then I think
> > > > you
> > > > > > will be safe even though it might take another minute or two for
> > > > Google's
> > > > > > infrastructure to stream it to the client. I have not tested this
> > > > though.
> > > > > > Can anyone confirm or deny this assumption on my part.
>
> > > > > > On Mon, Nov 29, 2010 at 10:57 AM, pac 
> > > > wrote:
>
> > > > > >> Sorry, did not see your post earlier Stephen.
>
> > > > > >> I was not aware of this 10 minute feature to create a file, I will
> > > > > >> look into.
>
> > > > > >> File size will be greater then 10MB, it is an existing website 
> > > > > >> which I
> > > > > >> am thinking to port to gae, file size already gets around 12MB or 
> > > > > >> so.
>
> > > > > >> So I guess more than 10MB download will be an issue and I guess
> > > > > >> download should also complete in 30 second, is that so?
>
> > > > > >> On Nov 29, 5:37 pm, pac  wrote:
> > > > > >> > A client will download a xml file instead of uploading.
> > > > > >> > Records will be created (or updated, deleted) in a table/kind 
> > > > > >> > over
> > > > > >> > time and all records from a kind need to be downloaded in form 
> > > > > >> > of a
> > > > > >> > xml file, I hope I am explaining the issue bit more clearly.
>
> > > > > >> > I am not sure if I could make use of blobstore in this case as it
> > > > will
> > > > > >> > require update of blobstore object (in background may be using 
> > > > > >> > task)
> > > > > >> > every time a record gets added/updated/deleted i.e. if I create 
> > > > > >> > xml
> > > > > >> > file programmaticaly and store as blobstore object.
>
> > > > > >> > On Nov 29, 5:14 pm, Didier Durand  
> > > > > >> > wrote:
>
> > > > > >> > > Hi,
>
> > > > > >> > > To emulate files, you have to use the Blob object in the 
> > > > > >> > > datastore
> > > > to
> > > &

[appengine-java] Re: data in xml format from data store

2010-12-02 Thread pac
That’s great then Stephen, appreciated the feedback. Thanks.

On Dec 2, 1:44 am, Stephen Johnson  wrote:
> I believe Ikai's statement "The 30 second limit is imposed on the time it
> takes the servlet to finish." is confirming what I said.
>
> On Wed, Dec 1, 2010 at 5:52 PM, pac  wrote:
> > Hi Ikai,
>
> > If you could confirm this - from earlier Stephen's post:
>
> > "then I think you
> > will be safe even though it might take another minute or two for
> > Google's
> > infrastructure to stream it to the client. I have not tested this
> > though.
> > Can anyone confirm or deny this assumption on my part."
>
> > is download outside 30 sec limit i.e. after servlet finished in 30
> > seconds?
>
> > Thanks.
>
> > On Dec 1, 12:00 am, "Ikai Lan (Google)" 
> > 
>
> > wrote:
> > > The 30 second limit is imposed on the time it takes the servlet to
> > finish.
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blogger:http://googleappengine.blogspot.com
> > > Reddit:http://www.reddit.com/r/appengine
> > > Twitter:http://twitter.com/app_engine
>
> > > On Mon, Nov 29, 2010 at 10:13 AM, Stephen Johnson <
> > onepagewo...@gmail.com>wrote:
>
> > > > I believe the 30 second limit is imposed on the time it takes for your
> > > > servlet to finish. Thus, if your servlet finished generating and
> > returning
> > > > the file to the AppEngine infrastructure in 29 seconds, then I think
> > you
> > > > will be safe even though it might take another minute or two for
> > Google's
> > > > infrastructure to stream it to the client. I have not tested this
> > though.
> > > > Can anyone confirm or deny this assumption on my part.
>
> > > > On Mon, Nov 29, 2010 at 10:57 AM, pac 
> > wrote:
>
> > > >> Sorry, did not see your post earlier Stephen.
>
> > > >> I was not aware of this 10 minute feature to create a file, I will
> > > >> look into.
>
> > > >> File size will be greater then 10MB, it is an existing website which I
> > > >> am thinking to port to gae, file size already gets around 12MB or so.
>
> > > >> So I guess more than 10MB download will be an issue and I guess
> > > >> download should also complete in 30 second, is that so?
>
> > > >> On Nov 29, 5:37 pm, pac  wrote:
> > > >> > A client will download a xml file instead of uploading.
> > > >> > Records will be created (or updated, deleted) in a table/kind over
> > > >> > time and all records from a kind need to be downloaded in form of a
> > > >> > xml file, I hope I am explaining the issue bit more clearly.
>
> > > >> > I am not sure if I could make use of blobstore in this case as it
> > will
> > > >> > require update of blobstore object (in background may be using task)
> > > >> > every time a record gets added/updated/deleted i.e. if I create xml
> > > >> > file programmaticaly and store as blobstore object.
>
> > > >> > On Nov 29, 5:14 pm, Didier Durand  wrote:
>
> > > >> > > Hi,
>
> > > >> > > To emulate files, you have to use the Blob object in the datastore
> > to
> > > >> > > store such xml content: see
> > com.google.appengine.api.datastore.Blob
> > > >> inhttp://
> > code.google.com/appengine/docs/java/datastore/dataclasses.html.
> > > >> ..
>
> > > >> > > Blob has a limited max size: 1 Mbyte. So, you can use a collection
> > > >> > > (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> > > >> > > If your files get uploaded by a client, you can use the Blobstore
> > > >> > > where the max size is much bigger(2 Gbytes): seehttp://
> > > >> code.google.com/appengine/docs/java/blobstore/overview.html
>
> > > >> > > You have to associate the blob with some other fields (name, size,
> > > >> > > last_updated) in you pojo to reproduce what you expect from a
> > file.
>
> > > >> > > N.B. if you need to emulate a directory tree, you also have to
> > write
> > > >> > > it by yourself.
>
> > > >> > > Finally, I would recommend alternative Objectify rather than
> > standard
> > > &

[appengine-java] Re: data in xml format from data store

2010-12-01 Thread pac
Hi Ikai,

If you could confirm this - from earlier Stephen's post:

"then I think you
will be safe even though it might take another minute or two for
Google's
infrastructure to stream it to the client. I have not tested this
though.
Can anyone confirm or deny this assumption on my part."

is download outside 30 sec limit i.e. after servlet finished in 30
seconds?

Thanks.

On Dec 1, 12:00 am, "Ikai Lan (Google)" 
wrote:
> The 30 second limit is imposed on the time it takes the servlet to finish.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Mon, Nov 29, 2010 at 10:13 AM, Stephen Johnson 
> wrote:
>
>
>
> > I believe the 30 second limit is imposed on the time it takes for your
> > servlet to finish. Thus, if your servlet finished generating and returning
> > the file to the AppEngine infrastructure in 29 seconds, then I think you
> > will be safe even though it might take another minute or two for Google's
> > infrastructure to stream it to the client. I have not tested this though.
> > Can anyone confirm or deny this assumption on my part.
>
> > On Mon, Nov 29, 2010 at 10:57 AM, pac  wrote:
>
> >> Sorry, did not see your post earlier Stephen.
>
> >> I was not aware of this 10 minute feature to create a file, I will
> >> look into.
>
> >> File size will be greater then 10MB, it is an existing website which I
> >> am thinking to port to gae, file size already gets around 12MB or so.
>
> >> So I guess more than 10MB download will be an issue and I guess
> >> download should also complete in 30 second, is that so?
>
> >> On Nov 29, 5:37 pm, pac  wrote:
> >> > A client will download a xml file instead of uploading.
> >> > Records will be created (or updated, deleted) in a table/kind over
> >> > time and all records from a kind need to be downloaded in form of a
> >> > xml file, I hope I am explaining the issue bit more clearly.
>
> >> > I am not sure if I could make use of blobstore in this case as it will
> >> > require update of blobstore object (in background may be using task)
> >> > every time a record gets added/updated/deleted i.e. if I create xml
> >> > file programmaticaly and store as blobstore object.
>
> >> > On Nov 29, 5:14 pm, Didier Durand  wrote:
>
> >> > > Hi,
>
> >> > > To emulate files, you have to use the Blob object in the datastore to
> >> > > store such xml content: see com.google.appengine.api.datastore.Blob
> >> inhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html.
> >> ..
>
> >> > > Blob has a limited max size: 1 Mbyte. So, you can use a collection
> >> > > (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> >> > > If your files get uploaded by a client, you can use the Blobstore
> >> > > where the max size is much bigger(2 Gbytes): seehttp://
> >> code.google.com/appengine/docs/java/blobstore/overview.html
>
> >> > > You have to associate the blob with some other fields (name, size,
> >> > > last_updated) in you pojo to reproduce what you expect from a file.
>
> >> > > N.B. if you need to emulate a directory tree, you also have to write
> >> > > it by yourself.
>
> >> > > Finally, I would recommend alternative Objectify rather than standard
> >> > > JDO for such services.
>
> >> > > Hope this helps
>
> >> > > regards
> >> > > didier
>
> >> > > On Nov 29, 5:53 pm, pac  wrote:
>
> >> > > > In a website I need to provide a feature to get data in xml format
> >> > > > i.e. some url
>
> >> > > > e.g.http://www.mysite.com../data.xml
>
> >> > > > I think in gae I can not create a file. Any suggestions to create
> >> such
> >> > > > feature to get data from data store in this way?
>
> >> > > > Data store will have large number of records, so in general, a file
> >> > > > created from that could be of good few MBs.
>
> >> --
> >> 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

[appengine-java] Re: data in xml format from data store

2010-11-30 Thread pac
It will help if somebody from GAE team could shed some light on this
and comment on Stephen’s response/questions.

On Nov 29, 6:13 pm, Stephen Johnson  wrote:
> I believe the 30 second limit is imposed on the time it takes for your
> servlet to finish. Thus, if your servlet finished generating and returning
> the file to the AppEngine infrastructure in 29 seconds, then I think you
> will be safe even though it might take another minute or two for Google's
> infrastructure to stream it to the client. I have not tested this though.
> Can anyone confirm or deny this assumption on my part.
>
> On Mon, Nov 29, 2010 at 10:57 AM, pac  wrote:
> > Sorry, did not see your post earlier Stephen.
>
> > I was not aware of this 10 minute feature to create a file, I will
> > look into.
>
> > File size will be greater then 10MB, it is an existing website which I
> > am thinking to port to gae, file size already gets around 12MB or so.
>
> > So I guess more than 10MB download will be an issue and I guess
> > download should also complete in 30 second, is that so?
>
> > On Nov 29, 5:37 pm, pac  wrote:
> > > A client will download a xml file instead of uploading.
> > > Records will be created (or updated, deleted) in a table/kind over
> > > time and all records from a kind need to be downloaded in form of a
> > > xml file, I hope I am explaining the issue bit more clearly.
>
> > > I am not sure if I could make use of blobstore in this case as it will
> > > require update of blobstore object (in background may be using task)
> > > every time a record gets added/updated/deleted i.e. if I create xml
> > > file programmaticaly and store as blobstore object.
>
> > > On Nov 29, 5:14 pm, Didier Durand  wrote:
>
> > > > Hi,
>
> > > > To emulate files, you have to use the Blob object in the datastore to
> > > > store such xml content: see com.google.appengine.api.datastore.Blob
> > inhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> > > > Blob has a limited max size: 1 Mbyte. So, you can use a collection
> > > > (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> > > > If your files get uploaded by a client, you can use the Blobstore
> > > > where the max size is much bigger(2 Gbytes): seehttp://
> > code.google.com/appengine/docs/java/blobstore/overview.html
>
> > > > You have to associate the blob with some other fields (name, size,
> > > > last_updated) in you pojo to reproduce what you expect from a file.
>
> > > > N.B. if you need to emulate a directory tree, you also have to write
> > > > it by yourself.
>
> > > > Finally, I would recommend alternative Objectify rather than standard
> > > > JDO for such services.
>
> > > > Hope this helps
>
> > > > regards
> > > > didier
>
> > > > On Nov 29, 5:53 pm, pac  wrote:
>
> > > > > In a website I need to provide a feature to get data in xml format
> > > > > i.e. some url
>
> > > > > e.g.http://www.mysite.com../data.xml
>
> > > > > I think in gae I can not create a file. Any suggestions to create
> > such
> > > > > feature to get data from data store in this way?
>
> > > > > Data store will have large number of records, so in general, a file
> > > > > created from that could be of good few MBs.
>
> > --
> > 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: data in xml format from data store

2010-11-29 Thread pac
Sorry, did not see your post earlier Stephen.

I was not aware of this 10 minute feature to create a file, I will
look into.

File size will be greater then 10MB, it is an existing website which I
am thinking to port to gae, file size already gets around 12MB or so.

So I guess more than 10MB download will be an issue and I guess
download should also complete in 30 second, is that so?

On Nov 29, 5:37 pm, pac  wrote:
> A client will download a xml file instead of uploading.
> Records will be created (or updated, deleted) in a table/kind over
> time and all records from a kind need to be downloaded in form of a
> xml file, I hope I am explaining the issue bit more clearly.
>
> I am not sure if I could make use of blobstore in this case as it will
> require update of blobstore object (in background may be using task)
> every time a record gets added/updated/deleted i.e. if I create xml
> file programmaticaly and store as blobstore object.
>
> On Nov 29, 5:14 pm, Didier Durand  wrote:
>
> > Hi,
>
> > To emulate files, you have to use the Blob object in the datastore to
> > store such xml content: see com.google.appengine.api.datastore.Blob 
> > inhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> > Blob has a limited max size: 1 Mbyte. So, you can use a collection
> > (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> > If your files get uploaded by a client, you can use the Blobstore
> > where the max size is much bigger(2 Gbytes): 
> > seehttp://code.google.com/appengine/docs/java/blobstore/overview.html
>
> > You have to associate the blob with some other fields (name, size,
> > last_updated) in you pojo to reproduce what you expect from a file.
>
> > N.B. if you need to emulate a directory tree, you also have to write
> > it by yourself.
>
> > Finally, I would recommend alternative Objectify rather than standard
> > JDO for such services.
>
> > Hope this helps
>
> > regards
> > didier
>
> > On Nov 29, 5:53 pm, pac  wrote:
>
> > > In a website I need to provide a feature to get data in xml format
> > > i.e. some url
>
> > > e.g.http://www.mysite.com../data.xml
>
> > > I think in gae I can not create a file. Any suggestions to create such
> > > feature to get data from data store in this way?
>
> > > Data store will have large number of records, so in general, a file
> > > created from that could be of good few MBs.

-- 
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: data in xml format from data store

2010-11-29 Thread pac
A client will download a xml file instead of uploading.
Records will be created (or updated, deleted) in a table/kind over
time and all records from a kind need to be downloaded in form of a
xml file, I hope I am explaining the issue bit more clearly.

I am not sure if I could make use of blobstore in this case as it will
require update of blobstore object (in background may be using task)
every time a record gets added/updated/deleted i.e. if I create xml
file programmaticaly and store as blobstore object.


On Nov 29, 5:14 pm, Didier Durand  wrote:
> Hi,
>
> To emulate files, you have to use the Blob object in the datastore to
> store such xml content: see com.google.appengine.api.datastore.Blob 
> inhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html...
>
> Blob has a limited max size: 1 Mbyte. So, you can use a collection
> (Vector, List, etc..)  of Blobs if you need more than 1 Mbytes.
>
> If your files get uploaded by a client, you can use the Blobstore
> where the max size is much bigger(2 Gbytes): 
> seehttp://code.google.com/appengine/docs/java/blobstore/overview.html
>
> You have to associate the blob with some other fields (name, size,
> last_updated) in you pojo to reproduce what you expect from a file.
>
> N.B. if you need to emulate a directory tree, you also have to write
> it by yourself.
>
> Finally, I would recommend alternative Objectify rather than standard
> JDO for such services.
>
> Hope this helps
>
> regards
> didier
>
> On Nov 29, 5:53 pm, pac  wrote:
>
> > In a website I need to provide a feature to get data in xml format
> > i.e. some url
>
> > e.g.http://www.mysite.com../data.xml
>
> > I think in gae I can not create a file. Any suggestions to create such
> > feature to get data from data store in this way?
>
> > Data store will have large number of records, so in general, a file
> > created from that could be of good few MBs.

-- 
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] data in xml format from data store

2010-11-29 Thread pac
In a website I need to provide a feature to get data in xml format
i.e. some url

e.g.
http://www.mysite.com../data.xml

I think in gae I can not create a file. Any suggestions to create such
feature to get data from data store in this way?

Data store will have large number of records, so in general, a file
created from that could be of good few MBs.

-- 
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: naked domain

2010-11-23 Thread pac
I have used namecheap.com

On Nov 24, 4:30 am, pman  wrote:
> found bad review on 1and1.com @http://www.webhostingjury.com/reviews/1and1
>
> On Nov 24, 3:14 am, Jorge Neyra  wrote:
>
> > I have done it with godaddy.com and 1and1.com
>
> > On Tue, Nov 23, 2010 at 2:04 PM, pman  wrote:
> > > which domain name registrar allows naked domain forward to
> > > www,mydomain.com (using google appengine)?
>
> > > i.e. mydomain.com -- forward to -->  www,mydomain.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.

-- 
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: blobstore - map returned empty

2010-10-31 Thread pac
I have gone through your sample code few times, could not find what I
am missing.
What I tried now - is created a dialog with simple file upload field
(rest functionality nearly copy pasted), now that seems to be working.
May be I will come back to other code and see what causing it.
Though another thing which I came across is that some time
ImageService ( String imageURL =
imagesService.getServingUrl(blobKey); ) returns serving url with ip
address i.e. instead
/_ah/img/iS_QaJQHwq-tmmA4_5i6kw

it returns

http://0.0.0.0:/_ah/img/iS_QaJQHwq-tmmA4_5i6kw

In such case image does not get display as incorrect local ip address
i.e. http://127.0.0.1:

On Oct 28, 1:19 am, "Ikai Lan (Google)" 
wrote:
> That looks right to me. Strange ... can you compare your code against this
> project? It's some sample code I whipped up a while ago. Here's the GWT
> upload widget:
>
> http://github.com/ikai/gwt-gae-image-gallery/blob/master/src/com/ikai...
>
> Here's the servlet that handles uploads:
>
> http://github.com/ikai/gwt-gae-image-gallery/blob/master/src/com/ikai...
>
> I've seen this happen before when the name isn't set correctly. Can you look
> into the generated source using a tool like Firebug to see if the form is
> being generated correctly?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Wed, Oct 27, 2010 at 3:51 PM, pac  wrote:
> > Hi Ikai,
>
> > Upload page is a composite, in which I have a decorator panel which
> > contains another composite which has FormPanel (Upload field)
>
> > As for servlet code:
>
> >        public void doPost(HttpServletRequest req, HttpServletResponse res)
> >                        throws ServletException, IOException
> >        {
> >                String userIdStr =
> > req.getParameter(IAppConstants.PARAM_UserId);
>
> >                Map blobs =
> > blobstoreService.getUploadedBlobs(req);
>
> >                 BlobKey blobKey = blobs.get(IAppConstants.PARAM_MyFile);
> >                .
> >                .
> >                .
>
> > blobs returned  is empty and so blobKey is null.
>
> > IAppConstants.PARAM_MyFile is name of upload field at client side
> > i.e.
>
> > uploadField.setName(IAppConstants.PARAM_MyFile);
>
> > In servlet if I do
>
> >                String myFile =
> > req.getParameter(IAppConstants.PARAM_MyFile);
> > then myFile is also null.
>
> > Upload form at client does have
>
> >  uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
> >                                uploadForm.setMethod(FormPanel.METHOD_POST);
>
> > Any suggestions?
> > Thanks.
>
> > On Oct 27, 7:28 pm, "Ikai Lan (Google)" 
> > 
>
> > wrote:
> > > What does your upload page look like? Can you post the full servlet?
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blogger:http://googleappengine.blogspot.com
> > > Reddit:http://www.reddit.com/r/appengine
> > > Twitter:http://twitter.com/app_engine
>
> > > On Tue, Oct 26, 2010 at 4:12 PM, pac  wrote:
> > > > I am trying to use  BlobstoreService locally.
> > > > But map is returned empty by following line in servlet:
> > > > Map blobs = blobstoreService.getUploadedBlobs(req);
>
> > > > I was following post from  http://ikaisays.com/(also using gwt as
> > > > front end)  but I guess I might have missed something, any thoughts?
> > > > 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: blobstore - map returned empty

2010-10-27 Thread pac
Hi Ikai,

Upload page is a composite, in which I have a decorator panel which
contains another composite which has FormPanel (Upload field)

As for servlet code:


public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
String userIdStr = req.getParameter(IAppConstants.PARAM_UserId);

Map blobs = 
blobstoreService.getUploadedBlobs(req);

BlobKey blobKey = blobs.get(IAppConstants.PARAM_MyFile);
.
.
.

blobs returned  is empty and so blobKey is null.

IAppConstants.PARAM_MyFile is name of upload field at client side
i.e.

uploadField.setName(IAppConstants.PARAM_MyFile);

In servlet if I do

String myFile = req.getParameter(IAppConstants.PARAM_MyFile);
then myFile is also null.

Upload form at client does have

uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
uploadForm.setMethod(FormPanel.METHOD_POST);

Any suggestions?
Thanks.

On Oct 27, 7:28 pm, "Ikai Lan (Google)" 
wrote:
> What does your upload page look like? Can you post the full servlet?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
> On Tue, Oct 26, 2010 at 4:12 PM, pac  wrote:
> > I am trying to use  BlobstoreService locally.
> > But map is returned empty by following line in servlet:
> > Map blobs = blobstoreService.getUploadedBlobs(req);
>
> > I was following post from  http://ikaisays.com/ (also using gwt as
> > front end)  but I guess I might have missed something, any thoughts?
> > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] blobstore - map returned empty

2010-10-26 Thread pac
I am trying to use  BlobstoreService locally.
But map is returned empty by following line in servlet:
Map blobs = blobstoreService.getUploadedBlobs(req);

I was following post from  http://ikaisays.com/  (also using gwt as
front end)  but I guess I might have missed something, any thoughts?
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] my first application with app engine

2010-08-24 Thread pac
Finally I was able to make one basic application with app engine i.e.
http://www.LinesofLife.com
Initially, I was thinking to use JDO but after finding all the posts
about slow start up, I decided to use Objectify and it is great.
Thanks to app engine team for such great platform, though I missed few
things especially search capability and limitation of querying on list
property due to index limitation, but still it is great and hopefully
in near future they will be implemented.
Thanks to all those people who take time to respond to questions in
forum and especially to Objectify’s Jeff who replied to all my silly
questions.

-- 
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] number of properties in a composite index

2010-07-22 Thread pac
I think there is limit of 100/200 composite indexes.

But is there a limit on number of properties in a composite index ?
e.g. I have 4 in following example








-- 
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: next gen queries

2010-07-22 Thread pac
Thanks for getting back Ikai.

On Jul 22, 2:09 am, "Ikai L (Google)"  wrote:
> We don't have an ETA yet. We'll announce it when it's ready.
>
>
>
> On Mon, Jul 19, 2010 at 11:08 AM, pac  wrote:
> > In Alfred Fuller's presentation (http://www.youtube.com/watch?
> > v=ofhEyDBpngM&feature=channel), he mentioned that limit of 5000 list
> > items and need for number of composite indexes for list (i.e. 2 value
> > search from list, 3 value search from list etc) will be removed. As
> > per video, I think he mentioned that functionality is nearly in place.
>
> > At this stage, is it possible to give an approx idea when can we
> > expect this one out?
>
> > --
> > 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.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blog:http://googleappengine.blogspot.com
> Twitter:http://twitter.com/app_engine
> Reddit:http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] next gen queries

2010-07-19 Thread pac
In Alfred Fuller's presentation (http://www.youtube.com/watch?
v=ofhEyDBpngM&feature=channel), he mentioned that limit of 5000 list
items and need for number of composite indexes for list (i.e. 2 value
search from list, 3 value search from list etc) will be removed. As
per video, I think he mentioned that functionality is nearly in place.

At this stage, is it possible to give an approx idea when can we
expect this one out?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: how should I design my data model for following scenario

2010-07-12 Thread pac
Another way I can think of divide the kind and do some form of keys
only query on ItemIndex and transform them to parent keys (http://
www.youtube.com/watch?v=AgaL6NGpkB8) and then filter in memory as per
invoiceDate? But this way I may end fetching lots of invoices which do
not meet criteria, any  suggestions?

class Invoice
{
@Id Long id;
Date invoiceDate;
Long invoiceNo;
}

class ItemIndex
{
@Id Long id;
@Parent Key invoice;
List items;
}

On Jul 12, 7:21 am, Parvez  wrote:
> Thanks Robert.
> I don’t think that will solve it.
> I think text search could have solved it easily, which is not in at
> the moment, unfortunately.
>
> If I design it something like this (Item as concatenated strings of
> items separated by a space):
>
> InvoiceNo          Item                         InvoiceDate
>
> 10                      item_a
> 11                      item_a item_b item_z
> 12                      item_a item_c item_x
> 13              item_a item_x
>
> I am not sure how text search will work or going to look like when in,
> but just say may be something like this
>
> SELECT * FROM  Invoice WHERE item CONTAINS(“item_a”, “item_b”) AND
> InvoiceDate >= someDate AND  InvoiceDate < someOtherDate
>
> I implemented search as suggested in various posts/blog, but that is
> not working as I have a range scan as well and due to that GAE always
> put range scan in the end and that result in lots of indexes.
>
> e.g.
> If I have one item to search in invoice then it will need following
> index (even in query if I put date filter first, then still it will
> put date scan in end, as range is last, otherwise I could get away
> with one large index)
>
>     
>         
>         
>     
>
> If I have 2 items to search then it needs
>
>     
>         
>        
>         
>     
>
> and so on.
>
> Any thoughts/suggestions?
>
> On Jul 11, 1:55 pm, Robert Lancer  wrote:
>
> > I dont fully understand the problem, but you might want to look into
> > using the IN filter option that can take a list of items and return
> > the associated entities, if the list is small enough you can cook up
> > the set operations in memory.
>
> > On Jul 11, 6:58 am, Parvez  wrote:
>
> > > I want retrieve invoice numbers depending upon items e.g.
>
> > > InvoiceNo        Item          InvoiceDate
>
> > > 10      item_a
> > > 11      item_a
> > > 11      item_b
> > > 11      item_z
> > > 12      item_a
> > > 12      item_c
> > > 12      item_x
> > > 13      item_a
> > > 13      item_x
>
> > > User can search on item(s) and can also include period (invoice date)
> > > as part of search.
> > > Initially, I tried using list property for Item, it worked but then it
> > > failed once more than 6, 7 items included in query along with date
> > > i.e. "Too many indexed properties for entity.." [:-) then I found out
> > > that I can not delete index in java, using java sdk 1.3.5, it works
> > > locally, but does not work when application uploaded]
>
> > > In above example if user query for "item_a" and  "item_b" then I
> > > should only get invoice number 11.
> > > Any suggestion how can I achieve 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.