I have some 30,000 files consisting of 800kb that I want to upload and
save in the data store. As us java users dont have an easy way of
uploading data I am resorting to using http POST requests to upload
the files. This is painfully slow, each file takes about 2 minutes.
Has anyone come up with
Hey,
Is there a method in which I can receive a request and then forward
the same request to an external URL (not redirect)?
Importantly, the IP address of the device which made the initial
request MUST be preserved. It must look, to the external URL, that the
request came from the device which
I dont like bumping posts, but this has wasted far too much of my
time now ;)
Any help would be greatly appreciated.
On Mar 3, 4:47 pm, mscwd01 mscw...@gmail.com wrote:
Hey,
Is there a method in which I can receive a request and then forward
the same request to an external URL (not redirect
Hey,
How do you ensure, once you have queried an object from the datastore,
that another call to that object cannot be made?
I basically have a bunch of objects with counters which get
incremented during each call to that object.
What I need to ensure is the object doesn't get called by two
Hey,
As the title of this post suggests, is it possible to get a unique
Long id from a user defined String key?
Thanks
--
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
be reset so you may need to periodically
store them in the datastore.
On 8 Apr 2010, at 16:17, mscwd01 wrote:
Hey,
How do you ensure, once you have queried an object from the datastore,
that another call to that object cannot be made?
I basically have a bunch of objects with counters
, mscwd01 mscw...@gmail.com wrote:
Hey,
As the title of this post suggests, is it possible to get a unique
Long id from a user defined String key?
Thanks
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group
post Max Ross wrote about optimistic locking using built in
features of JDO/JPA
On Thu, Apr 8, 2010 at 2:42 AM, mscwd01 mscw...@gmail.com wrote:
Thanks John. So basically the process should be:
- Query for the object inside a transaction
- Update the object counter
- Commit
I am not able to persist a HashMap field. This is how I define it:
@Persistent(serialized = true, defaultFetchGroup = true)
private MapString, Integer items;
When I create the Object which the Map is a field of, I instantiate
the Map as follows:
items = new HashMapString, Integer();
When I
Hey,
I am developing an app which awards users for visiting a specific
link. However, I want to ensure this is not abused by people writing
scripts to visit the link rather than manually viewing it.
Is there a way to check how many times a specific IP address has
accessed your application within
I assume my idea was the best anyone can come up with?
On Jun 27, 10:27 am, mscwd01 mscw...@gmail.com wrote:
Hey,
I am developing an app which awards users for visiting a specific
link. However, I want to ensure this is not abused by people writing
scripts to visit the link rather than
Thanks for your replying guys, it would be great if we could get an
official Google response to update us on this as well though!
I'll definitely have a look at the Bulk Loader in the meantime...
On Jun 28, 1:52 pm, Mike Dillon mikedillo...@gmail.com wrote:
Mscwd01,
I'm not a google employee
in the past. For the key, however, I've used
this as the key:
(Pseudocode):
strftime(%Y %m %d %h) + ipaddress
Memcache uses LRU to expire elements, so once the hour passes, the key will
be quickly expired as it falls off the end of the list.
On Wed, Jun 30, 2010 at 8:50 AM, mscwd01 mscw
this, submit a request and we will
add it to the Open Source projects page:
http://groups.google.com/group/google-appengine/web/google-app-engine...
On Wed, Jun 30, 2010 at 8:51 AM, mscwd01 mscw...@gmail.com wrote:
Can I attempt to get the attention of a Google employee to ask When
can we
to the bulkloader, which lets you do those things. App
Engine's datastore isn't a relational database. We can't do a dump of all
your data without iterating through all of your indexes, then retrieving
your Entities.
On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 mscw...@gmail.com wrote:
Thanks
export capability now, however,
don't wait on this since it won't be soon. My suggestion is to learn to use
the current bulkloader or build your own export mechanism.
On Thu, Jul 1, 2010 at 8:16 AM, mscwd01 mscw...@gmail.com wrote:
I second this.
On Jul 1, 2:17 pm, xcdesz xcd...@gmail.com
Hey,
For the primary key of my User object, I store the Google Account ID
instead of the user's email address (in the event they change the
email address).
Is there a way of taking the Account ID and obtaining the current
email address associated with the account?
Thanks
--
You received this
Hey,
My app has been getting a higher number of requests per second
recently and as a result I've seen an increase in the number of
concurrent modification exceptions occurring when I persist objects to
the datastore. The problem arises as I perform a lot of updates on a
particular object and if
Anyone?
I have done more searching and cant find anything JDO specific to
handle concurrency so I am assuming it's normal Java locking that'll
need to be implemented?
On Sep 27, 9:48 am, mscwd01 mscw...@gmail.com wrote:
Hey,
My app has been getting a higher number of requests per second
I've been getting the second issue you mentioned for the last few
days. Sometimes the error rate is above 50%. Don't expect to get any
help from Google employees though, I've tried and got nowhere. It
makes you wonder if they care any more.
On Sep 28, 10:37 am, Lior Harsat lior.har...@gmail.com
Hey,
I was very pleased to see the class java.net.InetAddress present in
the new SDK as I've been needing it for a while. However, after
rebuilding my app with SDK 1.3.8 and uploading it to the App Engine's
live servers I get the following exception:
Internal Server Error (500) -
Programs Engineer, Google App Engine
Blogger:http://googleappengine.blogspot.com
Reddit:http://www.reddit.com/r/appengine
Twitter:http://twitter.com/app_engine
On Tue, Oct 19, 2010 at 11:41 AM, mscwd01 mscw...@gmail.com wrote:
Hey,
I was very pleased to see the class
Any word on this?
--
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
Ikai, did you get a chance to look into this? When can we expect every
app to be upgraded to 1.3.8?
--
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
://googleappengine.blogspot.com
Reddit:http://www.reddit.com/r/appengine
Twitter:http://twitter.com/app_engine
On Wed, Oct 20, 2010 at 4:27 PM, mscwd01 mscw...@gmail.com wrote:
Okay now I'm confused. I added a quick test page to see what version
my app is running and it appears I am on 1.3.8.
http
://googleappengine.blogspot.com
Reddit:http://www.reddit.com/r/appengine
Twitter:http://twitter.com/app_engine
On Thu, Oct 21, 2010 at 10:38 AM, mscwd01 mscw...@gmail.com wrote:
Thanks for looking into it Ikai. If you were to guess is this likely
to be a quick fix or a lengthy drawn-out one?
I've made
Great! Thanks for attempting to fix this so quickly.
On Oct 21, 10:32 pm, Don Schwarz schwa...@google.com wrote:
This is a temporary workaround only. We should have this fixed in a few
hours.
On Thu, Oct 21, 2010 at 4:29 PM, mscwd01 mscw...@gmail.com wrote:
Thanks for the update
Thanks for the update and thanks again for the quick fix!
On Oct 22, 4:02 pm, Don Schwarz schwa...@google.com wrote:
The fix for this has now been rolled out to all applications.
On Thu, Oct 21, 2010 at 4:40 PM, mscwd01 mscw...@gmail.com wrote:
Great! Thanks for attempting to fix this so
Hey
I'm not sure if it's just me but I really cannot make sense of the
documentation explaining how to set up warm up requests.
http://code.google.com/appengine/docs/java/config/appconfig.html#Warming_Requests
It states Warming requests are enabled by default for all Java
applications. and then
loading and hotspot compilation early.
Does that clear things up?
-- Don
[1] Some Java applications (e.g. JRuby apps) are configured with an app.yaml
file instead.
On Mon, Dec 6, 2010 at 9:22 AM, mscwd01 mscw...@gmail.com wrote:
Hey
I'm not sure if it's just me but I really cannot
Oh I just realised, the docs are wrong it's not:
warming-requests-enabledtrue/warming-requests-enabled
but in fact:
warmup-requests-enabledtrue/warmup-requests-enabled
Just in case that catches others out.
On Dec 6, 4:01 pm, mscwd01 mscw...@gmail.com wrote:
That clears things up nicely. I'll
Even better, thanks
On Dec 6, 4:12 pm, Don Schwarz schwa...@google.com wrote:
Ah, thanks. We'll get that fixed. However, true is the default so you can
just leave this out entirely.
On Mon, Dec 6, 2010 at 10:11 AM, mscwd01 mscw...@gmail.com wrote:
Oh I just realised, the docs
This still doesn't solve the issue for me, mapping a servlet url
pattern to a jsp file always fails...
On Dec 6, 1:33 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
Thanks guys, moving AppEngine (and GWT) to the top in Order and Export
really solved this.
Thanks a lot :)
On Sun,
Where should it be? I cannot see it listed in my libraries.
On Dec 6, 5:03 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
seems like repackaged-appengine-jasper-6.0.29.jar is not where it is
supposed to be...?
On Mon, Dec 6, 2010 at 5:58 PM, mscwd01 mscw...@gmail.com wrote
Library.
Project - Properties - Java Build Path - Libraries
On Mon, Dec 6, 2010 at 6:28 PM, mscwd01 mscw...@gmail.com wrote:
Where should it be? I cannot see it listed in my libraries.
On Dec 6, 5:03 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
seems like repackaged
I'm not sure I understand. It worked fine before I downloaded the new
1.4 SDK.
On Dec 6, 5:54 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
Could it be it is only a missing import declaration in the *.java result of
your *.JSP?
On Mon, Dec 6, 2010 at 6:46 PM, mscwd01 mscw
I'm running:
Eclipse Java EE IDE for Web Developers.
Build id: 20100218-1602
With V1.4 of the App Engine SDK and cannot get servlets mapping to jsp
files, i.e.
servlet
servlet-nameabout/servlet-name
jsp-file/about.jsp/jsp-file
/servlet
servlet-mapping
servlet-nameabout/servlet-name
Pardon my ignorance, I have read the docs over and over and this still
alludes me.
I have two objects, lets call them User and Skill. When a person
signs up to my site they are saved as a User. A user may have
multiple skills, these are stored as a list within the User object,
e.g.
@Persistent
Hi
Is there a way to resize an image to an exact size?
I am currently using this:
ImagesServiceFactory.makeResize(width, height);
However, this scales the image until it reaches either the height or
width value to ensure the aspect ratio is maintained. This is not what
I want, I would like to
No one? I guess I'll have to resize it myself then. I'm surprised the
Image Service cant do this.
On Apr 3, 7:10 pm, mscwd01 mscw...@gmail.com wrote:
Hi
Is there a way to resize an image to an exact size?
I am currently using this:
ImagesServiceFactory.makeResize(width, height);
However
Hey
Okay, I have a simple request - I want to backup all of my apps data
on my local machine so that in the event of my data becoming corrupt
or lost I can do a restore.
So I search backup/restore on gae and only really find the bulk
loader as a solution. The trouble is it really isn't a
expect for a beta and free service?
- Reply message -
From: mscwd01 mscw...@gmail.com
Date: Mon, Apr 25, 2011 6:44 pm
Subject: [appengine-java] Backup restore of my app - Is this really a joke
or am I missing something?
To: Google App Engine for Java google-appengine-java
contain stale data.
Omitting not-yet replicated data from a backup is not terrible nor
unexpected.
Perhaps you would like a 'checkpoint' feature? Suggest it in a ticket...
On Tue, Apr 26, 2011 at 12:44 AM, mscwd01 mscw...@gmail.com wrote:
Hey
Okay, I have a simple request - I want
Yeah, I'm aware this exists, I'm also aware of the date it was raised:
Reported by tran.the...@gmail.com, Oct 8, 2008
It's obvious the GAE team listen to important issues!
On Apr 26, 11:38 am, Francois Masurel f.masu...@gmail.com wrote:
You might be interested in this issue :
Hey
I want to make an unindexed property, indexed. I only have a few
objects in the datastore but would prefer not to wipe it. Is there an
easy way to recreate an index on the unindexed property?
Thanks
--
You received this message because you are subscribed to the Google Groups
Google App
Hey
I have an entity with an Int Array and I would like to perform a query
on the contents of the Array. For example, I would like to return
entities which have a certain number within the array, I.e.
Select * From MyObject Where numberArray contains 2
Is this possible in any way, shape or
( Arrays.asList(key,
e1.getKey(), e2.getKey()) );
On May 8, 5:14 pm, mscwd01 mscw...@gmail.com wrote:
Hey
I have an entity with an Int Array and I would like to perform a query
on the contents of the Array. For example, I would like to return
entities which have a certain number
Hey
I have an Entity which contains a ListEntity property that stores
child entities. I have found a bug in my app where during concurrent
modification of child entities all of the children in the parent
entities list will be deleted.
Firstly, why does this happen? Surely it'd be better to throw
Hey
I have two entities I update and which to persist. These are in two
different entity groups so I cannot update and persist them within a
Transaction. I am using JDO pm.makePersistentAll and must ensure each
entity only saves to the datastore if both can be written.
What's the best way to do
Hey
Are you able to store a HashMap within an embedded class?
I have a Class which implements Serializable and annotate the HashMap
like this:
@Persistent(serialized = true, defaultFetchGroup=true)
private MapString, Integer myMap;
However, I always get this error thrown:
myMap:
The issue I have though is HasMap's are supported if serialized=true
is set. What I want to determine is why cant I use a HashMap within an
embedded class?
Thanks
On May 24, 2:36 pm, Brandon Donnelson branflake2...@gmail.com wrote:
Here are the supported property
Hey
I have a JDO query which filters on two properties of a Person
entity, lets call them age and height. I wish to order the results
by the Persons score. However, due to the restrictions App Engine
imposes I firstly have to order by age or height. So I currently have
query.setOrdering(age
The restriction I am referring to is mentioned here:
http://code.google.com/appengine/docs/java/datastore/jdo/queries.html
Scroll down to Query Sort Orders where it says:
Due to the way the App Engine datastore executes queries, if a query
specifies inequality filters on a property and sort
Hey,
I have a parent entity which has a Set of child entities, as
follows:
class Parent {
@Persistent @Element(dependent = true)
private SetChild children;
}
When I delete the Parent entity I get the following exception:
javax.jdo.JDOUserException: Cannot read fields from a deleted object
delete each entity in the set in a loop
by yourself before deleting the entity which the set is part of ?
regards
didier
On Jun 6, 1:48 am, mscwd01 mscw...@gmail.com wrote:
Hey,
I have a parent entity which has a Set of child entities, as
follows:
class Parent {
@Persistent
:12 am, mscwd01 mscw...@gmail.com wrote:
Thanks for the replies.
@Didier - I have considered this, and I guess I will have to manually
delete each entity if I cant find a more elegant solution, however
going by what the documentation says it should just work. I'd like to
find out why
Hey
I just noticed my app stopped working correctly so I opened the logs
and went back as far as I could (about an hour) and I noticed my app
wasn't able to load a specific kind of entity. Going by my current CPU
usage it seems like the issue has been ongoing for several hours.
Whilst trying to
only
when I get a spike in traffic?
On Jun 22, 10:52 pm, mscwd01 mscw...@gmail.com wrote:
Hey
I just noticed my app stopped working correctly so I opened the logs
and went back as far as I could (about an hour) and I noticed my app
wasn't able to load a specific kind of entity. Going by my
in every request, hence the contentions
as you trafic raises.
regards
ddoer
On Jun 22, 11:59 pm, mscwd01 mscw...@gmail.com wrote:
Okay I just got a single log entry pop up that may offer some insight
to the problem. It reads:
Too much contention on these datastore entities. please
PM, mscwd01 mscw...@gmail.com wrote:
Yes each time a user makes a request to the app, their user entity is
loaded and their request count incremented, so the User entity is
fetched, updated and put very frequently.
Surely though the datastore should be able to handle this, it's not
like
Hey
I'm using JDO and need to update two entities both of which reside in
their own entity group. As I cannot use a transaction, I'd like to
determine how others achieve this. It is imperative that both entities
are updated or none at all.
Thanks
--
You received this message because you are
the amount to be x before you add y).
On Jul 10, 9:15 pm, Didier Durand durand.did...@gmail.com wrote:
Hi,
Have a look at this to understand the
issues:http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine
regards
didier
On Jul 10, 11:09 pm, mscwd01 mscw
) {
pm.close();
}
}
}
}
On Jul 11, 3:41 pm, mscwd01 mscw...@gmail.com wrote:
The try/catch/finally method seems better than the convoluted method
mentioned in the blog. One question though, what is the success flag
you mentioned? I'm confused as to how I can
,
or the corresponding persistent instance for detached parameter
instances
:)
http://download.oracle.com/docs/cd/E13222_01/wls/docs103/kodo/jdo-jav...
On Jul 12, 7:20 am, mscwd01 mscw...@gmail.com wrote:
One final question. In the afterCompletion method when the userAccount
has the amount subtracted
be getting
myself into more problems by messing with them. Could someone kindly
tell me if my fix is suitable and/or safe?
Thanks
On Jul 18, 10:02 am, mscwd01 mscw...@gmail.com wrote:
Thanks for theupdate. It's a pity you cant check to see if the first
transaction committed before it leaves
Hey,
I have 3 classes: Person, Car and Model.
Person has an ArrayList property defined:
ListCar cars;
Car is an abstract class which class Model extends, I.e.
@PersistenceCapable
@Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
public abstract class Car {
@PrimaryKey
{
}
and keep Model
@PersistenceCapable
public class Model extends Car {
...
}
Rolf
On 8 Aug., 01:35, mscwd01 mscw...@gmail.com wrote:
Hey,
I have 3 classes: Person, Car and Model.
Person has an ArrayList property defined:
ListCar cars;
Car is an abstract class
class Car {
}
and keep Model
@PersistenceCapable
public class Model extends Car {
...
}
Rolf
On 8 Aug., 01:35, mscwd01 mscw...@gmail.com wrote:
Hey,
I have 3 classes: Person, Car and Model.
Person has an ArrayList property defined:
ListCar cars;
Car
I've noticed the same thing with our domain. However, it seems like a
localised issue as I cannot reach my app from home but can at work.
Also using a proxy server located in the US loads the site fine (I'm
in the UK).
Any news on why this may be would be great.
On Aug 31, 10:20 am, footy
URL
On Aug 31, 10:57 am, mscwd01 mscw...@gmail.com wrote:
I've noticed the same thing with our domain. However, it seems like a
localised issue as I cannot reach my app from home but can at work.
Also using a proxy server located in the US loads the site fine (I'm
in the UK).
Any
Hey
In an effort to reduce the number of datastore PUTs I am consuming I
wish to use the memcache much more frequently. The idea being to store
entities in the memcache for n minutes before writing all entities to
the datastore and clearing the cache.
I have two questions:
Is there a way to
is modified while an iteration over the set is in progress the results
of the iteration are undefined. My cache is updated very frequently
so the map will be modified. So how do you prevent this from happening
and persist each entity in the cache to the datastore?
Thanks
On Oct 1, 11:45 am, mscwd01 mscw
= cache.getIdentifiable(allKeys);
ListLong keys = i.getValue();
keys.add(id);
boolean put = cache.putIfUntouched(allKeys, i, keys);
if (!put) {
//response 409 for conflict due to concurrency so appengine will
retry this later
}
}
On Mon, Oct 3, 2011 at 5:38 PM, mscwd01
Never mind, after realising you were using the low level
MemcacheService all makes sense :)
I shall probably try and use this strategy, thanks!
On Oct 3, 10:29 pm, mscwd01 mscw...@gmail.com wrote:
That's a shame, it's a real disadvantage not having that simple
functionality.
Thanks for your
, 2011 at 2:29 PM, mscwd01 mscw...@gmail.com wrote:
That's a shame, it's a real disadvantage not having that simple
functionality.
Thanks for your example, although I found it a little difficult to
understand it completely. Are you suggesting having an entry in the
cache with a key string
Hey, the docs state:
There is currently no way to enable XG transactions for an individual
JDO or JPA transaction.
Instead you must enable XG transactions for the whole app. This is
fine but I'm wondering if this effects performance of transactions?
Most of the transactions I perform are on the
Hey,
To quote Max Ross:
Due to a mix-up,the JDO/JPA jars that are included in the 1.5.5 SDK do
*not
*support XG Transactions. If you want to use XG Transactions with JDO
or
JPA in 1.5.5 you can download an updated jar
from
Hey
I'd like to make a backup of the data of my HR datastore app. I looked
at using the remote API but it somewhat unhelpfully says:
If your app uses the High Replication datastore and you attempt to
download data, you'll see a high_replication_warning error in the
Admin Console, and the
...@jaggard.org.uk wrote:
Why would it be a problem to be missing data at 14:59 in your 15:00 backup?
Presumably if you have to restore at 18:23, you'll be far more concerned
about the data missing between 15:00 and 18:23 than the data from 14:59 to
15:00?
Mat.
On 15 November 2011 15:31, mscwd01 mscw
79 matches
Mail list logo