On Fri, Aug 14, 2009 at 1:04 AM, Krukow <karl.kru...@gmail.com> wrote:

>
> When running the AOT compiled Clojure (clojure.jar) on an Azul box I
> get an error during startup (in particular in the class-initializer
> for clojure.main). This error does not occur in the clojure-slim.jar.
> The stacktrace is this:
>
> k...@azulpod1:~/download$ java $JVM_PARAMS -cp clojure.jar clojure.main
> RTPM: Listening for HTTP connections on 0.0.0.0:52798.
> Exception in thread "main" java.lang.ExceptionInInitializerError
>       at clojure.lang.Namespace.<init>(Namespace.java:32)
>       at clojure.lang.Namespace.findOrCreate(Namespace.java:117)
>       at clojure.main.<clinit>(main.java:21)
> Caused by: java.lang.RuntimeException:
> java.lang.IllegalStateException: Var clojure.core/refer is unbound.


I ran into this exception recently. In my case the problem was that the
classloader returned by (.getContextClassLoader (Thread/currentThread))
while a gen-classed object was being instantiated was different than the one
returned when a method on the object was executed. Is there something about
the Azul environment that could cause the classloader to be changed after
Clojure has gone through its static initialization but before executing
clojure.main?

- J.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to