[appengine-java] Web API Development & Hosting

2009-12-17 Thread Prashant Gupta
Hi, I was thinking of developing a web api which will allow web apps to read or put some data from/to my app. I am not sure what I exactly want to do because I am not sure how a web API is developed & what are the limitations, is it same as we write an app? ok, that was a stupid question. I tried

[appengine-java] handling "com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large."

2010-01-07 Thread Prashant Gupta
hi, "com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large." was thrown while saving an entity to datastore. I want to handle this exception but I am not getting which exception to catch. Please help me out... Thanks -- You receive

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
2010/1/8 nicanor.babula > Hi everyone. > > How memcache works on GAE? Let me explain: > Do I get one memcache instance per app instance or there is one > memcache instance for all instastances of my app? > one instance for all app instances. > My app uses google accounts to handle users. I am th

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
2010/1/8 Nicanor Cristian > On 01/08/2010 10:58 AM, Prashant Gupta wrote: > > > > 2010/1/8 nicanor.babula > >> Hi everyone. >> >> How memcache works on GAE? Let me explain: >> Do I get one memcache instance per app instance or there is one >>

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
aMillis) { Property property = new Property(key, value, expirationDeltaMillis); *pmf*.makePersistent(property); *cache*.put(property.Key, property); } } 2010/1/8 Prashant Gupta > > > 2010/1/8 Nicanor Cristian > >> On 01/08/2010 10:58 AM, Prashant Gupta wrote: >> >>

[appengine-java] how to get session id under a Class which doesn't extend HttpServlet?

2010-01-08 Thread Prashant Gupta
Hi, I am trying to implement my own user management system, for that I need some way to make session id available to all classes independent of whether it extends HttpServlet or not. I know there is some way to do that but I am not able to find it. Any kind of help would be appreciated. Thanks. -

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-09 Thread Prashant Gupta
I tried following code, getting null all the time. public static HttpSession getSession(){ return new ThreadLocal().get().getSession(); } 2010/1/9 Elias MÃ¥rtenson > On 9 Jan, 01:27, Prashant Gupta wrote: > > > I am trying to implement my own user management system, for that I

Re: [appengine-java] handling "com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large."

2010-01-09 Thread Prashant Gupta
toreService.html#put(com.google.appengine.api.datastore.Entity) > > Vince > > > On Thu, Jan 7, 2010 at 11:25 PM, Prashant Gupta wrote: > >> hi, >> >> "com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request >> to API call datastore_v3.Put() was too large."

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-10 Thread Prashant Gupta
I googled some keywords picked up from your reply and found some useful stuff and I think it will workout for me. Thanks a lot... 2010/1/10 Elias MÃ¥rtenson > On 9 Jan, 16:53, Prashant Gupta wrote: > > I tried following code, getting null all the time. > > > > publ

[appengine-java] org.datanucleus.exceptions.NucleusUserException: Object of type "xxx" and identity "yyy" was not detached correctly.

2010-01-10 Thread Prashant Gupta
Hi, I am getting this exception while trying to detach an entity of type xxx having a list of PersistentCapable entity of type zzz as its child. In short, I am getting this exception while detaching parent entity of a one to many owned relationship. Please help me to find out what to do to make it

[appengine-java] why memcache doesn't saves @NonPersistent child object of a detached parent?

2010-01-11 Thread Prashant Gupta
Hi, I found a weird behaviour (testing in dev mode). Suppose I have an entity with a NonPersistent child, say *child*. I want to cache parent to memcache for fast access also I want child to be cached with parent. Since *child* is NonPersistent, so, after fetching (and detaching) parent from datas

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-12 Thread Prashant Gupta
> String userName = user.getUserName(); > > // query the database based on user information > > } > > } > > On Jan 9, 3:53 am, Prashant Gupta wrote: > > I tried following code, getting null all the time. > > > > public static Http

[appengine-java] Doubt with detachability...

2010-01-12 Thread Prashant Gupta
Hi, Here is my doubt... Suppose I created a new Entity : Entity ety = new Entity(); Created a new persistent manager and made it persistent : pm.makePersisent(ety); Detached it and cached to memcache : cache.put("myentity", pm.detachCopy(ety)); pm.close(); now, in the same request or subsequent

Re: [appengine-java] org.datanucleus.exceptions.NucleusUserException: Object of type "xxx" and identity "yyy" was not detached correctly.

2010-01-12 Thread Prashant Gupta
- Jason > > On Sun, Jan 10, 2010 at 4:34 AM, Prashant Gupta wrote: > >> Hi, >> >> I am getting this exception while trying to detach an entity of type xxx >> having a list of PersistentCapable entity of type zzz as its child. In >> short, I am getting t

Re: [appengine-java] Doubt with detachability...

2010-01-13 Thread Prashant Gupta
any errors? I was under the > impression that passing an entity into makePersistent re-attaches the > entity, but it's also possible that you don't need to explicitly detach it > more than once. > > - Jason > > On Tue, Jan 12, 2010 at 7:15 AM, Prashant Gupta wrote: >

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-14 Thread Prashant Gupta
anyone??? 2010/1/12 Prashant Gupta > Hi, > > Thanks guys for looking into this. > > All requests to my app pass through a single servlet, say *Main*. So, I > thought I need not to add additional filter and I used a ThreadLocal > variable to store session id : > > publ

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-14 Thread Prashant Gupta
alue of your ThreadLocal to null, prefferably in a > finally block. > > > 2010/1/14 Prashant Gupta > >> anyone??? >> >> 2010/1/12 Prashant Gupta >> >> Hi, >>> >>> Thanks guys for looking into this. >>> >>> All requ

Re: [appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-15 Thread Prashant Gupta
I tried adding a filter, after that my app stopped working, displaying nothing. Someone please help me out to set up a filter to get session id and keep other things working. Thanks. 2010/1/14 Prashant Gupta > ok, thanks a lot. > > > > 2010/1/14 Stephan Hartmann > >

[appengine-java] AppEngine returns SUCCESS status even if it fails to process Chat Msg

2010-01-17 Thread Prashant Gupta
Hi, I have noticed that sometimes AppEngine fails to process some Chat Msgs (requests), especially when it receives a (Chat Msg) request after a long gap (5 min in my case) or when request rate is high, showing following error in logs and returns status SUCCESS. W01-17 03:19AM 26.384 Request was

[appengine-java] Re: AppEngine returns SUCCESS status even if it fails to process Chat Msg

2010-01-18 Thread Prashant Gupta
anyone? 2010/1/17 Prashant Gupta > Hi, > > I have noticed that sometimes AppEngine fails to process some Chat Msgs > (requests), especially when it receives a (Chat Msg) request after a long > gap (5 min in my case) or when request rate is high, showing following error > i

[appengine-java] wildcard *srt support?

2010-02-20 Thread Prashant Gupta
*.gwtrpc doesn't seem to match any url. Is it not supported in appengine/jetty ? -- 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

Re: [appengine-java] Re: wildcard *srt support?

2010-02-21 Thread Prashant Gupta
gt; > > Vaclav > > > On Feb 21, 7:59 am, Prashant Gupta wrote: > > *.gwtrpc doesn't seem to match any url. Is it > > not supported in appengine/jetty ? > > -- > You received this message because you are subscribed to the Google Groups > "Goog

[appengine-java] serialization doubt...

2010-02-26 Thread Prashant Gupta
Hi, I know some cases where serialization is required, one is MemCache. Let, I cache some object in Memcache and later do some changes in class, the cached object will fail to typecast to its (updated) class type. Now suppose I have set serialVersionUID in my serialized class, will it still fail t

[appengine-java] searchable datastore

2010-03-05 Thread Prashant Gupta
Hi, I want to make my app's data searchable. is there any library or tool available which can make my task easier? 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...

[appengine-java] Re: serialization doubt...

2010-03-10 Thread Prashant Gupta
anyone...? -- 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.c

[appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
Hi, I have designed my app to keep data (within servlet env.) for all previous requests. For each request it will first search the data in "servlet env. store", if it doesn't find the data here it will fetch data from datastore and append the same to "servlet env. store". So, if the same servlet l

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
yes, you are right. But, in my case, suppose each request requires 100 entities to be fetched and for any two requests say 90-95 entities are common. So, if I use only memcache for caching, 100 memcache fetch will be required per request. Or, if I keep the data in servlet env. for each req., 10-0

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
Thanks Don for clarification. 100MB seems sufficient for me. Please suggest me a library for LRU caching implementation. -- 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...@go

[appengine-java] why persistent manager removes non-persistent values after detaching a PersistentCapable entity ?

2010-03-24 Thread Prashant Gupta
Here is my test case and with output : @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { PrintWriter out = resp.getWriter(); out.println("debug here..." + new Date()); Te

[appengine-java] Re: why persistent manager removes non-persistent values after detaching a PersistentCapable entity ?

2010-03-24 Thread Prashant Gupta
I tried same test case with a boolean value @NotPersistent private Boolean bool = true; and the value (bool) is not changing to null after detaching the entity. why there is difference in behavior? Is detaching an entity is necessary? What are the losses if I cache an entity witho

[appengine-java] Re: why persistent manager removes non-persistent values after detaching a PersistentCapable entity ?

2010-03-24 Thread Prashant Gupta
anyone ? -- 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

[appengine-java] java.lang.ClassNotFoundException: com.google.appengine.tools.appstats.AppstatsFilter

2010-04-01 Thread Prashant Gupta
1. Hi, I am getting following error while trying to setup Appstatsfor my app. Please help me to find out where I am wrong. I am using SDK v1.3.2. 04-01 12:40AM 46.303 EXCEPTION java.lang.ClassNotFoundException:

[appengine-java] Re: java.lang.ClassNotFoundException: com.google.appengine.tools.appstats.AppstatsFilter

2010-04-01 Thread Prashant Gupta
someone please help me out following is the code I added to my web.xml file : appstats com.google.appengine.tools.appstats.AppstatsFilter logMessage Appstats available: /appstats/details?time={ID} appstats /*

Re: [appengine-java] Re: java.lang.ClassNotFoundException: com.google.appengine.tools.appstats.AppstatsFilter

2010-04-02 Thread Prashant Gupta
Thanks a lot, it worked. I guess there was some problem with Google Plugin, it didn't replace the jars when I updated my sdk version. -- 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-appe

[appengine-java] logging using System.err & System.err

2010-06-05 Thread Prashant Gupta
Hi, Docs say "Everything the servlet writes to the standard output stream ( System.out) and standard error stream (System.err) is captured by App Engine and recorded in the application logs. Lines written to the standard output stream are logged at the "INFO" level, and lines written to the standa

Re: [appengine-java] logging using System.err & System.err

2010-06-06 Thread Prashant Gupta
i am using default template which comes with eclipse plugin: // file : appengine-web.xml // file : logging.properties .level = WARNING -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send ema

Re: [appengine-java] logging using System.err & System.err

2010-06-06 Thread Prashant Gupta
gt; > On 6 Jun 2010, at 19:06, Prashant Gupta wrote: > > i am using default template which comes with eclipse plugin: >> >> // file : appengine-web.xml >> >> >>> value="WEB-INF/logging.properties"/> >> >> >> >>

Re: [appengine-java] Re: logging using System.err & System.err

2010-06-06 Thread Prashant Gupta
Thanks John :-) -- 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...@googlegro