ibm mq - Why does this exception occur: "java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key MQJE001b"? -


i have installed ibm mq 7.5.0.5 client , adding jars under c:\program files (x86)\ibm\websphere mq\java\lib classpath of java application. when writing queue using java program following exception:

 java.util.missingresourceexception: can't find resource bundle java.util.propertyresourcebundle, key mqje001b      @ java.util.resourcebundle.getobject(unknown source)      @ java.util.resourcebundle.getstring(unknown source)      @ com.ibm.mq.mqexception.getmessage(mqexception.java:1638)      @ com.ibm.mq.reasoncodeinfo.getresourceexception(reasoncodeinfo.java:191)      @ com.ibm.mq.mqclientmanagedconnectionfactoryj11._createmanagedconnection(mqclientmanagedconnectionfactoryj11.java:600)      @ com.ibm.mq.mqclientmanagedconnectionfactoryj11.createmanagedconnection(mqclientmanagedconnectionfactoryj11.java:630)      @ com.ibm.mq.storedmanagedconnection.<init>(storedmanagedconnection.java:107)      @ com.ibm.mq.mqsimpleconnectionmanager.allocateconnection(mqsimpleconnectionmanager.java:205)      @ com.ibm.mq.mqqueuemanagerfactory.obtainbasemqqueuemanager(mqqueuemanagerfactory.java:911)      @ com.ibm.mq.mqqueuemanagerfactory.procure(mqqueuemanagerfactory.java:799)      @ com.ibm.mq.mqqueuemanagerfactory.constructqueuemanager(mqqueuemanagerfactory.java:750)      @ com.ibm.mq.mqqueuemanagerfactory.createqueuemanager(mqqueuemanagerfactory.java:157)      @ com.ibm.mq.mqqueuemanager.<init>(mqqueuemanager.java:681) 

the exception occurs when executing following statement:

mqqueuemanager manager = new mqqueuemanager(queuemanagername); 

i checked points mentioned here, didn't clue yet.

can please? missing here? use jdk7u79.

oh! figured out reason now. using old mqji.properties file. new file there in com.ibm.mq.jar, being ignored old file still available in classpath. works fine.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -