title: MQSeries error com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
body: <p>I have an existing java batch process running on windows that writes to an MQSeries queue. 
  Works fine in v7, but fails using v8.0.0.3. </p>
  
  <p>Using these jar files:
  com.ibm.mq.allclient-8.0.0.3.jar
  javax.jms-api-2.0.1.jar
  Tried running with both and just the allclient jar, but repeatedly get this error:</p>
  
  <pre><code>Exception in thread "main" java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
                 at java.util.ServiceLoader.fail(ServiceLoader.java:239)
                 at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
                 at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
                 at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
                 at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
                 at java.nio.charset.Charset$1.getNext(Charset.java:352)
                 at java.nio.charset.Charset$1.hasNext(Charset.java:365)
                 at java.nio.charset.Charset$2.run(Charset.java:410)
                 at java.nio.charset.Charset$2.run(Charset.java:407)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at java.nio.charset.Charset.lookupViaProviders(Charset.java:406)
                 at java.nio.charset.Charset.lookup2(Charset.java:477)
                 at java.nio.charset.Charset.lookup(Charset.java:464)
                 at java.nio.charset.Charset.forName(Charset.java:528)
                 at com.ibm.mq.jmqi.system.JmqiCodepage$JmqiCodepageFactory.initializeCodepage(JmqiCodepage.java:194)
                 at com.ibm.mq.jmqi.system.JmqiCodepage$JmqiCodepageFactory.getByName(JmqiCodepage.java:181)
                 at com.ibm.mq.jmqi.system.JmqiCodepage.getJmqiCodepage(JmqiCodepage.java:661)
                 at com.ibm.mq.jmqi.system.JmqiCodepage.getJmqiCodepage(JmqiCodepage.java:637)
                 at com.ibm.mq.jmqi.JmqiEnvironment.getJmqiCodepage(JmqiEnvironment.java:294)
                 at com.ibm.mq.jmqi.JmqiEnvironment.lookupDefaultCharset(JmqiEnvironment.java:361)
                 at com.ibm.mq.jmqi.JmqiEnvironment.&lt;init&gt;(JmqiEnvironment.java:262)
                 at com.ibm.mq.jmqi.system.JmqiSystemEnvironment.&lt;init&gt;(JmqiSystemEnvironment.java:76)
                 at com.ibm.mq.jmqi.JmqiFactory.getInstance(JmqiFactory.java:122)
                 at com.ibm.mq.internal.MQCommonServices.&lt;clinit&gt;(MQCommonServices.java:146)
                 at com.ibm.mq.MQSESSION.getJmqiEnv(MQSESSION.java:141)
                 at com.ibm.mq.MQSimpleConnectionManager.&lt;init&gt;(MQSimpleConnectionManager.java:95)
                 at com.ibm.mq.MQEnvironment.&lt;clinit&gt;(MQEnvironment.java:569)
  </code></pre>
  
  <p>my code made a call to MQenvironment</p>