About 50 results
Open links in new tab
  1. Connect Java to a MySQL database - Stack Overflow

    The better practice is to install the physical JDBC driver JAR file in the server itself and configure the server to create a JDBC connection pool. Here's an example for Tomcat: How should I connect to …

  2. How to fix "Failed to obtain JDBC Connection" datasource error in my ...

    Sep 12, 2019 · Now i got a timezone error: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: The server time zone value 'Paris, Madrid (heure dété)' is unrecognized or …

  3. java - How to connect to Oracle using Service Name instead of SID ...

    I have a Java application that uses JDBC (via JPA) that was connecting to a development database using hostname, port and Oracle SID, like this: …

  4. java - IO Error: The Network Adapter could not establish the …

    May 7, 2023 · IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=iKQM6lBbSLiArrYuDqud8A==) if you are facing this issue 1- make sure you …

  5. spring - org.springframework.jdbc.CannotGetJdbcConnectionException ...

    Sep 28, 2020 · org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the …

  6. Unable obtain JDBC Connection with oracle 19c in java 1.8

    02/15/23 06:37:10 Initializing FTPInputProcess Database connection unavailable versions of project I'm using Java version:java 1.8 database is oracle 19c. The thing I have tried I updated the ojdbc5 jar to …

  7. java - Closing JDBC Connections in Pool - Stack Overflow

    So, regardless of whether you're using a connection pool or not, you should always close all the JDBC resources in reversed order in the finally block of the try block where you've acquired them. In Java 7 …

  8. How to fix "Failed to obtain JDBC Connection" in spring jdbc

    Jul 8, 2022 · How to fix "Failed to obtain JDBC Connection" in spring jdbc Asked 3 years, 7 months ago Modified 2 years, 1 month ago Viewed 5k times

  9. sql - Java JDBC connection status - Stack Overflow

    UPDATE Oh, I just saw there is a new method available since 1.6: java.sql.Connection.isValid(int timeoutSeconds): Returns true if the connection has not been closed and is still valid. The driver …

  10. java - Connect jdbc via oracle wallet - Stack Overflow

    Mar 24, 2022 · In my experience, use of tnsnames.ora was required when using a wallet for authentication, even for JDBC Thin connections. The connection alias in tnsnames.ora is matched to …