Error when using Database.nonBlocking()
See original GitHub issueHello David,
I’m trying to use the Database.nonBlocking().connectionProvider(dataSource).build() but I keep getting this Exception org.davidmoten.rx.pool.PoolClosedException: null.
If I switch to Database.fromBlocking(dataSource) it works fine.
This is my db call
import javax.sql.DataSource;
import org.davidmoten.rx.jdbc.Database;
import org.davidmoten.rx.jdbc.ResultSetMapper;
try (Database db = Database.fromBlocking(dataSource)) {
return db
.select(query)
.parameter("param1", param1)
.parameter("param2", param2)
.parameter("param3", param3)
.parameter("param4", param4)
.get(new MyObjectMapper());
}
As always thank you very much for your time!
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
how to handle write errors in non blocking sockets — oracle-tech
Hi, I'm using sockets registered with a Selector for read operations. ... In non-blocking mode the calls to read() and write() always returns...
Read more >54790: Use of non-blocking mode for sockets limits performance
This approach allows the handling of socket timeouts on a platform-specific basis. The blocking mode of the socket is no longer exported and...
Read more >What causes the error "Operation on non-blocking socket ...
It is a tcp connection to an Azure database. I have loaded data and done queries using this kind of code. What causes...
Read more >Using the Non-blocking Library - MariaDB Knowledge Base
To do non-blocking operation, an application first calls mysql_real_query_start() instead of mysql_real_query() , passing the same parameters.
Read more >A non blocking socket operation could not be completed ...
We upgraded lately our application to 4D 18.5 (from 16.x). Since the upgrade, some user sometimes get a runtime error “Error when executing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Deployment sorted out. You can use 0.1-RC29 from Maven Central.
Thanks, that’s annoying. Something has changed in the sonatype deployment space and I had troubles yesterday. What you can do is build it yourself locally from the tag:
I’ll sort out deployment to Maven Central in the next couple of days hopefully.