[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Larry Cable
On Mar 7, 12:13 am, Rick Smith rick@gmail.com wrote: Hi all Can I create and compile a java class at run time on goolge appengine. Use case: I have given a UI to my application user that they can define their own business logic.Now what is going to be main challenge is that I need to

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Larry Cable
On Mar 8, 8:35 pm, Larry Cable larry.ca...@gmail.com wrote: On Mar 7, 12:13 am, Rick Smith rick@gmail.com wrote: Hi all Can I create and compile a java class at run time on goolge appengine. Use case: I have given a UI to my application user that they can define their own

[appengine-java] Re: Eclipse hangs at startup, Ubuntu

2010-03-07 Thread Larry Cable
I believe this is a problem not in Eclipse but in Gtk ... On Mar 4, 4:15 am, Steven Jay Cohen steven.jay.co...@gmail.com wrote: I can confirm this same behavior on my GWT projects not AppEngine. It's sporadic and can be addressed exactly as described in this post. I am using Eclipse 3.5.2

[appengine-java] Re: Can pm.makePersistentAll() help me write 12,000 objects?

2010-02-24 Thread Larry Cable
my experience with a relatively simple application via JDO makePersistentAll() was that I got DataStore Operation Timeout exceptions with batch sizes of approx 200-300 objects ... On Feb 24, 1:48 pm, Guillermo Schwarz guillermo.schw...@gmail.com wrote: I think we can safely assume that the

[appengine-java] Re: GAE Alternatives?

2010-02-24 Thread Larry Cable
I have to concur with Corby on this ... I was initially attracted to the end-to-end solution that GAE offered integrated as it is with Eclipse. In practice I have found it very frustrating to develop on GAE because of: - the class white list and 3rd party framework usage (i.e Spring) - the

[appengine-java] Re: Could not deploy my App in Google App Engine!

2010-02-11 Thread Larry Cable
but it works locally ... I have recently started getting a similar error where upload/deploy fails while parsing datastore-indexes.xml claims there is an error with the .xsd in the toolkit .jar ... On Feb 11, 1:37 pm, Brian bwa...@gmail.com wrote: Wild guess, but a ' in a path can't help things

[appengine-java] Re: javax.annotation.Resource Spring 3.0.0.Release declarative DI on Google App Engine

2010-02-10 Thread Larry Cable
Not sure if this helps or not but you cannot use the Spring context:annotation-config / markup in your GAE Spring applications ... This will of course work locally but because the CommonAnnotationBeanPostProcessor attempts to load javax.annotation.Resource (and fails) then no annotation

[appengine-java] Re: I get an InvocationTargetException the first time I query the datastore after a new JVM instance starts

2010-01-26 Thread Larry Cable
thanks, then I guess something else is causing GAE VFS to fail ... bummer :( On Jan 25, 1:53 pm, Toby Reyelts to...@google.com wrote: Yeshttp://www.google.com/codesearch/p?hl=en#YXcrkXezIpQ/trunk/src/com/go... . On Mon, Jan 25, 2010 at 4:38 PM, Larry Cable larry.ca...@gmail.com wrote

[appengine-java] Re: deleting all entries in datastore

2010-01-22 Thread Larry Cable
+1 especially for large tables On Jan 22, 10:47 am, Locke locke2...@gmail.com wrote: It would be good to have the ability to do this from within the GUI. Other database management tools have empty table options, so a delete all of this Kind feature would be appropriate. On Jan 22, 12:59 pm,

[appengine-java] Re: I get an InvocationTargetException the first time I query the datastore after a new JVM instance starts

2010-01-22 Thread Larry Cable
for that reason.  They are just slightly annoying but harmless   so ignore them. On 22 Jan 2010, at 05:56, Larry Cable wrote: interestingly enough I get essentially the same exception when calling into the TaskQueue API ... I 01-21 02:44PM 41.437 com .google

[appengine-java] Re: I get an InvocationTargetException the first time I query the datastore after a new JVM instance starts

2010-01-21 Thread Larry Cable
interestingly enough I get essentially the same exception when calling into the TaskQueue API ... I 01-21 02:44PM 41.437 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue $SystemLoader loadFinalizer: Not allowed to access system class loader. I 01-21 02:44PM 41.455

[appengine-java] Re: 500 Server Error adding records to Datastore

2009-12-22 Thread Larry Cable
take a look in the application logs (if you have the app deployed in GAE and you are not testing locally) you will see the exception that caused the problem ... My guess, based upon what you state in your post is that it is either a Datastore operation timeout (5 secs) or the processing quota

[appengine-java] Re: What's the right way to use PersistenceManager?

2009-12-07 Thread Larry Cable
I am not sure it/there is a right way, but in my application I am injecting (via Spring) a (singleton) PMF into my Controller(s) (which are singletons) and instantiating a PM for each (concurrent) query/request... On Dec 4, 11:30 pm, Fan Lin linfa...@gmail.com wrote: Hi, I'm new in JDO, so I

[appengine-java] Re: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-07 Thread Larry Cable
HTTP status code outside of the range 200-299), it doesn't get added back to queue for retrying. This used to work in 1.2.6. -Tristan On Dec 6, 4:18 pm, Larry Cable larry.ca...@gmail.com wrote: I just updated from 1.2.6 to 1.2.8 and my application code has started failing locally

[appengine-java] Re: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-07 Thread Larry Cable
another task to upload ... Thanks - Larry On Dec 7, 11:22 am, Max Ross (Google) maxr+appeng...@google.com wrote: Regarding the per-request quota Are you worried about the number of requests or the duration of those requests? On Mon, Dec 7, 2009 at 11:17 AM, Larry Cable larry.ca

[appengine-java] problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-06 Thread Larry Cable
I just updated from 1.2.6 to 1.2.8 and my application code has started failing locally. I am using task queue's in order to process uploaded files, this worked in 1.2.6 (although you had to manually fire the task queue from the _ah admin console) Now, it is failing under 1.2.8 (as it seems as

[appengine-java] Re: Eclipse start server error after update to 1.2.6

2009-12-06 Thread Larry Cable
In eclipse select Run Configurations... from the Run main menu ... in the dialog that pops up, you you see a G icon in the tree view on the left and a list of configurations under that, (at least one), select your personal favorite, click on the(x) arguements tab and add the appropriate config,

[appengine-java] Re: Bug in JDO compiled/named query support

2009-10-27 Thread Larry Cable
On Oct 27, 1:14 am, datanucleus andy_jeffer...@yahoo.com wrote: It's a typo in PM proxy. Fixed in DN SVN thx (in DN 2.0, since DN 1.1 is not developed now). Obviously you could just use a *normal* PM instead of a proxy PM. thanks Andy... while I have your attention ... :) actually I think

[appengine-java] Re: Bug in JDO compiled/named query support

2009-10-27 Thread Larry Cable
a single primary key field so we enforce this restriction in the JDO/JPA implementation as well.  The limitations are described in detail here:http://code.google.com/appengine/docs/java/datastore/creatinggettinga... On Tue, Oct 27, 2009 at 8:54 AM, Larry Cable larry.ca...@gmail.com wrote: On Oct

[appengine-java] Bug in JDO compiled/named query support

2009-10-26 Thread Larry Cable
I think I have found a bug in the datanucleus JDO named query code (which I am happy to file a jira report on if others agree)... imagine the following: @Queries { value = { @Query(name=foo value=select from FOO...) } ) public class Foo { //... } at some point later in the code is uttered:

[appengine-java] Re: JDO PrimaryKey class problems ... NPE in pre-comment key class is null

2009-10-23 Thread Larry Cable
much time do you have to wait before it works and then stops working? - Jason On Wed, Oct 14, 2009 at 2:40 PM, Larry Cable larry.ca...@gmail.com wrote: Thanks Jason,           I eventually discovered that by chance, that the PK class would work (mostly) with String types ... although

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Larry Cable
another List, i.e. an ArrayList, copy the (serializable) results into it, and cache this. You'll also need to do this if you want to send query results over the wire to a GWT-based application, for example. - Jason On Mon, Oct 19, 2009 at 2:03 PM, Larry Cable larry.ca...@gmail.com wrote: quick

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Larry Cable
excellent! On Oct 21, 11:20 am, datanucleus andy_jeffer...@yahoo.com wrote: Just to mention, JDO (and DataNucleus) supports a Level2 cache, and can use javax.cache (GAE/J memcached) and is a single PMF property to turn it on. That way you don't need to play around putting objects into the L2

[appengine-java] having problems with JDO query serialization to memcache...

2009-10-19 Thread Larry Cable
quick question: should I be able to directly serialize (Cache.put (...)) results of JDO queries into Memcache? It appears not ... I have the following class(es): @PersistenceCapable(identityType=IdentityType.APPLICATION, objectIdClass=CityState.CityStateKey.class, cacheable=true,

[appengine-java] Re: Datastore Limits

2009-09-14 Thread Larry Cable
read this thread ... you might want to batch the writes you should get around 200-300 objects per write (under the 5 sec timeout) and probably around 2k per request before hitting the 30sec request timeout (all depends on the complexity of your objects) On Sep 14, 5:54 am, Iain

[appengine-java] Re: Get Multipart Data from the request

2009-09-14 Thread Larry Cable
+1 On Sep 13, 6:18 am, Philippe Marschall philippe.marsch...@gmail.com wrote: On Jul 22, 7:41 pm, Jason (Google) apija...@google.com wrote: As indicated in the Will it play in App Engine page, you will not be able to use the traditional Apache Commons FileUpload API since it relies on

[appengine-java] Re: Announcing JDO/JPA Snippets That Work

2009-09-14 Thread Larry Cable
I'd also encourage you as part of this to focus on the mapping of JPA/JDO RDBMS like concepts onto the DS, as this I have found to be most problematic ... (or at least include pointers from the example back to the online docs) which is funny because I confess that you could write down all I know

[appengine-java] Re: Bulk update throws exception

2009-09-14 Thread Larry Cable
entity as the parent of the other, which basically creates a hierarchy (tree) of entities -- this is an entity group. In JDO/JPA, you do this using owned relationships which is covered in my second link above. - Jason On Tue, Aug 25, 2009 at 2:33 PM, Larry Cable larry.ca...@gmail.com wrote

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-14 Thread Larry Cable
you might want to extend this example to use the ISBN as the book's PrimaryKey, which might be a natural choice for the entities id, ensuring uniqueness in the DS ... Thanks - larry On Sep 14, 4:07 pm, Max Ross maxr+appeng...@google.com wrote: Hello hello and welcome to the very first

[appengine-java] Re: Bulk writes to datastore

2009-09-12 Thread Larry Cable
use for testing purposes. It's to complicated and it uses way to many resources to update 1000+ entities - and there are lots of applications that need to update data from different sources (XML, SQL dumps, ...) on a daily basis. On 12 sep., 02:30, Larry Cable larry.ca...@gmail.com wrote

[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: 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: JPA support for enum's

2009-09-03 Thread Larry Cable
public class Address { public static enum State { // define all 2 letter states here ... } // protected State state; // would'nt it be nice if this worked ... } public class Company { // ... @Embedded protected EINein; // IRS tax id @Embedded

[appengine-java] Re: JSTL x:out message NoClassDefFoundError: VariableStack

2009-08-28 Thread Larry Cable
what was the full stack trace? you probably need to get xalan-j from the apache site I expect the JSTL XML tags are dependent on it for processing ... On Aug 28, 1:48 am, ant2legs ant2l...@gmail.com wrote: I put the following codes to my jsp: %...@taglib prefix=x

[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...

2009-08-27 Thread Larry Cable
should'a RTFM'ed :) On Aug 27, 1:20 am, datanucleus andy_jeffer...@yahoo.com wrote: btw why does em.flush() throw an exception declaring that it requires a transaction and that there is none in context when the Persistence Provider is clearly configured for non-tx writes You mean

[appengine-java] JPA support for enum's

2009-08-25 Thread Larry Cable
Has anyone managed to get an enum persisted via JPA? I can't I get an exception from the runtime, no such method init() V, which I take to mean that it cannot locate a public no-args constructor for the enum ... go figure ... :( --~--~-~--~~~---~--~~ You received

[appengine-java] Re: Bulk update throws exception

2009-08-25 Thread Larry Cable
I have exactly the same problem, I instantiate a number of @Entity objects (all of the same type) persist them, and flush them in the context of the same transaction. Since they are all of the same type, and their are no relationships (although there is an @Embedded class/field) I would imagine

[appengine-java] Re: Bulk update throws exception

2009-08-25 Thread Larry Cable
h' ... so it would seem that 2 or more entity (instances) persisted in the same tx cause this error ... this cannot be so ... how is the mapping from instance to entity (group) made? On Aug 25, 2:33 pm, Larry Cable larry.ca...@gmail.com wrote: I have exactly the same problem, I instantiate

[appengine-java] Using @EmbeddedID and @Embedded with JPA ...

2009-08-24 Thread Larry Cable
Has anyone managed to get @EmbeddedId with JPA to work in GAE/ DataNucleus??? @Entity public class MyEntity { //... @EmbeddedId public MyId id; } // ... @Embeddable public class MyId { //... public String id; } I'm getting an unsupported primary key type exception at runtime

[appengine-java] Re: datanucleus - key -- set the name component instead

2009-08-24 Thread Larry Cable
On Jul 13, 2:16 am, Shawn Brown big.coffee.lo...@gmail.com wrote: Hello, I'm seeing Attempt was made to manually set the id component of a Key primary key.  If you want to control the value of the primary key, set the name component instead. Do I have to fetch an object before updating it?