fzakaria / slf4j-timbre

SLF4J binding for Clojure's Timbre
Eclipse Public License 1.0
94 stars 24 forks source link

Exception with Timbre v6.3.1 #74

Open dharrigan opened 10 months ago

dharrigan commented 10 months ago

Hi,

Clojure CLI version 1.11.1.1435

openjdk 21.0.1 2023-10-17 LTS
OpenJDK Runtime Environment Temurin-21.0.1+12 (build 21.0.1+12-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.1+12 (build 21.0.1+12-LTS, mixed mode, sharing)
com.fzakaria/slf4j-timbre {:mvn/version "0.4.1"}
com.taoensso/timbre {:mvn/version "6.3.1"}

When starting an application using these dependencies, the following is thrown:

2024-01-08T13:29:01 Exception in thread "main" java.lang.NoSuchFieldError: Class taoensso.timbre__init does not have member field 'clojure.lang.ILookupThunk __thunk__0__'
2024-01-08T13:29:01     at taoensso.timbre__init.load(Unknown Source)
2024-01-08T13:29:01     at taoensso.timbre__init.<clinit>(Unknown Source)
2024-01-08T13:29:01     at java.base/java.lang.Class.forName0(Native Method)
2024-01-08T13:29:01     at java.base/java.lang.Class.forName(Unknown Source)
2024-01-08T13:29:01     at java.base/java.lang.Class.forName(Unknown Source)
2024-01-08T13:29:01     at clojure.lang.RT.classForName(RT.java:2209)
2024-01-08T13:29:01     at clojure.lang.RT.classForName(RT.java:2218)
2024-01-08T13:29:01     at clojure.lang.RT.loadClassForName(RT.java:2237)
2024-01-08T13:29:01     at clojure.lang.RT.load(RT.java:449)
2024-01-08T13:29:01     at clojure.lang.RT.load(RT.java:424)
2024-01-08T13:29:01     at clojure.core$load$fn__6908.invoke(core.clj:6161)
2024-01-08T13:29:01     at clojure.core$load.invokeStatic(core.clj:6160)
2024-01-08T13:29:01     at clojure.core$load.doInvoke(core.clj:6144)
2024-01-08T13:29:01     at clojure.lang.RestFn.invoke(RestFn.java:408)
2024-01-08T13:29:01     at clojure.core$load_one.invokeStatic(core.clj:5933)
2024-01-08T13:29:01     at clojure.core$load_one.invoke(core.clj:5928)
2024-01-08T13:29:01     at clojure.core$load_lib$fn__6850.invoke(core.clj:5975)
2024-01-08T13:29:01     at clojure.core$load_lib.invokeStatic(core.clj:5974)
2024-01-08T13:29:01     at clojure.core$load_lib.doInvoke(core.clj:5953)
2024-01-08T13:29:01     at clojure.lang.RestFn.applyTo(RestFn.java:142)
2024-01-08T13:29:01     at clojure.core$apply.invokeStatic(core.clj:669)
2024-01-08T13:29:01     at clojure.core$load_libs.invokeStatic(core.clj:6016)
2024-01-08T13:29:01     at clojure.core$load_libs.doInvoke(core.clj:6000)
2024-01-08T13:29:01     at clojure.lang.RestFn.applyTo(RestFn.java:137)
2024-01-08T13:29:01     at clojure.core$apply.invokeStatic(core.clj:669)
2024-01-08T13:29:01     at clojure.core$require.invokeStatic(core.clj:6038)
2024-01-08T13:29:01     at clojure.core$require.doInvoke(core.clj:6038)
2024-01-08T13:29:01     at clojure.lang.RestFn.invoke(RestFn.java:421)
2024-01-08T13:29:01     at slf4j_timbre.adapter$loading__6789__auto____171.invoke(adapter.clj:1)
2024-01-08T13:29:01     at slf4j_timbre.adapter__init.load(Unknown Source)
2024-01-08T13:29:01     at slf4j_timbre.adapter__init.<clinit>(Unknown Source)
2024-01-08T13:29:01     at java.base/java.lang.Class.forName0(Native Method)
...
...
...

Reverting to com.taoensso/timbre {:mvn/version "6.2.2"} does not produce an error.

Do let me know if you require any further information.

Thank you.

-=david=-

mike706574 commented 8 months ago

We're running into this as well when we try to upgrade Timbre.

ptaoussanis commented 2 months ago

@dharrigan @mike706574 Hi David, Mike - in case this is still relevant for you, you might want to try Timbre v6.6.0-RC1 which now includes built-in SLF4J(v2) support that'll always be automatically kept in-sync with the latest Timbre release.

dharrigan commented 2 months ago

Thank you, will do!