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
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
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
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
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
>
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,
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
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:
>
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
+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
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
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.
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
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
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
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
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
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
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
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
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
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,
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
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:
; 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:
>
> >
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
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
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
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
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
>
>
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
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
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'
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
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
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
+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
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
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
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
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
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
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
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
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
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
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
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 {
}
--~--~--
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"; %
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
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
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
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
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
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
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???
>
>
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
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
58 matches
Mail list logo