Skip to content

'No Json serializer' error by Scala compiler when a serialiser for 'models.Speaker' does exists #15

@neomatrix369

Description

@neomatrix369

Just raising this issue for documentation and knowledge sharing purposes.

I was changing Speaker.scala to enable some archiving features in it.

See my changes that I initially tried: https://gist.github.com/neomatrix369/5d21d89adf97b99a03d7fc2506496cd6

Running this gives me this strange compilation error:

screen-shot-scala-compiler-error

I noticed the cause of the error were the two functions: checkIfSpeakerHasBeenArchived() and checkIfSpeakerQandAHasBeenArchived() in https://gist.github.com/neomatrix369/5d21d89adf97b99a03d7fc2506496cd6.

It's what the two functions are doing, they are trying to read off Redis and compare values. When I get rid of these functions and clean compile the rest of the code works without any complains.

Would you know what I'm doing wrong? Is the above compilation error is a red-herring (the problem may be somewhere else).

Any advice will be helpful - maybe you could try out my changes and see what happens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions