You can catch a specific expression from java tool box class/methods.

Also after the call to i5 command or program, the exceptions are retuned in string of array, which you can use it to find out what was the root cause of the problem.

Thanks, Murali.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Derek Chow
Sent: 26 October 2009 21:36
To: java400-l@xxxxxxxxxxxx
Subject: ProgramCallBean invoke method exception

We have a piece of Java code calling the ProgramCallBean.invoke() method. When there is an issue in the call, exception may be logged in the log file. However, no method is provided by ProgramCallBean to capture the exception programmatically, so the code has no idea whether the call is successful. Any idea how to capture the exception? Please advise.

Here is an example of the exception from the method call:
349053:5:27.219 0 > Running iSeries host command : CHGJOB INQMSGRPY(*DFT) WebIntRuntimeException occurred : javaValue ($expr:{toString($system_param$sysdate,"yyyyMMdd")}): Length is not valid. javaValue ($expr:{toString($system_param$sysdate,"yyyyMMdd")}): Length is not valid.


This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at

Consider the environment and think before you print this email.

Registered Address: Fortis House Tollgate Eastleigh Hampshire SO53 3YA Registered Number: 354568 England
Authorised and regulated by the Financial Services Authority

This e-mail together with any attachments are intended for the addressee only and may be private and confidential. If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, you must not open any attachments, or copy, disclose, distribute, retain or use this e-mail, including any attachments, in any way whatsoever; please return it to us immediately using the reply facility on e-mail.

Consider the environment and think before you print this email.

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page