Tag Archives: oracle.net.ns.NetException: Got minus one from a read call

[Solved] oracle.net.ns.NetException: Got minus one from a read call

 

Oracle Jdbc Connect Error: oracle.net.ns.NetException: Got minus one from a read call

==============================

 

1. Question:

Caused by: oracle.net.ns.NetException: Got minus one from a read call
   at oracle.net.ns.Packet.receive(Packet.java:303)
   at oracle.net.ns.NSProtocol.connect(NSProtocol.java:296)
   at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)
   at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)
   ... 48 more

Jdbc Connection:

spring.datasource.jdbcUrl=jdbc:oracle:thin:@127.0.0.1:1521/oral
spring.datasource.driverClassName=oracle.jdbc.OracleDriver

2. Solutions:

Replace the ‘/’ before the service with a colon ‘:’

spring.datasource.jdbcUrl=jdbc:oracle:thin:@127.0.0.1:1521:oral