[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-09-15 Thread lp
i raised it as an issue as i am unable to get resolution. http://code.google.com/p/googleappengine/issues/detail?id=5897 vote if u has a similar problem. -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group

[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-08-15 Thread lp
:31,215 DEBUG [DataNucleus.Query] - JPQL Query : Compile Time = 18 ms 18:21:31,217 DEBUG [DataNucleus.Query] - DATASTORE Query : Executing SELECT c FROM ChatUser c WHERE c.parentKey IN (:parentKeyList) ... thanks -lp -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-08-14 Thread lp
IN :parentKeyList: Unexpected expression type while parsing query: org.datanucleus.query.expression.SubqueryExpression have got these queries completely wrong? -lp -- 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

[appengine-java] Re: gae.parent-pk doesnt work in list query

2011-08-14 Thread lp
++){ parentList.add(KeyFactory.createKey(ChatUser.CLASS_NAME, i +11) ); } what i thought i understood is now very confusing. -lp -- 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] Re: gae.parent-pk doesnt work in list query

2011-08-14 Thread lp
to be with the gae.parent-pk not the query. -lp -- 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 group, send email to google-appengine-java

[appengine-java] gae.parent-pk doesnt work in list query

2011-08-12 Thread lp
; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @Basic @Extension(vendorName=datanucleus, key=gae.parent-pk, value = true) private Key parentKey; } -lp -- You received this message because you are subscribed

[appengine-java] sdk 1.5.2 removes exploding indexes!!!

2011-07-26 Thread lp
and an upcoming article will describe what further optimizations are possible. i havent tried it out yet but i wanna see if it reduces my write cost on list properties. -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view

[appengine-java] Re: DataStore Statistics not updated for at least 2 days

2011-07-17 Thread lp
magic. the statistics have been updated. thanks mr google. -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/HvDe2orXucgJ. To post

[appengine-java] DataStore Statistics not updated for at least 2 days

2011-07-15 Thread lp
hi all the database stats have NOT been updated for at least 2 days. it says last updated 19:10:27 but clear what day it happened. what can be done to get them updated? -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view

[appengine-java] Re: overcome onetomany limitation of 5000

2011-05-29 Thread lp
a single key. this makes update significantly faster as i have less relational entities to update. This provides a solution to what google appengine guys call 'fan out problem'. hope this helps others. -lp -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] overcome onetomany limitation of 5000

2011-05-12 Thread lp
of the entire list, then add item and then put to datastore. this is rather expensive in CPU. #2. How can i allow for 5000 in the onetomany? any suggestion pls -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group

[appengine-java] Re: NoResultException causes rollback transaction why?

2011-03-25 Thread lp
ok this looks like Spring transaction issue. when the @Transactional is removed the NoResultException does not affect the commit. this is f#$$ -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] NoResultException causes rollback transaction why?

2011-03-24 Thread lp
)); findUser.getFriends().remove(user.getKey()); em.merge(findUser); } em.remove(user); } } -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: NoResultException causes rollback transaction why?

2011-03-24 Thread lp
that previous example code was too complex... phew it was a late night this a simpler example of the a method that does a rollback when a NoResultException is thrown. even if the exception is handled it doesnt matter the txn is rollback and no commits are done. if the NoResultException is NOT

[appengine-java] Re: stdout in my logs

2011-03-08 Thread lp
# I 2011-03-06 20:14:32.566 [minglegeo/1.348824067992053184].stdout: 04 strangely they are not present in my dev environment. any one getting a similar issue? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this

[appengine-java] Re: Hosting Java application

2011-03-08 Thread lp
permanently. And is it possible to do that at all? the only out bound connections available on appengine are http. so if twitter supports http, all good. saving images no problem hope that helps. -lp -- You received this message because you are subscribed to the Google Groups Google App Engine

[appengine-java] Re: Need Help in Unit Testing (How to convert btw Entity and JDO class)

2011-03-07 Thread lp
or JPA. The magic is done by the LocalServiceTestHelper.setup so your problem is the error below java.lang.NullPointerException: No API environment is registered for this thread. This means there is no datastore attached to your pm. Post your code for test setup and pm initialisation. -lp -- You

[appengine-java] Request CPU variance with 'Always-on'

2011-03-07 Thread lp
hi all, i have getting large variance in my request and api cpu. I have read the countless articles on the topic and the quota doc. what i am seeing is *not* do to process startup as i have 'Always on' enabled since there is no more of the ' This request required a process to startup. Below

[appengine-java] Re: appcfg deployment hangs at jsp compile

2011-03-06 Thread lp
this help another. -lp -- 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 group, send email to google-appengine-java+unsubscr

[appengine-java] stdout in my logs

2011-03-06 Thread lp
log.info, error etc. any ideas? -lp -- 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 group, send email to google-appengine-java

[appengine-java] Re: how to do fast write datastore, google io 2008

2011-03-05 Thread lp
solution for bigtable. was the article for SQL tables NOT bigtable? -lp -- 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 group, send

[appengine-java] appcfg deployment hangs at jsp compile

2011-03-04 Thread lp
is most appreciated for my sanity, thanks -lp -- 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 group, send email to google-appengine

[appengine-java] Re: Problem with query - jdo

2011-03-04 Thread lp
a VTO pattern (http://java.sun.com/blueprints/patterns/ TransferObject.html) to populate ur presentation objects. this enables the persistence layer transaction to be abstracted away from presentation. VTO pattern is more usefull. -lp -- You received this message because you are subscribed

[appengine-java] Re: Testing data migration using JDO and DataNucleus

2011-03-03 Thread lp
are u sure u wont to proceed with that plan of changing out enhanced JDO classes? just sounds to complicated. -lp On Mar 3, 5:21 am, Jason G ja...@bobberinteractive.com wrote: Hello everyone! We've run into a data migration-test problem, and I'm wondering if anyone would have any

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-16 Thread lp
ok i finally got this sorted. it seems that i was making life too difficult by making tests transactional. by removing the @transactional on unit tests everything works nice and simple. thanks for your help -lp On Nov 15, 4:51 pm, lp lucio.picc...@gmail.com wrote: hi vikas thanks

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-14 Thread lp
hi vikas nice blog u have there. However i cant reproduce your results the unit test with spring. can u post your spring config to see what i have done wrong. thanks -lp On Nov 13, 3:58 pm, Vikas Hazrati vhazr...@gmail.com wrote: You could get more information on the way we set up our testing

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-14 Thread lp
the entitymanager get injected? have u got the code available? i cant see what i am doing wrong! -lp On Nov 15, 3:02 pm, Vikas Hazrati vhazr...@gmail.com wrote: hi lucio, I have added the requested information as an answer to your comment on the blog post. http://thoughts.inphina.com/2010/06/28/unit

[appengine-java] How to write a JPA unit test for GAE?

2010-11-10 Thread lp
writting useful unit tests in gae? any help is most appreciated -lp -- 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

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread lp
(); assertEquals( 2, resultList.size() ); } thanks -lp On Nov 10, 8:44 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Entities that you persist in the datastore are grouped in so called entity groups for reason of scalability and transactionality That means that the ds groups your entities

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread lp
Instead of flushing, did you try a PersistenceManager.close() that should lead to the same effect ? After the close, you get a new pm via the PMF and that should do it. i dunno if i can do that so easily as the entityManager is injected by spring. i have a very very very simple example that

[appengine-java] package 'datastore_v3' or call 'Rollback()' was not found

2010-11-09 Thread lp
) at com.google.appengine.api.datastore.TransactionImpl.rollback(TransactionImpl.java: 77) i assume that i am missing a appengine jar file in the maven dependencies. is that correct? any help is appreciated. -lp -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: package 'datastore_v3' or call 'Rollback()' was not found

2010-11-09 Thread lp
ok i was missing a maven dependency for appengine-api-1.0- sdk-1.3.8.jar. the gae-plugin was hiding the visibility of it to the test phase. so i can now run a junit test with transaction using persistence. -lp On Nov 10, 2:17 pm, lp lucio.picc...@gmail.com wrote: hi all, when running

Re: [appengine-java] Re: Trouble unit testing JPA data access objects.

2010-11-04 Thread lp
how did u get your unit tests to run in tx? i cant seem to get an active transaction. i followed all the links in this thread and more. any help appreciated -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

[appengine-java] JPA transaction not active in Spring unit test

2010-11-03 Thread lp
hi all, i am attempting to unit test my JPA code in a Spring unit test. i read all the doco about gae unit tests. i have this working in normal hibernate JPA with a specific tx manager. I cant see how the txManager is wired up. however i get the following error

[appengine-java] Re: datanucleus enhancer keeps running

2010-03-11 Thread lp
i tried using gae sdk 1.3.1 but still got enhancer looping. it seems to happen when i include spring 3.x libs i dunno giving up and going for ant task. -lp On Mar 3, 1:43 am, Rajeev Dayal rda...@google.com wrote: Seehttp://code.google.com/p/googleappengine/issues/detail?id=2115. This may

[appengine-java] Application code attempted to create a EntityManagerFactory named transactions-optional,

2010-01-05 Thread lp
it is complaining about the mulitple instances of persistence unit called ' transactions-optional' as it is only being referenced by the spring binding. what is the problem? any help most appreciated. -lp -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: convert JDO query to JPA

2009-11-23 Thread lp
the em behaviours like that, given the em.find() seem to find the correct object. any ideas? -lp -- 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

[appengine-java] Re: convert JDO query to JPA

2009-11-23 Thread lp
the em behaviours like that, given the em.find() seem to find the correct object. any ideas? -lp -- 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

[appengine-java] Re: convert JDO query to JPA

2009-11-22 Thread lp
. it works but i dont understand how. any help most appreciated -lp -- 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