[google-appengine] Re: Prospective search exception (java)

2011-09-26 Thread bwydrowski
Thanks for reporting this. We think this is a bug in the API and we'll
let you know as soon as we have it fixed.

Regards,
Bartek

On Sep 21, 12:03 pm, Eric  wrote:
> Hi all,
>
> I've tried the new prospective search api today. It was alright to
> subscribe, unsubscribe, listSubscriptions, getSubscription. But when
> trying to list topics, below error message came out. I'm not sure
> whether it is a bug of the API or my problem. Is there anyone who
> knows something about this issue? Thanks.
>
> Uncaught exception from servlet
> com.google.apphosting.api.ApiProxy$ApplicationException:
> ApplicationError: 1: app s~appid does not have permission to list
> topics for app appid
>         at com.google.apphosting.runtime.ApiProxyImpl
> $AsyncApiFuture.rpcFinished(ApiProxyImpl.java:503)
>         at com.google.net.rpc.RpcStub$RpcCallbackDispatcher
> $1.runInContext(RpcStub.java:1050)
>         at com.google.tracing.TraceContext$TraceContextRunnable
> $1.run(TraceContext.java:455)
>         at com.google.tracing.TraceContext
> $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.jav a:
> 335)
>         at com.google.tracing.TraceContext
> $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
> 325)
>         at com.google.tracing.TraceContext
> $TraceContextRunnable.run(TraceContext.java:453)
>         at com.google.net.rpc.RpcStub
> $RpcCallbackDispatcher.rpcFinished(RpcStub.java:1071)
>         at com.google.net.rpc.RPC.internalFinish(RPC.java:2240)
>         at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:
> 2339)
>         at
> com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:
> 1269)
>         at
> com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
> 328)
>         at
> com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
> 299)
>         at com.google.net.async.Connection.handleReadEvent(Connection.java:
> 474)
>         at
> com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.j 
> ava:
> 856)
>         at
> com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
> 222)
>         at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
> 116)
>         at com.google.net.async.GlobalEventRegistry
> $2.runLoop(GlobalEventRegistry.java:95)
>         at com.google.net.async.LoopingEventDispatcher
> $EventDispatcherThread.run(LoopingEventDispatcher.java:385)
>
> Eric

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



[google-appengine] Re: Prospective search exception (java)

2011-09-30 Thread Pablo Mayrgundter
Hey Eric, sorry about that!

Here's a work-around:

String appId = SystemProperty.applicationId.get();
SystemProperty.applicationId.set("s~" + appId);
// Now do the list.
prospectiveSearchService.listTopics("", 10);
...
// Set the appId back to its orig value.
SystemProperty.applicationId.set(appId);

We should have the fix out in the next release.

Cheers,
Pablo

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



[google-appengine] Re: Prospective search exception (java)

2011-10-02 Thread Eric
Hi Pablo, thanks.

Eric

On Sep 30, 4:20 am, Pablo Mayrgundter  wrote:
> Hey Eric, sorry about that!
>
> Here's a work-around:
>
> String appId = SystemProperty.applicationId.get();
> SystemProperty.applicationId.set("s~" + appId);
> // Now do the list.
> prospectiveSearchService.listTopics("", 10);
> ...
> // Set the appId back to its orig value.
> SystemProperty.applicationId.set(appId);
>
> We should have the fix out in the next release.
>
> Cheers,
> Pablo

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