Hi,
I've been messing around with the component library too recently, It's 
probably worth printing out the defrecord (the Ring one) to see if the 
values are being populated by the start function. 
You could just do this in the repl using clojure/pprint.pprint. 

I also do  (assoc this :jetty nil) instead of (dissoc this :jetty-server) 
as the dissoc will stop it being a defrecord. 

I hope that helps, 
Guy

On Tuesday, February 10, 2015 at 9:30:06 AM UTC, Gilberto Garcia wrote:
>
> Hi All,
>
> I'm new to clojure and I'm trying to create a simple rest api to create 
> and manages to token.
> I'm trying to use Stuart's component library but I'm having problems when 
> trying to stop a component because one of the component's map attribute is 
> nil, so, when I try to stop the jetty server I get a NPE.
>
> I bet that I'm doing something wrong and I'm failing to find what is wrong 
> due to my lack of clojure knowledge/experience.
>
> Any help is appreciated.
>
> Repo: 
> https://github.com/ggarciajr/toro-tokens-rest/tree/adding-functionality
> Branch: adding-functionality
>
> Thanks in advance
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to