Cannot start the server #4

Closed
kulesa opened this Issue Jul 3, 2012 · 4 comments

Projects

None yet

3 participants

@kulesa
kulesa commented Jul 3, 2012

Exception in thread "main" java.lang.IllegalStateException: Can't change/establish root binding of: warn-on-reflection with set (compiler.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5435)
at clojure.lang.Compiler.load(Compiler.java:5852)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4504.invoke(core.clj:4893)
at clojure.core$load.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:4717)
at clojure.core$load_lib.doInvoke(core.clj:4754)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4788)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4857)
at clojure.lang.RestFn.invoke(RestFn.java:422)
at noir.cljs.compiler$eval1959$loading__4403__auto____1960.invoke(compiler.clj:1)
at noir.cljs.compiler$eval1959.invoke(compiler.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5419)
at clojure.lang.Compiler.eval(Compiler.java:5410)
at clojure.lang.Compiler.load(Compiler.java:5852)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4504.invoke(core.clj:4893)
at clojure.core$load.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:4717)
at clojure.core$load_lib.doInvoke(core.clj:4754)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4788)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4857)
at clojure.lang.RestFn.invoke(RestFn.java:483)
at noir.cljs.core$eval1953$loading__4403__auto____1954.invoke(core.clj:1)
at noir.cljs.core$eval1953.invoke(core.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5419)
at clojure.lang.Compiler.eval(Compiler.java:5410)
at clojure.lang.Compiler.load(Compiler.java:5852)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4504.invoke(core.clj:4893)
at clojure.core$load.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:4717)
at clojure.core$load_lib.doInvoke(core.clj:4754)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4788)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4857)
at clojure.lang.RestFn.invoke(RestFn.java:636)
at lighttable.server$eval3$loading__4403__auto____4.invoke(server.clj:1)
at lighttable.server$eval3.invoke(server.clj:1)
at clojure.lang.Compiler.eval(Compiler.java:5419)
at clojure.lang.Compiler.eval(Compiler.java:5410)
at clojure.lang.Compiler.load(Compiler.java:5852)
at clojure.lang.RT.loadResourceScript(RT.java:340)
at clojure.lang.RT.loadResourceScript(RT.java:331)
at clojure.lang.RT.load(RT.java:409)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4504.invoke(core.clj:4893)
at clojure.core$load.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one.invoke(core.clj:4717)
at clojure.core$load_lib.doInvoke(core.clj:4754)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$load_libs.doInvoke(core.clj:4788)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply.invoke(core.clj:542)
at clojure.core$require.doInvoke(core.clj:4857)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.lang.Var.invoke(Var.java:365)
at lein_otf.loader.Stub.main(Stub.java:31)
Caused by: java.lang.IllegalStateException: Can't change/establish root binding of: warn-on-reflection with set
at clojure.lang.Var.set(Var.java:167)
at noir.cljs.compiler$eval1963.invoke(compiler.clj:9)
at clojure.lang.Compiler.eval(Compiler.java:5419)
... 82 more

Owner
ibdknox commented Jul 16, 2012

Can you try with the new jar-launcher? Also what version of Java?

http://app.kodowa.com/playground

kulesa commented Jul 16, 2012

Launcher doesn't work as well. Here is what I get from java -jar launcher.jar:

Exception in thread "main" java.lang.NoSuchMethodError:
clojure.lang.RT.keyword(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;
at launcher.core__init.__init0(Unknown Source)
at launcher.core__init.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at clojure.lang.RT.loadClassForName(RT.java:1578)
at clojure.lang.RT.load(RT.java:399)
at clojure.lang.RT.load(RT.java:381)
at clojure.core$load$fn__4504.invoke(core.clj:4893)
at clojure.core$load.doInvoke(core.clj:4892)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.lang.Var.invoke(Var.java:365)
at launcher.core.(Unknown Source)

java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

On Mon, Jul 16, 2012 at 8:50 PM, Chris Granger <
reply@reply.github.com

wrote:

Can you try with the new jar-launcher? Also what version of Java?

http://app.kodowa.com/playground


Reply to this email directly or view it on GitHub:

#4 (comment)

Owner
ibdknox commented Jul 16, 2012

hm that doesn't make much sense :( These errors are the result of clojure version mismatches, but I don't really know how it's possible that the uberjar would work on other machines but not yours. All you're doing is running java -jar launcher.jar ? are you running it within a lein project? Did you by chance set a global classpath in Java that includes clojure?

I have hade this problem with other javaprograms, just add current directory to java-classpath
like
classpath="current classpath";. (Windows syntax but basicly you add . as path)
/A

@ibdknox ibdknox closed this Dec 9, 2012
This was referenced Aug 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment