Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.sql.SQLException: Protocol violation: [6, 7, 21, 7, 21, 7, 21, 7, 21,

marcin_30Jan 25 2013 — edited Jan 14 2015
Hi

I've application running on:
- Solaris 10 64 bit
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_28-b04)
Java HotSpot(TM) Server VM (build 1.5.0_28-b04, mixed mode)
- jvm options"-Xms1024m -Xmx1536m -XX:MaxPermSize=128m -Duser.language=en -Duser.country=AU -XX:-UseVMInterruptibleIO"
- Oracle DBMS version 10.2.0.4.0 (64 bit)
- ojdbc version 11.2.0.3.0
And get the following exception:
java.sql.SQLException: Protocol violation: [6, 7, 21, 7, 21, 7, 21, 7, 21, 7, 21, 7, 21, 7, 21, 7, 21, 7, 54]
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:464)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
at oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:1112)
at oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:373)
at oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:277)

I've read many posts and have found that it can be solaris issue because there are some problems when we are using 32 bit java on Solaris 10 64 bit machine. And the proposed solution is to use additional -d64 option in jvm. Is this the correct solution? Or there are some other soluions?
Regards Marcin.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2013
Added on Jan 25 2013
8 comments
6,643 views