Here it goes https://gist.github.com/ggarciajr/e5f1c0f1072c63705ac4

Note that the :jetty-server is nil and it should hold the jetty server so
it can be stopped in the stop phase.

#toro_tokens_rest.components.ring.Ring{:port 3000, :database
#toro_tokens_rest.components.database.Database{:path
/tmp/dev-leveldb}, :jetty-server nil}

So, I bet I'm doing something wrong.


On Tue, Feb 10, 2015 at 9:45 AM, Chris Ford <christophertf...@gmail.com>
wrote:

> Perhaps it would help if you posted a gist of the stacktrace you encounter?
>
> On 10 February 2015 at 20:29, Gilberto Garcia <giba....@gmail.com> 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.
>>
>
>  --
> 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.
>

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