Re: [google-appengine] Re: Payment gateway

2011-06-21 Thread Ricky Button
When a customer pays for something through spreedly, the service POSTs to a 
url that you specify with the changed customer's ids in the body of the 
request. Then you can fetch the new data using those ids, instead of having 
to poll a service.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/75-PCfDo1uAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Payment gateway

2011-06-20 Thread Ricky Button
I am using Spreedly  to handle payments. I use it for 
subscriptions, but I'm pretty sure it can handle more than that. It has a 
wonderful REST api and even provides a nice POST callback with customer ids 
when a sale is made so you dont have to poll the server for the invoice.

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
I have taken a look at that post,and I'm not sure if the two issues are 
related, I don't catch any DeadlineExceededExceptions anywhere

If a Googler wants to take a look at my app, the id is "extemprep"

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button

   
   1. Sorry to have to keep bumping this but my app literally does not 
   function. Here is a stack trace from one of the 500 errors.
   2011-06-03 14:19:36.041
   
   Failed startup of context 
com.google.apphosting.utils.jetty.RuntimeAppEngineWebAppContext@1c958af{/,/base/data/home/apps/extemprep/4.350881581648851921}
   com.google.apphosting.api.DeadlineExceededException: This request 
(ea4addffdf95828c) started at 2011/06/03 21:17:54.818 UTC and was still 
executing at 2011/06/03 21:19:35.796 UTC.
at java.io.UnixFileSystem.getLastModifiedTime(Native Method)
at java.io.File.lastModified(File.java:902)
at java.util.zip.ZipFile.(ZipFile.java:143)
at java.util.jar.JarFile.(JarFile.java:150)
at java.util.jar.JarFile.(JarFile.java:87)
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:660)
at sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:555)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:622)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:614)
at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:598)
at sun.misc.URLClassPath$3.run(URLClassPath.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:337)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:314)
at sun.misc.URLClassPath.findResource(URLClassPath.java:161)
at java.net.URLClassLoader$2.run(URLClassLoader.java:379)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:376)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:699)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at org.mortbay.resource.Resource.newSystemResource(Resource.java:203)
at 
org.mortbay.jetty.webapp.WebXmlConfiguration.configureDefaults(WebXmlConfiguration.java:159)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1230)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:191)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:168)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:260)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$2.handleRequest(RuntimePb.java:9669)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:439)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:573)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
   
   2. C2011-06-03 14:19:36.048
   
   Uncaught exception from servlet
   javax.servlet.UnavailableException: Initialization failed.
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:200)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:168)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:260)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$2.handleRequest(RuntimePb.java:9669)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:439)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:573)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallb

[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
Also, none of these errors show up on the dev server. I am completely 
stumped, my app has been down for about 20 hours now and I have no idea why.

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
When I started to use the 1.4.3 libs it started working again for about an 
hour, but it has just stopped working again.

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
Well I seem to have just temporarily fixed the issue by downgrading to 
1.4.3. I don't know if that fixed it though. It still scared the crap out of 
us, and we would love a response from Google on this issue.

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
Also this essentially means my app has been down for 12 hours. Still 
throwing 500s on things like static content.

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



[google-appengine] Re: Lots of errors recently

2011-06-03 Thread Ricky Button
I'm using M/S but if it was a datastore outage, then they would probably tell 
us, plus it is happening on things that don't even come close to the datastore 
(favicon)

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



[google-appengine] Re: Lots of errors recently

2011-06-02 Thread Ricky Button
Also, getting 500 errors (deadline) on a missing favicon instead of a 404.

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



[google-appengine] Lots of errors recently

2011-06-02 Thread Ricky Button
As of a few hours ago, I've been getting quite a few 500 errors and deadline 
exceeded exceptions, but my code has not changed at all. When requests do 
actually go through, the response times are very high, (20-25 seconds) but 
the cpu ms used is very low, which leads me to believe that the problem is 
not on my end. Anyone else experiencing any problems?

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



[google-appengine] Re: Lot's of requests per user, aggressive caching or what?

2011-05-14 Thread Ricky Button

Thanks I'll check this out. Is there anything I can to do optimize
bandwidth used. Each of those 50,000 requests are completely different
entities and have different uris, (/api/articles/46452)

On May 13, 10:10 pm, Gopal Patel  wrote:
> you can use in-instance caching. It may not be always up to date but will
> give you extreme speeds.
>
> http://appengine-cookbook.appspot.com/recipe/decorator-to-getset-from...
>
> checkout fifth one.
>
>
>
> On Sat, May 14, 2011 at 4:37 AM, Ricky Button  wrote:
> > At a peak, a user of my application can make around 30,000 - 50,000
> > requests a day that returns some xml data. The xml data itself is
> > cached so the request is only doing two RPC calls (one for
> > authentication, one for the xml string). However, this seems to use a
> > lot of CPU time and outgoing bandwidth. I've tried using memcache for
> > the xml data but it turns out that it is usually a low hit ratio so it
> > is quite a bit slower. Is there any form of aggressive caching or
> > method I can use to limit the resources used over millions of requests
> > per day?
>
> > P.S. I have looked at this article
> >http://www.kyle-jensen.com/proxy-caching-on-google-appengine
> > and figured that it would not work well in my scenario because I want
> > to be able to authenticate on each request.
>
> > Thanks,
> > Ricky Button
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

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



[google-appengine] Lot's of requests per user, aggressive caching or what?

2011-05-13 Thread Ricky Button
At a peak, a user of my application can make around 30,000 - 50,000
requests a day that returns some xml data. The xml data itself is
cached so the request is only doing two RPC calls (one for
authentication, one for the xml string). However, this seems to use a
lot of CPU time and outgoing bandwidth. I've tried using memcache for
the xml data but it turns out that it is usually a low hit ratio so it
is quite a bit slower. Is there any form of aggressive caching or
method I can use to limit the resources used over millions of requests
per day?

P.S. I have looked at this article
http://www.kyle-jensen.com/proxy-caching-on-google-appengine
and figured that it would not work well in my scenario because I want
to be able to authenticate on each request.


Thanks,
Ricky Button

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



[google-appengine] Re: Autogenerated long ids and chronological order.

2011-05-03 Thread Ricky Button
Thanks for the info and the link. Pleased to see such a helpful group.

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



[google-appengine] Autogenerated long ids and chronological order.

2011-05-03 Thread Ricky Button
I have a question regarding auto-assigned ids for entities. Let's say
I have some set of entities that have the ids:

1
2
3
4
5

And I remove the 4th one:

1
2
3
5

If I add a new entity with an auto-generated ID, is it guaranteed that
the new ID will not be 4 and WILL be something greater than 5?

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