[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 wrote: > On Mar 7, 12:13 am, Rick Smith 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 the

[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 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 make new dep

[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 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 64bit, Mac OSX 10.6.2, G

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

[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 wrote: > I think we can safely assume that the programmer was trying to speed >

[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 wrote: > Wild guess, but a ' in a path can't help things > > On Feb 11,

[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 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 processing will occur ... there a

[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 wrote: > Yes<http://www.google.com/codesearch/p?hl=en#YXcrkXezIpQ/trunk/src/com/go...> > . > > > > On Mon, Jan 25, 2010 at 4:38 PM, Larry Cable wrote: >

[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
ey 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 ... > > &g

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

[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] problem with Java Task Queue API...

2010-01-12 Thread Larry Cable
Using Vince Bonfanti's excellent GaeVFS pkg I am getting this exception trace from the Task Queue API... com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue : Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created.

[appengine-java] Re: Task Queue problems

2010-01-11 Thread Larry Cable
h'mmm looks like I have a security (mis-configuration) issue... On Jan 11, 2:35 pm, Larry Cable wrote: > anyone seen any problems within the Java Task queue implementation. > > I have a task that works in local development mode, but when uploaded > into GAE the task appears in t

[appengine-java] Task Queue problems

2010-01-11 Thread Larry Cable
anyone seen any problems within the Java Task queue implementation. I have a task that works in local development mode, but when uploaded into GAE the task appears in the queue and is retried however no logging occurs to suggest that the body of the task is ever executed (nor does the resulting be

[appengine-java] Re: What Java MVC framework do you use on AppEngine?

2009-12-22 Thread Larry Cable
I am using Spring 2.5.6/3.0, JSP and JDO. On Dec 22, 10:41 am, Trung Pham wrote: > Coming from Ruby on Rails background, I have tried to run Rails on   > Jruby on AppEngine. While it works, but it has ridiculous startup   > time. Well over 20 seconds to spin up an instance, and sometimes it   > e

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

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

2009-12-07 Thread Larry Cable
eschedules another task to upload ... Thanks - Larry On Dec 7, 11:22 am, "Max Ross (Google)" wrote: > Regarding the "per-request quota" > > Are you worried about the number of requests or the duration of those > requests? > > > > On Mon, Dec 7, 2

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

2009-12-07 Thread Larry Cable
t; > I've seen this as well. I've also noticed that if I purposefully make > > a task fail (by returning any 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. > > > -Trista

[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 wrote: > Hi, I'm new in JDO, so I think this problem

[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

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

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

2009-10-27 Thread Larry Cable
the App Engine datastore only supports 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,

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

2009-10-27 Thread Larry Cable
On Oct 27, 1:14 am, datanucleus 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 this one belongs to Ja

[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
; does that mean > you're seeing a stack trace? If so, can you share it? Is this fairly > reproducible? How 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 wrote: > > >

[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 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 cache and getting

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

2009-10-21 Thread Larry Cable
e 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

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

[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 wrote: > Hello hello and welcome to the very first installment of JDO/JPA Snippets

[appengine-java] Re: Bulk update throws exception

2009-09-14 Thread Larry Cable
support, you'll > need to explicitly set one 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 > >

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

[appengine-java] Re: Datastore Limits

2009-09-14 Thread Larry Cable
ites, and it didn't solve the problem. However, > it did show me that my script is dying after I create 92 (exactly) > entities, whether or not they have all been persisted. Could this be > connected to the 2k per request? What exactly is the 2k per request? > Thanks! > > On

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

2009-09-14 Thread Larry Cable
bless you! :) On Sep 14, 4:00 pm, Max Ross wrote: > Greetings everyone!  For those of you who don't know me, my name is Max Ross > and I'm an engineer on the Google App Engine team who works on persistence > stuff: the datastore, the low-level datastore api, and the JDO/JPA > implementation.  I'

[appengine-java] Re: Any way to work around 30 second request time limit?

2009-09-14 Thread Larry Cable
well its actually a huge PITA ... but I guess that's what we "pay" for "free" CPU etc ... :D On Sep 12, 1:56 pm, Gianni Mariani wrote: > On Sun, Sep 13, 2009 at 5:29 AM, hg wrote: > > > Hi, > > I have a task that I need to run via cron. It takes a fair amount of > > time - is there any way aro

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

2009-09-14 Thread Larry Cable
just save an instance in the ServletContext attributes ... you should avoid storing it in a Servlet instance field, in fact you should avoid instance fields in Servlets entirely since they are typically supposed to be reentrant ... On Sep 14, 8:03 am, Don Schwarz wrote: > No, that sounds like a

[appengine-java] Re: Getting 'Request was aborted after waiting too long to attempt to service your request.' after application idle

2009-09-14 Thread Larry Cable
can you move the EMF creation out of the request path into the initialization path (Servlet.init(ServletConfig) or a static initializer in the Servlet class at startup ... BTW I also am using Spring IoC to create and inject the JDO EMF and I dont think I am seeing the same performance issues? Do

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

2009-09-14 Thread Larry Cable
+1 On Sep 13, 6:18 am, Philippe Marschall wrote: > On Jul 22, 7:41 pm, "Jason (Google)" 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 > > java.io.File which is not a supporte

[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 wrote: > What do

[appengine-java] Re: Bulk writes to datastore

2009-09-12 Thread Larry Cable
caused by all the task spawning > and so on. > > All that for an operation which litteraly takes seconds on my old box > running relational DB, which I use for testing purposes. > > It's to complicated and it uses way to many resources to update 1000+ > entities - and there ar

[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 &q

[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
e.com/appengine/docs/java/datastore/relationships.ht... > > - Jason > > > > On Tue, Sep 8, 2009 at 8:18 PM, Larry Cable wrote: > > > any documentation or comments on how JPA/JDO map their entities and > > identities onto entity groups? > > > On Sep 8, 2:16 pm, &q

[appengine-java] Re: Bulk writes to datastore

2009-09-08 Thread Larry Cable
any documentation or comments on how JPA/JDO map their entities and identities onto entity groups? On Sep 8, 2:16 pm, "Jason (Google)" wrote: > If you're trying to achieve high write throughput, as it sounds like you are > since you have 1,000,000 entities to write, you should be designing your

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

[appengine-java] Re: JPA support for enum's

2009-09-02 Thread Larry Cable
25, 2:11 pm, Larry Cable wrote: > > > > > Has anyone managed to get anenumpersisted via JPA? > > > I can't I get an exception from the runtime, "no such method () > > V", which I take to mean that it cannot > > locate a public no-args constru

[appengine-java] Re: JPA on App Engine ... how hard can it be?

2009-09-01 Thread Larry Cable
gt; As an aside, JDO and JPA are both open standards for Java persistence. If > you're interested in code portability, you can use either standard. Given > the issues that you're having, you may want to experiment with the JDO > interface since it's better documented for App E

[appengine-java] JPA on App Engine ... how hard can it be?

2009-08-30 Thread Larry Cable
the problem is simple: @Entity public class Company implements Serializable { // ... public Company(String irsEIN) { ein = irsEIN; // ... } @Id String ein; // the IRS EIN for the company ... this is a unique id and a good one to use for PK? // ... } ... no i

[appengine-java] Has anyone got JPA to persist a simple entity with an application supplied primary key???

2009-08-30 Thread Larry Cable
I have pretty much spent the last week on and off trying to get JPA to persist a "simple" entity with an application supplied key to no avail whatsoever, so if anyone has any ideas I would appreciate them! The task is simple: @Entity public class Company implements Serializable { } --~--~--

[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 wrote: > I put the following codes to my jsp: > > <%...@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"; %

[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 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 according to the JPA spe

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

2009-08-26 Thread Larry Cable
d Id won't work with App Engine since it can't be naturally > represented as a Key object. > - Jason > > > > On Tue, Aug 25, 2009 at 2:09 PM, Larry Cable wrote: > > > I have given up, seems like this is not supported, the runtime > > complains that the

[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 wrote: > I have exactly the same problem, I instantiate a number of

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

[appengine-java] Re: Performance implications of embedded classes

2009-08-25 Thread Larry Cable
I'd be surprised if you can even get them to work!!! I am having no end of trouble getting a pretyt basic @Embedded scenarios to work ... good luck! On Aug 25, 2:19 pm, "fx.mueller" wrote: > Hello, > > I just went through the getting started documents and have a question > regarding embedded cl

[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 () V", which I take to mean that it cannot locate a public no-args constructor for the enum ... go figure ... :( --~--~-~--~~~---~--~~ You received th

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

2009-08-25 Thread Larry Cable
I have given up, seems like this is not supported, the runtime complains that the "MyId" class is not a supported Key Class ... go figure ... On Aug 24, 4:15 pm, Larry Cable wrote: > Has anyone managed to get @EmbeddedId with JPA to work in GAE/ > DataNucleus??? > >

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

2009-08-24 Thread Larry Cable
On Jul 13, 2:16 am, Shawn Brown 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? > > I'm fetching

[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