Re: [appengine-java] GAE Authentication Broken

2011-04-25 Thread Fabrizio Accatino
Not sure... but since you are connecting through https, try to get the SACSID cookie instead of the ACSID. fabrizio On Sun, Apr 24, 2011 at 11:04 PM, Konstantin Weitz konstantin.we...@googlemail.com wrote: Hi guys, I'm trying to authenticate at a web service, running on gae

Re: [appengine-java] GAE Authentication Broken

2011-04-25 Thread Fabrizio Accatino
In your first piece of code you used https. So you need to get the secure auth cookie from app engine (SACSID). IMHO My codes. It manages both cookies. http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-engine.html fabrizio On Mon, Apr 25, 2011 at 12:22 PM

Re: [appengine-java] Re: Failing tasks getting duplicated

2011-04-17 Thread Fabrizio Accatino
. The simpler way: put a try-catch in your servlet entry point and catch all exceptions. A quite brutal but it works. fabrizio On Sun, Apr 17, 2011 at 8:34 AM, nischalshetty nischalshett...@gmail.comwrote: Pretty weird. Let's hope someone from the GAE team peeps into this thread. I have

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

Re: [appengine-java] User service - getCurrentUser always returns null

2011-04-12 Thread Fabrizio Accatino
Have you activated Security Authentication in the web.xml? http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication fabrizio On Wed, Apr 13, 2011 at 7:44 AM, Peter ptr

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

2011-04-12 Thread Fabrizio Accatino
getUserID I see that User class has two methods to obtain id information, getFederatedIdentity() and getUserId(). Which of these two can be used as the primary key for storing per-user information. -- You received this message because you are subscribed to the Google Groups Google App

Re: [appengine-java] only allowing local connections to dev server?

2011-04-11 Thread Fabrizio Accatino
Perhaps a better solution: use the --address paramater http://code.google.com/appengine/docs/java/tools/devserver.html#Command_Line_Arguments http://code.google.com/appengine/docs/java/tools/devserver.html#Command_Line_Arguments fabrizio On Mon, Apr 11, 2011 at 7:56 AM, Fabrizio Accatino fht

Re: [appengine-java] only allowing local connections to dev server?

2011-04-10 Thread Fabrizio Accatino
I use rinetd. It's a port forwarder. http://www.boutell.com/rinetd/ fabrizio (from android) Il giorno 10/apr/2011 19.57, Luis Montes monte...@gmail.com ha scritto: When running a java webapp in eclipse it seems that I can only connect to the dev jetty instance from the localhost. Is jetty fired

Re: [appengine-java] urlfetcher bug, weird content retrieved.

2011-02-12 Thread Fabrizio Accatino
-age=0); connection.addRequestProperty(Pragma, no-cache); Fabrizio On Sat, Feb 12, 2011 at 12:08 PM, aka1g van...@gmail.com wrote: Hi! I'm fetching webpages and parse them. I have a weird behavior that looks like GAE bug. One of the pages retrieved has a totally different content. I'm

Re: [appengine-java] Re: Problem Authenticating against App Engine

2011-02-06 Thread Fabrizio Accatino
The Nick's way is the good way. My note was about OAuth. Afaik Android AccountManager class uses ClientLogin for authentication on App Engine. Fabrizio On Sun, Feb 6, 2011 at 5:03 PM, Sky skysoftwaredes...@googlemail.comwrote: thanks for the answer. I will try it, as soon as my new mobile

Re: [appengine-java] Re: Problem Authenticating against App Engine

2011-02-06 Thread Fabrizio Accatino
Fabrizio On Sun, Feb 6, 2011 at 8:12 PM, Sky skysoftwaredes...@googlemail.comwrote: One more question concerning the invalidation of the AuthToken. I read that it invalidates after 24h. What is when the Activity, holding the AuthToken (in NicksBlog the AppInfo class), ends (with finish

Re: [appengine-java] Problem Authenticating against App Engine

2011-02-05 Thread Fabrizio Accatino
ClientLogin and not OAuth. http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html Fabrizio On Fri, Feb 4, 2011 at 11:57 PM, Sky skysoftwaredes...@googlemail.comwrote: Hi all, I am using the oauth authentication process to authenticate Android to App Engine described in Nick's

Re: [appengine-java] Re: UrlFecth: random java.io.IOException: Could not fetch URL: http://...myurl...

2011-02-03 Thread Fabrizio Accatino
Didier, thank you for your feedback but I think the error is not related with maximum size. Infact the content is not big and I don't get a ResponseTooLargeExpetion. http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/ResponseTooLargeException.html Fabrizio

[appengine-java] Feature request: UrlFetch java : differenciate IOException causes

2011-02-03 Thread Fabrizio Accatino
http://code.google.com/p/googleappengine/issues/detail?id=4502 -- 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

Re: [appengine-java] Google Voice + App Engine (Java)

2011-02-02 Thread Fabrizio Accatino
in the download area was not updated. So you need to download the source code and compile it by yourself. Fabrizio On Wed, Feb 2, 2011 at 5:34 PM, lovegoogle sinusek...@gmail.com wrote: Hello All, I tried using google voice within App Engine and it fails to execute because of the custom

[appengine-java] UrlFecth: random java.io.IOException: Could not fetch URL: http://...myurl...

2011-02-02 Thread Fabrizio Accatino
urls work without errors. The errors are not timeout-related. When UrlFetch encounters a timeout it throws an exception with a different message: java.io.IOException: Timeout while fetching: http://...myurl... Suggestions? Fabrizio -- You received this message because you are subscribed

Re: [appengine-java] How to prevent google bot

2011-02-01 Thread Fabrizio Accatino
robot.txt ? On Tue, Feb 1, 2011 at 2:16 PM, midi chum...@gmail.com wrote: How can I prevent google bot from accessing a java based appspot app ?. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

Re: [appengine-java] Re: Get execution duration of an asynchronous urlfetch

2011-01-30 Thread Fabrizio Accatino
Fabrizio On Sun, Jan 30, 2011 at 8:28 AM, Didier Durand durand.did...@gmail.comwrote: Hi, You're right: async url fetch doesn't seem to provide any way to measure fetch time. Then, I have a proposal: why don't you schedule a task per fetch, this task will then do a regular synchronous

[appengine-java] Get execution duration of an asynchronous urlfetch

2011-01-29 Thread Fabrizio Accatino
so the response time are very different. I read the documentation but HTTPResponse does not expose a execution duration or similar value. Any idea? Fabrizio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group

[appengine-java] Unindexed properties with JDO ?

2011-01-27 Thread Fabrizio Accatino
on the properties. Fabrizio -- 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

Re: [appengine-java] Task Queue API Update

2011-01-23 Thread Fabrizio Accatino
Method names changed :) .url(...) -- withUrl(...) .method(...) -- withMethod(...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.Builder.html Fabrizio http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue

Re: [appengine-java] Re: Task queue + datastore transaction + jdo: is it possible?

2011-01-12 Thread Fabrizio Accatino
(taskOpts); pm.currentTransaction().commit(); } finally { if (pm.currentTransaction().isActive()) pm.currentTransaction().rollback(); pm.close(); } Fabrizio On Tue, Jan 11, 2011 at 9:29 PM, Ed Murphy emur...@yahoo.com wrote: Yes, I do this with JDO. Just add to you queue within

Re: [appengine-java] Re: Restlet, GAE, Android and Google Account authentication (oauth)

2011-01-11 Thread Fabrizio Accatino
/documentation/2.1/gwt/api/org/restlet/client/Request.html Let me know if it works. http://www.restlet.org/documentation/2.1/gwt/api/org/restlet/client/Request.html Fabrizio On Tue, Jan 11, 2011 at 12:55 PM, Sky skysoftwaredes...@googlemail.comwrote: yes, that would be the way with simple httpClient

[appengine-java] Task queue + datastore transaction + jdo: is it possible?

2011-01-11 Thread Fabrizio Accatino
Hello, documentation tells I can insert a task in queue during a datastore transaction. http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions The example uses datastore low level api. Is there a way to do the same with JDO? Thank you Fabrizio -- You

Re: [appengine-java] Re: SQL injection on App Engine ?

2011-01-11 Thread Fabrizio Accatino
important to use parameters and not concatenated strings. Exactly the same as classic sql. :) Have I correctly understood? Fabrizio On Sun, Jan 9, 2011 at 9:29 AM, datanucleus andy_jeffer...@yahoo.comwrote: And that is the developer who has left it open to that. Any sane developer would

Re: [appengine-java] Restlet, GAE, Android and Google Account authentication (oauth)

2011-01-10 Thread Fabrizio Accatino
. The url is: String url = http://myapp.appspot.com/_ah/login; + ?continue= + URLEncoder.encode(_gaeAppBaseUrl, UTF-8) + auth= + URLEncoder.encode(authToken, UTF-8); The auth cookie is ACSID Fabrizio On Mon, Jan 10, 2011 at 10:04 AM, Sky skysoftwaredes...@googlemail.comwrote: Hello, does anyone

Re: [appengine-java] Re: SQL injection on App Engine ?

2010-12-28 Thread Fabrizio Accatino
) refuse it. So, you are right. No big problem. Fabrizio On Mon, Dec 27, 2010 at 10:29 AM, datanucleus andy_jeffer...@yahoo.comwrote: SQL injection ? into a database that doesn't support SQL? Please present a clear example of how such a thing can happen and what effect it can have

Re: [appengine-java] migrating to 1.4 task queues

2010-12-27 Thread Fabrizio
@Ikai, about url -- withUrl please update documentation/examples at http://code.google.com/appengine/docs/java/taskqueue/overview.html -- 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] SQL injection on App Engine ?

2010-12-26 Thread Fabrizio Accatino
://code.google.com/appengine/docs/java/datastore/queriesandindexes.html A suggestion to Google guys: add a clear warning on documentation about using concatenated queries and remove concatenated examples (or make it clear to not use them on real apps). IMHO :) Fabrizio On Sat, Dec 25, 2010 at 6:42 PM

Re: [appengine-java] Re: The API call mail.Send() required more quota than is available.

2010-12-17 Thread Fabrizio Accatino
... or enqueue your outgoing message on a task queue with a slow run frequency (let's say 5/minutes). I do that and I'm very happy. :) Fabrizio On Sat, Dec 18, 2010 at 1:15 AM, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: 8 is fairly arbitrary, but there's

Re: [appengine-java] Re: Local datastore empty after updating to SDK 1.4.0

2010-12-05 Thread Fabrizio Accatino
Ian, I had read your previous post (2010-04-15). As you wrote, I'd also like to find a more authoritatively response. But I haven't found it. :( fabrizio On Sun, Dec 5, 2010 at 11:47 AM, Ian Marshall ianmarshall...@gmail.comwrote: Does this post help? http://www.google.com/url?url=http

Re: [appengine-java] Re: Local datastore empty after updating to SDK 1.4.0

2010-12-05 Thread Fabrizio Accatino
Sorry Ian, I don't understand. Do you delete the local datastore and create it again? If yes, how? Fabrizio On Sun, Dec 5, 2010 at 5:16 PM, Ian Marshall ianmarshall...@gmail.comwrote: I have a test local datastore. I also have a procedure now to delete this whenever I install a new GAE/J

Re: [appengine-java] Tasks SSL

2010-11-09 Thread Fabrizio Accatino
- what error do you receive? copy and paste log - try to remove ssl. The connection is internal. (AFAIK) fabrizio On Tue, Nov 9, 2010 at 3:37 AM, Dom Derrien dominique.derr...@gmail.comwrote: Context: - Tasks as defined in http://code.google.com/appengine/docs/java/taskqueue

Re: [appengine-java] OpenID Development server

2010-10-20 Thread Fabrizio Accatino
Issue opened http://code.google.com/p/googleappengine/issues/detail?id=3922 http://code.google.com/p/googleappengine/issues/detail?id=3922 -- 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

Re: [appengine-java] OpenID Development server

2010-10-16 Thread Fabrizio Accatino
It works fine. I can login with openID. On local development server I get: http://localhost:/_ah/login?continue=myurl And this does not work. :( The question remains the same: is OpenID supported by local Development server? Google guys, please, give me an hint... fabrizio On Thu, Oct 7

Re: [appengine-java] Re: OpenID Development server

2010-10-10 Thread Fabrizio Accatino
I have no problem opening an issue. But actually I don't understand if I have a problem/wrong_configuration or App Engine has a bug. I'm waiting for a reply from Google guys... :) fabrizio 2010/10/9 ArtemGr artem...@gmail.com OpenID support is still experimental, there are several open issues

[appengine-java] Re: OpenID Development server

2010-10-09 Thread Fabrizio
Any idea? On Oct 7, 10:46 am, Fabrizio fht...@gmail.com wrote: Hello, I'm testing OpenID (SDK 1.3.7). My env is: Eclipse + GAE Plugin. Question: is OpenID supported by local development server? I have a protected area. I force users to login with: security-constraint web-resource

[appengine-java] OpenID Development server

2010-10-07 Thread Fabrizio
://localhost:/_ah/login?continue=http://localhost:/protected/ Why? fabrizio -- 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

Re: [appengine-java] parameter values in taskqueue that contain '' gets cut

2010-09-20 Thread Fabrizio Accatino
- how have you url-encoded the parameters? Can you share the code? - have you tried Method.POST instead of GET? fabrizio On Mon, Sep 20, 2010 at 7:45 AM, mar_novice mariocape1...@gmail.com wrote: When using task queue and the parameters contain an ampersand, it gets cut off when you try

Re: [appengine-java] task queues and retries

2010-07-19 Thread Fabrizio Accatino
AFAIK if you don't catch exceptions, you'll get HTTP 500 error. Can you post your code? Are you sure that you do not try/catch the exception? fabrizio On Mon, Jul 19, 2010 at 12:38 AM, Philip Tucker ptuc...@gmail.com wrote: One of my tasks encountered a failure and wasn't retried. I think

[appengine-java] Re: Limiting the number of requests per IP each minute

2010-07-03 Thread Fabrizio
cacheFactory = CacheManager.getInstance().getCacheFactory(); Cache cache = cacheFactory.createCache(props); cache.put(key, value); fabrizio -- 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] Re: Disable URLFetchService cache

2010-06-10 Thread Fabrizio
I had the same problem. I solved with: ... URL urlObj = new URL(url); HttpURLConnection connection = (HttpURLConnection) urlObj.openConnection(); connection.addRequestProperty(Cache-Control, no-cache,max-age=0); connection.addRequestProperty(Pragma, no-cache); ... fabrizio On Jun 9, 2:29 pm

[appengine-java] Re: PdfBox text extraction GAE

2010-05-06 Thread Fabrizio
(); if (httpRespCode == 200) { RandomAccessBuffer tempMemBuffer = new RandomAccessBuffer(); PDDocument doc = PDDocument.load(connection.getInputStream(), tempMemBuffer); ... fabrizio On May 4, 11:17 pm, kldaniels kendani...@gmail.com wrote: This is interesting that you got

[appengine-java] Re: TaskOptions.countdownMillis not used

2010-04-25 Thread Fabrizio
Hello Max, I noticed it because I got wrong data. So I checked the logs. But, now, I'm trying to reprocude the issue but I cannot. The delay is good. I'll continue the test and I'll let you know. Thank you for your help. fabrizio On Apr 23, 10:40 pm, Max Ross (Google) maxr+appeng

[appengine-java] TaskOptions.countdownMillis not used

2010-04-22 Thread Fabrizio
queue = QueueFactory.getQueue(queueName); TaskOptions taskOpts = TaskOptions.Builder.url(url); taskOpts.countdownMillis(delay); taskOpts.method(Method.GET); queue.add(taskOpts); Thank you for help fabrizio -- You received this message because you are subscribed to the Google Groups Google

[appengine-java] PdfBox text extraction GAE

2010-04-20 Thread Fabrizio
If anyone is interested... PdfBox text extration GAE How to do text extraction from pdf files using PdfBox on Google App Engine http://fhtino.blogspot.com/2010/04/pdfbox-text-extration-gae.html fabrizio -- You received this message because you are subscribed to the Google Groups Google

[appengine-java] Re: How do I write data in my Google App Engine Datastore to com.google.appengine.api.datastore.Text

2010-03-13 Thread Fabrizio
== null) return null; else return this.Data.getValue(); } fabrizio On Mar 12, 8:22 pm, Jake jbrooko...@cast.org wrote: Hey, I presume setMethod() refers to a getter/setter.  So, your persisted class would look like: @Persistent Text text; public

[appengine-java] Re: Object property cannot accept null values.

2010-02-04 Thread Fabrizio
Use Double instead of double. Double is an Object -- can be null. fabrizio On Feb 5, 3:23 am, dreamy dreamy2c...@... wrote: I have create lot of Object in past. when  I add a property private double price; to this object today .but  i query the record again,the exception is throw

[appengine-java] Re: Post/Get to a servlet from another servlet

2010-01-25 Thread Fabrizio
Consider using queue. At the end of your servlet, enqueue a call to the same servlet and pass one or more parameters with the next item to process. Example: /myservlet?nextID=90 Fabrizio On Jan 26, 5:07 am, edarroyo edgardo...@gmail.com wrote: I'm sorry if this is a stupid question

[appengine-java] Re: Many Request was aborted after waiting too long to attempt to service your request errors

2010-01-21 Thread Fabrizio
://gs.fhtino.it/download/GAE2_no_more_error2.png?attredirects=0 Fabrizio -- 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

[appengine-java] Re: Many Request was aborted after waiting too long to attempt to service your request errors

2010-01-15 Thread Fabrizio
, help me and the other with the same issue. Fabrizio -- 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

[appengine-java] Re: Many Request was aborted after waiting too long to attempt to service your request errors

2010-01-15 Thread Fabrizio
John, my app is very very simple. It does not use external frameworks or libraries. fabrizio   I think currently the only solution is to make you app   start up faster.   -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group

[appengine-java] Re: Accessing GMail Inbox

2009-12-21 Thread Fabrizio
AFAIK from GAW you can only communicate on port 80 and 443 (hhttp and https). And you must use the Url Fetch service. fabrizio On Dec 20, 5:36 pm, Pion onlee2...@gmail.com wrote: Thehttp://java.sun.com/products/javamail/FAQ.html#gmailshows how to access Gmail Inbox using JavaMail

[appengine-java] Re: JDO Query limit? 1000?

2009-12-18 Thread Fabrizio
, but I cannot skip the first 1000. Quite strange... IMHO fabrizio On Dec 17, 10:39 pm, stephenp slpe...@gmail.com wrote: He meant setRange(1001, 2000) will fail. Datastore will only let you skip the first 1000. If you try to skip past more than 1000 you'll get an error. In your code

[appengine-java] Re: Many Request was aborted after waiting too long to attempt to service your request errors

2009-12-17 Thread Fabrizio
? fabrizio -- 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

[appengine-java] JDO Query limit? 1000?

2009-12-17 Thread Fabrizio
= PMF.get().getPersistenceManager(); ListPerson persons = (ListPerson) pm.newQuery( select from + Person.class.getName()).execute(); Is there any limit? fabrizio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

[appengine-java] Re: JDO Query limit? 1000?

2009-12-17 Thread Fabrizio
= (ListPerson) qry.execute(); fabrizio On Dec 17, 3:17 pm, abhi abhishek9...@gmail.com wrote: You sure will get all results , specially on offline mode , but you cant do paging in query for more than 1000 results ,with Query query = pm.newQuery(YORRQUERY);                 query.setRange(0 , 1001

[appengine-java] Re: JDO Query limit? 1000?

2009-12-17 Thread Fabrizio
It also works on Google App server !Very strange My test jsp page: body % PersistenceManager pm = PMF.get().getPersistenceManager(); Query qry = pm.newQuery(select from + Person.class.getName() + where _age 4); qry.setRange(10,1500); ListPerson persons = (ListPerson)

[appengine-java] Many Request was aborted after waiting too long to attempt to service your request errors

2009-12-16 Thread Fabrizio
191cpu_ms 95api_cpu_ms 0kb Why some requests work and other crash? I don't change anything between them. Fabrizio -- 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