× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



        Assuming the java code is something you have access to, you
could catch all exceptions in our java code and have it print exceptions
to a file or log rather than printing them to stderr or stdout. That way
they wouldn't make it to the console, and then pass back an error code
of some kind to your RPG program so it knows there was an error and can
do what it needs in that case.

        Just a thought and I hope that helps.

Dan Feather
Silhouette/PinPoint R&D Programmer
Jack Henry & Associates, Inc.
dfeather@xxxxxxxxxxxxx
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of
edouard.lanteigne@xxxxxxxxxx
Sent: Wednesday, May 12, 2004 8:07 AM
To: java400-l@xxxxxxxxxxxx
Subject: RPGLE calling java method

Hi, 

I have an rpgle that calling a java method, when the class throw me an 
exception i can see the java console, is there a way to hide this
console?

Here is what i see...

         java/net/Socket.<init>(Ljava/lang/String;I)V+1 (Socket.java:95)

 
 sun/net/NetworkClient.doConnect(Ljava/lang/String;I)Ljava/net/Socket;+1
    (NetworkClient.java:45)  
         sun/net ............................................ ing;I)V+1 
(HttpCli
   ent.java:334) :              Pricing System              :  
         sun/net :                                          : 
ient.java:520) 
         sun/net :      The request has not completed       : 
a/lang/String;IZ)V
   +136 (HttpCli :      sucessfully, please contact         :  
         sun/net :      Helpdesk.                           : 
(HttpClient.java:
   280)          :                                          :  
         sun/net :..........................................: 
et/www/http/HttpCl
   ient;+15 (HttpClient.java:292)  
         sun/net/www/protocol/http/HttpURLConnection.connect()V+35 
(HttpURLConne
   ction.java:417)  
         Pricing.sendData(Ljava/lang/String;Ljava/lang/String;)V+37 
(Pricing.jav
   a:100)  
         Pricing.getResponse(Ljava/lang/String;)Ljava/lang/String;+106 
(Pricing.
   java:168)  
  
 ===>  
  
 F3=Exit F4=End of File F6=Print F9=Retrieve F17=Top  
 F18=Bottom  F19=Left   F20=Right F21=User Window  
  


Edouard Lanteigne
Abbott Laboratories (Canada),  Systems Analyst
Tel: (514) 832-7124    Fax: (514) 832-7833
E-mail : edouard.lanteigne@xxxxxxxxxx
http://www.abbott.ca



_______________________________________________
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,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



NOTICE: This electronic mail message and any files transmitted with it are 
intended exclusively for the individual or entity to which it is addressed. The 
message, together with any attachment, may contain confidential and/or 
privileged information. Any unauthorized review, use, print, save, copy, 
disclosure or distribution is strictly prohibited. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete all copies.



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-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.