[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Vik
So, that concludes I may expect such request time outs in GAE any time without being able to fix it? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Fri, Sep 18, 2009 at 12:56 AM, Toby Reyelts wrote: > Yes, it's quite trivial for two different http requests to land

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Toby Reyelts
Yes, it's quite trivial for two different http requests to land on two different application instances. You can see if it's an initializing request for an application instance by logging from an appropriate servlet's init() method (for example, one that is in the path of the request or is registere

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Vik
Hie you guys put me in doubt then. I opened the browser and logged in to my app which created a request to pull authentication info. and once i logged in i queried a page and this was another request. In this process i got the two different UserClassLoader. So, does your statement holds good? Th

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Toby Reyelts
Just to clarify what Jason is saying, the fact that you're seeing two different UserClassLoader instances in those two requests: userclassloa...@1f7cdc7 and userclassloa...@1e6f0ef means that you're actually looking at two requests for two different isolated application instances, with each one u

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Jason (Google)
Hi Vik. At most a single UserClassLoader is loaded per application instance. Since you're seeing two output lines in your logs, these two requests must have hit separate running instances of your application. In your benchmarking, you need to account for this initialization, i.e. ignoring requests

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Vik
hie in two different requests. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Sep 17, 2009 at 8:16 PM, Don Schwarz wrote: > To be clear, you're getting these two log statements in the same request? > Or subsequent requests? > > > On Thu, Sep 17, 2009 at 1:48

[appengine-java] Re: issues with compass for GAE apps

2009-09-17 Thread Don Schwarz
To be clear, you're getting these two log statements in the same request? Or subsequent requests? On Thu, Sep 17, 2009 at 1:48 AM, Vik wrote: > hie > any updates on this please? > > yeah I did what you suggested by putting a log statement.. > > and what I get are two different values from this

[appengine-java] Re: issues with compass for GAE apps

2009-09-16 Thread Vik
hie any updates on this please? yeah I did what you suggested by putting a log statement.. and what I get are two different values from this block At first time of app startup vik.sakshum.sakshumweb.jsp.model.jdo.PMF : Loading PMF in com.google.apphosting.runtime.security.userclassloa...@1f7cdc7

[appengine-java] Re: issues with compass for GAE apps

2009-09-03 Thread Vik
Hie Thankx for taking time... I just adding the static block u mentioned in point 1 just after the static block i have (in the above mail) I am sorry I did not get your point 2. Right now what I do is: every time a request goes to a particular servlet depending upon application flow and i call P

[appengine-java] Re: issues with compass for GAE apps

2009-09-02 Thread Toby Reyelts
Thanks for the code. I have three suggestions (mostly from my previous post): 1) Are you maybe loading that singleton class in different classloaders? Try logging the classloader object reference that tries to create the PersistenceManagerFactory. You can add a static initializer ABOVE pmfInstance

[appengine-java] Re: issues with compass for GAE apps

2009-09-01 Thread Vik
Hie here is the code I am using: package vik.sakshum.sakshumweb.jsp.model.jdo; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; import org.compass.core.Compass; import org.compass.core.config.CompassConfiguration; import org.compass.core.config.CompassEnvironment; import or

[appengine-java] Re: issues with compass for GAE apps

2009-09-01 Thread Toby Reyelts
Vik, Do you have some sample code to reproduce this? By default, we throw an exception if you try to create more than one PersistenceManagerFactory. Are you using a singleton class to prevent more than one from being created? If so, are you maybe loading that singleton class in different classload

[appengine-java] Re: issues with compass for GAE apps

2009-09-01 Thread Vik
anyone any updates on this please? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Sun, Aug 30, 2009 at 8:51 PM, Vik wrote: > Hie > Any one using compass on his GAE app? > > I am frequently getting error cannot initialize PMF where there is static > code to initializ