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 a

Re: [appengine-java] GAE Authentication Broken

2011-04-24 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,

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

2011-04-17 Thread Fabrizio Accatino
lways http 200. 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 wrote: > Pretty weird. Let's hope someone from the GAE team peeps into this thread. > I have tho

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 wrote: > Fabrizio, > > Thank you for your help. > > Once I get the user id, do I still need to run it through c

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 E

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

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 Ac

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

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

2011-02-12 Thread Fabrizio Accatino
"no-cache,max-age=0"); connection.addRequestProperty("Pragma", "no-cache"); Fabrizio On Sat, Feb 12, 2011 at 12:08 PM, aka1g wrote: > Hi! > I'm fetching webpages and parse them. I have a weird behavior that > looks like GAE bug. > One of t

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 wrote: > 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() and > onDestroy) and s

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 wrote: > thanks for the answer. I will try it, as soon as my new mobile sim > ca

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 wrote: > Hi all, > > I am using the oauth authentication process to authenticate Android to > App Engine described in Nick'

[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] 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 Fab

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

2011-02-02 Thread Fabrizio Accatino
Other 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 subscrib

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

2011-02-02 Thread Fabrizio Accatino
java The jar 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 wrote: > Hello All, > > I tried using google voice within App Engine and it fails to execute > because of

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 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 email to google-a

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

2011-01-30 Thread Fabrizio Accatino
=4476 Fabrizio On Sun, Jan 30, 2011 at 8:28 AM, Didier Durand wrote: > 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 th

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

2011-01-29 Thread Fabrizio Accatino
different 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"

[appengine-java] Unindexed properties with JDO ?

2011-01-27 Thread Fabrizio Accatino
created 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 googl

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/

Re: [appengine-java] I need to do a cron without 30 sec limit

2011-01-22 Thread Fabrizio Accatino
uota limit (8 recipients/minute). Fabrizio On Fri, Jan 21, 2011 at 6:59 PM, Mayumi Liyanage < mayumi.liyan...@coldwin.com> wrote: > Hi, I need to iterate over all the entities in the Datastore and send > out emails once a day asynchronously to the actual app. > Usual way to do this

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

2011-01-12 Thread Fabrizio Accatino
tQueue("myqueue"); queue.add(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 wrote: > Yes, I do this with JDO. Just add to

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

2011-01-11 Thread Fabrizio Accatino
tore is not able to manage 1==1. So, as you wrote, it's 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 wrote: > And that is the developer who has left i

[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: 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 wrote: > yes, that would be the way with simple httpClient. Maybe there is a

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

2011-01-10 Thread Fabrizio Accatino
tHttpClient passing the authToken. 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"

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

2010-12-28 Thread Fabrizio Accatino
u cannot send strong injections like "smith' || '1'=='1" because the engine (actually) refuse it. So, you are right. No big problem. Fabrizio On Mon, Dec 27, 2010 at 10:29 AM, datanucleus wrote: > SQL injection ? into a database that doesn't support SQ

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

[appengine-java] "SQL injection" on App Engine ?

2010-12-26 Thread Fabrizio Accatino
out. http://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

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) > wrote: > 8 is fairly arbitrary, but there's always going to be

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 wrote: > I have a test local datastore. I also have a procedure now to delete > this whenever I install a new GAE/J SDK. Thi

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 wrote: > Does this post help? > > > ht

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

2010-12-04 Thread Fabrizio
evert" the local_db.bin file to my previous version from my local subversion. But it does not work. :( 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, send em

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 wrote: > Context: > - Tasks as defined in > http://code.google.com/appengine/docs/java/taskqueue/overview.html

Re: [appengine-java] OpenID & Development server

2010-10-20 Thread Fabrizio Accatino
Issue opened 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 googl

Re: [appengine-java] OpenID & Development server

2010-10-16 Thread Fabrizio Accatino
yurl 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, O

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 > OpenID support is still experimental, there are several open issues &g

[appengine-java] Re: OpenID & Development server

2010-10-09 Thread Fabrizio
Any idea? On Oct 7, 10:46 am, Fabrizio 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: > > > /protected/* >

[appengine-java] OpenID & Development server

2010-10-07 Thread Fabrizio
ct to: http://MYAPP.appspot.com/_ah/login_required?continue=http://MYAPP.appspot.com/protected/ But on local development server I get:http://localhost:/_ah/login?continue=http://localhost:/protected/ Why? fabrizio -- You received this message because you are subscribed to the Google G

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

2010-09-19 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 wrote: > When using task queue and the parameters contain an ampersand, it gets > cut off when you try to its

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

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

[appengine-java] Re: PdfBox text extraction & GAE

2010-05-06 Thread Fabrizio
(httpRespCode == 200) { RandomAccessBuffer tempMemBuffer = new RandomAccessBuffer(); PDDocument doc = PDDocument.load(connection.getInputStream(), tempMemBuffer); ... fabrizio On May 4, 11:17 pm, kldaniels wrote: > This is interesting that you got this to work. > > I

[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 (Goo

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

2010-04-23 Thread Fabrizio
Production. On Apr 23, 3:02 pm, James wrote: > Are you seeing this on the dev server or in production?  I vaguely > recall reading somewhere that the dev server always executes > immediately(??). > > James -- You received this message because you are subscribed to the Google Groups "Google Ap

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

2010-04-23 Thread Fabrizio
delay = 2000 On Apr 23, 12:03 am, "Max Ross (Google)" wrote: > What is the value of the delay variable? -- 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.

[appengine-java] TaskOptions.countdownMillis not used

2010-04-22 Thread Fabrizio
Queue 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 &q

[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 &qu

[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
.Data == null) return null; else return this.Data.getValue(); } fabrizio On Mar 12, 8:22 pm, Jake wrote: > Hey, > > I presume setMethod() refers to a getter/setter.  So, your persisted > class would look like: > > @Persistent >

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

[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 wrote: > I'm sorry if this is a stupid question, but

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

2010-01-21 Thread Fabrizio
cts=0 http://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 f

[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

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

2010-01-15 Thread Fabrizio
as John said, it harmless. Google guys, please, 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...@goog

[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 wrote: > Thehttp://java.sun.com/products/javamail/FAQ.html#gmailshows how to > access Gmail Inbox using JavaMail. >     //St

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

2009-12-18 Thread Fabrizio
th problem, but I cannot skip the first 1000. Quite strange... IMHO fabrizio On Dec 17, 10:39 pm, stephenp 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. I

[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: <% PersistenceManager pm = PMF.get().getPersistenceManager(); Query qry = pm.newQuery("select from " + Person.class.getName() + " where _age > 4"); qry.setRange(10,1500); List persons = (List) qry.execute(); %> SIZE

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

2009-12-17 Thread Fabrizio
ge(10,1500); List persons = (List) qry.execute(); fabrizio On Dec 17, 3:17 pm, abhi 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); >                 que

[appengine-java] JDO Query limit? 1000?

2009-12-17 Thread Fabrizio
Manager pm = PMF.get().getPersistenceManager(); List persons = (List) 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 Jav

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

2009-12-17 Thread Fabrizio
ted to "loading requests". Have you any idea/suggestion? 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 unsubscri

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

2009-12-16 Thread Fabrizio
6:48AM 20.059 /"myurl..." 200 156ms 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" gr