Maybe there is the problem, if I remove that line
( setAllowUnsignedRequests(true) ), I get this error when adding the
robot to the wave:

Uncaught exception from servlet
java.lang.IllegalArgumentException: No consumer key is found for the
RPC server URL:
        at
com.google.wave.api.AbstractRobot.deserializeEvents(AbstractRobot.java:
1018)
        at com.google.wave.api.AbstractRobot.processRpc(AbstractRobot.java:
859)
        at com.google.wave.api.AbstractRobot.doPost(AbstractRobot.java:584)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
        at
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:
97)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
35)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
        at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
        at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
        at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
        at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
        at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
        at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
243)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5838)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5836)
        at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
        at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
        at com.google.net.rpc.impl.Server$2.run(Server.java:852)
        at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
        at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
        at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
        at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
        at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
        at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
        at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
        at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
        at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
        at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
        at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
        at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
        at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:404)
        at java.lang.Thread.run(Unknown Source)

I saw this post, which was solved with setAllowUnsignedRequests
(true); but I'm not sure that's a good solution.
http://groups.google.com/group/google-wave-api/browse_thread/thread/843965ad3a39e642/d146e3aa6808302e?lnk=raot

I am a bit desperate, I'll try again with fetchWavelet ().
Could I see your code when you are authenticating the robot? I have to
be missing something, because not it happen to you.

Thank you very much, I'll wait to see if it works at some point.

By the way, I made the registration process in both web pages and get
the same CONSUMER_KEY and CONSUMER_SECRET. So, I guess that is not the
problem.

On 23 abr, 08:34, Evgeniy Beschastnov <ebeschast...@gmail.com> wrote:
> There are two different links for robot registration at preview and
> sandbox. Here they are:
>
> Sandbox:http://wave.google.com/a/wavesandbox.com/robot/register
>
> Preview:http://wave.google.com/wave/robot/register
>
> Have you registered your robot at preview link?
>
> I just took a look at your code and i think it is ok. The only thing i
> can tell about it, is that i dont use this call
> setAllowUnsignedRequests(true).
>
> Try removing it.
>
> As i know there is no delay between moment of registration and moment,
> when you can use active api. At least there was no delay for me:)
>
> Thanks, Evgeniy
>
> On 22 ÁÐÒ, 19:15, Joel Dietz <jdi...@gmail.com> wrote:
>
>
>
> > Actually, I had exactly the same problem when I first started using OAuth.
> > Wave Preview didn't work at all but Wave Sandbox worked fine.
>
> > Then suddenly it started working. Maybe there is some dely on when you go
> > through the validation process and when the server is actually updated with
> > them.
>
> > d3developer.com | twitter.com/fractastical | twitter.com/jdietz
>
> > On Thu, Apr 22, 2010 at 6:20 AM, Carlos M. <kmar...@gmail.com> wrote:
> > > The other day I worked for a few minutes in PREVIEW, but then gave the
> > > same error. In sandbox has always gone well. Maybe it's a server
> > > issue?
>
> > > I've tried fetchWavelet() but I have the same problem.
>
> > > This is the log:
>
> > > 04-22 02:55AM 50.985 com.google.wave.api.AbstractRobot makeRpc: JSON
> > > request to be sent:
> > > [{"method":"wave.robot.fetchWave","id":"op25","params":
> > > {"waveId":"wavesandbox.com!
> > > 04-22 02:55AM 51.089 com.google.wave.api.AbstractRobot makeRpc:
> > > Response returned: [{"id":"op25","data":{}}]
>
> > > I have registered the robot (the same record to both Sandbox Preview,
> > > right?), I verified it and I add these lines in the constructor:
>
> > > public MyRobot() {
> > >                setupOAuth(CONSUMER_KEY_, CONSUMER_SECRET_,
> > > SANDBOX_RPC_URL);
> > >                setupOAuth(CONSUMER_KEY_, CONSUMER_SECRET_,
> > > PREVIEW_RPC_URL);
> > >                setAllowUnsignedRequests(true);
> > >        }
>
> > > Can that be the problem? Anyway, I left only the line of PREVIEW and
> > > does not work.
>
> > > Do you have any idea?
>
> > > Thank you!!
>
> > > On 21 abr, 13:43, Evgeniy Beschastnov <ebeschast...@gmail.com> wrote:
> > > > Hi!
>
> > > > I think, you should use fetchWavelet(..). It seems to me, that it is
> > > > more stable. I dont have such problems currently.Have you registered
> > > > your robot for working with preview at urlhttp://
> > > wave.google.com/wave/robot/register
> > > > ?
>
> > > > Evgeniy
>
> > > > On 21 ÁÐÒ, 04:59, "Carlos M." <kmar...@gmail.com> wrote:
>
> > > > > Hello, I have the same problem. My robot works fine in sandbox, but
> > > > > the response in Google Wave Preview is empty.
>
> > > > > I'm using blindWavelet and I make the submit as follows:
>
> > > > >          if (wavelet.getDomain (). contains ("sandbox")) (
> > > > >             robot.submit (wavelet, SANDBOX_RPC_URL)
> > > > >             _logger.info ("SANDBOX SUBMIT DONE ");
> > > > >          )
> > > > >          else (
> > > > >             robot.submit (wavelet, PREVIEW_RPC_URL)
> > > > >             _logger.info ("PREVIEW SUBMIT DONE ");
> > > > >          }
>
> > > > > Where:
>
> > > > > private static String SANDBOX_RPC_URL = "http://sandbox.gmodules.com/
> > > > > api/rpc"
> > > > > private static String PREVIEW_RPC_URL = "http://gmodules.com/api/rpc";
>
> > > > > Does anyone have the same problem?
>
> > > > > Thank you!
>
> > > > > On 12 mar, 19:38, Evgeniy Beschastnov <ebeschast...@gmail.com> wrote:
>
> > > > > > Hi,
> > > > > > Thank you, something happened to wave server during this night and
> > > now
> > > > > > it works ok :)
>
> > > > > > Evgeniy
>
> > > > > > On 12 ÍÁÒ, 18:11, santosh mantri <sandy1man...@gmail.com> wrote:
>
> > > > > > > Hi,
>
> > > > > > > Can you try blindWavelet(<waveid>,<waveletid>);
> > > > > > > it works in my project.
>
> > > > > > > i hope it will work for you.
>
> > > > > > > On Thu, Mar 11, 2010 at 1:42 PM, Evgeniy Beschastnov <
> > > ebeschast...@gmail.com
>
> > > > > > > > wrote:
> > > > > > > > Hi!
>
> > > > > > > > When my robot fetches wavelet the following exception is thrown:
>
> > > > > > > > java.lang.NullPointerException
> > > > > > > >        at
> > > com.google.wave.api.Wavelet.deserialize(Wavelet.java:537)
> > > > > > > >        at
>
> > > com.google.wave.api.AbstractRobot.fetchWavelet(AbstractRobot.java:
> > > > > > > > 567)
> > > > > > > >        at
>
> > > com.google.wave.api.AbstractRobot.fetchWavelet(AbstractRobot.java:
> > > > > > > > 531)
> > > > > > > >        at
>
> > > wrikerobot.WrikeRobotServlet.updateRootBlip(WrikeRobotServlet.java:
> > > > > > > > 178)
> > > > > > > >        at
>
> > > wrikerobot.GetUpdatesFromWrikeServlet.updateTask(GetUpdatesFromWrikeServlet
> > > .java:
> > > > > > > > 49)
> > > > > > > >        at
>
> > > wrikerobot.GetUpdatesFromWrikeServlet.doPost(GetUpdatesFromWrikeServlet.jav
> > > a:
> > > > > > > > 143)
> > > > > > > >        at
>
> > > wrikerobot.GetUpdatesFromWrikeServlet.doGet(GetUpdatesFromWrikeServlet.java
> > > :
> > > > > > > > 37)
> > > > > > > >        at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> > > > > > > >        at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> > > > > > > >        at
>
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > > > > > > 487)
> > > > > > > >        at org.mortbay.jetty.servlet.ServletHandler
> > > > > > > > $CachedChain.doFilter(ServletHandler.java:1093)
> > > > > > > >        at
>
> > > com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo
> > > bUploadFilter.java:
> > > > > > > > 97)
> > > > > > > >        at org.mortbay.jetty.servlet.ServletHandler
> > > > > > > > $CachedChain.doFilter(ServletHandler.java:1084)
> > > > > > > >        at
>
> > > com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF
> > > ilter.java:
> > > > > > > > 35)
> > > > > > > >        at org.mortbay.jetty.servlet.ServletHandler
> > > > > > > > $CachedChain.doFilter(ServletHandler.java:1084)
> > > > > > > >        at
>
> > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans
> > > actionCleanupFilter.java:
> > > > > > > > 43)
> > > > > > > >        at org.mortbay.jetty.servlet.ServletHandler
> > > > > > > > $CachedChain.doFilter(ServletHandler.java:1084)
> > > > > > > >        at
>
> > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> > > > > > > > 360)
> > > > > > > >        at
>
> > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> > > > > > > > 216)
> > > > > > > >        at
>
> > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> > > > > > > > 181)
> > > > > > > >        at
>
> > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> > > > > > > > 712)
> > > > > > > >        at
> > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > > > > > > > 405)
> > > > > > > >        at
>
> > > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH
> > > andlerMap.java:
> > > > > > > > 238)
> > > > > > > >        at
>
> > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> > > > > > > > 139)
> > > > > > > >        at org.mortbay.jetty.Server.handle(Server.java:313)
> > > > > > > >        at
>
> > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > > > > > > > 506)
> > > > > > > >        at org.mortbay.jetty.HttpConnection
> > > > > > > > $RequestHandler.headerComplete(HttpConnection.java:830)
> > > > > > > >        at
>
> > > com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ
> > > estParser.java:
> > > > > > > > 76)
> > > > > > > >        at
> > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > > > > > > >        at
>
> > > com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques
> > > t(JettyServletEngineAdapter.java:
> > > > > > > > 135)
> > > > > > > >        at
>
> > > com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
> > > > > > > > 235)
> > > > > > > >        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> > > > > > > > $6.handleBlockingRequest(RuntimePb.java:5485)
> > > > > > > >        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> > > > > > > > $6.handleBlockingRequest(RuntimePb.java:5483)
> > > > > > > >        at
>
> > > com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingAp
> > > plicationHandler.java:
> > > > > > > > 24)
> > > > > > > >        at
> > > com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
> > > > > > > > 363)
> > > > > > > >        at com.google.net.rpc.impl.Server$2.run(Server.java:837)
> > > > > > > >        at
>
> > > com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
> > > > > > > > 56)
> > > > > > > >        at
>
> > > com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpa
> > > nBuilder.java:
> > > > > > > > 536)
> > > > > > > >        at
> > > com.google.net.rpc.impl.Server.startRpc(Server.java:792)
> > > > > > > >        at
> > > com.google.net.rpc.impl.Server.processRequest(Server.java:367)
> > > > > > > >        at
>
> > > com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.j
> > > ava:
> > > > > > > > 448)
> > > > > > > >        at
>
> > > com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
> > > > > > > > 319)
> > > > > > > >        at
>
> > > com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
> > > > > > > > 290)
> > > > > > > >        at
> > > com.google.net.async.Connection.handleReadEvent(Connection.java:
> > > > > > > > 474)
> > > > > > > >        at
>
> > > com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.j
> > > ava:
> > > > > > > > 774)
> > > > > > > >        at...
>
> leer más »

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to