Hi all
So I tried following junit code with SDK 1.2.6 and Java 6
--
KeyRange keyRange = DatastoreServiceFactory.getDatastoreService
().allocateIds(Account, 1);
String keyString = keyRange.getStart().toString();
I ported my Open Source EJB3/JPA application to Google App Engine many
months ago and almost at the beginning it was obvious that I had to
split my entity classes to two versions: Google App Engine and non
Google App Engine. Impossible to achieve 100% source compatibility.
Primary key not
I didn't use Spring, but I found detach/attach annoying and irrelevant
in GAE context because:
1. Without detaching, when you update a field, and later on close the
PM, the object will be committed regardless. This makes no sense in
GAE as 99.99% of time you want to control what you commit or
1. Without detaching, when you update a field, and later on close the
PM, the object will be committed regardless. This makes no sense in
GAE as 99.99% of time you want to control what you commit or not.
Worse yet if you persist other object and have a transaction, it might
fail because the
I think most complains about JDO in this group is not saying that JDO
has issues. It just that GAE is so different then traditional
environments that old frameworks aren't 100% suitable. If there's a
modify version of JDO that strip out irrelevant features, and put in
some important low level api
Hi Andy,
query.setFilter(key == :keyList);
ListMaster list = (ListMaster) query.execute(keyList);
I'd like to know if that works with GAE/J, because it is illegal JDOQL
syntax and would be a bug. JDOQL is supposed to follow Java syntax,
and you simply cannot do
Key == ListKey
and get
I think most complains about JDO in this group is not saying that JDO
has issues. It just that GAE is so different then traditional
environments that old frameworks aren't 100% suitable. If there's a
modify version of JDO that strip out irrelevant features, and put in
some important low
Hi Jason and Max,
I was making some tests on this today and I've found out that
one-to-many relationship child objects retrieving works as long as the
one-to-many relationship doesn't involve polymorphisms.
For example, if we make the Child class abstract and save subclasses
into the list the
It looks for me that you mix JPA annotations (OneToMany, Entity, Id)
with JDO api. - using PersistenceManager. It is hard to say how it
behaves and disentangle that issue.
But if you want to have bi-directional ownership - in News entity
Source instance - follow this thread, it could shed some
Hi,
I have a domain myid.com mapped to google apps and I managed to
configure my Java appengine to be served from www.myid.com.
I would also like to serve the same Java appengine from myid.com.
How can this be accomplished? Is there a DNS record which would alias
myid.com to www.myid.com? I
At the time of creating an application-id on appengine, you have an
option to allow authentication only for users of a particular domain
or for all google account users. If you already have the application
setup for universal google account authentication, then you need to
create a new
For example I'd like my users to enter their u...@mycompany.com email
rather than someb...@gmail.com. Is this possible?
I have a GAE app defined as public which I can authenticate to using
u...@mycompany.com. The rules for when this does and doesn't work seem ill
defined.
then you need to
There is absolutely nothing in the JDO ***API*** that is irrelevant to
GAE/J and BigTable.
I disagree, and that's the main reason why we developed our own
framework. These are just some random thoughts about this subject:
* Transactions in JDO is a global thing tied to the persistence store
I recently played with the lower level API as well. Some of the
features are not available in JDO, like reserving a key before
committing a new object.
Yes, we wanted to get access to those. Specially, the create several
keys at once and persist several entities at once are great, we
combined
Do you have some more doc/java doc ? I was browsing through your page
and found nothing. As far as I caught you implemented simple set of
CRUD operations on items and simple query mechanism. Am I right ? The
decision to get rid of relationships is very sound because this GAE/J
implementation is
Support for StartsWith was added. I think most of us are moving from
the SQL world to Bigtable world and things are little bit done
differently and we expect it work the same as SQL . You can use and
which is same as like.
- Harjit
On Oct 22, 10:10 pm, Max Zhu thebb...@gmail.com wrote:
So
I have uploaded the generated javadoc here:
http://code.google.com/p/simpleds/downloads/list
I haven't had time to review it yet, so take it with a grain of salt. The
list of features you should look for are:
* CRUD operations at the EntityManager interface
* SimpleQuery
* PagedQuery
That's it.
In terms of performance does gaevfs accmmodate http resource timestamp
checks to avoid re-downloading repeated requests for the same images?
On Oct 22, 8:22 pm, Vince Bonfanti vbonfa...@gmail.com wrote:
That's the most GAE will let you upload in one request (for now).
Again, there's a Service
Guys,
I am trying to develop a Google app engine test project as the
tutorial.
It runs well in local but when I want to deploy by the Eclipse Button
Deploy App Engine Project After some operation it show the error.
Here is my error log:
!ENTRY com.google.appengine.eclipse.core 4 0 2009-10-23
once I have uploaded a zip file onto the GAE Virtual File System, how
do I access the zip entries. am really stuck here. could someone help
me out?!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google App Engine
I'm very pleased with the Google Web Toolkit (GWT) and it would very
nice to adopt the same way of building html code user interfaces in
servlets in GAE - as an alternative to the servlet dispatching jsp
paradigm.
In short - from inside servlet doPost (or doGet) method - it would be
nice to add
Hello,
I have a problem with uploading files using jakarta fileupload library
in my GAE application(commons-fileupload-1.2.1.jar).
I'm using struts and FormFile class to handle uploaded file. On
development GAE server everything is fine and works as expected but on
production server I see
Hi All,
My webapp works on my notebook and can handle encryption/decryption
with higher strength keys.
This is possible because I have downloaded the Java Cryptography
Extension (JCE) Unlimited Strength Jurisdiction Policy Files. And
installed these Policy Files in my notebook.
Unluckily GAE
I have a object mapped to the Datastore that looks like:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class SyncConfiguration {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
Hi,
I was able to put together an incoming email servlet that can read the
subject and the metadata. However, I have not been able to
successfully extract the body of the message. Can anyone post an
example? Here's what I have so far:
import java.io.IOException;
import java.util.Properties;
On some domains the UserService.isUserAdmin() is returning false for
domain administrators.
Which group/issue tracker is the right one to post this issue?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google App
* Transactions in JDO is a global thing tied to the persistence store
(one database = one transaction), but for GAE it's one transaction per
entity group. It's perfectly reasonable to execute two transactions at
the same time, which is hard to fit into the traditional development
model with
No, not yet. It's on the TODO list (see line 171 of the GaeVfsServlet
source code). If you--or anyone else--wants to add this I'll be happy
to accept a patch.
Vince
On Fri, Oct 23, 2009 at 11:42 AM, Diana Cruise diana.l.cru...@gmail.com wrote:
In terms of performance does gaevfs accmmodate
I assume you're using GaeVFS (http://code.google.com/p/gaevfs/)?
Basically, you need to create a java.util.ZipInputStream instance to
read the zip file.
GaeVFS implements a file system API based on Apache Commons VFS
(http://commons.apache.org/vfs/). To open an InputStream for a file
using
Hi David. What is your application's ID?
- Jason
On Wed, Oct 21, 2009 at 3:46 PM, david.zverina david.zver...@gmail.comwrote:
Keeping steady HTTP traffic does not work either. I have a script
which 'http pings' my application every 30 seconds. Yet my app-engine
instance experienced 70 spin
On Fri, Oct 23, 2009 at 6:06 PM, datanucleus andy_jeffer...@yahoo.comwrote:
* Transactions in JDO is a global thing tied to the persistence store
(one database = one transaction), but for GAE it's one transaction per
entity group. It's perfectly reasonable to execute two transactions at
Yes, please try changing the log levels to .INFO or .FINEST -- it's possible
that the log output that the frameworks are generating is just not getting
surfaced because of the default logging level.
After you deploy, you say that all you see is an empty site. Have you tried
refreshing several
Thanks so much for the feedback. I actually tried to extend the Key
CONTAINS concept to other fields but ran into a big wall right away.
It would be great to get your 2 cents. Here is the root of my
problem:
I have a student object, it has a number of qualifying attributes, for
example:
int
I'm having no luck with SDK 1.2.6 within Eclipse 3.5.1 (Windows). Yes,
I've added the -javaagent VM argument to my debug configuration.
However, if I try to do almost anything at all within my
ServletContextListener.contextInitialized() method I get this:
2009-10-23 17:48:59.192::INFO: Logging
The SDK (1.2.5) does not upload file with names that start with .
such as .h2.server.properties. I assume this is because such files
are considered hidden on Linux/UNIX; but, I'm running on Windows, so
this must be something in the SDK itself and not caused by the file
system.
Is this
Hi Diana. As others have stated, App Engine can write to multiple entity
groups in parallel, so if each User entity is a root entity or is otherwise
placed in a different entity group, then there shouldn't be any issues.
Regarding performance, all apps should generally be able to handle up to 30
I accidentally posted this in the old general GAE group by mistake. :
(
I need to allow my users to export into Word and Excel formats from my
GAE app, and I know Apache POI is not supported. So, I'm trying to
figure out how to avoid running a server elsewhere whose sole purpose
is generating
I just figured out the problem. I had added appengine-api-stubs.jar
and appengine-local-runtime.jar to my project build path to support
junit testing. Upgrading to the 1.2.6 versions only changed the error
message, but removing them from the build path solved the problem. Now
I just have to
It looks like the Eclipse debug configuration automatically picks up
the complete build path for the project as its classpath. Manually
editing the debug configuration to remove appengine-api-stubs.jar and
appengine-local-runtime.jar from the classpath fixes the problem.
Vince
On Fri, Oct 23,
Thanks Jason, I suspect this but I want to be sure.
On Oct 23, 8:39 pm, Jason (Google) apija...@google.com wrote:
Unlike JDO, where you do have to explicitly close every PersistenceManager
in order to keep resources from leaking, any unneeded DatastoreService
instances should be
I believe there are a lot of reasons and use cases not to go the JDO/
JPA way and look for a light weight solution. I came up with a similar
idea like Nacho and created a simple class to persist Java objects
using the low-level API. However I consider my code not being in a
state yet for
There isn't a large difference between using Category objects versus simple
Strings. There is a semantic distinction -- a String doesn't necessarily
have to represent a tag -- and Category objects may make it easier to add a
restriction on accepted tag values when arbitrary tags aren't supported,
Hi Jeff. I'm having trouble reproducing this. I kept everything uncommented
so the constructor adds a new object to each List/Set, then queried for the
persisted Player2 object and inspected the size of each List/Set and saw 1
for each (expected). I then commented out foo1 and foo2 but left the
Hi Jason,
I have looked into this somewhat, and I think there is a bug (or
at least a naive assumption) in MetaDataValidator.validatePrimaryKey()
around line: 331
private AbstractMemberMetaData validatePrimaryKey() {
int[] pkPositions = acmd.getPKMemberPositions();
if (pkPositions ==
I'm having the same issue Can someone please help me with this?
On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote:
yes, every thing is working fine except that I am not able to fetch message
body in suitable format.
--~--~-~--~~~---~--~~
You received
Eplicitly add appengine-java-sdk-1.2.6\lib\agent\appengine-agent.jar
to your java build path.
On Oct 23, 11:06 am, Vince Bonfanti vbonfa...@gmail.com wrote:
I'm having no luck with SDK 1.2.6 within Eclipse 3.5.1 (Windows). Yes,
I've added the -javaagent VM argument to my debug configuration.
In case you have not yet found a solution here's one:
http://www.armangal.com/How-to-create-a-simple-but-powerful-CDN-with-Google-App-Engine-%28GAE%29
On Oct 15, 1:30 am, emil reall...@gmail.com wrote:
I did include the static files element. I followed the tutorial very
closely.
I will file
Yeah,
AppEngine drops your request after 30 seconds.
My app takes 20 seconds to initialize in development, and half of the
times it will finish loading within 30 seconds. Other times it goes
pass 30 seconds and gets the same 500 error like yours.
Google needs to make an exception for the
I think the 1.2.7 update is only for Python. The latest Java SDK is 1.2.6.
On Fri, Oct 23, 2009 at 12:02 PM, hildenl louis.hil...@gmail.com wrote:
Has anyone been able to update to 1.2.7 from Eclipse? I've got the
http://dl.google.com/eclipse/plugin/3.5 configured as a software site
and its
Same here. Started a few threads on it. No replies yet.
Sent from my iPhone
On Oct 23, 2009, at 11:04 AM, vs ven...@gmail.com wrote:
I'm having the same issue Can someone please help me with this?
On Oct 19, 12:44 pm, Prashant antsh...@gmail.com wrote:
yes, every thing is working
Ok, thanks. That is helpful to know.
leszek wrote:
I ported my Open Source EJB3/JPA application to Google App Engine many
months ago and almost at the beginning it was obvious that I had to
split my entity classes to two versions: Google App Engine and non
Google App Engine. Impossible to
I've come up with a solution to my problems with data store integration tests.
I don't know if this is a good solution; feedback is welcome.
The problem, as much as my feeble brain can grasp, is that when Spring provides
you with a PersistenceManager, you need to use transactions so that, at
I read a lot about failures and timeouts from the datastore, but I
can't find any documentation and of course the development environment
doesn't simulate them.
Has anybody compiled a list of the various error states and exceptions
that we need to code for?
Hie
Today when i tried to run my GAE app in eclipse i see below exceptions. i am
on 1.27 and saw these exceptions fro the first time. last time when i used
all this was working fine.
java.lang.RuntimeException: Unable to locate the App Engine agent. Please
use dev_appserver, KickStart, or set
54 matches
Mail list logo