Workstation Error: AWT-EventQueue-0 java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
search cancel

Workstation Error: AWT-EventQueue-0 java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: com.ibm.mq.jmqi.CustomCharsetProvider not a subtype

book

Article ID: 395493

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

While attempting to create a virtual service image, using Request Response pairs from the DevTest Workstation, we are seeing the following error thrown:

[AWT-EventQueue-0] ERROR System.err - Exception in thread "AWT-EventQueue-0" java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: com.ibm.mq.jmqi.CustomCharsetProvider not a subtype

Environment

DevTest Workstation 10.8.1

Cause

This error indicates a compatibility issue with the IBM MQ libraries. Which means there's a conflict in the way the application is loading and using different character sets. The IBM MQ library (com.ibm.mq.jmqi.CustomCharsetProvider) is trying to implement a character set provider that's not compatible with the Java NIO API. 

Resolution

While troubleshooting, we found several other errors related to IBM MQ in the workstation.log file. Looking at the DEVTEST_HOME\lib\shared directory, there were several IBM MQ jars, most of which are not typically needed.

To resolve this error, we removed all but the following two IBM MQ jar files from the DEVTEST_HOME\lib\shared directory:

  • com.ib.mq.allclient.jar
  • com.ibm.mq.commonservices.jar

Broadcom Support recommends only loading any additional IBM MQ jars as needed. For example, if you're using SOAP or JMS, then you may need to add the com.ibm.mq.soap.jar and com.ibm.mqjms.jar.