E-PC: Getting the exception error "Java field not found in the class" When the Java Fields Inherited From Another Java Class Using PeopleCode
(Doc ID 2869732.1)
Last updated on MAY 18, 2022
Applies to:
PeopleSoft Enterprise PT PeopleTools - Version 8.59 and laterInformation in this document applies to any platform.
Symptoms
In PT 8.59, Unable to Set values to java fields inherited from java class using Peoplecode
When trying to integrate any external application like IBM MQ with Peoplesoft using Peoplecode, it was found that it does not set values to the Java fields inherited from another Java Class.
However we can set values the java fields which is not inherited from another java class.
Here is reference example for one of the scenario:
-------------------------------------------------
IBM MQ doc reference :
https://www.ibm.com/docs/en/ibm-mq/9.0?topic=java-mqmessage
public class MQMS
extends MQMD
implements java.io.DataInput, java.io.DataOutput
The sample Code 1
Local JavObject &MQMS ; -- inherited from MDMD
&MQMS = CreateJavaObject("com.ibm.mq.MQMessage") ;
&MQMS.encoding=546 ;
==> Getting exception error "Java field not found in the class".
The sample Code 2
Local JavObject &MQMD;
&MQMD = CreateJavaObject("com.ibm.mq.MQMD") ;
&MQMD.encoding=546 ;
==> It works.
Changes
NA
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |