When I try to run this simple servlet:<br><br>#lang web-server<br><br>(require web-server/servlet)<br>(provide interface-version start)<br>(define interface-version 'stateless)<br><br>(define (start request)<br> (send/suspend/dispatch<br>
(lambda (k-url)<br> (response/xexpr<br> `(html (body (a ((href ,(k-url start))) "Hello!")))))))<br><br>I get this (very unhelpful) error in the browser:<br><br><div class="title">Exception</div><p>The application raised an exception with the message:</p>
<pre>No instance for id: 0</pre><p>Stack trace:</p><pre>continuation-store! at:<br> line 31, column 2, in file /usr/racket/collects/web-server/managers/none.rkt<br><unknown procedure> at:<br> line 88, column 5, in file /usr/racket/collects/web-server/servlet/web.rkt<br>
<unknown procedure> at:<br> line 129, column 19, in file /usr/racket/collects/web-server/servlet/web.rkt<br><unknown procedure> at:<br> line 122, column 10, in file /usr/racket/collects/web-server/servlet/web.rkt<br>
send/suspend/dispatch at:<br> line 116, column 0, in file /usr/racket/collects/web-server/servlet/web.rkt<br><unknown procedure> at:<br> line 58, column 2, in file /usr/racket/collects/web-server/dispatchers/dispatch-servlets.rkt<br>
select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>
select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>
select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>select-handler/no-breaks at:<br> line 164, column 2, in file /usr/racket/collects/racket/private/more-scheme.rkt<br>
connection-loop at:<br> line 74, column 2, in file /usr/racket/collects/web-server/private/dispatch-server-unit.rkt<br></pre>Do I need to define a continuation manager? I thought that stateless servlets didn't need them, since continuations were "managed" by the client. Or maybe I don't understand what "stateless" means here?<br>
<br>--<a href="mailto:dougorleans@gmail.com">dougorleans@gmail.com</a><br><br>