简体   繁体   中英

JDBC connection can't cast error

I am facing a problem while connecting to database

error message:

oracle.jdbc.driver.T4CConnection cannot be cast to com.sun.corba.se.pept.transport.Connection

What does it indicate?

com.sun.corba.se.pept.transport.Connection is a communication interface, not a database interface.

Change your class reference to java.sql.Connection

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM