I'm building a single-page app ( started before Pedestal was announced sadly ) and I'm using the fetch library to support RPC from client -> JVM server.
I'm seeing a very strange behaviour. I've defined a view-model ns (full of defrecords) for the client data. This has worked well - the client can read and write records over the wire. Except there's one situation where it does not work. If the client sends a record to the server and the server has not previously sent at least one instance of that defrecord type to the client then I see a ClassNotFoundException. As soon as I read one instance from the server (using fetch) then the problem goes away. This means that the first users of new JVMs will experience this error - not great for elastic computing. I've tried: 1/ aot compiling the namespace 2/ reading and writing dummy view-model instances in the namespace on load 3/ importing and requiring all classes in the ns where I to the read-string None of these seem to work. Does anybody have an understanding of the read-string class-loading behaviour that would explain this? Any suggestion would be much appreciated. Steve -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.