I'm are trying to execute JMS programs in AS400 QShell. Find attached the details below.

MQSeries 5.2 is installed.
JDK 1.3.1
JMS is applied


I have to execute java program for MQ from QShell few times. I get the error. I doubted some environment problems. So i executed the installation verification program.

We are executing verification test for MQ installation from QShell.

We are excecuting the MQIVP program supplied with MA88. (/qibm/proddata/mqm/java/samples/base)

$ java MQIVP


The program completes successfully.


Again we are trying to execute the same program in the same Q Shell. we are getting the following error.



java MQIVP -trace 5



04:33:41 [1059669221454] Thread: Thread-0, Object: com.ibm.mq.MQQueueManager@
beb982d5 ==> MQManagedObject constructor() entry
04:33:41 [1059669221587] Thread: Thread-0, Object: com.ibm.mq.MQQueueManage r@beb982d5 @(#) common/javabase/com/ibm/mq/MQManagedObject.java, java, j520,
j520-L010613 01/04/26 10:28:31
04:33:41 [1059669221591] Thread: Thread-0, Object: com.ibm.mq.MQQueueManager@
beb982d5 <== MQManagedObject constructor() exit
04:33:41 [1059669221592] Thread: Thread-0, Object: com.ibm.mq.MQQueueManager@
beb982d5 ==> MQQueueManager constructor (String,Hashtable)() entry
04:33:41 [1059669221592] Thread: Thread-0, Object: com.ibm.mq.MQQueueManage r@beb982d5 common/javabase/com/ibm/mq/MQQueueManager.java, java, j520, j520-L
010720 01/07/20 16:27:50 @(#) 1.41.1.7
04:33:41 [1059669221597] Thread: Thread-0, Object: com.ibm.mq.MQQueueManage
r@beb982d5 ==> construct() entry
04:33:41 [1059669221605] Thread: Thread-0 ==> MQQueueManager:btainBaseM
QQueueManager (Java 1.1 version() entry
04:33:41 [1059669221625] Thread: Thread-0, Object: com.ibm.mq.MQBinding sManagedConnectionFactoryJ11@a485568c ==> MQBindingsManagedConnectionFactoryJ
11 constructor() entry
04:33:41 [1059669221629] Thread: Thread-0, Object: com.ibm.mq.MQBinding sManagedConnectionFactoryJ11@a485568c <== MQBindingsManagedConnectionFactoryJ
11 constructor() exit
04:33:41 [1059669221635] Thread: Thread-0 ==> Uninitialized object::Bin
dingsConnectionRequestInfo constructor() entry

04:33:41 [1059669221651] Thread: Thread-0, Object: com.ibm.mq.BindingsC onnectionRequestInfo@0 <== BindingsConnectionRequestInfo constructor() exit
04:33:41 [1059669221665] Thread: Thread-0, Object: com.ibm.mq.MQSimpleC
onnectionManager@c1f6928a ==> allocateConnection() entry
04:33:41 [1059669221674] Thread: Thread-0, Object: com.ibm.mq.Managed
ConnectionStore@a48553ac ==> chooseOne() entry
04:33:41 [1059669221676] Thread: Thread-0, Object: com.ibm.mq.Managed
ConnectionStore@a48553ac <== chooseOne() exit
04:33:41 [1059669221681] Thread: Thread-0, Object: com.ibm.mq.StoredM
anagedConnection@7132e3de ==> StoredManagedConnection constructor() entry
04:33:41 [1059669221697] Thread: Thread-0, Object: com.ibm.mq.MQBin dingsManagedConnectionFactoryJ11@a485568c ==> _createManagedConnection() entr
y
04:33:41 [1059669221719] Thread: Thread-0, Object: com.ibm.mq.MQM
anagedConnectionJ11@6f780c67 ==> MQManagedConnection constructor() entry
04:33:41 [1059669221750] Thread: Thread-0 Class: MQSESSIONServe
r getMQSESSION() - retrieving MQSESSION...
04:33:41 [1059669221758] Thread: Thread-0 ==> MQSESSION::getLib
raryName() entry
04:33:41 [1059669221758] Thread: Thread-0 <== MQSESSION::getLib
raryName() exit
04:33:41 [1059669221782] Thread: Thread-0, Object: com.ibm.mq.s
erver.MQSESSION@f2297103 ==> setThreadAccess() entry
04:33:41 [1059669221782] Thread: Thread-0 ==> MQSESSION::getL
ibraryName() entry
04:33:41 [1059669221782] Thread: Thread-0 <== MQSESSION::getL
ibraryName() exit
04:33:41 [1059669221782] Thread: Thread-0, Object: com.ibm.mq

.server.MQSESSION@f2297103 Thread switch enabled
04:33:41 [1059669221782] Thread: Thread-0, Object: com.ibm.mq.s
erver.MQSESSION@f2297103 <== setThreadAccess() exit
04:33:41 [1059669221817] Thread: Thread-0, Object: com.ibm.mq.s
erver.MQSESSION@f2297103 ==> MQCONN() entry
04:33:41 [1059669221817] Thread: Thread-0, Object: com.ibm.mq .server.MQSESSION@f2297103 common/javabase/com/ibm/mq/server/MQSESSION.java,
java, j520, j520-L010802.1 01/07/30 16:27:40 @(#) 1.29.1.4
04:33:41 [1059669221817] Thread: Thread-0, Object: com.ibm.mq
.server.MQSESSION@f2297103 Queue Manager = ''
FATAL ERROR in native method: Try to invoke an instance method as a static me
thod
com/ibm/mq/server/MQThread.run()V+0 (MQThread.java:981)
$