Hi all,

I'm running into a problem with the clojure/java.jdbc wrapper. In my
program, I'm reading out a large text file and inserting around 24000
items into one table. After around 18000 items I get the following
error message:
NoRouteToHostException Cannot assign requested address
java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java:-2)

When I use c3p0 for connection pooling, I don't see the exception.
http://clojure.github.com/java.jdbc/doc/clojure/java/jdbc/ConnectionPooling.html

Seems to be a problem with socket connections failing to localhost,
where both the client and MySQL server are running. Has anyone else
experienced the same problem in the past?

OS: Mint Linux 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux
MySQL: 5.1.63-0ubuntu0.11.10.1
MySQL connector JAR: 5.1.6
Clojure: 1.3.0
Java: java version "1.6.0_31" Java(TM) SE Runtime Environment (build
1.6.0_31-b04)

Thanks,
Raju

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