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



Because java pgms resides on IFS, and IFS does not support the concept
of adopted authority, when calling java from RPG you need to make sure
that the user runs RPG has authority over the IFS folders where the java
jars are located. 
At least this was the reason I got a similar exception. My workaround
was to switch the user ID to a user ID that has proper autorities before
calling java, then switch it back to the current user when it is done. 
Hope this helps.
ali



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Mike Silvers
Sent: Thursday, January 25, 2007 8:27 AM
To: RPG programming on the AS400 / iSeries
Subject: Problem with RPG/Java call

I have been struggling with this issue for quite some time now.  I am
making a call from an RPG program to a Java program.  The RPG program
sets up the environment (classpath, etc), sets the parameters, calls the
Java program and retrieves the parameters from the Java program.  The
Java program connects to a secure server on the internet and retrieves
data from a web site.
 
This process was working until the target site changed their SSL
certificate.  The certificate they changed to was malformed and would
error when using the JDK 1.3.  I have since changed to 1.4.1.  
 
When I run the RPG program using a profile with *ALLOBJ authority, the
process works well.  When I run the program with a user profile with
lesser authorities, the program errors in the execution of the Java with
"weird" errors such as:
 
Cause . . . . . :   RPG procedure CRD002R in program PRODPGM/CRD002R
received
  Java exception "java.lang.NoSuchMethodError: append

  (Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;" when calling
method     
  "<init>" with signature "()V" in class "com.shipley.ssl.CRD001J".

 
I have compiled the RPG program using adopted authority with a user
profile that works.
 
Any suggestions?
 
Mike
 
=======================================
Mike Silvers, Chief Operating Officer
Hainey Business Systems-Division of Affinigent, Inc IT Solutions for
Business Performance

Cell: (717) 324-5508
Phone:  (717) 600-0033 ext 106
Fax: (877) 804-9589
http://www.affinigent.com <http://www.affinigent.com/>
http://www.hbs-inc.com <http://www.hbs-inc.com/>
AIM:  IBMJavaMan
Skype: hbs_mike_silvers
=======================================
 
--
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 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.