[appengine-java] Re: ArrayIndexOutOfBoundsException: at org.datanucleus.plugin.ConfigurationElement.putAttribute(Configuratio nElement.java:104)

2009-09-11 Thread patrizio.munzi
Isn't this an important subject to address? Are all method calling the makePersistent method needed to be synchronized...?? Is this a bug..?? No one has any consideration??? Thanks On Sep 10, 10:35 am, "patrizio.munzi" wrote: > I did a few more investigation and It looks like a threads safety

[appengine-java] Re: Gzip encoding used by default ?

2009-09-11 Thread fvisticot
It was just to confirm and to know if it was possible to disable. For me it is OK. On 10 sep, 14:55, Peter Ondruska wrote: > GAE is using gzip encoding. Why would you want to disable? > > On Sep 10, 10:47 am, fvisticot wrote: > > > > > Can someone confirm that GAE is using gzip encoding by defa

[appengine-java] Re: selective deployment to GAE

2009-09-11 Thread Catherine
Hi Vik, You can try using a source control control. Some source control tools allow you to deploy a specific file instead of the whole solution. In your case, if you only want to deploy 3 modified files, you can just select these 3 files and deploy it. Catherine Sea http://www.dynamsoft.com/ ht

[appengine-java] Stored Date Usage

2009-09-11 Thread Don
Currently my Stored Data Usage seems to be increasing at a very fast pace. I have not added anything to the database, yet it is up to about 7%. I have purged all old data and try to clear my session (_ah_SESSION) every 5 minutes (using SessionCleanupServlet). But nothing changes. Does anybody

[appengine-java] Why is Stored Data Usage increasing even though no data was added?

2009-09-11 Thread Don
Do anybody know why is Stored Data Usage increasing even though no data was added? Google, can you look into my account to help me find out this is happening? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[appengine-java] Re: ArrayIndexOutOfBoundsException: at org.datanucleus.plugin.ConfigurationElement.putAttribute(Configuratio nElement.java:104)

2009-09-11 Thread wada3
It would be bug or limitation of development environment. I have not met them on real appengine environment because container looks like running on single thread model. Normally it would not need to be synchronized I think. On Sep 11, 4:41 pm, "patrizio.munzi" wrote: > Isn't this an important su

[appengine-java] Re: Unable to deploy with 1.2.5 SDK (.jsp' does not match expression '^(?!\^)/|\.|(\(.).*(?!\$).$')

2009-09-11 Thread Don
When you upgrade the SDK, make sure that the SDK under Google/App Engine in Preferences is also changed. If possible, remove the old SDK in Preferences. And check to make sure that you have the latest jar (1.2.5) in the lib folder. When you upgrade, it should already replace the old SDK jar to

[appengine-java] Re: ArrayIndexOutOfBoundsException: at org.datanucleus.plugin.ConfigurationElement.putAttribute(Configuratio nElement.java:104)

2009-09-11 Thread Patrizio Munzi
Mmm, I think there's need of datanucleus experts. Hope someone could clarify this subject wada3 wrote: It would be bug or limitation of development environment. I have not met them on real appengine environment because container looks like running on single thread model. Normally it would

[appengine-java] Re: appengine artifacts not updated

2009-09-11 Thread David Yu
Any googler out there care to shed some light? On Sep 10, 4:28 am, Marcel Overdijk wrote: > Link to issue:http://tinyurl.com/lnogw3 > > On Sep 9, 9:40 pm, Marcel Overdijk wrote: > > > I just don't understand it. I also like Google to place the artifacts. > > At least someone from Google should

[appengine-java] Re: Regarding JDOQL

2009-09-11 Thread Ian Marshall
Hello Anu, I am relatively new to Google AppEngine with Java (GAE/J). I use NetBeans as my IDE instead of your Eclipse, so please be aware of this difference between our IDEs! I updated my version of GAE/J to 1.2.5 a few days ago. These supply the .jar files that your development GAE server wil

[appengine-java] java.util.zip.ZipException: error in opening zip file

2009-09-11 Thread Max
I came from vacation and my project stopped to work. I have upgraded GAE to 1.2.5 and no difference same results. Other projects work. /home/max/workspace/WebProject01/war is regular folder with WEB-INF and other files (GWT:11965): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/ libqtcurve.so:

[appengine-java] Re: Regarding JDOQL

2009-09-11 Thread leszek
But what do you want to achieve ? If you use eclipse plugin then together with google app engine stuff comes also JDOQL (being precise the subset of JDOQL supported by google app engine) and it is at hand. No addition stuff is needed to be downloaded. --~--~-~--~~~---~

[appengine-java] Re: selective deployment to GAE

2009-09-11 Thread Vik
Hie I am already using SVN and having a online repository. The question is to have another branch do i have to create the repository at the same url or can i do that in my local machine? I want to keep my development branch the online one and the production branch the local one. Any suggestions or

[appengine-java] Re: java.util.zip.ZipException: error in opening zip file

2009-09-11 Thread Max
Similar exception when I deploy to app engine On Sep 11, 4:13 pm, Max wrote: > I came from vacation and my project stopped to work. > I have upgraded GAE to 1.2.5 and no difference same results. > Other projects work. > > /home/max/workspace/WebProject01/war is regular folder with WEB-INF > and

[appengine-java] Re: Is it possible to write a proxy using servlet in GAE?

2009-09-11 Thread flyerhzm
I have removed index.html and if I go to appid.appspot.com:80 directly in the browser, i can see the header information printed out. I think use can't set proxy with a request uri as /proxy. Richard On Sep 11, 5:38 am, "Jason (Google)" wrote: > What do you see when you go to appid.appspot.com:

[appengine-java] Re: where should I copy logging.properties for testing?

2009-09-11 Thread rick
Hi Alejandro, What entry do you have in your appengine-web.xml file ? look at http://code.google.com/appengine/docs/java/runtime.html#logging --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for

[appengine-java] Re: Unable to deploy with 1.2.5 SDK (.jsp' does not match expression '^(?!\^)/|\.|(\(.).*(?!\$).$')

2009-09-11 Thread fat bold cyclop
> When you upgrade the SDK, make sure that the SDK under Google/App > Engine in Preferences is also changed.  If possible, remove the old > SDK in Preferences.  And check to make sure that you have the latest > jar (1.2.5) in the lib folder.  When you upgrade, it should already > replace the old S

[appengine-java] Re: Why is Stored Data Usage increasing even though no data was added?

2009-09-11 Thread fat bold cyclop
> Do anybody know why is Stored Data Usage increasing even though no > data was added? When there is no data persisted by my appilcation, the only thing that makes my datastore grow is _ah_SESSION Entities (session data backed up by the database). Maybe it's the same thing in your case? Regards,

[appengine-java] Re: Bulk writes to datastore

2009-09-11 Thread Larry Cable
thanks Jason On Sep 10, 2:00 pm, "Jason (Google)" wrote: > All standalone entities are in their own entity group by default. To put an > entity in another entity, you use an owned relationship, and we have a > section in our docs for that: > > http://code.google.com/appengine/docs/java/datastore

[appengine-java] Re: Bulk writes to datastore

2009-09-11 Thread Larry Cable
I tried doing a "bulk" load with the JDO makePersistentAll(..) call yesterday ... by default what I did was created a List of size 2048, filled it to capacity and then called makePersistentAll() ... I got an IllegalArgumentException out of that call stating that you could only persist at most 500

[appengine-java] Re: where should I copy logging.properties for testing?

2009-09-11 Thread Alejandro D. Garin
Hi Rick, The problem is with my testcase, the logging is working fine running the jetty server. I don't want to have all the JDO INFO logs for my test. On Fri, Sep 11, 2009 at 12:03 PM, rick wrote: > > Hi  Alejandro, > What entry do you have in your  appengine-web.xml  file  ? > look at > http:

[appengine-java] Re: Entity ID and keyName identification scope

2009-09-11 Thread iker98
Thank you Max, I understand a bit more the numeric ID generator in datastore. Now I am aware that the numeric ID allocation for the entities belonging a kind isn't sorted or contiguous like I hope at first. On Sep 10, 8:10 pm, Max Ross wrote: > The URL I posted earlier in the thread explains i

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread Max Ross
Yes, please provide more information if you can. There was a bug fix in 1.2.5 that made queries respect fetch groups, but JPA doesn't have fetch groups so the error you're reporting suggests that something is wrong here. Can you boil it down to a small snippet that reproduces the problem? Thanks,

[appengine-java] Re: Error while Persisting Entities

2009-09-11 Thread Max Ross
Can you please post the entire stacktrace that you get in production? On Thu, Sep 10, 2009 at 9:48 AM, Vatts wrote: > > I do have an application which creates entities and save it in BULK. > I tested this locally and it is working fine. However it is failing > consistantly when deployed in Googl

[appengine-java] Re: How to make a query using low level API using the 'key' property?

2009-09-11 Thread Max Ross
Your use of key filters and sorts sounds appropriate. On Wed, Sep 9, 2009 at 12:22 AM, Corneliu Paul Lupulet < corneliu.lupu...@gmail.com> wrote: > Hello, > > Thank you for you answers. I would like to make a clarification, why i am > using the key "property" in a query. > > Using an order by key

[appengine-java] Re: GAE takes 28 sec to read just 200 records

2009-09-11 Thread Vik
hie any updates please on this Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Tue, Sep 8, 2009 at 7:33 PM, Vik wrote: > hie any updates on this please? > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > > On Sat, Sep 5, 2009 at

[appengine-java] Re: Query + Filter for Key as Encoded String

2009-09-11 Thread Max Ross
You can't filter by the name component of the key because the datastore doesn't support this. You can only filter by the entire key. Why can't you create the key by hand? KeyFactory.Builder should have everything you need to do this. 2009/9/6 Kriván Bálint > > Hi! > > I've the following Entit

[appengine-java] Re: java.util.zip.ZipException: error in opening zip file

2009-09-11 Thread Max
I have created a new project and copied classes and some other files and it works now. It is very odd that old project stopped to work without any reason. On Sep 11, 4:56 pm, Max wrote: > Similar exception when I deploy to app engine > > On Sep 11, 4:13 pm, Max wrote: > > > I came from vacatio

[appengine-java] JSTL and Expression Language how to

2009-09-11 Thread Guilherme Silveira
Hello guys, It seems that JSP Api+JSTL does not work out of the box at appengine as it says here http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine Is there any way to update the above link? Some posts on the list mention that EL was ignored by default (due to t

[appengine-java] Re: Session Example

2009-09-11 Thread Steve B.
I do not know if this is a bug or if it is already documented somewhere (I could not find this info when I searched): I just ran into a problem where session data worked fine in my local dev environment, but failed when I deployed to the App Engine. In the AppEngine logs I found a Runtime erro

[appengine-java] Re: Session destruction events, API availability therein

2009-09-11 Thread Jason (Google)
Hi Erum. Are you seeing this error in the development environment or in production? - Jason On Wed, Sep 9, 2009 at 5:43 PM, Erem wrote: > > Hey All, > > What is the best way to tie into session destruction events? > > I have implemented an HttpSessionListener and put it in my web.xml. > The Ses

[appengine-java] Accessing Memcache in more than one servlet

2009-09-11 Thread Jeff
Hello, I plan on using Google App Engine's Memcache service. I've read the online documentation and looked at a demo example. With both, the Memcache "Cache instance" is an instance variable within a servlet. If I use more than one servlet, but want to access the same cache, how is that done? Am

[appengine-java] Re: Data Store Intro Broken?

2009-09-11 Thread Jason (Google)
Hi James. If you right-click on your project and click Properties, do you see a valid SDK selected under Google -> App Engine? If so, can you list the JAR files under your war/WEB-INF/lib directory and provide any other relevant output? Is Eclipse having trouble resolving your imports (i.e. they're

[appengine-java] Re: Regarding reference guides for developing sample applications

2009-09-11 Thread Jason (Google)
All of our documentation is located at http://code.google.com/appengine/docs/. You can find a getting started guide for Java at http://code.google.com/appengine/docs/java/gettingstarted/ and more detailed information for each App Engine service in the links on the left. - Jason On Wed, Sep 9, 200

[appengine-java] Re: Problem saving an object using makePersistent

2009-09-11 Thread Jason (Google)
You shouldn't need the @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) line since you're using a key name and not a String-encoded ID. The only thing that looks suspicious is your pmf object. The best practice is to use a PersistenceManagerFactory singleton as documented at http://code.g

[appengine-java] Re: regording to change the port number

2009-09-11 Thread Jason (Google)
All App Engine documentation is at http://code.google.com/appengine/docs/, including a Getting Started Guide for Java at http://code.google.com/appengine/docs/java/gettingstarted/. - Jason On Thu, Sep 10, 2009 at 2:51 AM, anu nimmala wrote: > Hi sreeekanth, > > So nice of u. Thanks for your repl

[appengine-java] Re: Initializing Datastore

2009-09-11 Thread Jason (Google)
App Engine applications cannot share datastores. That means that you will not be able to connect directly to another application's datastore for querying, etc. To replicate this in App Engine, you'll have to set up a web service in front of your data, and pull this data over HTTP using App Engine's

[appengine-java] Re: Issue on using Spring MVC framework on GAE.

2009-09-11 Thread Jason (Google)
If you're subclassing SimpleFormController, you can also override the initBinder method in your custom classes directly. e.g.: @Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(String.class, new StringT

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread hansamann
Trying to give you more info on this. - the error appears sometimes, it causes groovytweets.org fail every other request or so - retweets is a Collection of Entity Retweet, part of the Tweet Entity - worked fine before 1.2.5 - I never detached anything... if I need to, can someone provide an exam

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread hansamann
I am not sure what you mean. I never detach anything explicitly, so I have no idea how to detach anything else. >javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "retweets" yet this field was not detached when you detached the object. Either dont access this fiel

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread datanucleus
> I am not sure what you mean. I never detach anything explicitly, so I > have no idea how to detach anything else. Yes you do ... in JPA at commit or at close of the EntityManager the contract is to detach all current entities, as per the JPA spec. As you identified later in your post. > >javax

[appengine-java] Re: where should I copy logging.properties for testing?

2009-09-11 Thread Rajeev Dayal
I talked to another developer about this, and this is what he mentioned: He may need to be setting the system property that points to the location of the logging.properties file in his test runner. The web server gets this property set in appengine-web.xml, but if he's outside of the server, he ma

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread Sven Haiges
Andy, first of all thx for the response. Things begin to make a little more sense. But still how do I solve my specific issue then. Is the solution to access the retweets field within the JPA callback in this case (as outside it counts as a 'commit' ?? This is the groovy / grails code used in t

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread Sven Haiges
Related: why are child objects not automatically detached if the parent is detached? Would that not not logical? Cheers Sven On Fri, Sep 11, 2009 at 12:51 PM, Sven Haiges wrote: > Andy, first of all thx for the response. Things begin to make a little > more sense. > > But still how do I solve m

[appengine-java] Re: where should I copy logging.properties for testing?

2009-09-11 Thread Alejandro D. Garin
Rajeev: adding the below argument to my ant junit task solves the problem. Thanks! On Fri, Sep 11, 2009 at 4:44 PM, Rajeev Dayal wrote: > I talked to another developer about this, and this is what he mentioned: > He may need to be setting the system property that points to the location of > t

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread datanucleus
> Related: why are child objects not automatically detached if the > parent is detached? Would that not not logical? JPA doesn't have "fetch groups" as such, just a "default fetch group". This is defined by which fields are EAGER loaded. So if you had your field marked as EAGER then it would be d

[appengine-java] Re: Problem saving an object using makePersistent

2009-09-11 Thread Jeff
I've been seeing the same thing, and also only on the first access after application start. It happens consistently for me with my first call to either getObjectById makePersistent or makePersistentAll. In my attempts to search the web for info, I ran across a snippet of code that included the s

[appengine-java] Re: makePersistent fails silently

2009-09-11 Thread Jason (Google)
Hi Ken. This is a known issue -- one-to-many owned relationships of the same kind aren't persisted correctly. We do plan to address this particular issue in a forthcoming update. In the meantime though, you can look into using unowned relationships (list of keys) instead which should work. - Jason

[appengine-java] Re: Why is Stored Data Usage increasing even though no data was added?

2009-09-11 Thread Don
That could be. Thanks. On Sep 11, 8:30 am, fat bold cyclop wrote: > > Do anybody know why is Stored Data Usage increasing even though no > > data was added? > > When there is no data persisted by my appilcation, the only thing that > makes my datastore grow is _ah_SESSION Entities > (session da

[appengine-java] Re: Unable to deploy with 1.2.5 SDK (.jsp' does not match expression '^(?!\^)/|\.|(\(.).*(?!\$).$')

2009-09-11 Thread Don
Awesome! I am glad it works for you. On Sep 11, 8:22 am, fat bold cyclop wrote: > > When you upgrade the SDK, make sure that the SDK under Google/App > > Engine in Preferences is also changed.  If possible, remove the old > > SDK in Preferences.  And check to make sure that you have the latest

[appengine-java] Re: Sending mail with the mail api

2009-09-11 Thread Jason (Google)
Just to clarify, you are sending these from a deployed application, correct? - Jason On Tue, Sep 8, 2009 at 9:06 PM, king wrote: > > I have the same problem. I sent out 3 email and have been waiting for > hours, still no email arrived at my inbox, there is no error message > either. Does anyone

[appengine-java] Re: Updating detached objects only works when fetched within a transaction (JDO)

2009-09-11 Thread Jason (Google)
What do your JDO objects look like? - Jason On Thu, Sep 10, 2009 at 10:07 AM, Toby wrote: > > Hello Jason, > > I have a similar problem and I use the way you suggest by invoking the > detachCopyAll method. > It works fine, my objects are detached. > I have problem with objects that contain coll

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-11 Thread Sven Haiges
Thanx, I will try this out tonight as soon as I get access to the code again. It seems making the fetchType EAGER is best, as I will access the filed in all cases, so there is no processing wasted I guess. Out of my head, this would be the solution I guess (changing to FetchType.EAGER, LAZY was d

[appengine-java] Re: Problem saving an object using makePersistent

2009-09-11 Thread cancunmods
Hi, I am using spring in my application and the pmf is a singleton, I put it in the class just to make sure it is not a spring issue. I am still getting the error but in my case nothing is persisted. I also added the @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) line and no dice my SDK

[appengine-java] Re: URLFetching is failinging

2009-09-11 Thread Jason (Google)
Which URL are you using? The above code is working for me. You can go ahead and disregard the getResponseBody warning -- it shouldn't affect the response from being returned to your app. - Jason On Wed, Sep 9, 2009 at 1:22 PM, Raghu wrote: > > Hi ALL, > > I'm just trying to fetch url using foll

[appengine-java] Re: Maven

2009-09-11 Thread lent
On Sep 4, 8:36 am, Nikolay Gorylenko wrote: > please include 1.2.5 jars > tohttp://www.mvnsearch.org/maven2/com/google/appengine/ +1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" gro

[appengine-java] Re: Startup takes forever

2009-09-11 Thread Don Schwarz
On Wed, Sep 9, 2009 at 6:48 AM, David Given wrote: > > Toby Reyelts wrote: > [...] > > 5000 ms is excessive for container startup. You say this happens before > > your code starts to run, but the warnings you're seeing from > > FinalizableReferenceQueue come from a dependency on our datastore API

[appengine-java] Re: Session destruction events, API availability therein

2009-09-11 Thread Erem
Hi Jason, Thanks for the response. I'm seeing it in the development environment. I can't even get ahold of a stack trace in production because the logged events I try to throw just aren't reaching the Logs manager. I do know that it's not working, however, because the object doesn't get inserted

[appengine-java] Re: Session destruction events, API availability therein

2009-09-11 Thread Erem
The same code in a request works fine btw. On Sep 11, 3:54 pm, Erem wrote: > Hi Jason, > > Thanks for the response. I'm seeing it in the development environment. > I can't even get ahold of a stack trace in production because the > logged events I try to throw just aren't reaching the Logs manag

[appengine-java] Application failing suddenly

2009-09-11 Thread yohann.richard
Hi guys, Our application was running fine since yesterday's push until about an hour ago when we suddenly get the error below when users are logued in. Any idea what's going on or why it suddenly shows up after hours of correct behavior ? Thanks, Yohann Uncaught exception from servlet java.la

[appengine-java] Re: Application failing suddenly

2009-09-11 Thread yohann.richard
and now the error seems to be gone and everything is suddenly back to normal. On Sep 11, 3:56 pm, "yohann.richard" wrote: > Hi guys, > > Our application was running fine since yesterday's push until about an > hour ago when we suddenly get the error below when users are logued > in. > > Any ide

[appengine-java] Re: Bulk writes to datastore

2009-09-11 Thread Larry Cable
So now, I am hitting Datastore timeouts and Request timeouts ... I really really think you guys need to add a mechanism that allows developers to simply do bulk uploads of data into their GAE applications (from Java thank you). :) On Sep 11, 9:06 am, Larry Cable wrote: > I tried doing a "bulk"

[appengine-java] Re: Session destruction events, API availability therein

2009-09-11 Thread Jason (Google)
Hi Erum. App Engine doesn't support this callback, so when sessionDestroyed is triggered by the development server, it's not within an active request and hence the exception that you're seeing. In the production environment, you would see a similar result if the callback is even triggered at all.

[appengine-java] Re: Session destruction events, API availability therein

2009-09-11 Thread Erem
Hey Jason, Thanks for the clarification. Unfortunately this leaves me at a loss for how to elegantly clean up dead sessions and manage logged-in status. Is the only remaining option to put cleanup scripts into a cronjob? On Sep 11, 6:04 pm, "Jason (Google)" wrote: > Hi Erum. App Engine doesn't

[appengine-java] Re: Data Store Intro Broken?

2009-09-11 Thread Jimmy V
My App Engine is pointed at SDK version 1.2.5. It looks like the auto- build runs cleanly and the imports all resolve (no red lines). When I run, the app engine server chokes when trying to render the GWT controls (textbox and buttons from the out-of-the-box new project pages. The error message

[appengine-java] Re: Data Store Intro Broken?

2009-09-11 Thread Jimmy V
You guys gotta make this dummy proof. :) Next time I'll try keeping the stuff I want turned into javascript in the client project and everything else in the server or a separate package. ;) On Sep 11, 9:30 pm, Jimmy V wrote: > My App Engine is pointed at SDK version 1.2.5.  It looks like the au

[appengine-java] Re: Issue on using Spring MVC framework on GAE.

2009-09-11 Thread xueqiang.mi
yep, thanks. It really works, but i don't know why to do this. Can you explain it or post some links for me to learn a little deep. cheers, On Sep 12, 3:13 am, "Jason (Google)" wrote: > If you're subclassing SimpleFormController, you can also override the > initBinder method in your custom clas