[appengine-java] Re: -javaagent gets removed from Run Configuration / Arguments in Eclipse

2011-04-14 Thread Dzmitry Lazerka
Any thoughts? Seems like a bug in Google Plugin for Eclipse.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Mem cache

2011-04-14 Thread Meet Mehta
what are the performance statistics of using mem cache and not using it

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Mem cache

2011-04-14 Thread Didier Durand
Hi,

If you don't use memcache, it means that you do your reads from
datastore, so you incur the delay of accessing a remote datastore
server and then the delay of its disk access time.

Memcache is direct access memory so much faster!

You see most of the benefits if you can use memcache for piece of data
that you very frequently use throughout your application.

regards

didier

On Apr 14, 8:26 am, Meet Mehta foreveravaila...@gmail.com wrote:
 what are the performance statistics of using mem cache and not using it

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Application ID not available (ever).

2011-04-14 Thread András Belicza
As far as I know, there are reserved names. For example if there is a Gmail 
account or a Google site for a name, it will probably be unavailable to 
choose as the application name. I ran into the same thing where I own a 
Google site, and I wasn't able to create an application with that name.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] app engine performance statistics

2011-04-14 Thread chintan vora
hello I am currently developing an ecommerce solution on App engine.
I have to prepare a report n d performance parameters of the app engine and
show dem why to choose appengine over d normal 3 tier web architecture
kindly help me and if u can provide me with the statistics of how app engine
is reliable, what difference does memcache make in performance
In short want a comparision about performance parameters on 3 tier
architecture and on Google cloud
Please reply as soon as possible as I hav deadline in 3 days

Thank you

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using JDO to detach Long

2011-04-14 Thread Ian Marshall
Can you show us the relevant parts of your code?



On Apr 13, 5:30 pm, l hf a0101...@gmail.com wrote:
 I have a class with its key of type Long
 when i using jdo query to select the key and want to detach a copy, an error
 occur that Long is not persistable.

     The class The class java.lang.Long is not persistable. This means that 
 it either hasnt been enhanced, or that the enhanced version of the file is 
 not in the CLASSPATH (or is hidden by an unenhanced version), or the 
 Meta-Data/annotations for the class are not found. is not persistable. This 
 means that it either hasnt been enhanced, or that the enhanced version of the 
 file is not in the CLASSPATH (or is hidden by an unenhanced version), or the 
 Meta-Data for the class is not found.

 Is anyone has some idea?

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Mem cache

2011-04-14 Thread Meet Mehta
Thanks for your answer but I wanted to know the actual value of delays
incurred while accessing the data store for reads and that by memcache

On Thu, Apr 14, 2011 at 12:14 PM, Didier Durand durand.did...@gmail.comwrote:

 Hi,

 If you don't use memcache, it means that you do your reads from
 datastore, so you incur the delay of accessing a remote datastore
 server and then the delay of its disk access time.

 Memcache is direct access memory so much faster!

 You see most of the benefits if you can use memcache for piece of data
 that you very frequently use throughout your application.

 regards

 didier

 On Apr 14, 8:26 am, Meet Mehta foreveravaila...@gmail.com wrote:
  what are the performance statistics of using mem cache and not using it

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Mem cache

2011-04-14 Thread Simon Knott
The stats are obviously completely dependent on how you write your code, the 
balance between reads/writes and how much you are able to cache.

Underlying stats and fluctuations for each of the services can be seen at 
http://code.google.com/status/appengine

Cheers,
Simon

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Custom security for servlets

2011-04-14 Thread Amit Pandey
Is there anyone who have implemented something similar?

Any thoughts would be great.

Thanks,
 Amit

On Fri, Apr 8, 2011 at 6:35 PM, Amit Pandey amit.s...@gmail.com wrote:

 To apply the basic authentication we have to provide role (as I did in
 Tomcat container). Here google app engine defines only two role a) *. b)
 admin.

 I believe Google app engine has customize the BASIC_AUTH to GOOGLE_AUTH.
 Thats why they have their own role constraint. And in GOOGLE_AUTH it
 redirects the google login page.
 So I can't use BASIC_AUTH in my application.

 Thoughts?
   On Fri, Apr 8, 2011 at 6:15 PM, Simon Knott knott.si...@gmail.comwrote:

 Hi,

 In what way is it not working?

 Cheers,
 Simon

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Custom security for servlets

2011-04-14 Thread Simon Knott
Hi,

You could persist the users/roles in the datastore and then apply a 
RequestFilter to specific URL mappings, passing in the valid roles for each 
filter through an init-param of the specific filter definitions.

e.g.


  filter
  filter-nameallRoles/filter-name
  filter-classcom.company.RoleFilter/filter-class
  init-param
  param-nameroles/param-name
  param-valuerole1,role2,role3/param-value
  /init-param
  /filter

  filter
  filter-namerole1Only/filter-name
  filter-classcom.company.RoleFilter/filter-class
  init-param
  param-nameroles/param-name
  param-valuerole1/param-value
  /init-param
  /filter

  filter-mapping
  filter-nameallRoles/filter-name
  url-pattern/everyone/*/url-pattern
  /filter-mapping

  filter-mapping
  filter-namerole1Only/filter-name
  url-pattern/someOtherUrl/*/url-pattern
  /filter-mapping

Cheers,
Simon

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Deploy credentials with 3.6 beta plugin

2011-04-14 Thread Daniel Florey
Since upgrading to the 3.6 beta plugin I am unable to deploy apps with ant.
It will always complain that my credentials have expired, so I can only 
upload from the IDE.
This is annoying since it will always trigger full gwt compile...

Any ideas?

Daniel

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Deploying from eclipse throwing exception.

2011-04-14 Thread Amit Pandey
 I am successfully able to login into gmail but could not not able to deploy
in app engine.

*Exception:*
com.google.appengine.tools.admin.ServerConnection$ClientLoginException:
Email *user email* and password do not match.

I double checked my password.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is there an option to update only appengine-web.xml to already deployed application

2011-04-14 Thread Jags
Thank you Ikai Lan.

On Apr 13, 12:46 pm, Ikai Lan (Google) ika...@google.com wrote:
 No. You have to do a full upload.

 The good news is that if nothing else changed, only the changed files will
 be uploaded.

 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine



 On Wed, Apr 13, 2011 at 9:34 AM, Jags jagadish.puttasw...@uspto.gov wrote:
  Hi,
  I have a to remove the below session enabling tag from appengine-web.xml
  file.
  sessions-enabledtrue/sessions-enabled
  By mistake I have this tag, due to which the new users of the application
  will see a blank page when the data store is put into read only mode.
  I observed this during Google last time maintenance mode on April 5th.
  I know there is one upcoming on April 20th.
  Please let me know at the earliest or else I have to go for a full
  application re-deployment.

  Thank you in advance.
  ~Jags

   --
  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@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.- Hide quoted 
 text -

 - Show quoted text -

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Is there a way to get the app name?

2011-04-14 Thread Luis Montes
Is there a way at runtime to get the app engine app name?

It's possible to create an app in eclipse and deploy it to multiple .
appspot.com  domains.  Also I can't just use
HttpServletRequest.getServerName () because there may have been a DNS entry
setup to run access the app on a different domain.


Thanks,

Luis

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] app engine performance statistics

2011-04-14 Thread A. Stevko
Sounds like you better get started coding your metrics. Here is a hint - use
@cached within your objectify entity.
On Apr 14, 2011 8:57 AM, chintan vora chintanvo...@gmail.com wrote:
 hello I am currently developing an ecommerce solution on App engine.
 I have to prepare a report n d performance parameters of the app engine
and
 show dem why to choose appengine over d normal 3 tier web architecture
 kindly help me and if u can provide me with the statistics of how app
engine
 is reliable, what difference does memcache make in performance
 In short want a comparision about performance parameters on 3 tier
 architecture and on Google cloud
 Please reply as soon as possible as I hav deadline in 3 days

 Thank you

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.


-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] How to disable writes on a local Java App Engine datastore ?

2011-04-14 Thread Jags
Hi,

I need to disable the local Java App Engine data store (local_db.bin)
to debug in eclipse.
Please let me know if there is such an option.

I tried
 i. setting local_bp.bin as readonly but it doesn't work the same
way.
 ii. The local admin console http://localhost:/_ah/admin doesn't
have Application Settings - Disable Datastore Writes option.


Thank you
~Jags

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Is there a way to get the app name?

2011-04-14 Thread Jeff Schnitzer
SystemProperty.applicationId

On Thu, Apr 14, 2011 at 10:08 AM, Luis Montes monte...@gmail.com wrote:
 Is there a way at runtime to get the app engine app name?
 It's possible to create an app in eclipse and deploy it to multiple
 .appspot.com  domains.  Also I can't just use
 HttpServletRequest.getServerName () because there may have been a DNS entry
 setup to run access the app on a different domain.

 Thanks,
 Luis

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Does user id need to go through createKey?

2011-04-14 Thread Peter
Folks,

Once I get the user id, do I still need to run it through createKey or can I 
directly use the ID as the primary key?

User user = userservice.getCurrentUser();
String id = user.getUserId();
Key userIdKey = KeyFactory.createKey(Users, id);
Entity eUser = new Entity(Users, userIdKey);

Appreciate your help.

Regards,
Peter

Regards,


-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Is there a way to get the app name?

2011-04-14 Thread Luis Montes
Thanks, guys.

System.getProperty(com.google.appengine.application.id)  worked.

Luis

On Thu, Apr 14, 2011 at 12:07 PM, Jeff Schnitzer j...@infohazard.orgwrote:

 SystemProperty.applicationId

 On Thu, Apr 14, 2011 at 10:08 AM, Luis Montes monte...@gmail.com wrote:
  Is there a way at runtime to get the app engine app name?
  It's possible to create an app in eclipse and deploy it to multiple
  .appspot.com  domains.  Also I can't just use
  HttpServletRequest.getServerName () because there may have been a DNS
 entry
  setup to run access the app on a different domain.
 
  Thanks,
  Luis
 
  --
  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@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] local dev server flag to have the same sandbox as the prod server

2011-04-14 Thread gabriel munteanu
just did:
http://code.google.com/p/googleappengine/issues/detail?id=4895
after digging more, the difference between the prd server and local
dev server was the places where the 2 servers look for jars.
it seems local dev server looks in more places than the prod.

cheers,
Gabi


On Thu, Apr 14, 2011 at 1:32 AM, Don Schwarz schwa...@google.com wrote:
 Can you file an issue in our issue tracker with the full stack trace and
 ideally a pointer to the relevant code?
 http://code.google.com/p/googleappengine/issues/list
 Thanks,
 Don

 On Wed, Apr 13, 2011 at 5:20 PM, gabriel munteanu jajali...@gmail.com
 wrote:

 Hi, I have an application that uses htmlparser.jar from here:
 http://about.validator.nu/htmlparser/
 well, it works fine on my local server, but in production says it
 cannot be loaded:
 JavaException: java.security.AccessControlException: access denied
 (java.lang.RuntimePermission getClassLoader)
 I understand is fine, i can switch to other libs.

 my question is:
 Is there a flag or a config parameter, so that the local dev server
 behaves like the prod one?
 I mean, now I will try first in production to see what lib works
 there, but the dev server is here on my machine, this is the one I
 should be using to test and develop.

 cheers
 Gabi

 --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] StackOverFlow error

2011-04-14 Thread Micah Martin
In deploying a new version of my site, I keep getting a StackOverFlow error.  
Whether I jar up my classes or leave them in .class files, every time I deploy 
I get the same error.  See stack trace below.  I would really love some insight 
as to way this is happening.

Micah

java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at java.io.FilePermission.init(FilePermission.java:200)
at java.io.FilePermission.init(FilePermission.java:266)
at 
sun.net.www.protocol.file.FileURLConnection.getPermission(FileURLConnection.java:215)
at sun.misc.URLClassPath.check(URLClassPath.java:422)
at sun.misc.URLClassPath$FileLoader.getResource(URLClassPath.java:996)
at sun.misc.URLClassPath$FileLoader.findResource(URLClassPath.java:977)
at sun.misc.URLClassPath.findResource(URLClassPath.java:162)
at java.net.URLClassLoader$2.run(URLClassLoader.java:379)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:376)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:699)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:727)
at java.security.AccessController.doPrivileged(Native Method)
at 
com.google.apphosting.runtime.security.UserClassLoader.findResource(UserClassLoader.java:727)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at 
com.google.apphosting.runtime.security.UserClassLoader$3.run(UserClassLoader.java:733)
at 

Re: [appengine-java] Federated ID versus User ID

2011-04-14 Thread Fabrizio Accatino
Peter,

I use it as the primary key of my entity. No problem.

   fabrizio

PS: please, do not double post on the mailing list.


On Thu, Apr 14, 2011 at 2:09 AM, Peter ptr...@gmail.com wrote:

 Fabrizio,

 Thank you for your help.

 Once I get the user id, do I still need to run it through createKey or can
 I directly use the ID as the primary key?

 User user = userservice.getCurrentUser();
 String id = user.getUserId();
 Key userIdKey = KeyFactory.createKey(Users, id);
 Entity eUser = new Entity(Users, userIdKey);

 Appreciate your help.

 Regards,
 Peter


  --
 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@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.