Skip to content

Instantly share code, notes, and snippets.

@gsimard gsimard/gist:2199626
Created Mar 25, 2012

Embed
What would you like to do?
Clojail invokation error
In clojail.clj:
(ns ca.gsimard.spacecraft.client.clojail
(:use [clojail core testers])
(:gen-class
:name ca.gsimard.spacecraft.client.clojail
:methods [#^{:static true} [epadEval [String] String]
#^{:static true} [getAction [] String]]))
In main.java:
println("Epad: " + clojail.epadEval("(+ 1 2 3)"))
On PC1 (Linux):
Epad: 6
On PC2 (Windows 7):
Result:
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.lang.Namespace.<init>(Namespace.java:34)
at clojure.lang.Namespace.findOrCreate(Namespace.java:176)
at clojure.lang.Var.internPrivate(Var.java:149)
at ca.gsimard.spacecraft.client.clojail.<clinit>(Unknown Source)
at ca.gsimard.spacecraft.client.Epad$.eval(EpadClient.scala:78)
at ca.gsimard.spacecraft.client.Main$.main(MainClient.scala:25)
at ca.gsimard.spacecraft.client.Main.main(MainClient.scala)
Caused by: java.lang.NullPointerException
at clojure.core$eval1697$fn__1698.invoke(core.clj:6135)
at clojure.core$eval1697.invoke(core.clj:6135)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.load(Compiler.java:6902)
at clojure.lang.RT.loadResourceScript(RT.java:357)
at clojure.lang.RT.loadResourceScript(RT.java:348)
at clojure.lang.RT.load(RT.java:427)
at clojure.lang.RT.load(RT.java:398)
at clojure.lang.RT.doInit(RT.java:434)
at clojure.lang.RT.<clinit>(RT.java:316)
... 7 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.