NullPointerException thrown by Charset.availableCharsets due to our Sybase JDBC driver

后端 未结 2 403
无人共我
无人共我 2021-01-20 05:27

I am running into a blocking issue with my install (JDK 1.7). Basically I have the following NPE:

10:19:17.548 [main] ERROR o.s.t.w.s.TestDi         


        
相关标签:
2条回答
  • 2021-01-20 06:13

    Not sure if anyone still looking for the answer or not...But yes, this is a bug in Sybase driver jar. There is a discussion and solution within this link Discussion of NPE with jconn4.jar in SAP. I just faced the same issue and got resolved by replacing with a newer jar(it turned out we were using the very old one.)

    0 讨论(0)
  • 2021-01-20 06:34

    It turns out to be a bug in the Sybase JDBC driver as one can see here. To quote the disgruntled user of the Sybase JDBC driver from the above link:

    Nothing should suprise me though, as the current Sybase driver is utterly broken, and has been for over a year! It contains a CharsetProvider, that returns a null iterator causing Charset.availableCharsets() to throw a nullpointer exception. A lot of frameworks such as Spring calls Charset.availableCharsets().

    I am not sure how to report this bug to Sybase/SAP though...

    0 讨论(0)
提交回复
热议问题