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



Hi Michael,

Your Java method has the return value set to "void" -- meaning it doesn't return anything.

your RPG prototype shows the return value as a Java String object.

They have to match.


Ala, Michael wrote:
I am receiving the following error

Message . . . . : Java exception received when calling Java method (C
G D F).

Cause . . . . . : RPG procedure MAILER in program MILIB/MAILER
received Java
exception "java.lang.NoSuchMethodError: sendSimpleMail" when calling
method "sendSimpleMail" with signature

"(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.Strin
g;)L
java.lang.String;" in class "demo.Mailer".

Java Program is Compiled into Java/demo/Mailer
Package is demo
sendSimpleMail is a method in within the Mailer class
public static void sendSimpleMail(String to, String from, String
subject,
String message)
throws MessagingException {
The RPG Prototype is DMailer$sendSimpleMail... D PR O STATIC D EXTPROC( D *JAVA: D 'demo.Mailer': D 'sendSimpleMail') D CLASS( D *JAVA: D 'java.lang.String') D to LIKE(newString) D from LIKE(newString) D subject LIKE(newString) D message LIKE(newString)
Thanks for any help on this

Mike


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.