Author |
Message
|
scar |
Posted: Thu Sep 30, 2004 9:22 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
if i run the code directly its getting the message from the queue and processing it.
do you have any thoughts about why its not doing it if run thru trigger. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Sep 30, 2004 5:07 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20757 Location: LI,NY
|
You did not specify your CSD. If not at CSD07 move to CSD07
We have been running with the env variables on AIX at
CSD00, CSD06 and CSD07.
It worked fine...
Enjoy  |
|
Back to top |
|
 |
siliconfish |
Posted: Thu Sep 30, 2004 5:28 pm Post subject: |
|
|
 Master
Joined: 12 Aug 2002 Posts: 203 Location: USA
|
Can you run the trigger monitor using nohup and paste the nohup.out? else just run the trigger monitor as a foreground process and put a message on the application queue and paste the output.
Remove the "javac notification" from the script and compile it seperately and just include "java notification".
How are u passing the details of the application queue to your java program i mean the MQTMC2 data and can u print the queue name and the queue manager name using System.out.print statements to ensure that ur java app has the required info.
You can also check the IPPROCS on the queue to check if the java app has opened the queue for Input. (use DIS QS). |
|
Back to top |
|
 |
scar |
Posted: Fri Oct 01, 2004 8:01 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
I guess CSD0
mqver gives the following
Name: WebSphere MQ
Version: 530
CMVC level: p000-L021011
BuildType: IKAP - (Production) |
|
Back to top |
|
 |
scar |
Posted: Fri Oct 01, 2004 8:05 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
this is the output displayed in trigger monitor
Waiting for a trigger message
/home/fmc/wfegwmcode/mail/mailnotificationscript.ksh 'TMC 2FMC.MAIL.NOTIFICAT
ION.QUEUE FMCMAILNOTIFICATION
/home/fmc/wfeg
wmcode/mail/mailnotificationscript.ksh
FMCQM '
/usr/mqm/java/lib
/home/db2cae/sqllib/function:/home/db2cae/sqllib/java/db2java.zip:/home/db2cae/s
qllib/java/runtime.zip:/home/db2inst1/sqllib/java/db2java.zip:/home/db2inst1/sql
lib/java/db2jcc.jar:/home/db2inst1/sqllib/java/sqlj.zip:/home/db2inst1/sqllib/fu
nction:/home/db2inst1/sqllib/java/db2jcc_license_cisuz.jar:/home/db2inst1/sqllib
/java/db2jcc_license_cu.jar:.:/usr/java130/jre/lib/rt.jar:/usr/java131/jre/lib/r
t.jar:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/com.ibm.mqjms.jar:/usr/
mqm/java/lib/connector.jar:/usr/mqm/java/lib/fscontext.jar:/usr/mqm/java/lib/jms
.jar:/usr/mqm/java/lib/providerutil.jar:/usr/mqm/java/lib/jta.jar:/usr/mqm/java/
lib/jndi.jar:usr/mqm/java/lib/ldap.jar:usr/mqm/java/lib/com.ibm.mqbind.jar:/home
/fmc/javalib/imap.jar:/home/fmc/javalib/mailapi.jar:/home/fmc/javalib/pop3.jar:/
home/fmc/javalib/smtp.jar:/home/fmc/javalib/activation.jar:/home/fmc/javalib/mai
l.jar:/usr/java131/lib/tools.jar
/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/fmc/bin:/usr/bin/X11:/sbin:/usr/java131/b
in:.:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/m
isc:/home/fmc:/home/fmc/wfegwmcode/mail:/usr/java130/jre/bin:/usr/java131/jre/bi
n:/usr/mqm/java/bin
fmc pts/3 Oct 01 06:46 (hostname)
/home/fmc/wfegwmcode/mail
the last 2 lines
i had who am i in scriptfile
fmc pts/3 Oct 01 06:46 (hostname)
i had pwd in script file
/home/fmc/wfegwmcode/mail
and all the above i am just echoing the LIBPATH,classpath,path |
|
Back to top |
|
 |
vennela |
Posted: Fri Oct 01, 2004 11:16 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
What about LD_LIBRARY_PATH
It should be set to
LD_LIBRARY_PATH=/usr/mqm/java/lib
Also no CSD is ldefinitely inviting trouble.
Apply the latest CSD CSD07. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Oct 01, 2004 11:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20757 Location: LI,NY
|
Can you post your script (.sh) ?
How are you calling your java program ?
Thanks
F.J. |
|
Back to top |
|
 |
vennela |
Posted: Fri Oct 01, 2004 11:21 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
This is the APAR that is fixed in SCD04
Code: |
IY43961 - A triggered Java application hung when instantiating a
new queue manager object.
|
|
|
Back to top |
|
 |
scar |
Posted: Mon Oct 04, 2004 4:36 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
we ar going to install CSD07 today
and we will see what will happen. |
|
Back to top |
|
 |
scar |
Posted: Tue Oct 05, 2004 4:40 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
we had installed CSD07
now this is the error i am getting
i havent specified -sourcepath /home/fmc/wfegwmcode/mail
instead i gave this /home/fmc/wfegwmcode/mail/notification.java as file name
might that be the error
error: cannot read: /home/fmc/wfegwmcode/mail/notification.java
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
End of application trigger. |
|
Back to top |
|
 |
scar |
Posted: Tue Oct 05, 2004 5:04 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
after i added -source path its giving the following error
error: cannot read: notification.java
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Address
End of application trigger.
__________________________________________________
Waiting for a trigger message |
|
Back to top |
|
 |
scar |
Posted: Tue Oct 05, 2004 5:10 am Post subject: |
|
|
Centurion
Joined: 23 Jun 2004 Posts: 145
|
file java.notification has no privilages for geoup and others
i changed the chmod and its working
thanks a lot guys. |
|
Back to top |
|
 |
|