Not Able To Call EM Java Implementation From C Opcode (Doc ID 2162065.1)

Last updated on AUGUST 19, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.5.0.0.0 and later
Information in this document applies to any platform.

Goal

On : 7.5.0.14.0 version, Rating

Written a opcode in java and when trying to invoke that java opcode(BIL_OP_EM_CALL) from C opcode (BIL_OP_RATE_SAMPLE_OPA_TEST),  getting the BAD_OPCODE error.

Here the steps followed.


1)Created opcode java opcode using js.jar and by extending API JSOpcodeIntf.

public class BILBillingEmController implements JSOpcodeIntf { Override
public FList opcode(JSServerContext arg0, int arg1, int arg2, FList arg3) throws EBufException {
..
and built BILBillingEmController.jar

2) Included the custom java opcode (name-number mapping) in PortalOp.java class, jar
e.g : public static final int BIL_OP_EM_CALL = 120000; in public class PortalOp.java

3). Also included opcode name-number mapping in custom_opcodes.h header file.
4). Made entry of em_pointer and em_group in cm/pin.conf for this custom opcode.
e.g
- cm em_group opa_em BIL_OP_EM_CALL
- cm em_pointer opa_em ip machine1 12345

5). Infranet.properties of this custom em has opcode to class mapping of the custom opcode
e.g provided 12000=com.bil.BILBillingEmController


5) Written script for start and stop of this EM java server.

CLASSPATH  set like this,
# jar files are located
JAR_DIR=${PINDIR}/jars
CLASSPATH=.$JAR_DIR/PortalOp.jar:$JAR_DIR/BIL_EM_Processor.jar:$JAR_DIR/js.jar:$JAR_DIR/pcm.jar:$JAR_DIR/pcmext.jar:$JAR_DIR/eai.jar:$JAR_DIR/xercesImpl.jar:$JAR_DIR/xmlParserAPIs.jar:$JAR_DIR/xml4j.jar:$JAR_DIR/oraclepki.jar:$JAR_DIR/osdt_cert.jar:$JAR_DIR/osdt_core.jar

6) While calling this java opcode from C opcode,we are getting below error. Any possible reason for this error ?

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms