[appengine-java] Re: GAE UserService and other google Api (Contact, Analytics) ???

2009-08-27 Thread NMAGOCIO
How can I pass the auth from UserService to ContactsService? I got my App to pull data using the Profiles API but that was manually entering the profiles auth Something like this: String admin = request.getUserPrincipal().getName(); ask for password... ContactsService myService = new ContactsSer

[appengine-java] Is it possible to use JSF in the cloud?

2009-08-27 Thread Valentino Hankypants
hello, is it possible to develop JSF web pages (similar like ASP.NET) and then deploy them and use them in the cloud environment? greatz valentino --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine f

[appengine-java] deployment issues

2009-08-27 Thread Vik
Hie When i am trying to deploy my app.. it went fine till it says deployed but after that it keep hanging on uploading indexes step. and finally gives following error (tried 4-5 times) Unable to upload: java.io.IOException: Error posting to URL: http://appengine.google.com/api/datastore/index/add?

[appengine-java] Re: JSTL of App engine not work properly

2009-08-27 Thread ant2legs
The problem was solved. I use <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> instead of <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> On Aug 28, 8:23 am, ant2legs wrote: > I put these codes to my jsp. > >  isELIgnored="false" > <%@ taglib prefix="c" uri="h

[appengine-java] Re: Unable to persist an object in GAE

2009-08-27 Thread Iain
A side note, I don't think checking that the user exists, and if not inserting one will perform as you expect. If you want to handle concurrent inserts see this: http://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_For_Transactions On Aug 27, 8:57 pm, leszek wrote: > All t

[appengine-java] JSTL of App engine not work properly

2009-08-27 Thread ant2legs
I put these codes to my jsp. isELIgnored="false" <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> I got the following message: "According to TLD or attribute directive in tag file, attribute value does not accept any expressions" It seems that ${header['User-Agent']} is not all

[appengine-java] Re: Model to Optimize Queries

2009-08-27 Thread Sam Walker
Sorry, let me write it down with keys just to make sure we are on the same page: Article { HashSet reviews; // Keys of reviews HashSet tags; int status; // derived from all Reviews' statuses. } Review { Key article; Key reviewer; int status; } Reviewer { String email; } Now, do yo

[appengine-java] Re: Developing JPA app - data not persisting

2009-08-27 Thread hg
Thank you!! I didn't know about that data viewer - my entities are persisting On Aug 27, 12:45 am, "Jason (Google)" wrote: > Can you see if your entities are persisted using the local data viewer? > Assuming your application is running on port 8080, just go > tohttp://localhost:8080/_ah/adm

[appengine-java] Re: Datastore Warning: Persistent class has no table in the database

2009-08-27 Thread Wander
I just installed it here about a week ago, so I think I have the latest versions Im using the eclipse plugin, I use eclipse 3.5 (Galileo) on Ubuntu 9.04 (Jaunty) The appengine version is: 1.2.2.v200907291526 Item is a class similar to Area, same annotations, similar fields, AreaType is an enum Ar

[appengine-java] Re: child of the same class

2009-08-27 Thread Michael Niu
You can implements self one-to-many relationship the tricky is Dont define ManytoOne, for your example your class will look like : class Mall{ ... id and other properties @OneToMany ListsubMallList; ... } remenber. dont add parent object to the class! cheers Michael On Aug

[appengine-java] Re: Unable to upload

2009-08-27 Thread Jason (Google)
Hi Randall. I think you're running into a known issue with accounts associated with both the general Google accounts service and a Google Apps domain. First, try seeing if you can sign in to the following to see your applications: http://appengine.google.com/a/mstar.net If not, I'm afraid you'll h

[appengine-java] Re: Model to Optimize Queries

2009-08-27 Thread Sam Walker
Yes, it is a key. I just wanted to make it obvious which Keys are involved. I read the Embedded class as well, its not what I want here I think. How would you model this scenario then? Both models I discussed in my original post have issues. On Thu, Aug 27, 2009 at 11:22 AM, Jason (Google) wrote:

[appengine-java] Re: Not able to upload application after adding com.google.gdata.DisableCookieHandler in appengine-web.xml file

2009-08-27 Thread Jason (Google)
Hi Lee. Are you on Windows also? - Jason On Wed, Aug 26, 2009 at 8:41 PM, Lee Beckman wrote: > > Hey Partha, I just encountered this problem myself, thanks to the same > misleading instructions at the link you gave. > > my appengine-web.xml file had this in it: > > > valu

[appengine-java] Re: Relationships

2009-08-27 Thread Jason (Google)
You cannot establish an owned relationship between two objects after the child object (User in this case) has already been persisted. This is because the parent key is embedded inside the child key, and keys can't be modified once an entity is persisted in the datastore. You can, however, use an un

[appengine-java] Re: Local server works, Appspot fails with java.lang.StackOverflowError when Spring AOP is enabled

2009-08-27 Thread Toby Reyelts
Do you have a simple sample app that you can reproduce this with? On Wed, Aug 26, 2009 at 12:38 AM, Gabriel Moreira wrote: > > My app is using Spring 3.0. > > If i disable Spring AOP, my app runs fine both on local and appspot. > > But when i enable Spring AOP (tested with advice or aspects), in

[appengine-java] Re: Compile and execute at runtime

2009-08-27 Thread Toby Reyelts
Logger.throwing logs at Level.FINER. Do you have your logging configured to log at that level (or more fine)? On Thu, Aug 27, 2009 at 2:20 PM, Albert Attard wrote: > Hey Toby: > I'm having some trouble with the logging functionality. I'm logging my > exceptions but nothing is showing on the logs.

[appengine-java] Re: Datastore Warning: Persistent class has no table in the database

2009-08-27 Thread Jason (Google)
Are you using the Eclipse plugin? If so, what platform are you running? What version of the SDK are you using? As far as the first issue goes, are AreaType and Item also persistent classes? Also, there appears to be a bug with owned one-to-many relationships between objects of the same type, so if

[appengine-java] Re: Low-Level Datastore API Library that abstracts large Entity (greater than 1MB) concerns.

2009-08-27 Thread Jason (Google)
Hi Tristan. Feel free to submit it to our listing of open source projects. Just follow the instructions at the bottom of this page: http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects - Jason On Wed, Aug 26, 2009 at 12:41 AM, Tristan wrote: > > Ok, it is f

[appengine-java] Re: Compile and execute at runtime

2009-08-27 Thread Albert Attard
Hey Toby: I'm having some trouble with the logging functionality. I'm logging my exceptions but nothing is showing on the logs. Following a simple class which uses logging. private static final Logger log = Logger.getLogger(MyClass.class.getName()); ... }catch(Exception e) log.throwing("MyClass

[appengine-java] Re: Model to Optimize Queries

2009-08-27 Thread Jason (Google)
JDO supports syntax like article.status but App Engine's datastore doesn't support joins so you'll have to make article an embedded object in order to use the query as you have it below: http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Embedded_Classes Also, how have you defin

[appengine-java] Re: child of the same class

2009-08-27 Thread Jason (Google)
In my own testing, I have this working for owned one-to-one relationships, although there are issues with owned one-to-many relationships of the same kind -- no exceptions are thrown but entities of the kind in question don't appear to be persisted. We're exploring this further internally, but plea

[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...

2009-08-27 Thread Larry Cable
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

[appengine-java] Re: What are your opinion ?

2009-08-27 Thread Philippe Marschall
On Aug 26, 10:04 pm, Geraldo Lopes wrote: > Hi, > > The article below review gae's persistence. What are your opinion ? > > http://www.ibm.com/developerworks/java/library/j-gaej3.html?ca=dgr-bt... I'm using the low-level API and am quite happy with it. That nicely sidesteps many of the issues.

[appengine-java] Re: Comet and push mechanism

2009-08-27 Thread Eduardo Ramírez
We would get more attention if everyone interested in a Comet like functionality starred this issue: http://code.google.com/p/googleappengine/issues/detail?id=377 Regards, -- Eduardo Ramírez http://kynes.frenopatico.net --~--~-~--~~~---~--~~ You received t

[appengine-java] Re: oid is not instanceof javax.jdo.identity.StringIdentity

2009-08-27 Thread Corneliu Paul Lupulet
I think i may have found the answer searching the group, in the meantime :) ".this implementation prevents us from supporting a one to one and a one to many of the same type on the same object" http://groups.google.com/group/google-appengine-java/browse_thread/thread/c0f673eaf229ac37/ad4fabd4

[appengine-java] Re: jdo & date

2009-08-27 Thread midomarocain
yes i want to comapre only the date part (dd/MM/) (ignoring hours/sec/ milisec) On 27 août, 11:59, leszek wrote: > But what you mean by "compare" ? JDOQL queries ? You ask how to > persist day (year/month/day) using Date type (ignoring hours/sec/ > milisec) or you ask how to persist Date

[appengine-java] oid is not instanceof javax.jdo.identity.StringIdentity

2009-08-27 Thread Cornel
Hello! I get this exception: java.lang.ClassCastException: oid is not instanceof javax.jdo.identity.StringIdentity at .DbContact.jdoCopyKeyFieldsFromObjectId(DbContact.java) .. when i try to do the following: customer = new DbCustomer(); contact = new DbContact(); .

[appengine-java] Re: jdo & date

2009-08-27 Thread leszek
But what you mean by "compare" ? JDOQL queries ? You ask how to persist day (year/month/day) using Date type (ignoring hours/sec/ milisec) or you ask how to persist Date having meaningful hour/min/ mili and in one context compare using year/month/day/hour/min/mili and in the another context compar

[appengine-java] jdo & date

2009-08-27 Thread midomarocain
hi, how to compare date jsut the part dd/MM/ thanks for any help --~--~-~--~~~---~--~~ 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-java@goo

[appengine-java] Re: JDO on localhost

2009-08-27 Thread Choopong C.
Hi Leszek and Jason, Thanks for your answer and sorry for my very delay reply. I just have time to back to this project. Yes, I know I should be able to use JDO/JPS in local but actually I can't. My guest book app (from following the java starting guide) seems unable to save the posted message t

[appengine-java] Re: Unable to persist an object in GAE

2009-08-27 Thread leszek
All the code is correct and there is no any error there. But what is ? : AccountsServiceImpl as = Services.get().getService ( AccountsServiceImpl.class); If you use some kind of 'ServiceLocator' to retrieve a service you should use an interface, not concrete class. It does not make any sense f

[appengine-java] Re: What are your opinion ?

2009-08-27 Thread WilliamF
I think Rick sums it up rather nicely and fairly, ... unfortunately. However on the up side, projects such as http://code.google.com/p/gaevfs/wiki/H2GAE might allow us to use normalization, RDB concepts, standard JPA and allow full portability with existing non GAE projects. I think that's what

[appengine-java] Re: @SessionAttributes on App Engine

2009-08-27 Thread Travis J Warren
My bad, was not implementing serializable on my classes. On Aug 27, 3:02 pm, Travis J Warren wrote: > Pretty new to the app engine and have an issue using > @SessionAttributes annotation using Spring 3 on app engine.  Hope > someone can help. > > All is well on local development (using Eclipse p

[appengine-java] Re: Comet and push mechanism

2009-08-27 Thread Roberto Saccon
Jeff, what alternatives do you suggest ? The only one I am aware of is polling. -- Roberto --~--~-~--~~~---~--~~ 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 goo

[appengine-java] How to define an entity with non-persistent list of another entity

2009-08-27 Thread swprog
Hi, I have two entities called UserAccount and Kiosk. They have a mxn relationship. Below are the class definitions for these two entities. public class UserAccount implements JsonBean { @PrimaryKey @Persistent private String userId; // non-persistent derived fi

[appengine-java] Having issue with defining an entity which contains a non-persistent list of another entity

2009-08-27 Thread swprog
Hi, I have an entity called UserAccount. This has a list of another entity called Kiosk. However, this public class UserAccount implements JsonBean { public static enum Type { KIOSK_OWNER, SUPPLIER, DISTRIBUTOR, ADMIN, SERVICE_MANAGER }; public static en

[appengine-java] Re: How to upload larger than than 1M size file

2009-08-27 Thread Jayson Falkner
Did you check that you can do this? Google imposes size limits on HTTP requests and uploads. You might have to be more clever when uploading larger files. Jayson 2009/8/27 Shawn : > > Any one can help me to resovle this problem? > > On 8月27日, 下午3时38分, Shawn wrote: >> Hi,all. >> >> How to

[appengine-java] Cron scheduling and versions

2009-08-27 Thread Martyn
I have been thinking about using versions to allow multiple concurrent JVMs. In particular I was planning to use one version to run cron tasks. Can anyone tell me (without me bothering to test!) whether the cron tasks run for all versions or only for the default version? --~--~-~--~~

[appengine-java] Re: How to upload larger than than 1M size file

2009-08-27 Thread Shawn
Any one can help me to resovle this problem? On 8月27日, 下午3时38分, Shawn wrote: > Hi,all. > > How to upload larger than than 1M size file?I try to use the > google plugin for eclipse to upload.But the > > message like this: > > java.io.IOException: Error posting to > URL:http://appengine.goog

[appengine-java] Re: Using @EmbeddedID and @Embedded with JPA ...

2009-08-27 Thread datanucleus
> 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 spec 3.1.1, for flush() @throws TransactionRequiredException if there is

[appengine-java] Re: Datanucleus fails when commiting non-existing transaction

2009-08-27 Thread eddyd
Yes, it is clear now: 1. It works if before the request there is one persisted entity of type A and in the request all entities of type A are deleted (out of transaction) and two entities of type A are persisted (out of transaction). 2. It fails if before the request entity of type A has never bee