I've tried saving a much smaller number of rows and I'm still getting
this exception.

I also tried processing the rows (without saving to database) and put
a Thread sleep. That also generated this exception.

On Feb 23, 12:55 pm, Saul Hazledine <shaz...@gmail.com> wrote:
> On Feb 23, 9:42 pm, clj123 <ariela2...@gmail.com> wrote:
>
> > I have been getting this exception:
> > java.lang.Exception: transaction rolled back:
> > java.lang.InterruptedException
> >         at clojure.contrib.sql.internal$throw_rollback.invoke(internal.clj:
> > 142)
>
> I can only take some wild guesses I'm afraid. The rollback occurs
> because clojure.contrib.sql tends to wrap operations in transactions.
> It appears that an InteruptedException occured during an operation and
> this called the rollback.
>
> Wild guesses:
> 1. The app is trying to write lots of data and a timeout has occured.
> 2. The database is busy and a timeout has occured.
>
> Saul

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