My first guess would be *ns* is different when you try it at the repl.

To verify, try (ns-resolve 'PAnnotator.core (symbol ...



On Wed, Jan 16, 2013 at 1:31 PM, Jim - FooBar(); <jimpil1...@gmail.com>wrote:

> Hi everyone,
>
> Does anyone have a clue why this would perfectly run on the repl but  will
> throw NPE when run from the jar or via lein2 run (aot-ed)?
>
> ;;there exist global vars of the form  'xxx-NER-tags'
> ;;first the repl everything works as expected...I get the map back
>
> PAnnotator.core=> (var-get (resolve (symbol (str (:for-lib opts)
> "-tags"))))
> {:middle "> ", :closing " <END>", :opening "<START:", :order [:entity
> :token]}
>
> Where (:for-lib opts) returns "custom-NER" ...
>
> Now when this is aot-ed and run either via the cmd or the jar it fails
> with NPE at var-get which is called with nil! For some reason resolving a
> symbol brings back nil and then of course (var-get nil) will throw...
>
> any ideas...It's been 2 hours since I did anything useful due to this...
> btw I am on Clojure 1.5-RC1...
>
> as always, thanks a lot...
>
> Jim
>
>
>
>
>
> --
> 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+unsubscribe@**googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en>
>

-- 
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