Two comments, besides clarifying that the noted "CL commands" are apparently executed in a compiled CLP [as implied by the syntax and use of MONMSG], thus the invocation is apparently a CALL of that CLP:

- Why use the high OPTIMIZE(40) value for which the effect will be that "All call and instruction tracing is disabled."?

- The MONMSG seems likely to be a bit too generic, at least for lack of ignoring just one specific return code vs ignoring all possible exit codes. That MONMSG would allow the CLP to terminate\return without errors, i.e. as a successful CALL request, even though the error issued for the CL RUNJVA [CL synonym: JAVA] request may be relevant to diagnose a problem [for\with an exit code] different than for what reason the MONMSG was originally coded:
http://archive.midrange.com/java400-l/200804/msg00017.html
"... Reading the original problem in that APAR might give you the idea to run the class from within QSHELL (a more "natural" environment for Java) and then you might get to see any error messages from the application. ..."

Note: the aforementioned APAR seems no longer to be available on the web :-( although all PRS closing-code APARs should be kept actively available on the IBM support\service web-site if they have not been resolved.

If indeed the monitor for JVA0122 is too generic, then another link for another similar comment:
http://mowyourlawn.com/blog/?p=249
"...
aaronbartell says on May 7, 2010 at 12:32 pm
The next step I always take in doing low-level Java debugging is to run it from QShell with the “-verbose” option specified. Then it shows everything that is happening as the JVM starts up and invokes the Java program. ..."

Regards, Chuck

On 04 Jun 2013 07:38, Debra Petta wrote:

I need an expert help me diagnose a Java application problem. My
expertise is more in the Windows and Unix environments but this
application also needs to run on the iSeries and I have exhausted
the extent of my limited iSeries troubleshooting knowledge.

I have a user running my Java application on a V5R4 platform. The
application runs through a batch job and is invoked via the
following CL commands:

CHGCURDIR '/appPath'
ADDENVVAR ENVVAR(JAVA_HOME) VALUE(*NULL) +
LEVEL(*JOB) REPLACE(*YES)
JAVA CLASS('classname') +
PARM('-s' "service") +
PROP((java.ext.dirs '/QIBM/ProdData+
/OS400/jt400/lib:/appPath/lib:+
(org.apache.commons.logging.Log +
'LoggerClassname') +
(java.version '1.5')) +
OPTIMIZE(40) CHKPATH(*IGNORE)
/* If this command has been invoked and the service is not */
/* currently running, ignore that error and exit gracefully */
MonMsg MsgID(JVA0122)

<<SNIP>>

Has anyone ever experienced any application problems something
similar to this? I welcome any suggestions that anybody has about
what other troubleshooting steps I can take next.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.