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

2011-09-14 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

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

2011-08-15 Thread lp
ss resolver called from org.datanucleus.util.Imports.resolveClassDeclaration (line=177)] 18:21: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 (:parentKeyLis

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

2011-08-14 Thread lp
IN (:parentKeyList)"); the issue seems 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

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

2011-08-14 Thread lp
lt;130; i++){ 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, s

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

2011-08-14 Thread lp
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 to google-appengine-java@googlegroups.com. To unsubscribe from

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

2011-08-12 Thread lp
EY = "ChatUser.findByParentKey"; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @Basic @Extension(vendorName="datanucleus", key="gae.parent-pk", value = "true") private

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

2011-07-26 Thread lp
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

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

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

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

2011-05-29 Thread lp
rather than 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 Goo

[appengine-java] overcome onetomany limitation of 5000

2011-05-11 Thread lp
ill require a fetch 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

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

[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] NoResultException causes rollback transaction why?

2011-03-24 Thread lp
lass, friends.get(0)); 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 A

[appengine-java] Re: Hosting Java application

2011-03-08 Thread lp
it on my computer > 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

[appengine-java] Re: Hanging request after app deployment (no log entry)

2011-03-08 Thread lp
why are sure that the request has hit appengine? -lp On Mar 9, 8:59 am, John wrote: > I'm seeing a behavior that I hadn't observed before. After one of my apps is > deployed, the first request hangs for a LONG time (I haven't left it sitting > for more than 10 minutes

[appengine-java] Re: in my logs

2011-03-08 Thread lp
> # > I 2011-03-06 20:14:32.566 [minglegeo/1.348824067992053184].: > 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 group

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

2011-03-07 Thread lp
156api_cpu_ms 2011-03-07 22:53:08.199 /fbconnect/update?id=37002 200 737ms 2135cpu_ms 1585api_cpu_ms 2kb Mingle/1.1.1.3 CFNetwork/485.12.7 what is going on is my app really written that dodgy? -lp -- You received this message because you are subscribed to the Google Groups "Google App Engine for

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

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

2011-03-07 Thread lp
use JDO 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

[appengine-java] 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-appe

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

2011-03-06 Thread lp
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-jav

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

2011-03-05 Thread lp
erent entities. This solution doesnt look like a scalable 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 googl

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

2011-03-04 Thread lp
objects. OR use 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 s

[appengine-java] appcfg deployment hangs at jsp compile

2011-03-04 Thread lp
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-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 wrote: > Hello everyone! > > We've run into a data migration-test problem, and I'm wondering if > anyone would have any ad

[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 wrote: > hi vikas > > thanks for the spring conf

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

2010-11-14 Thread lp
hi vikas thanks for the spring config. i got the same config but still cant get a unit test to persist data, and then execute a query on it. i noticed that your config does not use how does the entitymanager get injected? have u got the code available? i cant see what i am doing wrong! -lp

[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 wrote: > You could get more information on the way we set up our testing infra >

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

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

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

2010-11-10 Thread lp
ing multiple groups in a single transaction. So besides the simple gae sample unit test, how are others 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

[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 wrote: > hi all, > > when running a unit test us

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

2010-11-09 Thread lp
cCall(TransactionImpl.java: 56) 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 s

[appengine-java] Re: No API environment is registered for this thread

2010-11-07 Thread lp
what do u mean by 'run it as a java application'? do u mean run as unit test? if so try this http://code.google.com/appengine/docs/java/tools/localunittesting.html -lp -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java&quo

[appengine-java] JSP compiler slowness on dev : revisited

2010-11-05 Thread lp
cannot be expected behaviour. have i botched the install? -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,

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 po

[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 javax.persistence.TransactionRe

[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 wrote: > Seehttp://code.google.com/p/googleappengine/issues/detail?id=2115. This may > be the

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

2010-01-05 Thread lp
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" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to

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

2009-11-23 Thread lp
em, allowed the em.query to execute correctly. i am not clear of why 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

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

2009-11-23 Thread lp
em, allowed the em.query to execute correctly. i am not clear of why 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

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

2009-11-22 Thread lp
he collection filter is executed on the data store and not in the application as the unfiltered list executed the 1000 row limit. 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 Engi

[appengine-java] convert JDO query to JPA

2009-11-19 Thread lp
("friends == myKey" ) portion. //JPA javax.persistence.Query query = em.createQuery("select from Friend where friends=:key"); query.setParameter("key", user2.getKey()); List friendList = (List) query.getResultList(); however the resultlist returns 0. any help is appreci

[appengine-java] Re: porting python selfreference to java how-to

2009-11-14 Thread lp
e java sdk has similar features to the python sdk. is that correct? -lp On Nov 13, 5:37 pm, lp wrote: > hi there > > i am porting a python GAE to java but have come unstuck with self > reference type. > my existing data model uses the SelfReferenceProperty and it allow me > to d

[appengine-java] porting python selfreference to java how-to

2009-11-13 Thread lp
same query result. PositionUser positionUser = em.find(PositionUser.class, user1.getKey ()); but now how to filter positionUser.friends based on their latitude? any help is appreciated -lp -- You received this message because you are subscribed to the Google Groups "Google App Engine