Helmi

에러) Driver does not support get/set network timeout for connections. 본문

Errors

에러) Driver does not support get/set network timeout for connections.

Helmi 2023. 4. 27. 11:15

플젝 만들어보는 도중, 에러가 떴다.

com.zaxxer.hikari.pool.PoolBase - HikariPool 1 - Driver does not support get/set network timeout for connections. (Receiver class oracle.jdbc.driver.T4CConnection does not define or inherit an implementation of the resolved method abstract getNetworkTimeout()I of interface java.sql.Connection.)

 

이런 에러였는데, 찾아보니 ojdbc.jar이 오래된거라 그렇다고 한다.

그래서 ojdbc8.jar을 다운받아주고 적용해줬다.

 

다운 링크

https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html

 

JDBC and UCP Downloads page

We’re sorry. We could not find a match for your search. We suggest you try the following to help find what you’re looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example, try "application" instead of

www.oracle.com

 

그리고 pom.xml의 일부와 build path 적용을 다시 해줬다.

 

pom.xml

<!-- https://mvnrepository.com/artifact/com.oracle.database.jdbc/ojdbc8 -->
		<dependency>
			<groupId>com.oracle.database.jdbc</groupId>
			<artifactId>ojdbc8</artifactId>
			<version>21.8.0.0</version>
		</dependency>

preference - Java build path도 변경

이렇게 했더니 작동 된다!!