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

坚强是说给别人听的谎言 提交于 2019-12-01 20:55:53

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...

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.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!