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

2010-06-06 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 standard

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

2010-06-06 Thread Prashant Gupta
On 6 Jun 2010, at 19:06, Prashant Gupta wrote: i am using default template which comes with eclipse plugin: // file : appengine-web.xml !-- Configure java.util.logging -- system-properties property name=java.util.logging.config.file value=WEB-INF/logging.properties/ /system-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

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

[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 Appstatshttp://code.google.com/appengine/docs/java/tools/appstats.htmlfor 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 : filter filter-nameappstats/filter-name filter- classcom.google.appengine.tools.appstats.AppstatsFilter/filter- class init-param param-namelogMessage/param-name

[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());

[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

[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] 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

[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

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

[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

[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

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

2010-02-21 Thread Prashant Gupta
-files include path=**.gwt.rpc / /resource-files Vaclav On Feb 21, 7:59 am, Prashant Gupta nextprash...@gmail.com wrote: url-pattern*.gwtrpc/url-pattern doesn't seem to match any url. Is it not supported in appengine/jetty ? -- You received this message because you are subscribed

[appengine-java] wildcard *srt support?

2010-02-20 Thread Prashant Gupta
url-pattern*.gwtrpc/url-pattern 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

[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 nextprash...@gmail.com 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

[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

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 nextprash...@gmail.com 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 : public static

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

2010-01-14 Thread Prashant Gupta
the value of your ThreadLocal to null, prefferably in a finally block. 2010/1/14 Prashant Gupta nextprash...@gmail.com anyone??? 2010/1/12 Prashant Gupta nextprash...@gmail.com Hi, Thanks guys for looking into this. All requests to my app pass through a single servlet, say *Main*. So, I

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

2010-01-13 Thread Prashant Gupta
without 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 nextprash...@gmail.comwrote: Hi, Here

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

2010-01-12 Thread Prashant Gupta
(); // query the database based on user information } } On Jan 9, 3:53 am, Prashant Gupta nextprash...@gmail.com wrote: I tried following code, getting null all the time. public static HttpSession getSession(){ return new ThreadLocalHttpServletRequest().get().getSession

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

2010-01-12 Thread Prashant Gupta
:34 AM, Prashant Gupta nextprash...@gmail.comwrote: 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

[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

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 loke...@gmail.com On 9 Jan, 16:53, Prashant Gupta nextprash...@gmail.com wrote: I tried following code, getting null all the time

[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

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 ThreadLocalHttpServletRequest().get().getSession(); } 2010/1/9 Elias MÃ¥rtenson loke...@gmail.com On 9 Jan, 01:27, Prashant Gupta nextprash...@gmail.com wrote: I am trying to implement my

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
(com.google.appengine.api.datastore.Entity) Vince On Thu, Jan 7, 2010 at 11:25 PM, Prashant Gupta nextprash...@gmail.comwrote: 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

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

2010-01-08 Thread Prashant Gupta
2010/1/8 nicanor.babula nicanor.bab...@gmail.com 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

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

2010-01-08 Thread Prashant Gupta
2010/1/8 Nicanor Cristian nicanor.bab...@gmail.com On 01/08/2010 10:58 AM, Prashant Gupta wrote: 2010/1/8 nicanor.babula nicanor.bab...@gmail.com 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

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

2010-01-08 Thread Prashant Gupta
, value, expirationDeltaMillis); *pmf*.makePersistent(property); *cache*.put(property.Key, property); } } 2010/1/8 Prashant Gupta nextprash...@gmail.com 2010/1/8 Nicanor Cristian nicanor.bab...@gmail.com On 01/08/2010 10:58 AM, Prashant Gupta wrote: 2010/1/8 nicanor.babula nicanor.bab

[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.

[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 received

[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