Today, I ran into an Oracle error that i hadn’t seen before

java.sql.SQLRecoverableException: IO Error: Size Data Unit (SDU) mismatch

Caused by: oracle.net.ns.NetException: Size Data Unit (SDU) mismatch

Environment

Tomcat 7

JDK 1.6

Spring 3.x

Hibernate 4.x

Oracle 11 G

ojdbc6.jar

The fix:

I  tried swapping the JDBC driver with the older ojdbc14.jar and voila ! The real error was exposed : Good old

ORA-00942 (table or view does not exist)

Once I put the table in- everything works fine- with ojdbc14.jar as well ojdbc6.jar

No idea- why the newer driver was not throwing the more descriptive error message ?
Continue reading »

© 2011 Technology Cafe Suffusion theme by Sayontan Sinha