MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » June 2008

RE: Using RUNJVA and QCMDEXC - No error messages?



fixed

Brad:

You might want to post this to the java-l@xxxxxxxxxxxx mail list.

The classes you are using might be ending without leaving any messages.
For example

try {
int i = 17/0;
System.out.println("17/0 is " + i);
} catch (Exception e) {
System.exit(1);
}

That would bomb without a trace (divide by zero) and put the java ended
with exit code 1 in the job log. There would not be any output to find,
nothing written to stdout or stderr.

Bill Blalock



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
vhamberg@xxxxxxxxxxx
Sent: Wednesday, June 18, 2008 11:42 AM
To: Midrange Systems Technical Discussion
Subject: Re: Using RUNJVA and QCMDEXC - No error messages?

Brad

Are you doing this out of RPG? Or CL? I'll take a stab with my limited
knowledge.

In WDSC there's a nifty wizard for creating prototypes to Java stuff -
maybe give that a try.

Errors and all are usually found in a QPRINT spooled file, not in the
job log. So maybe look there.

HTH
Vern

-------------- Original message --------------
From: "Bradley V. Stone" <bvstone@xxxxxxxxxxxx>

I'm doing some testing on an application that uses a couple Java
Classes.

Right now I'm testing bombing due to class not found errors. But, it
seems
all I get in the job log is:

Java program completed with exit code 1

There seems to be no extended help at all. I'm expecting a class not
found
error, but seeing nothing. Any ideas?

Bradley V. Stone
BVSTools - www.bvstools.com
eRPG SDK - www.erpgsdk.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






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

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact