You could use DatastoreService.allocateIds()
But why would you want to do this? If its to make the ids look nice
then you could just add and remove the string yourself before looking
up the key. Probably better to have a date property rather than
include it in the key.
On 8 Feb 2010,
Hello, Is there a way to see the data of the
WEB-INf/appengine-generated/local_db.bin from Eclipse?
Thanks.
2010/2/8 dreamy dreamy2c...@gmail.com:
We have no success to implement gae junit test.
We use spring 2.5.6 and follow the
John,
Thanks a bunch. Here is the reason why I need to add a prefix to the key.
The scenario -
I will be implementing pagination (of the data returned) as described in
and for the sort order I wanted to use the Key. However, if the key also
has the date of creation embedded in it then the sort
I read app engine wiki, on datastore contention if too frequent write
more than 5 times in 1 seconds. The wiki introduced use shard
approach as workaround. May i know if we use spring @transactional
on this, this can prevent datastore contention timeout right since
writing in done concurrently ?
Getnextid was referred to by max ross in his google io talk in april
2009
On Feb 7, 11:48 am, datanucleus andy_jeffer...@yahoo.com wrote:
What getNextID feature on JDO ? i.e please make reference to the JDO
API and which particular API Method you're referring to
--
You received this message
Getnextid was referred to by max ross in his google io talk in april 2009
Which is not a JDO API call. Perhaps he's referring to low-level API.
JDO allows sequences, and provides an API for those, which AFAIK
Google haven't implemented.
--
You received this message because you are subscribed
Hey all,
Since Ikai's post on January 22nd, I haven't had much trouble with my
instance rebooting unexpectedly. However, today the problem has
returned. I'm getting instance restarts within a minute or two of
each other on a somewhat regular basis - sometimes even within a few
seconds of each
I need a brief listed answer in a professional manner for subject
question (As an example, pls see listing under point entitled Java EE
5 platform support that lists GlassFish Specs under this link:
http://docs.sun.com/app/docs/doc/821-0188/gidij?l=ena=view).
--
You received this message
I have been searching through the JDO and JPA docs, but I can't find
info about adding and removing properties at runtime.
The Python interface has the Expando model for this:
http://code.google.com/appengine/docs/python/datastore/expandoclass.html
If I want to read and write my Expando models
Hi,
Any ideas on how to get the user's timezone (i.e., the timezone the
client is working in)?
The closest I've come so far to an answer is:
http://j2eecookbook.blogspot.com/2007/06/formatting-date-to-client-timezone.html
Does anybody have a better way of accomplishing this?
I'd prefer to
Hello everybody !
I am using appengine for a personal project in order to create a
professional application. I find Appengine really powerful but i do
not understand why the new table inheritance strategy is not available
even if it would not be really efficient.
In the documentation it is said
Hi
I am new in the list, in these days i am trying save data between two
entity beans using JPA but without success, i am cheking the log nd
says:
Uncaught exception from servlet
javax.persistence.PersistenceException: Error in meta-data for
beans.distritos.id: Cannot have a java.lang.Long
Should the PersistenceManager be closed after every query?
I have a utility class that handles querying the datastore. This class
then returns results which are used by JSP pages to show output.
AFAIK, these are my options:
* Make all my data objects detachable (what is the extra cost of doing
Hi
I am new in the list, in these days i am trying save data between two
entity beans using JPA but without success, i am cheking the log nd
says:
Uncaught exception from servlet
javax.persistence.PersistenceException: Error in meta-data for beans.distritos.id: Cannot have a java.lang.Long
Hi
I am new in the list, in these days i am trying save data between two
entity beans using JPA but without success, i am cheking the log nd
says:
Uncaught exception from servlet
javax.persistence.PersistenceException: Error in meta-data for beans.distritos.id: Cannot have a java.lang.Long
Hello,
I am very new to appengine, and I am trying a very basic model exemple: A
Race class is linked to a Runner class through a Result class
When I am running the folloging code (the full code is attached):
Race race = new Race(Paris, new Date(), 10);
Runner runner1 = new
Hi All, I am now trying to take an architrecture descision to go for Google
App Engine for Java or not but I did not find a topic that gathers all
Specs regarding it in one place. What I am looking for is the usual Standard
Server Application Server Arch. Specs like JSF, EJB JPA support for
As java.util.Map isn't supported by GAE, I'm trying to create a class
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable=true)
public class DAOMapK extends Object, V extends Object implements
MapK,V {
...
however, got such exception in Eclipse console
DataNucleus Enhancer
What is need to get Eclipse to compile AppEngine functions:
import com.google.appengine.api.users.User;
-- Unable to resolve - source code unavailable.
One suggestion was to create a super class to fool the GWT compiler
but that only gets you so far.
I have even gone back to basic and worked
Hi,
I just tried to upload my first App to the Google App Engine. I tried
the Eclipse Plugin and appengine-java-sdk-1.3.0/bin/appcfg.sh.
I have Suse Linux 10.3 and jdk1.6.0_18 installed.
Each time I tried, I got the following error:
Hi,
am jeevan dongre.I am final year engineering student from computer
science and engineering.
I am doing a project on cloud computing called cloud based teaching
system using google app engine. Iam utilizing google resources like
blog,group,docs and also gmail.Since i am new to this programming
Francisco send your code for help you
El 08/02/2010 10:55 a.m., Francisco Gonzalez escribió:
Hi.
I'm developing an application that receives AJAX requests to perform
some actions. I'm using jQuery to send the requests from the client.
One of those requests is of type HTTP DELETE.
The
Thanks for the info, Jake. Has anyone else experienced this? That is, has
anyone else noticed improvement which has since degraded?
On Mon, Feb 8, 2010 at 9:10 AM, Jake jbrooko...@cast.org wrote:
Hey all,
Since Ikai's post on January 22nd, I haven't had much trouble with my
instance
Hey,
Relationships in GAE are a bit picky. It is my understanding that you
can only persist children by way of persisting their parents. So, in
your case, both Race and Runner are children of Result and you would
only persist the two result objects - the dependent children would be
persisted
Hello everyone,
in my application I have a scheduled task that runs every 5 minutes to
update the cache. Currently it is a brute force implementation, that
runs through all entities and computes all permutations required.
This task usually takes longer than 30 seconds - and fails almost
every
I'm hoping for a good way to resolve workspace dependencies in
Eclipse. The m2eclipse plugin does this well, but that doesn't play
nicely with the maven-war-plugin, so it doesn't work for GAE. Running
a Maven Install on each workspace dependency before deploying,
however, is still nicer than
You should be able to catch a DeadlineExceededException and have
~400ms in which to return from your request before a
HardDeadlineExceededError is thrown.
Are you sure that you are not catching and ignoring the
DeadlineExceededException? If so, can you create a small reproducible
test case for
HDEEs can be thrown without a DEE if it happens in your own code.
Usually the most time consuming thing is waiting for API calls to
return so a timeout here will result in the API call stopping with a
DEE. So if you do not call the API often you can hit HDEE directly.
I also have long
To add properties to classes at runtime, you need to build your
classes dynamically, and then enhance them, and define the metadata
for them dynamically too. All been done before, see this link
http://www.jpox.org/servlet/wiki/pages/viewpage.action?pageId=6619188
--
You received this message
Hey all,
I'm trying to take a PNG that has all pixels filled with nothing
transparent, and cut out part of that image along a predefined
mask. So I would end up with an image that is part transparent and
part filled.
Is this possible with the Image API? The only way I'm able to punch
out
Hi,
I am kind of new to GAE, and I was wondering if someone has statistics
or data that shows what are the most optimal (efficient) ways for
deleting and creating objects in the Datastore.
I did some small experiments in order to identify a more efficient
mechanism to delete and create objects
Sounds like a pretty cool feature. Go ahead and add it to our feature
request list:
http://code.google.com/p/googleappengine/issues/list?can=2q=datastore+viewer
On Tue, Feb 2, 2010 at 8:10 PM, Daniel Benamy dben...@gmail.com wrote:
Hi,
I'm trying to find a way to see the relationships
I agree with Jake; relationships are tricky. Likewise with his pointing out
that having race be in two Results will be a problem; that won't fly.
Another way would be to have a ListResult in Race, and add your Results to
that. But you're still going to have parenting problems when you have
Hello,
The Google Datastore has four ways that you can store a Primary Key
ID: String, Long, and two variations on Google's own Key object. If
you want to create a parent/child relationship between two persisted
objects (in your case, evento is the parent and distritos is the
child), then you
hi jake, thank for you answer
i will try you suggestion and i will tell later
El 08/02/2010 03:37 p.m., Jake escribió:
Hello,
The Google Datastore has four ways that you can store a Primary Key
ID: String, Long, and two variations on Google's own Key object. If
you want to create a
I saw this blog post the other day (It was posted on our Twitter account):
http://blog.jteam.nl/2010/02/04/free-java-hosting-with-the-google-app-engine/
The tip is to add this to your web.xml:
context-param
param-namejavax.servlet.jsp.jstl.fmt.timeZone/param-name
Looks like someone ported the Python code to Java for GeoHash:
http://stackoverflow.com/questions/2060219/google-app-engine-geohashing
Also seems like a pretty good explanation of GeoHashing in general.
On Thu, Feb 4, 2010 at 10:16 AM, mianor lefebvre.rom...@gmail.com wrote:
Hi,
I am trying
What does the server log report at this time? Can you post a stack trace?
On Fri, Feb 5, 2010 at 6:20 AM, Bob F robertfolke...@gmail.com wrote:
I tried to open http://folkertsfotografie.appspot.com and recieved
Error: Server Error
The server encountered an error and could not complete your
This can be done with JavaScript:
http://stackoverflow.com/questions/768007/how-to-detect-user-time-zone-in-sign-up-forms
This is basically what your link describes. It's not an issue with Java but
with HTTP in general. This doesn't solve the case of a traveling user if
they don't set their
Hi there,
How would you query/filter on ContactInfo when you have the Employee.
Or better sample if it was Box and a Items, where you only want
the yellow items.
From:
http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned%5FRelationships
### Employee.java
import
may i know does by setting param-
namejavax.servlet.jsp.jstl.fmt.timeZone/param-name makes the logs
to show timezone we want? or that parameter is only used for jsp-jstl ?
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to
Thanks for the reply!
http://code.google.com/p/googleappengine/issues/detail?id=2745
Dan
On Mon, Feb 8, 2010 at 2:48 PM, Ikai L (Google) ika...@google.com wrote:
Sounds like a pretty cool feature. Go ahead and add it to our feature
request list:
Thanks for your response. I'm using jython 2.5.1 downloaded from
jython.org, and using the demo modjy app provided with jython. I'm
not modifying it in any way.
I can't find any other reports of this problem anywhere on the net -
mystifying! Unfortunately I don't have another dev environment
Hi!
May be GAE Runtime is updated to 1.3.1.
In my JRuby app, spin up time was longer than before update.
I see many HardDeadlineExceededError.
Whats happen??
takeru
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this
GWT needs the source code to compile its JavaScript so you cannot use
closed source classes like those from App Engine. In these cases you
must make a client side transfer object
com.mycompany.project.ClientUser and transfer the properties you want
to pass to the client. This is normally
If you add Objectify
(http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT)
to your project, you will be able to use the datastore basic types
(Email, Link, GeoPt, etc) in GWT without any extra effort.
This works even if you don't use the Objectify persistence system.
Jeff
On Mon,
46 matches
Mail list logo