Re: java.lang.Exception: transaction rolled back: java.lang.InterruptedException

2011-02-25 Thread clj123
On Feb 25, 4:12 am, clj123 ariela2...@gmail.com wrote: I've also noticed that I can cause this InterruptedException to be thrown if I add (. Thread (sleep 1000)) instead of saving to database. It looks like when a thread is waiting for a long time this exception is being thrown

Re: java.lang.Exception: transaction rolled back: java.lang.InterruptedException

2011-02-24 Thread clj123
) at clojure.lang.LazySeq.seq(LazySeq.java:56) at clojure.lang.Cons.next(Cons.java:39) at clojure.lang.RT.next(RT.java:560) at clojure.core$next.invoke(core.clj:61) On Feb 23, 12:59 pm, Saul Hazledine shaz...@gmail.com wrote: On Feb 23, 9:54 pm, clj123 ariela2...@gmail.com wrote: I'm getting

Re: java.lang.Exception: transaction rolled back: java.lang.InterruptedException

2011-02-24 Thread clj123
I've also noticed that I can cause this InterruptedException to be thrown if I add (. Thread (sleep 1000)) instead of saving to database. It looks like when a thread is waiting for a long time this exception is being thrown. By the way I'm running only one thread in my code. Here's the rest of

Re: transaction rolled back: java.lang.InterruptedException

2011-02-24 Thread clj123
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

transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread clj123
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) at clojure.contrib.sql.internal$transaction_STAR_.invoke(internal.clj: 169) at

transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread clj123
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) at clojure.contrib.sql.internal$transaction_STAR_.invoke(internal.clj: 169) at

java.lang.Exception: transaction rolled back: java.lang.InterruptedException

2011-02-23 Thread clj123
I'm getting the following exception trying to insert large batch data in the database. Any ideas? java.lang.Exception: transaction rolled back: java.lang.InterruptedException at clojure.contrib.sql.internal$throw_rollback.invoke(internal.clj: 142) at

Re: Java out of memory problem

2010-12-20 Thread clj123
, 2010 at 5:39 PM, clj123 ariela2...@gmail.com wrote: (defn persist-rows  [headers rows id]  (let [mrows (transform-rows rows id)]    (with-db *db* (try         (apply insert-into-table                :my-table                [:col1 :col2 :col3]                mrows)))     nil

Re: Java out of memory problem

2010-12-17 Thread clj123
header (filter #(= (:item_id %) item-id) rows) id)) (dorun (pmap #(filter-data rows %1 header %2) items id )) On Dec 16, 4:45 pm, Michael Ossareh ossa...@gmail.com wrote: On Thu, Dec 16, 2010 at 09:19, clj123 ariela2...@gmail.com wrote: Hello, I'm trying

Java out of memory problem

2010-12-16 Thread clj123
Hello, I'm trying to insert in a database large number of records, however it's not scaling correctly. For 100 records it takes 10 seconds, for 100 records it takes 2 min to save. But for 250 records it throws Java Heap out of memory exception. I've tried separting the records processing