Re: [appengine-java] Re: Datastore Statistics not updated for 3 days

2010-05-12 Thread Ikai L (Google)
Sounds good. I received an email shortly after notifying our production team
that they had addressed the issue.

On Tue, May 11, 2010 at 10:12 PM, Toby toby.ro...@gmail.com wrote:

 Hello Ikai,

 Everything is back to normal.

 Thank you,
 Toby

 On May 11, 1:08 am, Ikai L (Google) ika...@google.com wrote:
  Seems like you aren't the only one reporting this. Let me see if I can
 chase
  down what's going on.
 
 
 
  On Mon, May 10, 2010 at 8:56 AM, Toby toby.ro...@gmail.com wrote:
   now it is: 4 days, 12:34:38 ago
   I checked my other appengine applications and they are all about the
   same.
 
   On May 9, 2:25 pm, Toby toby.ro...@gmail.com wrote:
Hello,
 
I have some trouble with the Administration Console. Everything is
very slow. Sometimes I get error page. The Datastore Statistics say:
 
Last updated
3 days, 17:59:52 ago
 
on the right it says that there is at least one update per day. So I
am puzzled. Maybe my application got corrupted?
 
What can I do?
 
Toby
 
--
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-j...@googlegroups.com.
To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
For more options, visit this group athttp://
   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-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Ikai Lan
  Developer Relations, Google App Engine
  Twitter:http://twitter.com/ikai
  Delicious:http://delicious.com/ikailan
 
  
  Google App Engine links:
  Blog:http://googleappengine.blogspot.com
  Twitter:http://twitter.com/app_engine
  Reddit:http://www.reddit.com/r/appengine
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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-j...@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 the 1000 file limit still apply

2010-05-12 Thread Ikai L (Google)
The limit is now 3000 files:

http://code.google.com/p/googleappengine/issues/detail?id=161#c86

http://code.google.com/p/googleappengine/issues/detail?id=161#c86Yes, this
includes classes as well as static files. You've guessed correctly: you can
use JAR files to cram more class files into your deployment package.

On Tue, May 11, 2010 at 11:03 PM, Joe Fawzy joewic...@gmail.com wrote:

 Hi
 is the 1000 file limit still apply?
 is that number for static files or for all files including class
 files?
 how to overcome it? use jar?
 can i upload my war file?

 thanks
 Joe

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




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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-j...@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: composit primary key issue

2010-05-12 Thread Timofey Koolin
You can combine two fields in one string-field and use it as String PK

On 11 май, 14:14, aptest1 actiprocess apte...@gmail.com wrote:
 We are unable to use two fileds as the compisit primary keys in google
 datastore, its throwing follwing exception if we make two fields as
 primary key fileds.please help us to resolve this iusse

 our company class has two primary keys as below, we are using
 companyId,docId as primary keys
 *** 
 

 @PersistenceCapable(identityType=IdentityType.DATASTORE)
 public class Company{
                   �...@primarykey
         @Persistent(valueStrategy = IdGeneratorStrategy.SEQUENCE)
         private Long companyId;
         @PrimaryKey
                     String docId

 }

 if we start the server we are getting the following Exception :
 *** 
 *s
 May 11, 2010 10:07:31 AM
 org.datanucleus.metadata.AbstractClassMetaData determineObjectIdClass
 SEVERE: Class com.atp.smartstore.DB.config.User has application-
 identity and no objectid-class specified yet has 2 primary key fields.
 Unable to use SingleFieldIdentity.
 Class com.atp.smartstore.DB.config.User has application-identity and
 no objectid-class specified yet has 2 primary key fields. Unable to
 use SingleFieldIdentity.
 May 11, 2010 10:07:31 AM org.datanucleus.enhancer.DataNucleusEnhancer
 main
 SEVERE: DataNucleus Enhancer completed with an error. Please review
 the enhancer log for full details. Some classes may have been enhanced
 but some caused errors
 Class com.atp.smartstore.DB.config.User has application-identity and
 no objectid-class specified yet has 2 primary key fields. Unable to
 use SingleFieldIdentity.
 org.datanucleus.metadata.InvalidMetaDataException: Class
 com.atp.smartstore.DB.config.User has application-identity and no
 objectid-class specified yet has 2 primary key fields. Unable to use
 SingleFieldIdentity.
         at
 org.datanucleus.metadata.AbstractClassMetaData.determineObjectIdClass(Abstr 
 actClassMetaData.java:
 1032)
         at org.datanucleus.metadata.ClassMetaData.populate(ClassMetaData.java:
 205)
         at org.datanucleus.metadata.MetaDataManager
 $1.run(MetaDataManager.java:2317)
         at java.security.AccessController.doPrivileged(Native Method)
         at
 org.datanucleus.metadata.MetaDataManager.populateAbstractClassMetaData(Meta 
 DataManager.java:
 2311)
         at
 org.datanucleus.metadata.MetaDataManager.populateFileMetaData(MetaDataManag 
 er.java:
 2148)
         at
 org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaD 
 ataManager.java:
 864)
         at
 org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java:
 433)
         at
 org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNu 
 cleusEnhancer.java:
 743)
         at
 org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.ja 
 va:
 545)
         at
 org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:
 1252)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:
 57)
         at com.google.appengine.tools.enhancer.Enhance.init(Enhance.java:
 60)
         at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41)

 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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 createFederatedLoginURL() working?

2010-05-12 Thread antichrist
I also trying to use this.

In my case, I want to log in via my apps domain id (ex:
exampl...@example.com), So

HashSetString attributes = new HashSet();
  attributes.add(openid.mode=checkid_immediate);
  
attributes.add(openid.ns=http://specs.openid.net/auth/2.0;);
  attributes.add(openid.return_to=http://example.com;);
userService.createFederatedLoginURL(example.com , requestUri,
example.com, attributes));

And From this, created link is :
http://example.com/_ah/login_redir?claimid=example.comcontinue=http://example.com/

When I clicked that link, it redirect to my apps domain login page,
but after login complete it redirect to example.com

but page not found error occured.

I changed above link with modification and find claimid=example.com
part is correct but continue=http://example.com/ is incorrect.

But I can't figure out correct input.

On 4월7일, 오전3시56분, Viðar Svansson vidarsv...@gmail.com wrote:
 Hi

 I just noticedcreateFederatedLoginURL() but could not find any
 documentation for it (except for JavaDoc). Is this intended for native
 support for Google Marketplace? Would really appreciate some
 documentation on this.

 I am trying this out in 1.3.2 but get an error, The API package 'user'
 or call 'CreateFederatedLoginURL()' was not found.

 Viðar



 On Sat, Mar 27, 2010 at 10:27 AM, dflorey daniel.flo...@gmail.com wrote:
  Hi,
  I'm trying to replace the Step2 stuff with the new
 createFederatedLoginURL(), but I just get server errors in the
  provided /_ah/ servlets.
  Are these methods supposed to work and can someone please post an
  example how to authenticate and authorize a user?
  Thanks a lot,

  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-j...@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] Potential bug with jetty JspFactory

2010-05-12 Thread Sudhir Ramanandi
See this thread for details
http://sourceforge.net/mailarchive/forum.php?thread_name=628524.81703.qm%40web95503.mail.in.yahoo.comforum_name=freemarker-devel

I am using freemarker + sitemesh. The decorator is a jsp file where as
actual pages are written in JSP.
That mean i am mixing JSP and freemarker with JSP taglibs in same project.

Every request will cause to render both freemarker templates and
jsp(decorator) as the ftl template output will be decorated by a jsp file.
This is fine and works normally but not on GAE
unless I execute a JSP file before any freemarker templates are executed.

Here's when it works

- I created a hello.jsp file directly under root
- Deploy the application to cloud
- call the hello.jsp file by typing the url in browser
- That's it, from now onward every thing will work as Jetty would have
registered it's own JspFactory. However if I don't do this, it won't work
and give errors.

 See this thread for more details
http://sourceforge.net/mailarchive/forum.php?thread_name=628524.81703.qm%40web95503.mail.in.yahoo.comforum_name=freemarker-devel

-- 
Sudhir Ramanandi
http://www.ramanandi.org

-- 
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-j...@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] Billed CPU time by far too high

2010-05-12 Thread Henning Dierolf

Hi Ikai,

 it's also possible that you were being *underbilled* previously and that
 we've corrected billing information.

that is quite interesting. Google just can decide that someone is underbilled 
so he/she has to pay an extra 700% on CPU time. So not everyone has to pay the 
same for the same good. I think that this is quite ridiculous. Probably it does 
not make sense to invest in this platform anymore but better develop my 
software on another cloud service like Amazon.

Henning

Date: Mon, 10 May 2010 08:40:22 +0200
Subject: Re: [appengine-java] Billed CPU time by far too high
From: ika...@google.com
To: google-appengine-java@googlegroups.com

If you are actually being billed, you'd fill out this form right here:
http://code.google.com/appengine/kb/billing.html

1.3 CPU hours is still significantly under the free quota, so this probably 
wouldn't be an option for you. I'd advise running AppStats to profile where all 
the additional CPU usage is coming from. This information would be extremely 
helpful both to you as well as to other developers who may experience the same 
issues. Without knowing additional information, it's also possible that you 
were being *underbilled* previously and that we've corrected billing 
information.


On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:

Hello,



I posted about this topic already 2 weeks ago. The days after that my

website got back to its normal levels of CPU time. But then things got

even worse. What can I do now? How can I let the responsible

developers at Google let know to fix it.



The situation is as follows:



I have a cron job that is triggered every minute. It has an average

CPU usage of 56(17) according to the dash board.

On the black list I cannot see any requests other than my cron job. It

is nearly the only thing that needs CPU time.



Normally what I got billed everyday was about 0.2 CPU hrs a day. In

the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of

the free quota just for this lightweight cron job!



Henning



--

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-j...@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.





-- 
Ikai Lan 
Developer Relations, Google App EngineTwitter: 
http://twitter.com/ikaiDelicious: http://delicious.com/ikailan

Google App Engine links:
Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine






-- 

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-j...@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.
  
_
http://redirect.gimas.net/?n=M1004xjajah2
Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH!

-- 
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-j...@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: composit primary key issue

2010-05-12 Thread aptest1 actiprocess
Hi datanucleus,

Built-in object id classes not working in Google data store,we worked
as example given in the fallowing url

http://www.datanucleus.org/products/accessplatform/jdo/primary_key.html.

but issue not resolved.

Thanks




On May 11, 10:02 pm, datanucleus andy_jeffer...@yahoo.com wrote:
  Class com.atp.smartstore.DB.config.User has application-identity and no 
  objectid-class specified yet has 2 primary
  key fields. Unable to use SingleFieldIdentity.

 Message seems clear enough to me. You want to have a composite PK yet
 you haven't provided an object identity class; so provide one. JDO
 only provides built-in object id classes when you have a single field
 as PK. The DataNucleus docs define how to define your own.

 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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: composit primary key issue

2010-05-12 Thread datanucleus
 Built-in object id classes not working in Google data store,

Well they are working fine actually ... but as I already said you're
using more than 1 field and THERE IS NO BUILTIN object id for
composite id.

 we worked as example given in the fallowing url
 http://www.datanucleus.org/products/accessplatform/jdo/primary_key.html.
 but issue not resolved.

Works for me. Works for the JDO TCK. Saying something doesn't work
would probably require a comment of what doesn't work otherwise its
not of much 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-j...@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: Billed CPU time by far too high

2010-05-12 Thread Peter Ondruska
Henning, you must have misunderstood Ikai’s answer :-) You were given
discount previously and now you are billed as others ;-)

On May 12, 1:58 pm, Henning Dierolf henning2...@hotmail.de wrote:
 Hi Ikai,

  it's also possible that you were being *underbilled* previously and that

  we've corrected billing information.

 that is quite interesting. Google just can decide that someone is 
 underbilled so he/she has to pay an extra 700% on CPU time. So not everyone 
 has to pay the same for the same good. I think that this is quite ridiculous. 
 Probably it does not make sense to invest in this platform anymore but better 
 develop my software on another cloud service like Amazon.

 Henning

 Date: Mon, 10 May 2010 08:40:22 +0200
 Subject: Re: [appengine-java] Billed CPU time by far too high
 From: ika...@google.com
 To: google-appengine-java@googlegroups.com

 If you are actually being billed, you'd fill out this form right 
 here:http://code.google.com/appengine/kb/billing.html

 1.3 CPU hours is still significantly under the free quota, so this probably 
 wouldn't be an option for you. I'd advise running AppStats to profile where 
 all the additional CPU usage is coming from. This information would be 
 extremely helpful both to you as well as to other developers who may 
 experience the same issues. Without knowing additional information, it's also 
 possible that you were being *underbilled* previously and that we've 
 corrected billing information.

 On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:

 Hello,

 I posted about this topic already 2 weeks ago. The days after that my

 website got back to its normal levels of CPU time. But then things got

 even worse. What can I do now? How can I let the responsible

 developers at Google let know to fix it.

 The situation is as follows:

 I have a cron job that is triggered every minute. It has an average

 CPU usage of 56(17) according to the dash board.

 On the black list I cannot see any requests other than my cron job. It

 is nearly the only thing that needs CPU time.

 Normally what I got billed everyday was about 0.2 CPU hrs a day. In

 the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of

 the free quota just for this lightweight cron job!

 Henning

 --

 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-j...@googlegroups.com.

 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.

 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en.

 --
 Ikai Lan
 Developer Relations, Google App 
 EngineTwitter:http://twitter.com/ikaiDelicious:http://delicious.com/ikailan

 Google App Engine links:
 Blog:http://googleappengine.blogspot.comTwitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 --

 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-j...@googlegroups.com.

 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.

 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en.

 _http://redirect.gimas.net/?n=M1004xjajah2
 Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH!

 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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 equivalent of Python GeoModel project in Java?

2010-05-12 Thread Mixa
Hi,

geocellsP is taken from code example in HowToUseGeocell.java (in
commented code). I'm a newbe with GAE, and solving puzzles like that
makes me upset. For example 'Query' was commented, and I even not sure
if I imported right Query class (had after uncommenting code) -
eclipse suggested several of them in different packages and at least 2
of them looks like from GAE.

After my modifications I have following code:
--
String queryString = select from +Metka.class.getName()+ where
geocellsP.contains(geocells);
Query query = pm.newQuery(queryString);
query.declareParameters(String geocellsP);
ListMetka objects = (ListMetka) query.execute(cells);
--
But it returns all 'Metka' entities though 'cells' list doesn't have
as many entries as 'objects' has. I think I'm doing something wrong,
but do not know what (( Please advice.

My Metka class is:
@PersistenceCapable
public class Metka implements LocationCapable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private ListString geocells;
...

TIA,
Mike


On Apr 10, 10:17 pm, Alex alexandre.gellib...@gmail.com wrote:
 Hi Christian,

 1. your exception looks weird. I'm using the library with this kind of
 class:
 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class User {

         @PrimaryKey
         @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
         private Key key;

         @Persistent
         private ListString geocells;}

 ... and it works well.

 2. the min/max resolution of cells may be changed if you pass a
 CostFunction as parameter (it tells the algorithm when searching for
 bigger cells: when the cost raises, it stops). Also, since I did the
 java portage of python Geomodel library, I'd be interested in the
 false positives cells you get. Can you give me an example of input
 that fails?

 3. Your query in the example seems to be wrong, you're declaring
 geocellsP as a parameter, but it does not exist in the request.

 I've recently updated the library (and added the proximity fetch
 search). Please post an issue if something does not look ok.

 ++
 Alex

 On Mar 1, 8:09 pm, Torquester christian.schloem...@gmail.com wrote:



  I tried out the Java Geomodelhttp://code.google.com/p/javageomodel/

  The query used in the example provided on the project page seems
  strange to me. The example uses a ListString parameter (containing
  the cells of the bounding box) and passes it to a query which filters
  the ListString (geocells) property of the entity class. When I
  execute that query I get following error: Collection parameters are
  only supported when filtering on primary key.

  Is it possible to have a query in appengine where the entity has a
  ListString property (which is not a primary key) and you want to
  know if that property contains one of the values provided by a second
  ListString?

  I'm also wondering if the resolution of the cells can be changed. The
  results I get are inaccurate (I'm getting some false positives when I
  do a bounding box search).

  class GeoObject {
    @Persistent
    ListString geocells;
    ...

  }

  // Transform this to a bounding box
  BoundingBox bb = new BoundingBox(latNE, lonNE, latSW, lonSW);

  // Calculate the geocells list to be used in the queries (optimize
  list of cells that complete the given bounding box)
  ListString cells = Geocell.best_bbox_search_cells(bb, null);
  // In Google App Engine, you'll have something like below. In
  hibernate (or whatever else), it might be a little bit different.
  String queryString = select from GeoObject where
  geocellsParameter.contains(geocells);
  Query query = pm.newQuery(query);
  query.declareParameters(String geocellsParameter);
  query.declareParameters(String geocellsP);
  ListGeoObject objects = (ListGeoObject) query.execute(cells);

  On Feb 8, 11:24 pm, Ikai L (Google) ika...@google.com wrote:

   Looks like someone ported the Python code to Java for GeoHash:

  http://stackoverflow.com/questions/2060219/google-app-engine-geohashing

   Also seems like a pretty good explanation of GeoHashing in general.

   On Thu, Feb 4, 2010 at 10:16 AM, mianor lefebvre.rom...@gmail.com wrote:
Hi,

I am trying to implement geolocation search with GAE in Java using
GeoPt.
But due to restrictions on Datastore, bounding box queries are also
not supported in App Engine because there need to be two inequalities
on two independent properties (latitude and longitude).

There seems to be a solution with Geohash but every thing I found is
based on GAE Python. Is there anything based on Java or can I use
Geomodel (http://code.google.com/p/geomodel/) from Python in my Java
applications?

Thanks for your help!

Romain

--
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

[appengine-java] I created a JUnit runner for the Production Server.

2010-05-12 Thread bufferings
hi I'm bufferings.

I created a JUnit runner which can run tests on the Production Server
and the Development Server.
The name of the application is Kotori Web JUnit Runner. The shortened
name is ktrwjr.

ktrwjr is a JUnit runner web application for GAE/j.
It helps to run your tests on the Production Server and the
Development Server.

Haven't you ever wanted to execute your tests on the Production
Server?
With ktrwjr, you can do it easily.

http://code.google.com/p/ktrwjr/

cheers
--
bufferings

-- 
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-j...@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: Google maps geocoder responds with 620 error since server maintenance

2010-05-12 Thread Jason (Google)
Hi culov. I believe this was largely addressed on Monday. Please let me know
if you continue to see any other geocoding problems, and, if possible,
include your Maps API key (you can send this to me privately if you prefer).

- Jason

On Sun, May 9, 2010 at 12:32 PM, culov cul...@gmail.com wrote:

 app engine servers still look to be blacklisted

 On May 7, 3:16 pm, culov cul...@gmail.com wrote:
  It happened on Feb. 19, after server maintenance, and it's happened
  again.  I'm getting non-stop 620 errors whenever I try to geocode from
  an app engine server.
 
  I'd be very grateful if this could be fixed before the weekend!
 
  Thanks!
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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-j...@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: Google maps geocoder responds with 620 error since server maintenance

2010-05-12 Thread fit.mag...@gmail.com
I, too, have seen recent 620s, using from python as well.  I've even
added 1 second delays between my requests to try and mitigate this -
but it has not helped.

FWIW, a few times a day this does not happen - but the vast majority
of the time, this is a problem.

C


On May 9, 12:32 pm, culov cul...@gmail.com wrote:
 app engine servers still look to be blacklisted

 On May 7, 3:16 pm, culov cul...@gmail.com wrote:

  It happened on Feb. 19, after server maintenance, and it's happened
  again.  I'm getting non-stop 620 errors whenever I try to geocode from
  an app engine server.

  I'd be very grateful if this could be fixed before the weekend!

  Thanks!

  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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: Billed CPU time by far too high

2010-05-12 Thread Ikai L (Google)
Yes, you've misunderstood me. You're also certainly welcome to build your
application on a competing platform. We'd welcome the feedback as well as an
apples-to-apples cost comparison. I'll point out, though, that 1.3 CPU hours
a day incurs no cost. You'd have the same issue on any other platform
provider: if something costs more, you'd be advised to collect data to try
to scientifically determine the cost of the increase.

On Wed, May 12, 2010 at 3:08 PM, Peter Ondruska peter.ondru...@gmail.comwrote:

 Henning, you must have misunderstood Ikai’s answer :-) You were given
 discount previously and now you are billed as others ;-)

 On May 12, 1:58 pm, Henning Dierolf henning2...@hotmail.de wrote:
  Hi Ikai,
 
   it's also possible that you were being *underbilled* previously and
 that
 
   we've corrected billing information.
 
  that is quite interesting. Google just can decide that someone is
 underbilled so he/she has to pay an extra 700% on CPU time. So not
 everyone has to pay the same for the same good. I think that this is quite
 ridiculous. Probably it does not make sense to invest in this platform
 anymore but better develop my software on another cloud service like Amazon.
 
  Henning
 
  Date: Mon, 10 May 2010 08:40:22 +0200
  Subject: Re: [appengine-java] Billed CPU time by far too high
  From: ika...@google.com
  To: google-appengine-java@googlegroups.com
 
  If you are actually being billed, you'd fill out this form right here:
 http://code.google.com/appengine/kb/billing.html
 
  1.3 CPU hours is still significantly under the free quota, so this
 probably wouldn't be an option for you. I'd advise running AppStats to
 profile where all the additional CPU usage is coming from. This information
 would be extremely helpful both to you as well as to other developers who
 may experience the same issues. Without knowing additional information, it's
 also possible that you were being *underbilled* previously and that we've
 corrected billing information.
 
  On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:
 
  Hello,
 
  I posted about this topic already 2 weeks ago. The days after that my
 
  website got back to its normal levels of CPU time. But then things got
 
  even worse. What can I do now? How can I let the responsible
 
  developers at Google let know to fix it.
 
  The situation is as follows:
 
  I have a cron job that is triggered every minute. It has an average
 
  CPU usage of 56(17) according to the dash board.
 
  On the black list I cannot see any requests other than my cron job. It
 
  is nearly the only thing that needs CPU time.
 
  Normally what I got billed everyday was about 0.2 CPU hrs a day. In
 
  the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of
 
  the free quota just for this lightweight cron job!
 
  Henning
 
  --
 
  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-j...@googlegroups.com.
 
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 
  For more options, visit this group athttp://
 groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Ikai Lan
  Developer Relations, Google App EngineTwitter:
 http://twitter.com/ikaiDelicious:http://delicious.com/ikailan
 
  Google App Engine links:
  Blog:http://googleappengine.blogspot.comTwitter:http://
 twitter.com/app_engine
  Reddit:http://www.reddit.com/r/appengine
 
  --
 
  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-j...@googlegroups.com.
 
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 
  For more options, visit this group athttp://
 groups.google.com/group/google-appengine-java?hl=en.
 
  _
 http://redirect.gimas.net/?n=M1004xjajah2
  Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH!
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 

Re: [appengine-java] Billed CPU time by far too high

2010-05-12 Thread Jeff Schnitzer
Are you really getting upset over some arbitrary numbers on a service
you aren't even paying for?

Jeff

On Wed, May 12, 2010 at 4:58 AM, Henning Dierolf henning2...@hotmail.de wrote:
 Hi Ikai,

 it's also possible that you were being *underbilled* previously and that
 we've corrected billing information.

 that is quite interesting. Google just can decide that someone is
 underbilled so he/she has to pay an extra 700% on CPU time. So not
 everyone has to pay the same for the same good. I think that this is quite
 ridiculous. Probably it does not make sense to invest in this platform
 anymore but better develop my software on another cloud service like Amazon.

 Henning

 
 Date: Mon, 10 May 2010 08:40:22 +0200
 Subject: Re: [appengine-java] Billed CPU time by far too high
 From: ika...@google.com
 To: google-appengine-java@googlegroups.com

 If you are actually being billed, you'd fill out this form right here:
 http://code.google.com/appengine/kb/billing.html
 1.3 CPU hours is still significantly under the free quota, so this probably
 wouldn't be an option for you. I'd advise running AppStats to profile where
 all the additional CPU usage is coming from. This information would be
 extremely helpful both to you as well as to other developers who may
 experience the same issues. Without knowing additional information, it's
 also possible that you were being *underbilled* previously and that we've
 corrected billing information.

 On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:

 Hello,

 I posted about this topic already 2 weeks ago. The days after that my
 website got back to its normal levels of CPU time. But then things got
 even worse. What can I do now? How can I let the responsible
 developers at Google let know to fix it.

 The situation is as follows:

 I have a cron job that is triggered every minute. It has an average
 CPU usage of 56(17) according to the dash board.
 On the black list I cannot see any requests other than my cron job. It
 is nearly the only thing that needs CPU time.

 Normally what I got billed everyday was about 0.2 CPU hrs a day. In
 the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of
 the free quota just for this lightweight cron job!

 Henning

 --
 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-j...@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.




 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter: http://twitter.com/ikai
 Delicious: http://delicious.com/ikailan
 
 Google App Engine links:
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine

 --
 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-j...@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.

 
 Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH!

 --
 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-j...@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-j...@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: Viewing Emails in dev using log4j

2010-05-12 Thread Stevko
Eurig - Did you find it? Its probably not log4j due to app engine
using java.util.logging.Logger technology.

I am also interested in where this log file is. I'm using Eclipse
which is monitoring the log output and see nothing there.
Is there another log I'm unaware of? I would assume it would be in the
WEB-INF/appengine-generated directory but nothing shows there.

--Stevko

On Apr 5, 3:20 am, Eurig Jones eurigjo...@gmail.com wrote:
 Hi,

 From  http://code.google.com/appengine/docs/java/mail/overview.html#Develop...
 ...

 When an application running in the developmentservercalls the Mail
 service to send an email message, the message is printed to thelog.
 The Java developmentserverdoes not send the email message.

 My question is, what log4j setup do I use to output these emails?

 Regards,
 Eurig Jones

-- 
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-j...@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: Google maps geocoder responds with 620 error since server maintenance

2010-05-12 Thread Ikai L (Google)
Can you send us your API key that's getting throttled?

-- 
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-j...@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] Billed CPU time by far too high

2010-05-12 Thread Paul Hammant
Many of us sit in limbo Jeff.  We're waiting for cold-start, start-up, and
billing and general 'cloud' concerns to be assuaged before we push clients
towards this stack.

Thus something that is free now, is useful experience when considering the
huge deployments to GAE/J.

- Paul

On Wed, May 12, 2010 at 2:32 PM, Jeff Schnitzer j...@infohazard.org wrote:

 Are you really getting upset over some arbitrary numbers on a service
 you aren't even paying for?

 Jeff

 On Wed, May 12, 2010 at 4:58 AM, Henning Dierolf henning2...@hotmail.de
 wrote:
  Hi Ikai,
 
  it's also possible that you were being *underbilled* previously and
 that
  we've corrected billing information.
 
  that is quite interesting. Google just can decide that someone is
  underbilled so he/she has to pay an extra 700% on CPU time. So not
  everyone has to pay the same for the same good. I think that this is
 quite
  ridiculous. Probably it does not make sense to invest in this platform
  anymore but better develop my software on another cloud service like
 Amazon.
 
  Henning
 
  
  Date: Mon, 10 May 2010 08:40:22 +0200
  Subject: Re: [appengine-java] Billed CPU time by far too high
  From: ika...@google.com
  To: google-appengine-java@googlegroups.com
 
  If you are actually being billed, you'd fill out this form right here:
  http://code.google.com/appengine/kb/billing.html
  1.3 CPU hours is still significantly under the free quota, so this
 probably
  wouldn't be an option for you. I'd advise running AppStats to profile
 where
  all the additional CPU usage is coming from. This information would be
  extremely helpful both to you as well as to other developers who may
  experience the same issues. Without knowing additional information, it's
  also possible that you were being *underbilled* previously and that we've
  corrected billing information.
 
  On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote:
 
  Hello,
 
  I posted about this topic already 2 weeks ago. The days after that my
  website got back to its normal levels of CPU time. But then things got
  even worse. What can I do now? How can I let the responsible
  developers at Google let know to fix it.
 
  The situation is as follows:
 
  I have a cron job that is triggered every minute. It has an average
  CPU usage of 56(17) according to the dash board.
  On the black list I cannot see any requests other than my cron job. It
  is nearly the only thing that needs CPU time.
 
  Normally what I got billed everyday was about 0.2 CPU hrs a day. In
  the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of
  the free quota just for this lightweight cron job!
 
  Henning
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
 
 
 
  --
  Ikai Lan
  Developer Relations, Google App Engine
  Twitter: http://twitter.com/ikai
  Delicious: http://delicious.com/ikailan
  
  Google App Engine links:
  Blog: http://googleappengine.blogspot.com
  Twitter: http://twitter.com/app_engine
  Reddit: http://www.reddit.com/r/appengine
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  
  Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH!
 
  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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 

[appengine-java] Re: Viewing Emails in dev using log4j

2010-05-12 Thread Eurig Jones
No. It would be great if someone could shed some light on the issue.

On May 12, 9:52 pm, Stevko andy.ste...@gmail.com wrote:
 Eurig - Did you find it? Its probably not log4j due to app engine
 using java.util.logging.Logger technology.

 I am also interested in where this log file is. I'm using Eclipse
 which is monitoring the log output and see nothing there.
 Is there another log I'm unaware of? I would assume it would be in the
 WEB-INF/appengine-generated directory but nothing shows there.

 --Stevko

 On Apr 5, 3:20 am, Eurig Jones eurigjo...@gmail.com wrote:

  Hi,

  From  
  http://code.google.com/appengine/docs/java/mail/overview.html#Develop...
  ...

  When an application running in the developmentservercalls the Mail
  service to send an email message, the message is printed to thelog.
  The Java developmentserverdoes not send the email message.

  My question is, what log4j setup do I use to output these emails?

  Regards,
  Eurig Jones

 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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 createFederatedLoginURL() working?

2010-05-12 Thread Robert Lancer
Needs more docs for this.

On May 12, 4:54 am, antichrist ttlt...@gmail.com wrote:
 I also trying to use this.

 In my case, I want to log in via my apps domain id (ex:
 exampl...@example.com), So

 HashSetString attributes = new HashSet();
   attributes.add(openid.mode=checkid_immediate);
   
 attributes.add(openid.ns=http://specs.openid.net/auth/2.0;);
   attributes.add(openid.return_to=http://example.com;);
 userService.createFederatedLoginURL(example.com , requestUri,
 example.com, attributes));

 And From this, created link is 
 :http://example.com/_ah/login_redir?claimid=example.comcontinue=http:...

 When I clicked that link, it redirect to my apps domain login page,
 but after login complete it redirect to example.com

 but page not found error occured.

 I changed above link with modification and find claimid=example.com
 part is correct but continue=http://example.com/is incorrect.

 But I can't figure out correct input.

 On 4월7일, 오전3시56분, Viðar Svansson vidarsv...@gmail.com wrote:





  Hi

  I just noticedcreateFederatedLoginURL() but could not find any
  documentation for it (except for JavaDoc). Is this intended for native
  support for Google Marketplace? Would really appreciate some
  documentation on this.

  I am trying this out in 1.3.2 but get an error, The API package 'user'
  or call 'CreateFederatedLoginURL()' was not found.

  Viðar

  On Sat, Mar 27, 2010 at 10:27 AM, dflorey daniel.flo...@gmail.com wrote:
   Hi,
   I'm trying to replace the Step2 stuff with the new
  createFederatedLoginURL(), but I just get server errors in the
   provided /_ah/ servlets.
   Are these methods supposed to work and can someone please post an
   example how to authenticate and authorize a user?
   Thanks a lot,

   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-j...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-appengine-java+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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 createFederatedLoginURL() working?

2010-05-12 Thread Robert Lancer
Me too, some documentation would be helpful.


On May 12, 4:54 am, antichrist ttlt...@gmail.com wrote:
 I also trying to use this.

 In my case, I want to log in via my apps domain id (ex:
 exampl...@example.com), So

 HashSetString attributes = new HashSet();
   attributes.add(openid.mode=checkid_immediate);
   
 attributes.add(openid.ns=http://specs.openid.net/auth/2.0;);
   attributes.add(openid.return_to=http://example.com;);
 userService.createFederatedLoginURL(example.com , requestUri,
 example.com, attributes));

 And From this, created link is 
 :http://example.com/_ah/login_redir?claimid=example.comcontinue=http:...

 When I clicked that link, it redirect to my apps domain login page,
 but after login complete it redirect to example.com

 but page not found error occured.

 I changed above link with modification and find claimid=example.com
 part is correct but continue=http://example.com/is incorrect.

 But I can't figure out correct input.

 On 4월7일, 오전3시56분, Viðar Svansson vidarsv...@gmail.com wrote:





  Hi

  I just noticedcreateFederatedLoginURL() but could not find any
  documentation for it (except for JavaDoc). Is this intended for native
  support for Google Marketplace? Would really appreciate some
  documentation on this.

  I am trying this out in 1.3.2 but get an error, The API package 'user'
  or call 'CreateFederatedLoginURL()' was not found.

  Viðar

  On Sat, Mar 27, 2010 at 10:27 AM, dflorey daniel.flo...@gmail.com wrote:
   Hi,
   I'm trying to replace the Step2 stuff with the new
  createFederatedLoginURL(), but I just get server errors in the
   provided /_ah/ servlets.
   Are these methods supposed to work and can someone please post an
   example how to authenticate and authorize a user?
   Thanks a lot,

   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-j...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-appengine-java+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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: Extremely annoying error 203 - please help!!!

2010-05-12 Thread Sekhar
Thanks, yes - this error is no longer appearing now. The task executes
some JPA operations, and I'm listening for timeouts and continuing the
operation in another call if necessary (occasionally, it processes
many entities, so can last a while).

I'm still getting the below two errors however:

(1) Error and exception:
org.datanucleus.transaction.Transaction commit: Operation commit
failed on resource:
org.datanucleus.store.appengine.datastorexaresou...@16b7e0e, error
code UNKNOWN and transaction: [DataNucleus Transaction, ID=Xid=
com.allurefx.herdspot.server.task.GoogleTaskServlet doPost:
javax.persistence.RollbackException: Transaction failed to commit

(2) Exception
com.google.apphosting.utils.servlet.TransactionCleanupFilter
handleAbandonedTxns: Request completed without committing or rolling
back transaction with id -3057717142251548962.  Transaction will be
rolled back.

In general, what's the approved way to handle db operations that can
exceed the 30 sec time limit? What I'm doing now is to queue a task
from inside the servlet and let the task execute in however many
iterations are necessary.

On May 11, 10:04 pm, App Engine Team appengine.nore...@gmail.com
wrote:
 Hey Sekhar

 This error code indicates that the request exceeded the 30 second
 deadline, but we were unable to throw a HardDeadlineExceedError (or
 your code catches this error and was doing clean up work). Without
 seeing your code, it's hard to know for sure. If it is datastore code,
 you might be seeing this as a result of a datastore issue causing
 increased latency with 
 requests:http://groups.google.com/group/google-appengine-downtime-notify/brows...

 On May 10, 11:13 pm, Sekhar sek...@allurefx.com wrote:





  I've been struggling to get past this wretched error when using task
  queues:

  A serious problem was encountered with the process that handled this
  request, causing it to exit. This is likely to cause a new process to
  be used for the next request to your application. If you see this
  message frequently, you should contact the App Engine team. (Error
  code 203)

  Could someone help please? I tried custom queues and default queue;
  one param and two params. It used to fail intermittently, now it fails
  regularly.

  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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: Safe Harbor DPA compliant incremental backups of datastore

2010-05-12 Thread Mandla
I;m wairing for this, If anyone knows how to do it, please tell me.

-- 
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-j...@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: multiple applications one data store

2010-05-12 Thread Houston startup coder
You simply deploy another app under a different version and it will
use the same datastore:

http://code.google.com/appengine/docs/java/config/appconfig.html

This ability was mentioned in the following blog post:

http://googleappengine.blogspot.com/2009/06/10-things-you-probably-didnt-know-about.html


Enjoy!




On May 2, 1:08 pm, Ali ali.muhammad...@gmail.com wrote:
 Hi there,

 In a Java Application Server like Tomcat or Glassfish, I could deploy
 multiple war files which could share the database. I was wondering if
 I could deploy multiple war files, one for each context and use single
 data store. Is there any work around?

 Regards

 Ali

 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://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-j...@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.