[Seaside-dev] GRPharoUtf8CodecStream does not understand object:

Philippe Marschall philippe.marschall at gmail.com
Sat Jan 25 15:33:37 UTC 2014


On Fri, Jan 24, 2014 at 12:02 PM, Sabine Knöfel
<sabine.knoefel at gmail.com> wrote:
> Hi,
>
> I think there is a bug in Seaside.
> I run into this when using JQGrid.
>
> Code in Pharo3:
>
> Dictionary>>jsonOn: aRenderer
>         aRenderer object: [
>                 self keysAndValuesDo: [ :key :value |
>                         aRenderer key: key value: value ] ]
>
> aRenderer is iOf GRPharoUtf8CodecStream
> GRPharoUtf8CodecStream does not understand object:

The argument to #jsonOn: should be a WAJsonCanvas and not a
GRPharoUtf8CodecStream in Seaside 3.1. Do you have a stack trace?

> You can reproduce it also when running JQGrid example.
> Have a look in the Network response in the internet browser where you will
> see a 500 internal server error with "MessageNotUnderstood:
> GRPharoUtf8CodecStream>>object:
> Your request could not be completed. An exception occurred."
>
> or implement
>
> GRPharoUtf8CodecStream>>object: anObject
> self halt.
>
> In Pharo2, it was implemented like this:
> Dictionary>>jsonOn: aStream
>         JSJsonStream encodeDictionary: self on: aStream

That was Seaside 3.0. JSON support in Seaside 3.1 is "new". It's no
longer based on JavaScript (JSON isn't actually a JavaScript subset).
It now has a canvas much like the HTML and XML support. This allowed
us to fix many corner case bugs.

Cheers
Philippe


More information about the seaside-dev mailing list