I'm trying to implement a service on App Engine that interacts with an 
Gmail account using OAuth2, Java 7 and App Engine SDK 1.8.2. The problem 
being encountered is via the use of sample code provided 
by https://code.google.com/p/google-mail-oauth2-tools/wiki/JavaSampleCode 
the Security provider does not appear to be detected on a node although 
works locally fine. 

The IMAP debug trace is:

DEBUG IMAPS: mail.imap.fetchsize: 16384

DEBUG IMAPS: mail.imap.ignorebodystructuresize: false

DEBUG IMAPS: mail.imap.statuscachetimeout: 1000

DEBUG IMAPS: mail.imap.appendbuffersize: -1

DEBUG IMAPS: mail.imap.minidletime: 10

DEBUG IMAPS: enable SASL

DEBUG IMAPS: SASL mechanisms allowed: XOAUTH2

DEBUG IMAPS: trying to connect to host "imap.gmail.com", port 993, isSSL true

* OK Gimap ready for requests from xxx.xxx.xxx.xxx ZZZZZZZZZ

A0 CAPABILITY

* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN 
X-GM-EXT-1 XYZZY 

A0 OK Thats all she wrote! ZZZZZZZZZ

DEBUG IMAPS: AUTH: XOAUTH

DEBUG IMAPS: AUTH: XOAUTH2

DEBUG IMAPS: protocolConnect login, host=imap.gmail.com, 
[email protected], password=<non-null>

DEBUG IMAPS: SASL authentication command trace suppressed

DEBUG IMAPS: SASL Mechanisms:

DEBUG IMAPS:  XOAUTH2

DEBUG IMAPS: 

DEBUG IMAPS: No SASL support

DEBUG IMAPS: SASL authentication failed

DEBUG IMAPS: LOGIN command trace suppressed

DEBUG IMAPS: LOGIN command result: A1 NO Empty username or password. ZZZZZZZZZ

DEBUG IMAPS: trying to connect to host "imap.gmail.com", port 993, isSSL true

* OK Gimap ready for requests from xxx.xxx.xxx.xxx YYYYYYYYYY

A0 CAPABILITY

* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN 
X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2

A0 OK Thats all she wrote! YYY

DEBUG IMAPS: AUTH: XOAUTH

DEBUG IMAPS: AUTH: XOAUTH2

DEBUG IMAPS: protocolConnect login, host=imap.gmail.com, 
[email protected], password=<non-null>

DEBUG IMAPS: SASL authentication command trace suppressed

DEBUG IMAPS: SASL Mechanisms:

DEBUG IMAPS:  XOAUTH2

DEBUG IMAPS: 

DEBUG IMAPS: No SASL support

DEBUG IMAPS: SASL authentication failed

DEBUG IMAPS: LOGIN command trace suppressed

DEBUG IMAPS: LOGIN command result: A1 NO Empty username or password. YYYYYYYYYY


java.lang.RuntimeException: javax.mail.AuthenticationFailedException: Empty 
username or password. YYYYYYYYYY


This problem only occurs on a deployed node. Ensured that the provider was 
correct path and installed and using the latest versions of App Engine SDK that 
facilitates the IMAP and SMTP sockets. Triggering has been attempted via sample 
servlet and task on task queue.


Thank you for assistance in advance.


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to