Re: Java class hangs when using AIX Runmqtrm

2003-08-04 Thread Troy Wells
I actually did this a couple of weeks ago and it worked, but just forgot to post it. 
Do you know of any negative's to turning JIT (JAVA_COMPILER=none) off."Hossain, Lail {PBSG}" [EMAIL PROTECTED] wrote:



We had similar problem. Add the following line to your script just before you call your java app.

JAVA_COMPILER=NONE
Thank You 
Lail S. Hossain-Original Message-From: Troy Wells [mailto:[EMAIL PROTECTED]Sent: Monday, June 30, 2003 6:51 PMTo: [EMAIL PROTECTED]Subject: Java class hangs when using AIX Runmqtrm



Hi all. We currently have MQSeries 5.3 installed on an AIX 5.2 box. Wehave developed a Java class that reads a message (which is in XML format)and parses the message (using xmlj4) for inserting into an Oracle database.On the AIX system, we have created a process definition with anapplicationid of a unix ksh script that sets up all classpaths, etc and thenstarts the java class. What we have found is that when we run the scriptmanually (logged on as mqm), the java application works correctly; however,when we allow the trigger monitor to start the script/java class, the classhangs at the program line that creates the DOMParser object (DOMParserparser = new DOMParser()). In addition, the class is not throwing any sortof exception. Also the trigger monitor stops processing any initq messagesunless will kill the java process. We have compared the
 environments (using'env') in both cases (manual vs triggered) and both are exacly the same.In addition, the same java class runs correctly when triggered in a Windows2000 environment. Appears to be something specific when triggering on theAIX environment.Does anyone have any suggestions?

Regards,

Troy Wells



Do you Yahoo!?SBC Yahoo! DSL - Now only $29.95 per month!
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Java class hangs when using AIX Runmqtrm

2003-07-31 Thread Hossain, Lail {PBSG}



We had
similar problem. Add the following line to your script just before you
call your java app.

JAVA_COMPILER=NONE
Thank You 
Lail S.
Hossain-Original Message-From: Troy
Wells [mailto:[EMAIL PROTECTED]Sent: Monday, June 30, 2003 6:51
PMTo: [EMAIL PROTECTED]Subject: Java class hangs
when using AIX Runmqtrm

  
  
  Hi all.
  We currently have MQSeries 5.3 installed on an AIX 5.2 box. Wehave
  developed a Java class that reads a message (which is in XML format)and
  parses the message (using xmlj4) for inserting into an Oracle database.On
  the AIX system, we have created a process definition with anapplicationid
  of a unix ksh script that sets up all classpaths, etc and thenstarts the
  java class. What we have found is that when we run the
  scriptmanually (logged on as mqm), the java application works correctly;
  however,when we allow the trigger monitor to start the script/java class,
  the classhangs at the program line that creates the DOMParser object
  (DOMParserparser = new DOMParser()). In addition, the class is not
  throwing any sortof exception. Also the trigger monitor stops
  processing any initq messagesunless will kill the java process. We
  have compared the environments (using'env') in both cases (manual vs
  triggered) and both are exacly the same.In addition, the same java
  class runs correctly when triggered in a Windows2000 environment.
  Appears to be something specific when triggering on theAIX
  environment.Does anyone have any
  suggestions?
  
  Regards,
  
  Troy Wells
  
  
  
  Do you Yahoo!?SBC
  Yahoo! DSL - Now only $29.95 per month!


Re: Java class hangs when using AIX Runmqtrm

2003-07-08 Thread Troy Wells
Justin,

I installed CSD04 and in the script that the trigger process initiates, I performed the export of the env variable described below just prior to the initiation of the java class; however, I get the same results. Any suggestions?

Regards,
TroyJustin Fries [EMAIL PROTECTED] wrote:

Troy, Install CSD04 for MQ 5.3 (now available from the MQ web page at http://www-3.ibm.com/software/integration/mqfamily/support/summary/aix.html) in order to pick up APAR IY43961. Then make sure the triggered java application has the environment variable AMQ_NO_SIGWAIT_SIGTRAP=1 exported where it can see it. Cheers,Justin T. Fries [EMAIL PROTECTED]   WebSphere MQ Support   Raleigh, North Carolina  Hi all. We currently have MQSeries 5.3 installed on an AIX 5.2 box. Wehave developed a Java class that reads a message (which is in XML format)and parses the message (using xmlj4) for inserting into an Oracle database.On the AIX system, we have created a process definition with anapplicationid of a unix ksh script that sets up all classpaths, etc and thenstarts the java class. What we have found is that when we run the scriptmanually (logged on as mqm), the java application works correctly; however,when we allow the trigger monitor to start the script/java class, the classhangs at the program line that creates the DOMParser object (DOMParserparser = new DOMParser()). In addition, the class is not throwing any sortof exception. Also the trigger monitor stops processing any initq
 messagesunless will kill the java process. We have compared the environments (using'env') in both cases (manual vs triggered) and both are exacly the same.In addition, the same java class runs correctly when triggered in a Windows2000 environment. Appears to be something specific when triggering on theAIX environment.Does anyone have any suggestions? Regards,  Troy Wells

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Java class hangs when using AIX Runmqtrm

2003-07-02 Thread Troy Wells
Justin,
Thanks for your reply. I looked at the AIX summary url you listed and did not find any reference to IY43961.Also, Ifound at http://www-1.ibm.com/support/docview.wss?uid=swg1IY43961that this fix will be shipped with WebSphere MQ V5.3CSD05. 
For CSD04, is it listed under a different number?

Regards,

Troy WellsJustin Fries [EMAIL PROTECTED] wrote:

Troy, Install CSD04 for MQ 5.3 (now available from the MQ web page at http://www-3.ibm.com/software/integration/mqfamily/support/summary/aix.html) in order to pick up APAR IY43961. Then make sure the triggered java application has the environment variable AMQ_NO_SIGWAIT_SIGTRAP=1 exported where it can see it. Cheers,Justin T. Fries [EMAIL PROTECTED]   WebSphere MQ Support   Raleigh, North Carolina  Hi all. We currently have MQSeries 5.3 installed on an AIX 5.2 box. Wehave developed a Java class that reads a message (which is in XML format)and parses the message (using xmlj4) for inserting into an Oracle database.On the AIX system, we have created a process definition with anapplicationid of a unix ksh script that sets up all classpaths, etc and thenstarts the java class. What we have found is that when we run the scriptmanually (logged on as mqm), the java application works correctly; however,when we allow the trigger monitor to start the script/java class, the classhangs at the program line that creates the DOMParser object (DOMParserparser = new DOMParser()). In addition, the class is not throwing any sortof exception. Also the trigger monitor stops processing any initq
 messagesunless will kill the java process. We have compared the environments (using'env') in both cases (manual vs triggered) and both are exacly the same.In addition, the same java class runs correctly when triggered in a Windows2000 environment. Appears to be something specific when triggering on theAIX environment.Does anyone have any suggestions? Regards,  Troy Wells

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Java class hangs when using AIX Runmqtrm

2003-07-01 Thread Justin Fries

Troy,

Install
CSD04 for MQ 5.3 (now available from the MQ web page at http://www-3.ibm.com/software/integration/mqfamily/support/summary/aix.html)
in order to pick up APAR IY43961. Then make sure the triggered java
application has the environment variable AMQ_NO_SIGWAIT_SIGTRAP=1 exported
where it can see it.

Cheers,

Justin T. Fries
[EMAIL PROTECTED]
WebSphere MQ Support
Raleigh, North Carolina



Hi all. We currently have
MQSeries 5.3 installed on an AIX 5.2 box. We
have developed a Java class that reads a message (which is in XML format)
and parses the message (using xmlj4) for inserting into an Oracle database.
On the AIX system, we have created a process definition with an
applicationid of a unix ksh script that sets up all classpaths, etc and
then
starts the java class. What we have found is that when we run the
script
manually (logged on as mqm), the java application works correctly; however,
when we allow the trigger monitor to start the script/java class, the class
hangs at the program line that creates the DOMParser object (DOMParser
parser = new DOMParser()). In addition, the class is not throwing
any sort
of exception. Also the trigger monitor stops processing any initq
messages
unless will kill the java process. We have compared the environments
(using
'env') in both cases (manual vs triggered) and both are exacly the same.

In addition, the same java class runs correctly when triggered in a Windows
2000 environment. Appears to be something specific when triggering
on the
AIX environment.

Does anyone have any suggestions?


Regards,

Troy Wells


Re: Java class hangs when using AIX Runmqtrm

2003-06-30 Thread mikhail malamud



Troy -
Here is how I would approach this
problem.
1. Make sure your triggering work with non java
application. Trigger something simple like ksh.
2. Trigger a simple java application.
3. Get the simple application to throw an exception
and find out how and where you can see it.
4. Beging porting code class by class from the java
app that does not work into a simple one.

My guess is that somehow, when your app is
triggered whatever class you are trying to instantiate is not in the classpath
either because of the precedence or some other reason. In that case your app has
to throw an exception so it is vital that you verify that exceptions are visible
to you.

How much memory does you java app consume? How many
processes and how many files do you have open when triggering takes place? What
type of triggering do you use? 

  - Original Message - 
  From:
  Troy
  Wells 
  To: [EMAIL PROTECTED] 
  Sent: Monday, June 30, 2003 7:51 PM
  Subject: Java class hangs when using AIX
  Runmqtrm
  
  
  
  Hi all.
  We currently have MQSeries 5.3 installed on an AIX 5.2 box. Wehave
  developed a Java class that reads a message (which is in XML format)and
  parses the message (using xmlj4) for inserting into an Oracle database.On
  the AIX system, we have created a process definition with anapplicationid
  of a unix ksh script that sets up all classpaths, etc and thenstarts the
  java class. What we have found is that when we run the
  scriptmanually (logged on as mqm), the java application works correctly;
  however,when we allow the trigger monitor to start the script/java class,
  the classhangs at the program line that creates the DOMParser object
  (DOMParserparser = new DOMParser()). In addition, the class is not
  throwing any sortof exception. Also the trigger monitor stops
  processing any initq messagesunless will kill the java process. We
  have compared the environments (using'env') in both cases (manual vs
  triggered) and both are exacly the same.In addition, the same java
  class runs correctly when triggered in a Windows2000 environment.
  Appears to be something specific when triggering on theAIX
  environment.Does anyone have any
  suggestions?
  
  Regards,
  
  Troy Wells
  
  
  
  Do you Yahoo!?SBC
  Yahoo! DSL - Now only $29.95 per month!