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
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
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?
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
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
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
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
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
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
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
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
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:
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
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
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
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.
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
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
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
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
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
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
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.
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
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
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
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();
.
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
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
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
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
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
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
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
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
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
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
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?
--~--~-~--~~
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
> 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
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
41 matches
Mail list logo