If I'm running only one thread in my application, do you know which
other thread is trying to interrupt the main thread?
On Feb 24, 6:35 pm, Shantanu Kumar wrote:
> If it is about Thread/sleep, you can perhaps use something like this:
>
> (defn sleep
> [n]
> (try (Thread/sleep n)
> (catch
On Feb 25, 12:28 am, clj123 wrote:
> 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.
>
Here are some more guesses if you haven't
If it is about Thread/sleep, you can perhaps use something like this:
(defn sleep
[n]
(try (Thread/sleep n)
(catch InterruptedException e
(.interrupt (Thread/currentThread)
There might be other situations where the underlying API throws
InterruptedException - deal with them acco
rote:
>
> > 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 wi
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 m
On Thu, Feb 24, 2011 at 14:36, clj123 wrote:
> That didn't solve the problem. I've tried smaller row numbers and it
> still throws the same error:
>
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.RuntimeException: java.lang.InterruptedException
>at clojure.lang.Lazy
That didn't solve the problem. I've tried smaller row numbers and it
still throws the same error:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.InterruptedException
at clojure.lang.LazySeq.sval(LazySeq.java:47)
at clojure.lang.LazySeq
On Feb 23, 9:54 pm, clj123 wrote:
> I'm getting the following exception trying to insert large batch data
> in the database.
I'd try to write less data at one time to the database. Start with,
say, 20 rows at a time.
Saul
--
You received this message because you are subscribed to the Google
Gr
On Feb 23, 9:42 pm, clj123 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
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 clojure.contrib.sql.int
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
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
12 matches
Mail list logo