Re: IllegalStateException "I/O in transaction" in REPL

2012-06-22 Thread dmirylenka
Thank you for the answers, and sorry for late reply. It seems I figured out what the problem was. My code was placed at the top level of a file sci-clustering/examples.clj, and I was loading the namespace from REPL like this:(use 'sci-clustering.examples :reload-all). So it looks like clojure.c

Re: IllegalStateException "I/O in transaction" in REPL

2012-06-14 Thread Stephen Compall
On Thu, 2012-06-14 at 13:33 -0700, dmirylenka wrote: > Could you please explain a bit more? > > I don't have any dosync in my code. Look through your backtrace for a call to clojure.lang.LockingTransaction.runInTransaction. Its caller is using dosync. -- Stephen Compall ^aCollection allSatisf

Re: IllegalStateException "I/O in transaction" in REPL

2012-06-14 Thread Meikel Brandmeyer
Hi, Am 14.06.2012 um 22:33 schrieb dmirylenka: > Could you please explain a bit more? > > I don't have any dosync in my code. transaction* contains an io! form which throws such an exception when called in a dosync. How does the code look like, which does not work? Kind regards Meikel -- Yo

Re: IllegalStateException "I/O in transaction" in REPL

2012-06-14 Thread dmirylenka
Could you please explain a bit more? I don't have any dosync in my code. Daniil On Thursday, June 14, 2012 4:17:46 PM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > the exception probably stems from the fact that you do the database > interaction inside a dosync transaction. > > Kind re

Re: IllegalStateException "I/O in transaction" in REPL

2012-06-14 Thread Meikel Brandmeyer (kotarak)
Hi, the exception probably stems from the fact that you do the database interaction inside a dosync transaction. Kind regards Meikel -- 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