ucp

Java 11 migration - createConnectionBuilder() from PoolDataSourceImpl clashes with createConnectionBuilder() from javax.sql.DataSource

a 夏天 提交于 2020-05-28 06:09:32
问题 I am trying to migrate a project from Java 8 to Java 11, which uses ojdbc. I am using a class which extends PoolDataSourceImpl, which implements PooLDataSource, which extends javax.sql.DataSource and while trying to built it with maven it gives this error: Compilation failure [ERROR] createConnectionBuilder() in oracle.ucp.jdbc.PoolDataSourceImpl cannot implement create ConnectionBuilder() in javax.sql.DataSource [ERROR] return type oracle.ucp.jdbc.UCPConnectionBuilder is not compatible with

Java 11 migration - createConnectionBuilder() from PoolDataSourceImpl clashes with createConnectionBuilder() from javax.sql.DataSource

故事扮演 提交于 2020-05-28 06:09:08
问题 I am trying to migrate a project from Java 8 to Java 11, which uses ojdbc. I am using a class which extends PoolDataSourceImpl, which implements PooLDataSource, which extends javax.sql.DataSource and while trying to built it with maven it gives this error: Compilation failure [ERROR] createConnectionBuilder() in oracle.ucp.jdbc.PoolDataSourceImpl cannot implement create ConnectionBuilder() in javax.sql.DataSource [ERROR] return type oracle.ucp.jdbc.UCPConnectionBuilder is not compatible with

Getting ORA-01882: timezone region not found with Oracle UCP, on aws ec2 instance?

♀尐吖头ヾ 提交于 2019-12-21 19:41:00
问题 I am running a springboot application (which is running fine on local machine), and getting ORA-01882: timezone region not found error on ec2 instance. Its looks like a config problem but not sure how to fix it. Stack trace is below Caused by: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone

How to download the Oracle JDBC drivers and UCP from the Oracle Maven Repository? [closed]

喜欢而已 提交于 2019-12-13 07:13:13
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago . Is there a way to download different versions of the Oracle JDBC drivers and Universal Connection Pool (UCP) from the Oracle Maven Repository? 回答1: Yes, Oracle JDBC drivers and Universal Connection Pool (ucp.jar) files are now available in the Oracle Maven Repository. The JDBC drivers and ucp.jar

Cannot find oracle.ucp.jdbc.PoolDataSourceFactory in Oracle ucp

杀马特。学长 韩版系。学妹 提交于 2019-12-10 17:19:18
问题 I want to create Oracle UCP using this code: import oracle.ucp.jdbc.PoolDataSource; import oracle.ucp.jdbc.PoolDataSourceFactory; System.out.println("***** OracleDS_UCP -> start init of PoolDataSource"); PoolDataSource pool = PoolDataSourceFactory.getPoolDataSource(); pool.setConnectionFactoryClassName("oracle.jdbc.pool.OracleDataSource"); pool.setURL("jdbc:oracle:thin:@localhost:1521:XE"); pool.setUser("test"); pool.setPassword("test"); pool.setMaxStatements(10); // the maximum number of

The connection is closed when using Oracle UCP

你离开我真会死。 提交于 2019-12-06 04:32:17
问题 I'm getting random " The connection is closed: The connection is closed" errors when using Oracle UCP, v 12.1.0.2.0. It looks like connection is marked as closed in oracle.ucp.jdbc.proxy.JDBCConnectionProxyFactory#invoke : if(Clock.isBefore(this.creationTS, this.m_jdbcPooledConnection.getAvailableStartTime()) || Clock.isBefore(this.creationTS, this.m_jdbcPooledConnection.getBorrowedStartTime())) { this.m_closed = Boolean.valueOf(true); } The Clock.isBefore(this.creationTS, this.m