Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Websphere and the fly likes MQv7 on WASv7 com.ibm.mq.MQException MQJE001Completion Code 2, Reason 2085 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "MQv7 on WASv7 com.ibm.mq.MQException MQJE001Completion Code 2, Reason 2085" Watch "MQv7 on WASv7 com.ibm.mq.MQException MQJE001Completion Code 2, Reason 2085" New topic
Author

MQv7 on WASv7 com.ibm.mq.MQException MQJE001Completion Code 2, Reason 2085

Gopi chinthakindi
Greenhorn

Joined: Dec 21, 2011
Posts: 2
Hi

I am using WMQ client v7 on WASv7(migrating from WASv6) and I am using WMQ java and no JMS.

connecting to queue is failing with reason code 2085.

Here is code snippet and log,
queue.inquire(selectors,intAttrs,charAttrs);
baseName = new String(charAttrs);
CustomLogger.debugLog(appName, UtilsConstants.WARNING,"base name : " + baseName);

WARNING: IVRMQ com.ivr.mqseries.MQHandler.openQueue() base name : ÃâØÄÖÓKÃÓÉÅÕãKÉåÙKÓØKÇÅÕKÓ÷ðñØñ@@@@@@@@@@@@@@@@@
WARNING: IVRMQ com.ivr.mqseries.MQHandler.openQueue() Connection to the queue ÃâØÄÖÓKÃÓÉÅÕãKÉåÙKÓØKÇÅÕKÓ÷ðñØñ@@@@@@@@@@@@@@@@@ failed: Completion Code: 2, Reason Code: 2085, Message: MQJE001:

stack trace is here

com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2085'.
at com.ibm.mq.MQDestination.open(MQDestination.java:328)
at com.ibm.mq.MQQueue.<init>(MQQueue.java:257)
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:2750)
at com.ivr.mqseries.MQHandler.openQueue(Unknown Source)
at com.ivr.mqseries.MQHandler.openQueue(Unknown Source)
at com.ivr.mqseries.MQChannel.init(Unknown Source)
at com.ivr.mqseries.MQRoundTripServlet.init(Unknown Source)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:169)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1809)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1011)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:932)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:611)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:429)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:609)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)

Also could any one let me know how to enable mq trace from client java.

Thanks in advance.

Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19728
    
  10

Something is converting the queue name from EBCDIC to Unicode, but it shouldn't be doing that. At least that's what it looks like to me -- '@' in Unicode is hex-40, and space in EBCDIC is hex-40.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: MQv7 on WASv7 com.ibm.mq.MQException MQJE001Completion Code 2, Reason 2085
 
It's not a secret anymore!