Opened 14 years ago

Closed 3 years ago

#27599 closed defect (fixed)

Leiningen installs but errors on any use

Reported by: PhilHudson (Phil Hudson) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: clojure Cc: paul.richards@…, chrstphrchvz (Christopher Chavez)
Port: leiningen

Description (last modified by ryandesign (Ryan Carsten Schmidt))

With MacPorts clojure and clojure-contrib installed, here's my abortive install-and-use-leiningen session:

% sudo port -R -u -c install clojure clojure-contrib leiningen

<no errors>

% lein self-install

That's not a task. Use "lein help" to list all tasks.

% lein help install

That's not a task. Use "lein help" to list all tasks.

Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :make-reader of protocol:
#'clojure.java.io/IOFactory found for class: nil (jar.clj:17)

at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2911)

Following the install instructions on the leiningen site works.

Mac OS X 10.5.8 on 2006 MacBook Pro (dual Intel)
Java 1.6.0_22
MacPorts 1.9.2
Clojure 1.2.0 (MacPorts)

Change History (15)

comment:1 Changed 14 years ago by PhilHudson (Phil Hudson)

Cc: phil.hudson@… added

Cc Me!

comment:2 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: phil.hudson@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to ian.eure@…

comment:3 Changed 14 years ago by paul.richards@…

Cc: paul.richards@… added

Cc Me!

comment:4 Changed 14 years ago by paul.richards@…

There are some known issues with Leiningen and the MacPorts version of Curl: http://osdir.com/ml/clojure/2011-01/msg01054.html

I don't know if this is a fault with Leiningen, Curl, or something else more subtle.

comment:5 in reply to:  4 Changed 14 years ago by paul.richards@…

Replying to paul.richards@…:

There are some known issues with Leiningen and the MacPorts version of Curl: http://osdir.com/ml/clojure/2011-01/msg01054.html

I don't know if this is a fault with Leiningen, Curl, or something else more subtle.

I think the issue reported by the original poster is different from what I suggest in this comment. Apologies..

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Keywords: leiningen removed
Owner: changed from ian.eure@… to ieure@…

comment:7 Changed 13 years ago by jmroot (Joshua Root)

Does this still happen with 1.6.1.1?

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from ieure@… to macports-tickets@…

comment:9 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Is this still a problem with leiningen 2.5.0?

comment:10 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

This port has since been updated to 2.6.1 (released 2016). Almost 9 years have passed with no update from the reporter; can this be closed?

comment:11 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:12 Changed 5 years ago by mf2k (Frank Schima)

I see this:

$ lein help
Downloading Leiningen to /Users/schimaf/.lein/self-installs/leiningen-2.6.1-standalone.jar now...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   618    0   618    0     0     81      0 --:--:--  0:00:07 --:--:--    81
100 14.6M  100 14.6M    0     0   767k      0  0:00:19  0:00:19 --:--:-- 2333k
Exception in thread "main" java.lang.ExceptionInInitializerError
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:415)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForName(RT.java:2177)
	at clojure.lang.RT.loadClassForName(RT.java:2196)
	at clojure.lang.RT.load(RT.java:443)
	at clojure.lang.RT.load(RT.java:419)
	at clojure.core$load$fn__5677.invoke(core.clj:5893)
	at clojure.core$load.invokeStatic(core.clj:5892)
	at clojure.core$load.doInvoke(core.clj:5876)
	at clojure.lang.RestFn.invoke(RestFn.java:408)
	at clojure.core__init.load(Unknown Source)
	at clojure.core__init.<clinit>(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:415)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForName(RT.java:2177)
	at clojure.lang.RT.loadClassForName(RT.java:2196)
	at clojure.lang.RT.load(RT.java:443)
	at clojure.lang.RT.load(RT.java:419)
	at clojure.lang.RT.doInit(RT.java:461)
	at clojure.lang.RT.<clinit>(RT.java:331)
	at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.ClassNotFoundException: java/sql/Timestamp
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:415)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForNameNonLoading(RT.java:2181)
	at clojure.instant$loading__5569__auto____6869.invoke(instant.clj:9)
	at clojure.instant__init.load(Unknown Source)
	at clojure.instant__init.<clinit>(Unknown Source)
	... 23 more

Also:

$ java --version
openjdk 12.0.2 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.2+10, mixed mode, sharing)
Last edited 5 years ago by mf2k (Frank Schima) (previous) (diff)

comment:13 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

@mf2k, that appears to be a known incompatibility with Java 9 and later: https://github.com/technomancy/leiningen/issues/2149. I don’t know if it’s been resolved; leiningen still recommends Java 8.

I think this ticket can be closed, as there’s likely nothing left to do regarding the original issue.

comment:14 Changed 3 years ago by PhilHudson (Phil Hudson)

That's fine with me.

comment:15 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.