This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-24
Channels
- # architecture (4)
- # aws (1)
- # beginners (76)
- # boot (172)
- # cider (17)
- # cljs-dev (10)
- # cljs-experience (24)
- # cljsrn (45)
- # clojure (129)
- # clojure-berlin (1)
- # clojure-finland (1)
- # clojure-italy (8)
- # clojure-seattle-old (1)
- # clojure-sg (1)
- # clojure-spec (31)
- # clojure-uk (28)
- # clojurescript (88)
- # cursive (11)
- # data-science (1)
- # datomic (44)
- # fulcro (48)
- # hoplon (5)
- # jobs (3)
- # jobs-discuss (1)
- # leiningen (6)
- # luminus (42)
- # lumo (17)
- # off-topic (9)
- # om (29)
- # onyx (15)
- # pedestal (7)
- # protorepl (20)
- # re-frame (24)
- # reagent (46)
- # ring-swagger (2)
- # specter (2)
- # sql (3)
- # uncomplicate (58)
- # unrepl (29)
- # yada (5)
Hi, I used Luminus for a project about 7months ago and now when I started a new project now, I am getting this error when I run (-main)
in REPL with Cursive InvalidConnectionAttributeException The server time zone value 'Central Europe Summer Time' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support. sun.reflect.NativeConstructorAccessorImpl.newInstance0 (NativeConstructorAccessorImpl.java:-2)
BTW, earlier I didn't get the same error, could this be because the earlier project was using mysql-connector-java 5.1.6
instead of the new 6.0.5
? ALSO The earlier project runs clojurescript showing the content in \resources\docs\docs.md
(Or atleast it redirects to after about a sec) But this one is showing the content in \resources\templates\home.html
. I thought this was because I didn't load the db.core
file in repl, when I did, I got the earlier mysql related error earlier
BTW, I started the project with lein new luminus <App Name> +auth-jwe +re-frame +swagger +mysql +datomic
on windows env using cursive on Intellij Idea
I did but I got this: t clojure.main.<clinit>(main.java:20) Caused by: java.lang.UnsupportedClassVersionError: from/riddley/Util : Unsupported major.minor version 52.0, compiling:(from/riddley/compiler.clj:1:1)
@simon that error means that there is a mismatch between the java version used to compile the jar and the java version used to run the jar
usually it's a matter of compiling with java 8 and trying to run it with java 7 but riddley's project.clj file indicates that it is compiled with java 1.6
What could be the possible solution? Do I downgrade the project JDK from 1.8 to 1.6 maybe then?
java is backwards compatible so running code compiled with java 6 should still run with a java 8 jre
So the project JDK should be 1.6 then? I even think my riddlley
might be targeting 1.5 😕
let me try to spin up a repl using lein try with riddley and see if it gives me any errors
yeah, that version was built with 1.5; try bumping riddley to the latest version and then running
@simon run lein deps :tree
that should help you find which one of your deps is depping on riddley
So apparently the nesting looks like this compojure-api=>ring-swagger=>potemkin 0.4.3=>riddley 0.1.12
. The latest version of potemkin: 0.4.4
still uses riddley 0.1.12
hmm, I created a new project with the luminus template you mentioned and lein run
works for me. can you try lein clean
and then lein run
maybe you have some cobwebs in your project folder
Currently I am running a new project and just trying to be sure I got the foundation and everything right as my capacity is a bit more improved comparatively
so you spun up a new project and you're still getting the error? when you do java -version
what does it say?
Well, within the project I get the UnsupportedClassVersionError
with hikari
But globally it runs:
so your LEIN_JAVA_CMD
environment variable might need to be updated to point to your java 8 jdk
there are a few other places to check if that's not it; ~/.lein/profiles.clj :java-cmd setting, IDE built in JDK, :java-cmd setting in your lein project.clj file