2017-08-20 1:54 GMT+02:00 Sean Corfield <s...@corfield.org>:

> I’d hazard a guess that something inside the future --- perhaps the
> search-quotes function call? – is throwing an exception and that’s just
> being “swallowed” because it’s in another thread.
>
>
>
> As a general rule of thumb to debug any issues with futures, replace
> future with identity and see what the code does. My guess is you’ll see an
> exception.
>

​That was the problem. A new H2 server was installed (that was what made
the edit necessary), but the old client was still used. I changed my
project.clj and it works again.

I do get:
    Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException

But I think I always got that, but never saw. Something to look after.
​


> *From: *Cecil Westerhof <cldwester...@gmail.com>
> *Sent: *Saturday, August 19, 2017 2:38 PM
> *To: *clojure@googlegroups.com
> *Subject: *Did something change in future
>
>
>
> Quit some time ago I wrote a Clojure program. In it I used future to
> display a swing window like:
>     (defn show-search-quotes
>       [search-str]
>       (debug-info "show-search-quotes enter")
>       (future
>        (info-table (format "Search Quotes (Case Independent): %s"
> search-str)
>                    '(:quote "Quote" :author "Author")
>                    (search-quotes {:search_string search-str}))))
>
> I added the debug-info to be sure that this function is executed. I see
> that, so this function is called.
>
> The function info-table begins with:
>     (defn info-table
>       [title headers records]
>       {:pre [(even? (count headers))]}
>       (debug-info "info-table enter")(
>
> But this debug info is not shown. So info-table is never called, while in
> the past it was. What do I need to change to let the application work again?
>
> My current version is 1.8, but sadly I do not know what the original
> version was.
>
>
>
> And I should pick-up Clojure again also. ;-)
>

-- 
Cecil Westerhof

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