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 »

 

The context

I am using Google App Engine using the  Grails AppEngine plugin . The default port is 8080, but I needed to run it on a different port.

It was easy to figure out that Google App Engine supports running the development server on any configured port. But it took me some time to realize that the  Grails AppEngine plugin that I am using doesn’t.

The fix:

Modify the \plugins\app-engine-0.8.5\scripts\AppEngine.groovy.

Continue reading »

 

The context:

I am using Google App Engine along with Grails AppEngine plugin. At some point I started getting an exception when I was trying to start my development server. The only thing I had done before I got the error was- I had switched from App Engine SDK  1.2.5 to 1.2.8.

The solution

The problem is that the Grails clean command doesnt do a very good job of cleaning the cache folder when the App engine is installed.

The solution was to simply delete the cache folder created by cache and presto ! all was well again

Continue reading »

© 2011 Technology Cafe Suffusion theme by Sayontan Sinha