|
I posted a fairly detailed question involving an RPG/Java interface
problem to the Midrange list yesterday, and Scott Klement was nice
enough to have an in-depth look at it. He also suggested that it might
be best to continue the issue on the RPG list as it involved RPG.
The original message involved a mistype on the folder path used to store
the classes.
I'm sorry about my mistyping Scott. The folder structure in fact does
contain the missing 'eigansvar' folder so that the mistake was in the
e-mail and not the coding.
Here is the result of the QSH command (javap -s
au.com.eigansvar.web.webservices.userdb.client.Service):
javap -s au.com.eigansvar.web.webservices.userdb.client.Service
Compiled from "Service.java"
public class au.com.eigansvar.web.webservices.userdb.client.Service
extends java.lang.Object{
public au.com.eigansvar.web.webservices.userdb.client.Service();
Signature: ()V
public static au.com.eigansvar.web.webservices.userdb.client.User
getUserByUsername(java.lang.String);
throws java/rmi/RemoteException
Signature:
(Ljava/lang/String;)Lau/com/eigansvar/web/webservices/userdb/client/User
;
Here is the CLASSPATH obtained when I do an 'export' in QSHELL:
CLASSPATH=/java/leo/ibm-jaxrpc-client.jar : /java/leo/objectpoolimp.jar
: /java/leo/xercesImpl.jar : /java/leo/xml-apis.jar :
/java/leo/
Here is the relevant detail from the DSPJOBLOG, followed by the second
level text:
call javtstcl
Application error. RNX0301 unmonitored by JAVTST01 at statement
0000000042, instruction X'0000'.
Additional Message Information
Message ID . . . . . . : CEE9901 Severity . . . . . . . : 30
Message type . . . . . : Escape
Date sent . . . . . . : 07/12/06 Time sent . . . . . . :
09:17:14
Message . . . . : Application error. RNX0301 unmonitored by JAVTST01
at
statement 0000000042, instruction X'0000'.
Cause . . . . . : The application ended abnormally because an
exception
occurred and was not handled. The name of the program to which the
unhandled exception is sent is JAVTST01 JAVTST01 JAVTST01. The
program was
stopped at the high-level language statement number(s) 0000000042 at
the
time the message was sent. If more than one statement number is
shown, the
program is an optimized ILE program. Optimization does not allow a
single
statement number to be determined. If *N is shown as a value, it
means the
real value was not available.
Recovery . . . : See the low level messages previously listed to
locate the
cause of the exception. Correct any errors, and then try the request
again.
I saw that Shannon O'Donnell commented that she'd never been able to get
Java to work unless she physically set the CLASSPATH in the RPG program.
I'm not quite sure what she meant. Does it mean she issues a CHGENVVAR
command from within the RPG?
Once again, the class is able to be found when I run a test harness
referencing it in the QSH environment.
Once again, thanks for all the invaluable help.
*********************************************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you are not the intended recipient, any use, disclosure or copying of this
message is unauthorised. If you have received this message in error, please
reply using the sender's email address.
This footnote confirms that this email message has been scanned for computer
viruses. EIG-Ansvar Limited does not accept liability for any loss or damage,
whether caused by our own negligence or not, that results from a computer virus
or defect in the transmission of this email or any attached file.
EIG-Ansvar Limited - Australia (A.B.N. 21 007 216 506)
Email : insure@xxxxxxxxxxxxxxxx
Eig-Ansvar Limited - New Zealand
Email : insure@xxxxxxxxxxxxxxxx
*********************************************************************************************************
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.