Driver.getConnection hangs using SQLServer driver and Java 1.6.0_29

前端 未结 9 1205
失恋的感觉
失恋的感觉 2020-11-28 12:28

I didn\'t know where to write something about this and decided to do it here.

After loooong time debugging my program I could find out that calling Driver.getConnect

9条回答
  •  庸人自扰
    2020-11-28 13:12

    I had the exact same issue where jBoss would hang on driver.getConnection(). However, I was using jBoss EAP 5.1, java 1.6.0_37x64, Sql Server 2005, and jtds1.2.5 as my jdbc driver.

    The work around I had to use was a jvm setting at startup: -Djsse.enableCBCProtection=false and that resolved it.

    I don't consider this a fix, but rather a work-around at this point.

    I did find a bug: 7105007 : Microsoft & jTDS JDBC driver broken after update to 1.6.0_29 that was very similar, but had a different cause. What was interesting was that it showed up on both the MS drivers and jtds drivers.

提交回复
热议问题