Wednesday, August 04, 2010

Get the "Synchronize with Google" option to show up in Mac OS X Address Book.

Thanks to this post in macosxhints forum, I could keep my Nexus One is sync with Google and MBP. Quoted below from the forum post.

a) If you don't have this file, copy the following into a text file and save it with the name Put the file in your Preferences directory inside your home directory.

{ Devices = { red-herring = { 'Family ID' = 10001; }; }; }

b) If you have the file and don't have an iPhone or iPod touch, you need to add some information to this file. I used Apple's plist editor to add the information, and that worked for me. This terminal command should work as well.

defaults write Devices -dict-add red-herring '{ "Family ID" = 10001; }'

Monday, August 02, 2010

An application based on Spring / JPA / Hibernate stack started causing following error when the Oracle JDBC library was upgraded from ojdbc14.jar to ojdbc6.jar.

java.lang.IllegalAccessException: Class org.hibernate.dialect.Oracle8iDialect can not access a member of class oracle.jdbc.driver.OracleTypes with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.hibernate.dialect.Oracle8iDialect.registerResultSetOutParameter(

Caused by oracle.jdbc.driver.OracleTypes class being deprecated and replaced by oracle.jdbc.OracleTypes and Oracle8iDialect (line 397) class referring to a private member of OracleTypes class.

  1. Fix is to use a hibernate distro with the fix that is also compatible to Spring 3 stack.
  2. Thanks to Google and grepcode; found the fix been applied for Hibernate 3.3.2 (line 432)
  3. Also realized in this research that there exists NO at Spring download site :-;( which makes it all the more difficult to find a spring bundle with the fix.

I am well fed with these !!