question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when using Database.nonBlocking()

See original GitHub issue

Hello 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:closed
  • Created 6 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
davidmotencommented, Jan 24, 2018

Deployment sorted out. You can use 0.1-RC29 from Maven Central.

1reaction
davidmotencommented, Jan 23, 2018

maven central only has up to RC23

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:

cd rxjava2-jdbc
git pull
git fetch --tags
git checkout 0.1-RC27
mvn clean install

I’ll sort out deployment to Maven Central in the next couple of days hopefully.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found