Prospective search exception (java)

21 views
Skip to first unread message

Eric

unread,
Sep 21, 2011, 12:03:40 PM9/21/11
to Google App Engine
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.java:
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.java:
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

bwydrowski

unread,
Sep 22, 2011, 5:46:01 PM9/22/11
to Google App Engine
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

Pablo Mayrgundter

unread,
Sep 29, 2011, 4:20:40 PM9/29/11
to google-a...@googlegroups.com
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

Eric

unread,
Oct 1, 2011, 3:26:20 AM10/1/11
to Google App Engine
Hi Pablo, thanks.

Eric
Reply all
Reply to author
Forward
0 new messages