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



James Rich wrote:
...
Something I started wondering about: can CL catch Java exceptions on iSeries? My experience so far is no, it can't. AFAIK ILE C, RPG, and CL use their own exception model and don't share that with the exception model used by java and therefore don't catch java exceptions. I'm interested to hear differently.


Maybe not completely relevant to this discussion, but if you call Java methods from RPG, then Java exceptions do get caught by the RPG runtime and turned into escape messages; if you have RPG native methods, unhandled exceptions in the RPG native method get turned into thrown Java exceptions.

It's not something unique to RPG; it's a basic feature of JNI that native code can "catch" (test for) Java exceptions and can throw Java exceptions.

AFAIK, CL can only call Java using RUNJVA; that involves a different job, so the issue is somewhat similar to a CL program catching exceptions from a job it submits.


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.