java.sql.SQLException: Io exception: Wrong Magic number in na packet
516536Sep 5 2006 — edited Sep 7 2006Hello All,
I am connecting to Oracle 7.1 with JDBC thin driver using classes111.zip.
While I am opening a connection with Database it is throwing following error.
java.sql.SQLException: Io exception: Wrong Magic number in na packet
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
at oracle.jdbc.driver.OracleDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:119)
at Retrive.main(Retrive.java:10)
Error in Connectionjava.sql.SQLException: Io exception: Wrong Magic number in na packet
I have to connect four production system databases all are running on different Oracle Database with version 7.1. The most funny part is I able to connect to two production systems with the same code where as two systems are giving the above mentioned error. Any help in this regards with be appreciated. Client is eagerly waiting for me to solve the problem. So request you all to help me in this if any of you have faced similar kind of problem or have any link or other source which can help me.
Thanks in advance.
Bisu Sethi