|
Clearly there are a variety of ways to achieve this, each with there challenges and/or limitations. The following previous post also provides an RPG-centric option. http://archive.midrange.com/rpg400-l/200403/msg00114.html -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of colin williams Sent: Friday, August 27, 2004 6:27 PM To: RPG programming on the AS400 / iSeries Subject: Re: Capturing a Java error message Mike, I have found this to be a pain also. The best way I have found to deal with it is to create a method in the java code to divert System.out to an IFS file, if the code is running on the 400 eg if ("OS/400".equals(System.getProperty("os.name"))) { fos = new FileOutputStream("myapp.log", true); bos = new BufferedOutputStream(fos, 1024); ps = new PrintStream(bos, true); System.setOut(ps); System.setErr(ps); } this output will then not run if you test this code on your local pc cheer Colin.W ----- Original Message ----- From: "Mike Wills" <koldark@xxxxxxxxx> To: "Midrange_RPG400_L" <rpg400-l@xxxxxxxxxxxx> Sent: Friday, August 27, 2004 5:36 PM Subject: Capturing a Java error message > I am trying to figure out why I am getting an error in a RPG/Java > interface. I only get back part of the error so it makes it hard to > troubleshoot. Is there a way I can get the complete java error > message? > > -- > Mike Wills > iSeries Programmer/Lawson Administrator > koldark@xxxxxxxxx > http://www.koldark.net > Want Gmail? Email koldark+gmail@xxxxxxxxx to get on my waiting list. > -- > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > This e-mail has been sent by a company of Bertram Group Ltd, whose registered office is 1 Broadland Business Park, Norwich, NR7 0WF. This message, and any attachments, are intended solely for the addressee and may contain privileged or confidential information. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you believe that you have received this email in error, please contact the sender immediately. Opinions, conclusions and statements of intent in this e-mail are those of the sender and will not bind a Bertram Group Ltd company unless confirmed in writing by a director independently of this message. Although we have taken steps to ensure that this email and any attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. -- This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.