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 a

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 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 continuous data into

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

2010-07-20 Thread Chas Emerick
More specifically, the Sun JVM has an implementation limit of 64k per classfile. This is almost never exceeded in "normal" functions, but can easily be exceeded by generated code, or by very, very large literals. Either break generated chunks of code into smaller bits or separate data fro

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

2010-07-20 Thread Kevin Downey
your functions are way too big, write more smaller functions On Tue, Jul 20, 2010 at 6:35 PM, Praki wrote: > Hi, > > I am getting this error when trying to load one of my modules. Does > anybody know if the compiler checks for method lengths? Has anyone run > into this issue and have suggestions