Error can't define method not in interfaces: meta_info

14 views
Skip to first unread message

Harshad Saykhedkar

unread,
Jun 27, 2014, 12:15:41 AM6/27/14
to numerica...@googlegroups.com
Hi,

I'm trying to use core.matrix 0.25 version inside Cascalog. It is a simple dot product of two vectors (passed as Clojure vectors). However, the code fails on the Hadoop cluster with following error,

Exception in thread "main" java.lang.
ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:201)
Caused by: java.lang.IllegalArgumentException: Can't define method not in interfaces: meta_info, compiling:(clojure/core/matrix/impl/wrappers.clj:23:1
)

What could be the reason ? Something to do with native dependencies ?

Mike Anderson

unread,
Jun 27, 2014, 3:04:20 AM6/27/14
to numerica...@googlegroups.com
It sounds like it may be some sort of version conflict: meta-info is a method in the protocol clojure.core.matrix.protocols.PImplementation, but if somehow and old/incompatible version of PImplementation was being used, you might get this error?

Is there any chance you have a really old dependency somewhere?

It isn't likely to be due to native dependencies for two reasons:
a) core.matrix has zero native dependencies
b) The specific error is referring to a core Java method Class.forName, which is implemented in native code
Reply all
Reply to author
Forward
0 new messages