Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: NullPointerException thrown by Charset.availableCharsets (with jconn4.jar in classpath)

$
0
0

Hi Julien,

 

This problem looks to be an exact match to a reported bug in the jConnect for JDBC 7.07 driver, Change Request 704044.

 

Exception in thread "main" java.lang.NullPointerException

at

java.nio.charset.Charset.put(Unknown Source)

at

java.nio.charset.Charset.access$300(Unknown Source)

at

java.nio.charset.Charset$4.run(Unknown Source)

at

java.security.AccessController.doPrivileged(Native Method)

at

java.nio.charset.Charset.availableCharsets(Unknown Source)

at

CharSetTest.testCharSet(CharSetTest.java:18)

at

CharSetTest.main(CharSetTest.java:14)

 

This problem was fixed in April of 2012, so I would guess that your version of the driver is a build that pre-dates this fix.  You can verify your build of the driver using:

java -jar jconn4.jar

 

If you use the current released build of the jConnect driver this problem will be resolved as Paul indicates above.

 

Cheers,

-Ken


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>