Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clojure 1.5.1 Compatible #9

Closed
kul opened this issue Sep 4, 2014 · 3 comments
Closed

Clojure 1.5.1 Compatible #9

kul opened this issue Sep 4, 2014 · 3 comments

Comments

@kul
Copy link
Contributor

kul commented Sep 4, 2014

I am not sure if this is due to my config, but I get following error when forms containing flambo api (mainly f/fn) are aot compiled with clojure 1.5.1. Doing lein check is enough to reproduce this in my case.

Caused by: java.lang.NoSuchMethodError: clojure.lang.Reflector.invokeNoArgInstanceMember(Ljava/lang/Object;Ljava/lang/String;Z)Ljava/lang/Object;
        at serializable.fn$save_env$iter__205__209$fn__210.invoke(fn.clj:14)
        at clojure.lang.LazySeq.sval(LazySeq.java:42)
        at clojure.lang.LazySeq.seq(LazySeq.java:60)
        at clojure.lang.RT.seq(RT.java:484)
        at clojure.lang.LazilyPersistentVector.create(LazilyPersistentVector.java:31)
        at clojure.core$vec.invoke(core.clj:354)
        at serializable.fn$save_env.invoke(fn.clj:15)
        at serializable.fn$fn.doInvoke(fn.clj:22)

I think it has something to do with http://dev.clojure.org/jira/browse/CLJ-1363. Could you please check this?

@sorenmacbeth
Copy link
Owner

Can you share your project.clj or an example project.clj that I can run?

@kul
Copy link
Contributor Author

kul commented Sep 9, 2014

A sample project.clj and core.clj to reproduce this

(defproject bug "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [yieldbot/flambo "0.3.2"]
                 [org.apache.spark/spark-core_2.10 "1.0.2" :scope "provided"
                  :exclusions [org.eclipse.jetty.orbit/javax.servlet]]
                 [org.apache.spark/spark-sql_2.10 "1.0.2"  :scope "provided"]])
(ns bug.core
  (:require [flambo.api :as f]))

(defn foo
  [rdd]
  (f/map (f/fn [x] (str x)) rdd))

Running lein check is enough to reproduce this.

@kul
Copy link
Contributor Author

kul commented Sep 10, 2014

Thanks @sorenmacbeth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants