taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

exception using 2.0.0-RC1 #16

Closed weejulius closed 11 years ago

weejulius commented 11 years ago

Hi,

I migrate the nippy from 1.2.1 to 2.0.0-RC1, and unfortunately I got an error when starting the app.

java.lang.IllegalArgumentException: No single method: freeze_to_streamSTAR of interface: taoensso.nippy.Freezable found for function: freeze-to-stream* of protocol: Freezable.

Is it caused by the broken jar in the clojars?

Thanks

Julius

ptaoussanis commented 11 years ago

Hi Julius,

That doesn't sound like a broken jar. It'd help me diagnose the problem if you could give me some more info. Is there a particular line/call that is throwing this error? Could you get me a snippet? Is it happening with any input, or only certain input?

What happens if you run the following?:

(nippy/thaw (nippy/freeze nippy/stress-data))

Cheers :-)

weejulius commented 11 years ago

The exception should be thrown when compiling, as I just press lein repl.

CompilerException java.lang.IllegalArgumentException: No single method: freeze_to_streamSTAR of interface: taoensso.nippy.Freezable found for function: freeze-to-stream* of protocol: Freezable, compiling:(taoensso/nippy.clj:126:1)

I will checkout out master and install it to have a try.

If you need more information, please refer to https://github.com/weejulius/raiseup/tree/master/diy/raiseup/project.clj

weejulius commented 11 years ago

The issue is gone after doing lein clean.

ptaoussanis commented 11 years ago

The issue is gone after doing lein clean.

Okay, great! Thanks for updating me :-)