title: db2 driver error but able to establish connection
body: <p>I am trying to use <code>C3P0</code> connection pools for <strong>IBM DB2 Version 10.5.5 Fix Pack 5</strong> with Java 8 . </p>
  
  <p>Initially, I was getting <a href="https://stackoverflow.com/questions/23801841/connect-to-db2-database-in-eclipse-via-jdbc">this error</a> so I changed jar to <code>db2jcc4.jar</code> but I still get below error in console, </p>
  
  <pre><code>1350 [C3P0PooledConnectionPoolManager[identityToken-&gt;2x0fal9iui9mpmdj6im3|c2e1f26]-HelperThread-#1] INFO  com.mchange.v2.c3p0.SQLWarnings  – Origination unknown: [10228][11541][4.11.77] Security exceptions occurred while loading driver. ERRORCODE=4223, SQLSTATE=null
  com.ibm.db2.jcc.am.SqlWarning: Origination unknown: [10228][11541][4.11.77] Security exceptions occurred while loading driver. ERRORCODE=4223, SQLSTATE=null
      at com.ibm.db2.jcc.am.gd.b(gd.java:207)
      at com.ibm.db2.jcc.am.gd.b(gd.java:258)
      at com.ibm.db2.jcc.am.jb.a(jb.java:887)
      at com.ibm.db2.jcc.am.lb.a(lb.java:574)
      at com.ibm.db2.jcc.am.lb.&lt;init&gt;(lb.java:555)
      at com.ibm.db2.jcc.t4.b.&lt;init&gt;(b.java:305)
      at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:214)
      at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:460)
      at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
      at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
      at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
      at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
  Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: sun.io.ByteToCharConverter
      at java.security.AccessController.doPrivileged(Native Method)
      at com.ibm.db2.jcc.am.jb.r(jb.java:873)
      at com.ibm.db2.jcc.am.jb.&lt;clinit&gt;(jb.java:484)
      at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:117)
      ... 9 more
  Caused by: java.lang.ClassNotFoundException: sun.io.ByteToCharConverter
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at com.ibm.db2.jcc.am.jg.run(jg.java:19)
      ... 13 more
  1350 [C3P0PooledConnectionPoolManager[identityToken-&gt;2x0fal9iui9mpmdj6im3|c2e1f26]-HelperThread-#0] INFO  com.mchange.v2.c3p0.SQLWarnings  – Origination unknown: [10228][11541][4.11.77] Security exceptions occurred while loading driver. ERRORCODE=4223, SQLSTATE=null
  com.ibm.db2.jcc.am.SqlWarning: Origination unknown: [10228][11541][4.11.77] Security exceptions occurred while loading driver. ERRORCODE=4223, SQLSTATE=null
      at com.ibm.db2.jcc.am.gd.b(gd.java:207)
      at com.ibm.db2.jcc.am.gd.b(gd.java:258)
      at com.ibm.db2.jcc.am.jb.a(jb.java:887)
      at com.ibm.db2.jcc.am.lb.a(lb.java:574)
      at com.ibm.db2.jcc.am.lb.&lt;init&gt;(lb.java:555)
      at com.ibm.db2.jcc.t4.b.&lt;init&gt;(b.java:305)
      at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:214)
      at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:460)
      at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175)
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220)
      at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206)
      at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203)
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1138)
      at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1125)
      at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44)
      at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1870)
      at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)
  Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: sun.io.ByteToCharConverter
      at java.security.AccessController.doPrivileged(Native Method)
      at com.ibm.db2.jcc.am.jb.r(jb.java:873)
      at com.ibm.db2.jcc.am.jb.&lt;clinit&gt;(jb.java:484)
      at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:117)
      ... 9 more
  Caused by: java.lang.ClassNotFoundException: sun.io.ByteToCharConverter
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Unknown Source)
      at com.ibm.db2.jcc.am.jg.run(jg.java:19)
      ... 13 more
  </code></pre>
  
  <p>Even if this error is present in logs, my stand alone Java app is able to make connections to database and gets results i.e. SELECT query is executed successfully. </p>
  
  <p>How to fix this confusion?</p>