dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Robot stops working after a few minutes #520

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I created a robot such that it was working perfectly. It basically responds
to specific user inputs. However, after it sits in a wave for a while, it
suddenly stops responding to commands and I could not find out why. (only
takes around 5 minutes for issue to surface).

The robot's address is dhamma-quote@appspot.com

Once you add the robot to the wave, it will tell you which commands it
listens to.

Source code also available.

Original issue reported on code.google.com by iws...@gmail.com on 28 Nov 2009 at 7:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
when problem occurs, request log shows:

#

   1.
      11-27 11:31PM 22.544 /_wave/robot/jsonrpc 200 2172ms 1925cpu_ms 0kb
WaveRobotGateway,gzip(gfe)
      See details

      10.176.130.13 - - [27/Nov/2009:23:31:24 -0800] "POST /_wave/robot/jsonrpc
HTTP/1.1" 200 186 - "WaveRobotGateway,gzip(gfe)"

Original comment by iws...@gmail.com on 28 Nov 2009 at 7:35

GoogleCodeExporter commented 9 years ago
ok, apparently the bot has amnesia problem. After a few minutes the quotes that 
were
read from text files and stored in ArrayList were all gone...

why?

Original comment by iws...@gmail.com on 28 Nov 2009 at 10:31

GoogleCodeExporter commented 9 years ago
i solved this by checking ArrayList size and if it's 0 I just re-populate... 
really
dunno why it's got amnesia.

Original comment by iws...@gmail.com on 28 Nov 2009 at 4:17

GoogleCodeExporter commented 9 years ago
This is not a Wave issue, it's part of the way App Engine works. It may serve
different instances of your robot to the same wave; you can't rely on 
population of
global variables. I'd suggest either using the datastore, memcache, or Wave
datadocuments for storage. Post in the group for more information on doing that.

Original comment by pamela.fox on 29 Nov 2009 at 3:43

GoogleCodeExporter commented 9 years ago
i see. Thank you.

Original comment by iws...@gmail.com on 30 Nov 2009 at 5:44