[appengine-java] Re: Channel api / Dance dance robot: what is ApplicationError: 2:

2010-07-28 Thread Daniel Guermeur
Thanks Don. Works perfectly.

Here is a recap to summarize all the steps so others can do it too:

1. Extract the "apphosting/tools/dev-channel-js.js" file from
appengine-api-1.0-sdk-1.3.5.jar
2. Create a directory _ah/channel in your war directory
3. Rename dev-channel-js.js to jsapi and place it in _ah/channel dir.
4. In your main html file include this jsapi file with 

[appengine-java] Re: Channel api / Dance dance robot: what is ApplicationError: 2:

2010-09-24 Thread Shlomi
Hello,
I tried following your technique (on AppEngine 1.3.7), but it does not
seem to help...
if i view the source of the page, i do see that it attempts to load
the jsapi file, but i still get

 SEVERE: Failed to push the message
com.google.appengine.demos.dda.shared.dancebeginmess...@145d7f2 to
client dance-dance-android-
ahFkYW5jZS1kYW5jZS1yb2JvdHIWCxIER2FtZRgHDAsSBlBsYXllchgRDA
 [java] com.google.appengine.api.channel.ChannelFailureException:
An unexpected error occurred.
 [java] at
com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServiceImpl.java:
59)
 [java] at
com.google.appengine.demos.dda.server.PushServer.sendMessageByKey(Unknown
Source)
 
 [java] Caused by: com.google.apphosting.api.ApiProxy
$ApplicationException: ApplicationError: 2:
 [java] at
com.google.appengine.api.channel.dev.LocalChannelService.sendChannelMessage(LocalChannelService.java:
91)
 

I would really like to get this to work, so i can mess around more
with channels from java/gwt.

thanks,
shlomi


On Jul 28, 11:31 am, Daniel Guermeur  wrote:
> Thanks Don. Works perfectly.
>
> Here is a recap to summarize all the steps so others can do it too:
>
> 1. Extract the "apphosting/tools/dev-channel-js.js" file from
> appengine-api-1.0-sdk-1.3.5.jar
> 2. Create a directory _ah/channel in your war directory
> 3. Rename dev-channel-js.js to jsapi and place it in _ah/channel dir.
> 4. In your main html file include this jsapi file with