|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PCFMessageAgent exception |
« View previous topic :: View next topic » |
Author |
Message
|
sudhir |
Posted: Thu May 19, 2011 5:20 am Post subject: PCFMessageAgent exception |
|
|
Novice
Joined: 17 Dec 2002 Posts: 20 Location: Pune, India
|
Hi ,
We are using PCF sample program PCF_CommonMethods to get the queue manager attributes. When we run sample program as a standalone program, program works fine, but when we are calling sample program through JSP running on WAS server then its throwing exception.
JSP page snippet is given below where we are calling this sample program.
********************************
PCF_CommonMethods pcfCM = new PCF_CommonMethods();
try {
pcfCM.ParseParameters(port,channel,host,qmgr);
System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
pcfCM.CreateAgent(3);
System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
int[] pcfParmAttrs = {MQConstants.MQIACF_ALL};
PCFParameter[] pcfParameters = {new MQCFIL(MQConstants.MQIACF_Q_MGR_ATTRS, pcfParmAttrs)};
MQMessage[] mqResponse = pcfCM.agent.send(MQConstants.MQCMD_INQUIRE_Q_MGR, pcfParameters);
MQCFH mqCFH = new MQCFH(mqResponse[0]);
PCFParameter pcfParam;
**********************************************
and exception trace is given below :
**************************************
)
[5/19/11 18:34:08:082 GMT+05:30] 00000148 SystemErr R Caused by: com.ibm.mq.headers.MQDataException: MQJE001: Completion Code '2', Reason '2195'.
at com.ibm.mq.headers.MQDataException.getMQDataException(MQDataException.java:308)
at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:317)
at com.ibm.mq.headers.pcf.PCFAgent.connect(PCFAgent.java:228)
at com.ibm.mq.headers.pcf.PCFAgent.<init>(PCFAgent.java:170)
at com.ibm.eai.admin.util.mq.PCF_CommonMethods.CreateAgent(PCF_CommonMethods.java:253)
at com.ibm._jsp._QmgrProperty._jspService(_QmgrProperty.java:112)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:525)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:233)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:295)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:831)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:133)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:450)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:508)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:296)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:196)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:751)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:881)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: com.ibm.mq.headers.MQDataException: MQJE001: Completion Code '2', Reason '6114'.
at com.ibm.mq.headers.MQDataException.getMQDataException(MQDataException.java:305)
at com.ibm.mq.headers.internal.Header.read(Header.java:617)
at com.ibm.mq.headers.pcf.MQCFST.<init>(MQCFST.java:148)
at com.ibm.mq.headers.pcf.PCFParameter.nextParameter(PCFParameter.java:75)
at com.ibm.mq.headers.pcf.PCFAgent.getBasicQmgrInfo(PCFAgent.java:436)
at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:369)
at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:314)
... 30 more
Caused by: java.io.EOFException
at com.ibm.mq.MQMessage.seek(MQMessage.java:292)
at com.ibm.mq.headers.internal.store.MQMessageStore.readFrom(MQMessageStore.java:382)
at com.ibm.mq.headers.internal.Header.read(Header.java:659)
at com.ibm.mq.headers.internal.Header.read(Header.java:636)
at com.ibm.mq.headers.internal.Header.read(Header.java:614)
... 35 more
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R at com.ibm.mq.headers.MQDataException.getMQDataException(MQDataException.java:308)
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:317)
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R at com.ibm.mq.headers.pcf.PCFAgent.connect(PCFAgent.java:228)
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R ... 29 more
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R Caused by: com.ibm.mq.headers.MQDataException: MQJE001: Completion Code '2', Reason '6114'.
at com.ibm.mq.headers.MQDataException.getMQDataException(MQDataException.java:305)
at com.ibm.mq.headers.internal.Header.read(Header.java:617)
at com.ibm.mq.headers.pcf.MQCFST.<init>(MQCFST.java:148)
at com.ibm.mq.headers.pcf.PCFParameter.nextParameter(PCFParameter.java:75)
at com.ibm.mq.headers.pcf.PCFAgent.getBasicQmgrInfo(PCFAgent.java:436)
at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:369)
at com.ibm.mq.headers.pcf.PCFAgent.open(PCFAgent.java:314)
at com.ibm.mq.headers.pcf.PCFAgent.connect(PCFAgent.java:228)
at com.ibm.mq.headers.pcf.PCFAgent.<init>(PCFAgent.java:170)
at com.ibm.eai.admin.util.mq.PCF_CommonMethods.CreateAgent(PCF_CommonMethods.java:253)
********************************* |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu May 19, 2011 7:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
[5/19/11 18:34:08:083 GMT+05:30] 00000148 SystemErr R Caused by: com.ibm.mq.headers.MQDataException: MQJE001: Completion Code '2', Reason '6114'. |
So have you looked this up? What does it say?
6114 0x000017e2 MQRC_INSUFFICIENT_DATA
What exactly where you trying to do when you got this error?
Also you did not specify the version of WAS. You may want to check the corresponding version of MQ as defined by the version of WAS.
PCF support has changed markedly between V6 and V7 of MQ. _________________ MQ & Broker admin |
|
Back to top |
|
 |
sudhir |
Posted: Thu May 19, 2011 9:54 pm Post subject: |
|
|
Novice
Joined: 17 Dec 2002 Posts: 20 Location: Pune, India
|
My server version is V6.1 and my MQ version is V 7.0.1.3.
I am using MQ V7 jars with my deployment, So I think as a client I am working with MQ V7 only. In my code when I create an object of PCFMessageAgent with required parameters then its trow "6114 0x000017e2 MQRC_INSUFFICIENT_DATA" exception.
the agent = new PCFMessageAgent(host,port, channel); |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|