We have an RPG program making a Java call several times in a job. The Java call
fails after certain number of calls and the number of calls is fixed. In one of
the systems we noticed that the number of calls to the Java method after which
the job abends is 262141. Is there any system parameter for the number of Java
calls possible for a particular job. Also could this be because several
instaces of the JVM being created and results in no new instance to be created
(Lack of Garbage collection). Is there a way to know these details.
The details of the error message we get
To module . . . . . . . . . : QJVAJNI
To procedure . . . . . . . : FindClass
Statement . . . . . . . . . : 1
Message . . . . : Java program threw an exception.
Cause . . . . . : An exception was sent from within a Java program. The
Java exception object reference -2143288700 identifies the Java throwable
object that further describes the exception. The exception was thrown in a
thread attached to Java Virtual Machine -1259697824. Recovery . . . :
This exception can be handled only within the Java Virtual Machine
environment. If this exception causes a Java application to end, report the
problem to the person responsible for maintaining that application.
Technical description . . . . . . . . : Correct the cause of the exception
or add an appropriate "catch" clause to the Java program at the point where
the exception occurs.
50 11/11/06 00:24:16.518736 QRNXIE QSYS *ST
From module . . . . . . . . : QRNXMSG
From procedure . . . . . . : SignalException
Statement . . . . . . . . . : 21
To module . . . . . . . . . : SLPB479
To procedure . . . . . . . : SLPB479
Statement . . . . . . . . . : 85
Message . . . . : Java exception received when calling Java method.
Cause . . . . . : RPG procedure SLPB479 in program DIPOLIB/SLPB479 received
Java exception "UnknownError " when calling method "conditionValidator"
ava.lang.String;Ljava.lan" in class
"walgreens.acplan.job.ConditionValidatorJob". Recovery . . . : Contact
the person responsible for program maintenance to determine the cause of the
problem. Technical description . . . . . . . . : If the exception
indicates that the Java class was not found, ensure the class for the method
is in the class path. If the exception indicates that the Java method was
not found, check the method name and signature. If the signature is not
correct, change the RPG prototype for the method, or change the Java method,
so that the return type and parameter types match. You can determine the
signatures for all the methods in class XYZ using command QSH CMD('javap -s
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!