[appengine-java] Re: Error redirecting application to strange URL

2011-09-28 Thread Fábio Uechi
Hi,

Seems that your app is using the google apps domain nimbocit.com for 
authentication and it has SSO enabled.

cheers
Fábio

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/FEewd8wJgTsJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Set password for appcfg.sh update

2011-09-15 Thread Fábio Uechi
You can use an expect script http://en.wikipedia.org/wiki/Expect like 
this:

*set username [lrange $argv 0 0]*
*set password [lrange $argv 1 1]*
*set warDir [lrange $argv 2 2]*
*set gaeHome [lrange $argv 3 3]*
*set timeout -1*
*
*
*# spawns appcfg.sh*
*spawn $gaeHome/bin/appcfg.sh --passin --email=$username update $warDir*
*match_max 10*
*
*
*expect {*
*   default {exit 0}*
*   # Look for passwod prompt*
*   *?assword**
*}*
*
*
*# Send password aka $password*
*send -- $password\r*
*
*
*# send blank line (\r) to make sure we get back to gui*
*send -- \r*
*expect eof*

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/73r9YlZjy6gJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: XmppServices - Problems trying to parse Presence requests

2011-02-25 Thread Fábio Uechi
Seems that this issue is related to gaelyk only.
We are already discussing it on its forum.

Thanks 
Fábio

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: XmppServices - Problems trying to parse Presence requests

2011-02-25 Thread Fábio Uechi
I did some more tests.
Looks like XMPPService can´t parse neither subscriptions nor presence 
requests when they were *forwarded*.

I´ve created two simple servlets.
The first one is the webhook. It handles inbound requests in one of the 
URLs:  */_ah/xmpp/presence/**,  */_ah/xmpp/subscription/**  or *
/_ah/xmpp/message/**.
Then it simply forwards the request to the second servlet which is 
responsible for invoking the parsing methods.

Requests containing chat messages are handled normally, but the other two 
ones (Presence and Subscription) throws the aforementioned exception.
And if I route the requests straight to the second servlet everything works!

Bug?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] XmppServices - Problems trying to parse Presence requests

2011-02-24 Thread Fábio Uechi
Hi,

I´m having problems when invoking the *parsePresence(request)*method.
I´m getting the error message: Script processing failed.Can't determine the 
type of stanza from the path: /presence.groovy
Any clue, anyone?
The complete stacktrace is below: 

INFO: javax.servlet.ServletContext log: GroovyServlet Error:  script: 
'/presence.groovy':  Script processing failed.Can't determine the type of 
stanza from the path: 
/presence.groovycom.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39)
GroovyServlet Error:  script: '/presence.groovy':  Script processing 
failed.Can't determine the type of stanza from the path: 
/presence.groovycom.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39)
java.lang.IllegalArgumentException: Can't determine the type of stanza from 
the path: /presence.groovy
at 
com.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39)
at 
com.google.appengine.api.xmpp.XMPPServiceImpl.parsePresence(XMPPServiceImpl.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at 
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at presence.run(presence.groovy:1)
at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:515)
at groovy.servlet.GroovyServlet$1.call(GroovyServlet.java:120)
at 
org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:99)
at 
org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.access$300(GroovyCategorySupport.java:61)
at 
org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:239)
at groovy.servlet.GroovyServlet.service(GroovyServlet.java:129)
at groovyx.gaelyk.GaelykServlet.super$5$service(GaelykServlet.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:127)
at 
groovyx.gaelyk.GaelykServlet$_service_closure1.doCall(GaelykServlet.groovy:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at 
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at 
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at 
groovyx.gaelyk.GaelykServlet$_service_closure1.doCall(GaelykServlet.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at 
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:282)
at groovy.lang.Closure.call(Closure.java:277)
at 
org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:111)
at