java.lang.ClassFormatError: Invalid method Code length

2011-10-25 Thread Sergey Didenko
I get the subject error when trying to deserialize a big map (70kb) using load-file. Is this by design? There was an advice in the old thread to use smaller methods. But while small methods are good, breaking continuous data into smaller pieces looks like a hack. Should I use some other

Re: java.lang.ClassFormatError: Invalid method Code length

2011-10-25 Thread Ben Smith-Mannschott
On Tue, Oct 25, 2011 at 22:28, Sergey Didenko sergey.dide...@gmail.com wrote: I get the subject error when trying to deserialize a big map (70kb) using load-file. Is this by design? There was an advice in the old thread to use smaller methods. But while small methods are good, breaking

Re: java.lang.ClassFormatError: Invalid method Code length

2011-10-25 Thread Sergey Didenko
Indeed. Thanks for the answer! If it's really just data (not containing function or macro calls you are expecting to be evaluated), just use (read ...). That will parse the file, returning a Clojure data structure without evaluating it. // ben -- You received this message because you are

java.lang.ClassFormatError: Invalid method Code length

2010-07-20 Thread Praki
/ target/classes Exception in thread main java.lang.ClassFormatError: Invalid method Code length 65693 in class file singularis/repo/proto__init at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632

Re: java.lang.ClassFormatError: Invalid method Code length

2010-07-20 Thread Kevin Downey
and have suggestions on how to work around this? Thanks, Praki Compiling singularis.repo.bucket to /home/pprakash/projects/gwave/repo/ target/classes Exception in thread main java.lang.ClassFormatError: Invalid method Code length 65693 in class file singularis/repo/proto__init

Re: java.lang.ClassFormatError: Invalid method Code length

2010-07-20 Thread Chas Emerick
method Code length 65693 in class file singularis/repo/proto__init at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616