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

2009-09-11 Thread Tica2
OK Max, now seems clear 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-java@googlegroups.com To unsubscribe from this

[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 eris4.mu...@gmail.com wrote: I did a few more investigation and It looks

[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 peter.ondru...@gmail.com wrote: GAE is using gzip encoding. Why would you want to disable? On Sep 10, 10:47 am, fvisticot fvisti...@gmail.com wrote: Can someone confirm

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

[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 eris4.mu...@gmail.com wrote: Isn't

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

[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) apija...@google.com wrote: What do you see when you go to

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

[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 rick4567892...@yahoo.com wrote: Hi  Alejandro, What entry do you have in your  appengine-web.xml  

[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 maxr+appeng...@google.com wrote: The URL I posted earlier

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

[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, I am

[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 bal...@krivan.hu Hi! I've the

[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 max.seven@gmail.com wrote: Similar exception when I deploy to app engine On Sep 11, 4:13 pm, Max

[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

[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

[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 ehb...@gmail.com wrote: Hey All, What is the best way to tie into session destruction events? I have implemented an HttpSessionListener and put it in my

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

[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

[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 anunimmala.nimm...@gmail.comwrote: Hi sreeekanth, So nice

[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

[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

[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 field,

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

[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

[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 sven.hai...@googlemail.com wrote: Andy, first of all thx for the response. Things begin to make a little more sense. But

[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. jvmarg value=-Djava.util.logging.config.file=war\WEB-INF\logging.properties/ Thanks! On Fri, Sep 11, 2009 at 4:44 PM, Rajeev Dayal rda...@google.com wrote: I talked to another developer about this, and this is what he

[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

[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

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

[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 fat.bold.cyc...@gmail.com 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

[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 fat.bold.cyc...@gmail.com 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

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

[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 tobias.ro...@sunnymail.mobi 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

[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

[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

[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 visuma...@gmail.com wrote: Hi ALL, I'm just trying to

[appengine-java] Re: Maven

2009-09-11 Thread lent
On Sep 4, 8:36 am, Nikolay Gorylenko n0...@jug.ua 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

[appengine-java] Re: Startup takes forever

2009-09-11 Thread Don Schwarz
On Wed, Sep 9, 2009 at 6:48 AM, David Given d...@cowlark.com 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

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

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

[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 larry.ca...@gmail.com wrote: I

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

[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 jvand...@gmail.com wrote: My App Engine is pointed at SDK version 1.2.5.  It

[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) apija...@google.com wrote: If you're subclassing SimpleFormController, you can also override the initBinder method in