[appengine-java] Base64DecoderException

2009-10-23 Thread Toru Tomita
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();

[appengine-java] Re: primary key portability

2009-10-23 Thread leszek
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Peter Liu
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread datanucleus
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Peter Liu
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

[appengine-java] Re: using contains(Key) in JDO query

2009-10-23 Thread Yasuo Higa
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread datanucleus
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

[appengine-java] POLYMORPHISM: Failing to retrieve child-objects in a one-to-many JDO relationship

2009-10-23 Thread Patrizio Munzi
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

[appengine-java] Re: Problem with saving parent entity

2009-10-23 Thread leszek
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

[appengine-java] Re: Custom subdomain map with app engine

2009-10-23 Thread marius
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

[appengine-java] Re: Authentication with Google Apps

2009-10-23 Thread Mansoor
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

[appengine-java] Re: Authentication with Google Apps

2009-10-23 Thread Roy Smith
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Nacho Coloma
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Nacho Coloma
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread leszek
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

[appengine-java] Re: LIKE query workaround for the Low Level API

2009-10-23 Thread harjit.singh
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Nacho Coloma
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.

[appengine-java] Re: Photo and Video services

2009-10-23 Thread Diana Cruise
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

[appengine-java] 403 Forbidden You do not have permission to modify this app

2009-10-23 Thread Amin
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

[appengine-java] extracting zip files on GAE

2009-10-23 Thread deft
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

[appengine-java] Servlet widgets - an alternative to GWT or servlet dispatch jsp paradigm

2009-10-23 Thread Tor
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

[appengine-java] Problems with file upload using jakarta fileupload

2009-10-23 Thread Anton Antonov
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

[appengine-java] Changing default encryption policy of GAE

2009-10-23 Thread GoSharp Lite
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

[appengine-java] Datastore retrieve error

2009-10-23 Thread Gerd Saurer
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

[appengine-java] Incoming Email Service

2009-10-23 Thread Kyle Roche
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;

[appengine-java] UserService.isUserAdmin() returns false for domain administrator of certain domains

2009-10-23 Thread dflorey
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread datanucleus
* 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

[appengine-java] Re: Photo and Video services

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] Re: extracting zip files on GAE

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-23 Thread Jason (Google)
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Nacho Coloma
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

[appengine-java] Re: Spring MVC + Sitemesh problem

2009-10-23 Thread Jason (Google)
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

[appengine-java] Re: using contains(Key) in JDO query

2009-10-23 Thread king
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

[appengine-java] trouble with SDK 1.2.6

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] SDK does not upload files that start with .

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] Re: GAE Performance

2009-10-23 Thread Jason (Google)
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

[appengine-java] creating Word and Excel docs

2009-10-23 Thread Houston startup coder
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

[appengine-java] Re: trouble with SDK 1.2.6

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] Re: trouble with SDK 1.2.6

2009-10-23 Thread Vince Bonfanti
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,

[appengine-java] Re: Tutorial for datastore with low-level api?

2009-10-23 Thread iker98
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

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-23 Thread Mouseclicker
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

[appengine-java] Re: Can anyone provide me an example on add/remove tag to an Entity?

2009-10-23 Thread Jason (Google)
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,

[appengine-java] Re: JDO Collection Load Issue

2009-10-23 Thread Jason (Google)
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

[appengine-java] Re: JDO PrimaryKey class problems ... NPE in pre-comment key class is null

2009-10-23 Thread Larry Cable
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 ==

[appengine-java] Re: receiving mail demo

2009-10-23 Thread vs
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

[appengine-java] Re: trouble with SDK 1.2.6

2009-10-23 Thread hildenl
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.

[appengine-java] Re: Casheing Static files

2009-10-23 Thread Gerald Truong
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

[appengine-java] Re: Error 500 - Loading data to memory during startup

2009-10-23 Thread trung
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

[appengine-java] Re: Eclipse Plugin Update for App Engine SDK 1.2.7?

2009-10-23 Thread Vince Bonfanti
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

[appengine-java] Re: receiving mail demo

2009-10-23 Thread Kyle Roche
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

[appengine-java] Re: primary key portability

2009-10-23 Thread Rusty Wright
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

[appengine-java] datastore integration testing with spring

2009-10-23 Thread Rusty Wright
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

[appengine-java] Runtime Exceptions

2009-10-23 Thread Roy
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?

[appengine-java] Exception while trying to run app

2009-10-23 Thread Vik
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